Getting a blank page when opening http://localhost:4502/libs/cq/core/content/welcome.html | Community
Skip to main content
anilkum
Level 4
September 13, 2016
Solved

Getting a blank page when opening http://localhost:4502/libs/cq/core/content/welcome.html

  • September 13, 2016
  • 4 replies
  • 3489 views

Hi,

I am unable to see the welcome screen and getting below error. My AEM version is 6.0. I have applied SP2 and the installed a few packages.

13.09.2016 14:54:34.045 *ERROR* [0:0:0:0:0:0:0:1 [1473758673210] GET /libs/cq/core/content/welcome.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException

java.lang.IndexOutOfBoundsException: No group 2
    at java.util.regex.Matcher.start(Matcher.java:374)
    at java.util.regex.Matcher.appendReplacement(Matcher.java:831)
    at java.util.regex.Matcher.replaceAll(Matcher.java:906)
    at java.lang.String.replaceAll(String.java:2162)
    at org.apache.jsp.libs.cq.core.components.welcome.welcome_jsp._jspService(welcome_jsp.java:492)

 

An pointers what could be the issue?

Regards,

Anil

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 Sham_HC
  1. Stop the instance
  2. Delete all file starting with history <cq_home>/logs/history*
  3. Start the instance & verify.
  4. This could happen if you have special character in dam asset file name like $..

4 replies

smacdonald2008
Level 10
September 13, 2016

Try removing the recently installed packlages and see if that works. SOmething has caused an issue. I  am thinking it was code in a package. 

AnkurAhlawat-1
Level 6
September 14, 2016

AEM 6 is a stable version with SP2, as stated by scott the packages that were installed after SP2 might have caused this issue.

This issue might occur if you have tried uninstalling SP2, as it will corrupt your instance.

Note:- SP2 once installed cannot be uninstalled, you have to setup a fresh instance.

Sham_HC
Sham_HCAccepted solution
Level 10
September 20, 2016
  1. Stop the instance
  2. Delete all file starting with history <cq_home>/logs/history*
  3. Start the instance & verify.
  4. This could happen if you have special character in dam asset file name like $..
kautuk_sahni
Community Manager
Community Manager
September 20, 2016

Exactly, what Sham Said.

Please have a look at this link:-

Link:- http://bloggershetty.blogspot.in/2006/10/java-string-replace-javalangindexoutofb.html

//  java.lang.IndexOutOfBoundsException: No group 2

Reason:- You possibly have "$" character in your target string.

Also check if you have used some string replacing or string manipulation function in recent service/component. Try removing the OSGI service/component added from "\crx-quickstart\launchpad\installer"

 

~kautuk

Kautuk Sahni