com.ocpsoft.pretty.PrettyException: Failed to load configuration

Splash Forums PrettyFaces Users com.ocpsoft.pretty.PrettyException: Failed to load configuration

This topic contains 3 replies, has 2 voices, and was last updated by  Christian Kaltepoth 5 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18301

    msaleh
    Participant

    hi, sometimes when navigating between pages or using menubars actions or paginator navigation i am getting the following exception:

    com.ocpsoft.pretty.PrettyException: Failed to load configuration.
    at com.ocpsoft.pretty.faces.config.PrettyConfigurator.configure(PrettyConfigurator.java:90)
    at com.ocpsoft.pretty.faces.config.PrettyConfigListener.requestInitialized(PrettyConfigListener.java:64)
    at org.apache.catalina.core.StandardContext.fireRequestInitEvent(StandardContext.java:5974)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 173
    at java.lang.String.substring(String.java:1934)
    at org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:133)
    at org.apache.naming.resources.FileDirContext.normalize(FileDirContext.java:784)
    at org.apache.naming.resources.FileDirContext.file(FileDirContext.java:822)
    at org.apache.naming.resources.FileDirContext.doGetAttributes(FileDirContext.java:430)
    at org.apache.naming.resources.BaseDirContext.getAttributes(BaseDirContext.java:1089)
    at org.apache.naming.resources.BaseDirContext.getAttributes(BaseDirContext.java:1042)
    at org.apache.naming.resources.ProxyDirContext.getAttributes(ProxyDirContext.java:880)
    at org.apache.naming.resources.DirContextURLConnection.connect(DirContextURLConnection.java:160)
    at org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:382)
    at java.net.URL.openStream(URL.java:1010)
    at com.ocpsoft.pretty.faces.config.annotation.WebClassesFinder.processDirectory(WebClassesFinder.java:143)
    at com.ocpsoft.pretty.faces.config.annotation.WebClassesFinder.processDirectory(WebClassesFinder.java:183)
    at com.ocpsoft.pretty.faces.config.annotation.WebClassesFinder.processDirectory(WebClassesFinder.java:183)
    at com.ocpsoft.pretty.faces.config.annotation.WebClassesFinder.processDirectory(WebClassesFinder.java:183)
    at com.ocpsoft.pretty.faces.config.annotation.WebClassesFinder.processDirectory(WebClassesFinder.java:183)
    at com.ocpsoft.pretty.faces.config.annotation.WebClassesFinder.processDirectory(WebClassesFinder.java:183)
    at com.ocpsoft.pretty.faces.config.annotation.WebClassesFinder.findClasses(WebClassesFinder.java:68)
    at com.ocpsoft.pretty.faces.config.spi.AnnotationConfigurationProvider.loadConfiguration(AnnotationConfigurationProvider.java:82)
    at com.ocpsoft.pretty.faces.config.PrettyConfigurator.configure(PrettyConfigurator.java:63)
    ... 13 more

    i am using JSF 2.1.3, ICEfaces 3.0.0,prettyfaces-jsf2 3.3.0

    please advise

    #22403

    Hey,

    thank you very much for reporting this. I’ve never seen an error like this before. It looks like you are using Apache Tomcat, correct? Which version do you use? Actually I think this could be a Tomcat bug, because of the StringIndexOutOfBoundsException which is thrown from the Tomcat code.

    Please note that this exception happens during automatic configuration reloading which happens in regular intervals to allow developers to modify the configuration without restarting the server.

    If you don’t want to automatically reload the configuration, you could disable by setting this context parameter:

    <context-param>
    <param-name>com.ocpsoft.pretty.DEVELOPMENT</param-name>
    <param-value>false</param-value>
    </context-param>

    Christian

    #22404

    msaleh
    Participant

    @Christian Kaltepoth, thanks man, i am using Tomcat 7.0.22

    #22405

    I did some research on this. It seems like you are not the only one running into this issue:

    https://issues.apache.org/bugzilla/show_bug.cgi?id=49488

    Actually this seams to be a JDK bug. Somebody on the tomcat-users list solved this problem by updating to 6u21:

    http://markmail.org/message/mq2nyfcduyekktyf

    I hope this helps! :)

    Christian

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Comments are closed.