Error at instance start | Community
Skip to main content
Magicr
Level 6
April 1, 2022
Solved

Error at instance start

  • April 1, 2022
  • 1 reply
  • 2507 views

Hello,

 

when I install a new instance of AEM 6 on local computer I modify the file "start.bat" to costumize the server port and adding debug port for it. Then I create a link to this file, for starting the instance.  At the moment I'm unable to start the instance via "start.bat" file. The error message I achive is "Can not determine process id of java.exe! No new entry present." What can I do in this situation?

A restart of computer did not help. The call "java -jar .\cq-xxxxx.jar" does work, but I need to be able to debug my code with my IDE. 🙂

 

Thanks in advanced.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Pallavi_Shukla_

Please open your command prompt and run the below commands

netstat -ano | findstr :4502

 

It will return you PID(note that down)

After that run the below command:

taskkill /PID <typeyourPIDhere> /F

 

and then try starting the instance again.

1 reply

Pallavi_Shukla_
Community Advisor
Community Advisor
April 1, 2022

Hope you have followed the below steps : 

  • First we need to update the start file; go to \crx-quickstart\bin\start.bat and append this command "-debug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=<port#>" with line 25, default JVM options.
  • Save the file
  •  Now double click on the start.bat file to start your AEM instance in debug mode.

Once you have done with the above changes and started your aem in debug mode then you have to configure debugger in your IDE (Eclipse or IntelliJ). To configure the debugger with your local AEM instance please follow this article. Remote debugger in eclipse

Magicr
MagicrAuthor
Level 6
April 1, 2022

I have it already added. What I forgot to mention the instance has being run for a while. From one day to next I get this error.

Pallavi_Shukla_
Community Advisor
Pallavi_Shukla_Community AdvisorAccepted solution
Community Advisor
April 1, 2022

Please open your command prompt and run the below commands

netstat -ano | findstr :4502

 

It will return you PID(note that down)

After that run the below command:

taskkill /PID <typeyourPIDhere> /F

 

and then try starting the instance again.