Expand my Community achievements bar.

SOLVED

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

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Level 10
  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 $..

View solution in original post

4 Replies

Avatar

Level 10

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. 

Avatar

Level 7

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.

Avatar

Correct answer by
Level 10
  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 $..

Avatar

Administrator

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