[solved] Getting Exception rarerly with my website askkuber.com

Splash Forums PrettyFaces Users [solved] Getting Exception rarerly with my website askkuber.com

Tagged: 

This topic contains 37 replies, has 5 voices, and was last updated by  Lincoln Baxter III 7 years, 3 months ago.

Viewing 15 posts - 1 through 15 (of 38 total)
  • Author
    Posts
  • #17740

    Subodh
    Participant

    type Exception report

    message

    description The server encountered an internal error () that prevented it

    from fulfilling this request.

    exception

    java.lang.NullPointerException

    com.ocpsoft.pretty.PrettyContext.newInstance(PrettyContext.java:112)

    com.ocpsoft.pretty.PrettyContext.getCurrentInstance(PrettyContext.java:96)

    com.ocpsoft.pretty.PrettyContext.getCurrentInstance(PrettyContext.java:77)

    com.ocpsoft.pretty.beans.ParameterInjector.injectParameters(ParameterInjector.java:39)

    com.ocpsoft.pretty.PrettyContext.injectParameters(PrettyContext.java:127)

    com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:55)

    can any one tell wht is cause of this issue?

    Thanks

    #19906

    Which version of PrettyFaces are you using?

    This may help to determine the exact cause of this issue.

    #19907

    Subodh
    Participant

    preetyfaces 1.2.6.jar

    #19908

    Very strange issue! Seems like the exception is thrown here:

    request.getSession().getServletContext().getAttribute(PrettyFilter.CONFIG_FILES_ATTR);

    I cannot see any reason why this could throw a NullPointerException (request is definitively not null at this point). Perhaps it’s a container issue? Do you can give any more information about the requests that fail with this error? Does it perhaps only happen once after a new deployment or more often?

    #19909

    Subodh
    Participant

    it is happening randomly, for me it happens mainly on CompanyPriceChart

    and started happening since last deployment

    but when i click on the same link again it works

    Container is Tomcat?

    tell him the last change we made for AjaxRequest

    #19910

    Subodh
    Participant

    it is happening randomly, for me it happens mainly on CompanyPriceChart

    http://www.askkuber.com/IndianStock/StockChart

    and started happening since last deployment

    but when i click on the same link again it works

    Container is Tomcat

    And we did AjaxRequest for back url ,this is last change

    thanks

    #19911

    This is a very old problem that hasn’t come up for a very long time, and hasn’t been reported for over a year. It has to do with tomcat not providing a completely threadsafe Request object in some cases. What version of Tomcat are you using? How did you implement your AJAX?

    #19912

    Subodh
    Participant

    We recently introduced a ajax call to our Servlet using POST method. This call sets some environment variables in FacesContext. Buy we are not expecting any response back from this AjaxRequest.

    Also the page Chart page on which we are getting exception is behind the security.

    Tomcat version-6.0

    #19913

    Try the unreleased (but published) version 3.0.1 of PrettyFaces for JSF 1.2. Version 3.0.2 will be coming out soon, and that release will be published, but you can still get 3.0.1 from Maven (notice the artifactId has changed):

    <dependency>
    <groupId>com.ocpsoft</groupId>
    <artifactId>prettyfaces-jsf12</artifactId>
    <version>3.0.1</version>
    </dependency>

    #19914

    Subodh
    Participant

    Hi Lincoln Where i will get the latest vesion of Preetyfaces i saw in this link

    http://code.google.com/p/prettyfaces/downloads/list?can=2&q=&sort=filename&colspec=Filename%20Summary%20Uploaded%20Size%20DownloadCount

    and See latest version is ocpsoft-pretty-faces-2.0.3_RC1.jar

    While u wrote in last mail to download Version 3.0.2 .

    I m Littel bit Confuse Can u plz Help Me?

    Thanks

    #19915

    fiorenzino
    Participant

    Hi,

    i have the same problem:

    java.lang.NullPointerException

    at com.sun.faces.lifecycle.RestoreViewPhase.notifyAfter(RestoreViewPhase.java:288)

    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)

    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:112)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)

    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:87)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)

    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

    at java.lang.Thread.run(Thread.java:619)

    I use prettyfaces-jsf2/3.0.1 (http://repo1.maven.org/maven2/com/ocpsoft/prettyfaces-jsf2/)

    with jsf2 (Mojarra 2.0.3 SNAPSHOT 20100610) + apache-tomcat-6.0.26 + WELD-000900 1.0.

    The problem is not blocking, but the log file grows to every request.

    I noticed that there were variations in api:

    PrettyContext.getCurrentInstance().getOriginalUri()

    —-> PrettyContext.getCurrentInstance().getRequestURL().toString()

    PrettyContext.getCurrentInstance().getOriginalRequestUrl()

    —> PrettyContext.getCurrentInstance().getRequestQueryString().toQueryString()

    #19916

    Can you send me a sample app that reproduces this? It’s possible that it’s actually a Mojarra issue, since that does not look like anything caused by PrettyFaces.

    The API may change slightly again in 3.0.2 — sorry

    #19917

    fiorenzino
    Participant

    Hi,

    you can find an example here:

    http://code.google.com/p/prettytest/downloads/list

    bye

    Fiorenzo

    #19918

    Subodh
    Participant

    i took prretyfaces-jsf12-3..01.jar file and build my workspace agaian, this Entry was already in my web.xml

    <filter>

    <filter-name>Pretty Filter</filter-name>

    <filter-class>com.ocpsoft.pretty.PrettyFilter</filter-class>

    </filter>

    i have to change somewhere else to work with this jar file

    Thanks

    #19919

    Subodh
    Participant

    Any one have guide me for latest version

    thanks

Viewing 15 posts - 1 through 15 (of 38 total)

You must be logged in to reply to this topic.

Comments are closed.