Pages

Thursday, January 31, 2013

SOLVED: java.lang.StringIndexOutOfBoundsException: String index out of range: -2

 java.lang.StringIndexOutOfBoundsException: String index out of range: -2  
     at java.lang.String.substring(String.java:1937)  
     at java.lang.String.substring(String.java:1904)  
     at org.apache.myfaces.trinidadinternal.style.util.CSSGenerationUtils._getNSComponentSelector(CSSGenerationUtils.java:632)  
     at org.apache.myfaces.trinidadinternal.style.util.CSSGenerationUtils.getNamespacedSelectors(CSSGenerationUtils.java:525)  
     at org.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache._getShortStyleClassMap(FileSystemStyleCache.java:1185)  
     at org.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache._getStyleSheetDocument(FileSystemStyleCache.java:708)  
     at org.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache._getEntry(FileSystemStyleCache.java:441)  
     at org.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache.getStyleSheetURIs(FileSystemStyleCache.java:183)  
     at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.StyleSheetRenderer.encodeAll(StyleSheetRenderer.java:97)  
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)  
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)  


1. Open the $DOMAIN_HOME/bin/setDomainEnv.sh file
2. Add the following option tp prevent StringIndexOutOfBoundsException error: -XX:-UseSSE42Intrinsics


3. $DOMAIN_HOME/servers/AdminServer/tmp/_WL_user/em/jmb4hf/public/adf/styles/cache
4. Remove the cached CSS files.   rm -rf *.css
5. Restart Weblogic server

No comments:

Post a Comment