Skip to main content
anilkum
Level 4
Sep 13, 2016 10:14 AM UTC
Solved

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

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.
Sham_HC
Sham_HCAccepted solution
Level 10
Sep 20, 2016 5:14 AM UTC
  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
Sep 13, 2016 2:20 PM UTC

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. 

Translate
AnkurAhlawat-1
Level 6
Sep 14, 2016 2:52 AM UTC

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.

Translate
Sham_HC
Sham_HCAccepted solution
Level 10
Sep 20, 2016 5:14 AM UTC
  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 $..
Translate
kautuk_sahni
Level 9
Sep 20, 2016 6:51 AM UTC

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

Translate
Kautuk Sahni