Expand my Community achievements bar.

SOLVED

AEM instance is not starting

Avatar

Level 2

When I double click on the .jar file. it does not not do anything.

My Folder structure

Screen Shot 2022-03-21 at 11.37.11 AM.png

It  does create crx-quickstart with logs->upgrade.log file

I am running this JAVA on my system. I have also tried switching it to 1.8 with this command ' export JAVA_HOME=`/usr/libexec/java_home -v 1.8.291.10` '. but it does not work

Screen Shot 2022-03-21 at 11.38.24 AM.png

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

1st Try this -

Can you first unpack the Jar like this:

java -jar cq6-author-4502.jar -unpack

and then try to use the start script:

cd crx-quickstart/bin
./start

 

2nd : If the above approach don't work then please [Running AEM in debug mode and low memory] refer https://gist.github.com/boser87/e360d6179dfe693dfe5b 

 

View solution in original post

5 Replies

Avatar

Level 2

Yes after running the command what @DEBAL_DAS  has mentioned i can see the files and folder structures but instance is not starting.

stderr.log

Low-memory action set to fork
Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
The JVM reports a heap size of 4096 MB, meets our expectation of 1024 MB +/- 20
Setting properties from filename '/Users/vsoni/aem-sdk/aem-instances/aem3/AEM_6.5_Quickstart.jar'
Verbose option not active, closing stdin and redirecting stdout and stderr
Redirecting stdout to /Users/vsoni/aem-sdk/aem-instances/aem3/crx-quickstart/logs/stdout.log
Redirecting stderr to /Users/vsoni/aem-sdk/aem-instances/aem3/crx-quickstart/logs/stderr.log
ResourceProvider paths=[/gui, /gui/default]
21.03.2022 14:24:30.419 *ERROR* [FelixStartLevel] ERROR: Bundle '8' Error starting slinginstall:com.adobe.granite.crypto-3.4.16.jar (java.lang.ExceptionInInitializerError)
java.lang.ExceptionInInitializerError
	at org.apache.felix.framework.URLHandlers.createURLStreamHandler(URLHandlers.java:513)
	at java.base/java.net.URL.getURLStreamHandler(URL.java:1436)
	at java.base/java.net.URL.<init>(URL.java:479)
	at java.base/jdk.internal.loader.URLClassPath$JarLoader.<init>(URLClassPath.java:729)
	at java.base/jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:499)
	at java.base/jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:482)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
	at java.base/jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:481)
	at java.base/jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:449)
	at java.base/jdk.internal.loader.URLClassPath.findResource(URLClassPath.java:295)
	at java.base/java.net.URLClassLoader$2.run(URLClassLoader.java:629)
	at java.base/java.net.URLClassLoader$2.run(URLClassLoader.java:627)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.net.URLClassLoader.findResource(URLClassLoader.java:626)
	at com.adobe.granite.crypto.internal.InternalClassLoaderWrapper$JarFileClassLoader.findClass(InternalClassLoaderWrapper.java:175)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
	at com.adobe.granite.crypto.internal.Activator.getOrCreateKeyGenerator(Activator.java:145)
	at com.adobe.granite.crypto.internal.Activator.start(Activator.java:65)
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:698)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2402)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1539)
	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.RuntimeException: Unable to make protected boolean java.net.URLStreamHandler.equals(java.net.URL,java.net.URL) accessible: module java.base does not "opens java.net" to unnamed module @3af9c5b7
	at org.apache.felix.framework.URLHandlersStreamHandlerProxy.<clinit>(URLHandlersStreamHandlerProxy.java:104)
	... 25 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected boolean java.net.URLStreamHandler.equals(java.net.URL,java.net.URL) accessible: module java.base does not "opens java.net" to unnamed module @3af9c5b7
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
	at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
	at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
	at org.apache.felix.framework.util.SecureAction.setAccesssible(SecureAction.java:871)
	at org.apache.felix.framework.URLHandlersStreamHandlerProxy.<clinit>(URLHandlersStreamHandlerProxy.java:79)
	... 25 more
21.03.2022 14:24:31.583 *ERROR* [FelixStartLevel] ERROR: Bundle '18' EventDispatcher: Error during dispatch. (java.lang.NoClassDefFoundError: Could not initialize class org.apache.felix.framework.URLHandlersStreamHandlerProxy)
java.lang.NoClassDefFoundError: Could not initialize class org.apache.felix.framework.URLHandlersStreamHandlerProxy
	at org.apache.felix.framework.URLHandlers.createURLStreamHandler(URLHandlers.java:513)
	at java.base/java.net.URL.getURLStreamHandler(URL.java:1436)
	at java.base/java.net.URL.<init>(URL.java:680)
	at java.base/java.net.URL.fromURI(URL.java:748)
	at java.base/java.net.URI.toURL(URI.java:1139)
	at org.apache.sling.installer.core.impl.InternalResource.create(InternalResource.java:87)
	at org.apache.sling.installer.core.impl.OsgiInstallerImpl.createResources(OsgiInstallerImpl.java:384)
	at org.apache.sling.installer.core.impl.OsgiInstallerImpl.registerResources(OsgiInstallerImpl.java:477)
	at org.apache.sling.launchpad.installer.impl.LaunchpadConfigInstaller.install(LaunchpadConfigInstaller.java:207)
	at org.apache.sling.launchpad.installer.impl.LaunchpadConfigInstaller.install(LaunchpadConfigInstaller.java:150)
	at org.apache.sling.launchpad.installer.impl.ServicesListener.notifyChange(ServicesListener.java:100)
	at org.apache.sling.launchpad.installer.impl.ServicesListener$Listener.retainService(ServicesListener.java:182)
	at org.apache.sling.launchpad.installer.impl.ServicesListener$Listener.serviceChanged(ServicesListener.java:205)
	at org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990)
	at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838)
	at org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545)
	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4833)
	at org.apache.felix.framework.Felix.registerService(Felix.java:3804)
	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:328)
	at org.apache.sling.installer.core.impl.Activator.start(Activator.java:80)
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:698)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2402)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1539)
	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
	at java.base/java.lang.Thread.run(Thread.java:833)

Avatar

Correct answer by
Employee Advisor

1st Try this -

Can you first unpack the Jar like this:

java -jar cq6-author-4502.jar -unpack

and then try to use the start script:

cd crx-quickstart/bin
./start

 

2nd : If the above approach don't work then please [Running AEM in debug mode and low memory] refer https://gist.github.com/boser87/e360d6179dfe693dfe5b 

 

Avatar

Employee Advisor

Are you starting this AEM instance for the first time? If yes, can you execute 

java -Xmx4096M -jar AEM.jar and see whether it helps to start AEM instance or not.

If you want you keep the backup crx-quickstart folder also.

Avatar

Level 2

Hi @DEBAL_DAS - This is Suvendu here. I am also facing the same issue. I have already installed Java & maven. Also environmental variable has been set. While double click on AEM jar file from author folder AEM instance is running but not 100%. It seems like pause after 70 or 75%. I have tried deleting the crx folder & run through cmd from the author folder, but no luck. It's already my half of the day finished.

 

What could be the cause ?

 

NOTE - System config - Windows 11, 16gb RAM, 512gb SDD, i5 11th gen processor

 

Below is the message while running through cmd - 

suvendum1988_0-1657567188921.png

AEM Instance running till this - 

suvendum1988_1-1657567412064.png