Error while starting AEM 6.4 for the first time | Community
Skip to main content
New Participant
Sep 7, 2018 11:12 AM UTC
Solved

Error while starting AEM 6.4 for the first time

Hello,

When i'm trying to start AEM 6.4 for the first time, I'm getting the below error:

Exception in thread "sling-oak-1" java.lang.NullPointerException

        at org.apache.sling.commons.threads.impl.DefaultThreadPool$LoggingThreadLocalChangeListener.changed(DefaultThreadPool.java:172)

        at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.changed(ThreadLocalCleaner.java:210)

        at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.diff(ThreadLocalCleaner.java:173)

        at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.cleanup(ThreadLocalCleaner.java:148)

        at org.apache.sling.commons.threads.impl.ThreadPoolExecutorCleaningThreadLocals.afterExecute(ThreadPoolExecutorCleaningThreadLocals.java:75)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

Also a null file is created in the quickstart folder. Is this a known issue in AEM 6.4?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Sep 9, 2018 3:46 PM UTC

ok, looks like the start.bat is incorrect. It rather should be

java  --add-modules java.se.ee --version > nul 2>&1

(nul instead of null).

that probably should fix the issue with the "null" file, but not with error you see. Nevertheless, please raise a Daycare ticket for it.

And that exception shouldn't happen as well. Can you reproduce it?

Jörg

8 replies

Level 2
Jul 30, 2019 10:19 AM UTC

The same issue I am facing while starting the AEM Server first time. And also the same jars file in working fine in other machine. Please do the needfull

Exception in thread "sling-oak-3" java.lang.NullPointerException

at org.apache.sling.commons.threads.impl.DefaultThreadPool$LoggingThreadLocalChangeListener.changed(DefaultThreadPool.java:172)

at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.changed(ThreadLocalCleaner.java:210)

at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.diff(ThreadLocalCleaner.java:173)

at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.cleanup(ThreadLocalCleaner.java:148)

at org.apache.sling.commons.threads.impl.ThreadPoolExecutorCleaningThreadLocals.afterExecute(ThreadPoolExecutorCleaningThreadLocals.java:75)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Translate
joerghoh
Employee
Apr 16, 2019 9:29 PM UTC
vipintyagi
New Participant
Apr 16, 2019 9:21 PM UTC

is there any fix for this ? When i am starting AEM Server below error occurs

Exception in thread "sling-oak-3" java.lang.NullPointerException

        at org.apache.sling.commons.threads.impl.DefaultThreadPool$LoggingThreadLocalChangeListener.changed(DefaultThreadPool.java:172)

        at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.changed(ThreadLocalCleaner.java:210)

        at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.diff(ThreadLocalCleaner.java:173)

        at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.cleanup(ThreadLocalCleaner.java:148)

        at org.apache.sling.commons.threads.impl.ThreadPoolExecutorCleaningThreadLocals.afterExecute(ThreadPoolExecutorCleaningThreadLocals.java:75)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

Exception in thread "sling-oak-6" java.lang.NullPointerException

        at org.apache.sling.commons.threads.impl.DefaultThreadPool$LoggingThreadLocalChangeListener.changed(DefaultThreadPool.java:172)

        at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.changed(ThreadLocalCleaner.java:210)

        at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.diff(ThreadLocalCleaner.java:173)

        at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.cleanup(ThreadLocalCleaner.java:148)

        at org.apache.sling.commons.threads.impl.ThreadPoolExecutorCleaningThreadLocals.afterExecute(ThreadPoolExecutorCleaningThreadLocals.java:75)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

Exception in thread "sling-oak-2" java.lang.NullPointerException

        at org.apache.sling.commons.threads.impl.DefaultThreadPool$LoggingThreadLocalChangeListener.changed(DefaultThreadPool.java:172)

        at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.changed(ThreadLocalCleaner.java:210)

        at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.diff(ThreadLocalCleaner.java:173)

        at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.cleanup(ThreadLocalCleaner.java:148)

        at org.apache.sling.commons.threads.impl.ThreadPoolExecutorCleaningThreadLocals.afterExecute(ThreadPoolExecutorCleaningThreadLocals.java:75)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

Exception in thread "sling-oak-1" java.lang.NullPointerException

        at org.apache.sling.commons.threads.impl.DefaultThreadPool$LoggingThreadLocalChangeListener.changed(DefaultThreadPool.java:172)

        at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.changed(ThreadLocalCleaner.java:210)

        at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.diff(ThreadLocalCleaner.java:173)

        at org.apache.sling.commons.threads.impl.ThreadLocalCleaner.cleanup(ThreadLocalCleaner.java:148)

        at org.apache.sling.commons.threads.impl.ThreadPoolExecutorCleaningThreadLocals.afterExecute(ThreadPoolExecutorCleaningThreadLocals.java:75)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

Exception in thread "sling-oak-5" java.lang.NullPointerException

Exception in thread "sling-oak-4" java.lang.NullPointerException

Translate
joerghoh
joerghohAccepted solution
Employee
Sep 9, 2018 3:46 PM UTC

ok, looks like the start.bat is incorrect. It rather should be

java  --add-modules java.se.ee --version > nul 2>&1

(nul instead of null).

that probably should fix the issue with the "null" file, but not with error you see. Nevertheless, please raise a Daycare ticket for it.

And that exception shouldn't happen as well. Can you reproduce it?

Jörg

Translate
New Participant
Sep 7, 2018 12:24 PM UTC

Just want to know why null file is created.

And Observed this...

Start.bat---> "java --add-modules java.se.ee --version > null 2>&1

if %errorlevel% EQU 0 set CQ_JVM_OPTS=--add-modules java.se.ee %CQ_JVM_OPTS%

"

In Null file --> "Unrecognized option: --add-modules"

Translate
New Participant
Sep 7, 2018 12:20 PM UTC

java version "1.8.0_121"

Java(TM) SE Runtime Environment (build 1.8.0_121-b13)

Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

Technical Requirements  same as adobe recommeded in technical requirements and we have checked before starting.

Translate
New Participant
Sep 7, 2018 12:19 PM UTC

I have all the prerequisites in place.

1. JDK 1.8

2. Maven 3.3.9

I'm able to open all the AEM consoles as well, but i was just curious to know about the null file in quickstart folder.

Translate
arunpatidar
New Participant
Sep 7, 2018 12:02 PM UTC

Hi,

Can you check jdk version? and other prerequisites before start.

Translate
Arun Patidar