Forum Stats

  • 3,827,899 Users
  • 2,260,838 Discussions
  • 7,897,402 Comments

Discussions

Strange error happened sometimes with Mojarra 2.2.8-jbossorg-1 20140822-1131

Vincenzo Tresoldi
Vincenzo Tresoldi Member Posts: 3
edited Oct 14, 2016 11:54AM in JavaServer Faces

hi,

I'm using mojarra on WildFly on Linux (CentOS) os.

Sometimes it happens that my application loses render attribute and i see the pages without css, and in server log without any previous error I find:

[0m [31m17:51:11,916 ERROR [stderr] (default task-24) java.lang.NullPointerException

[0m [31m17:51:11,916 ERROR [stderr] (default task-24) at com.sun.faces.application.resource.ResourceHelper$ELEvaluatingInputStream.close(ResourceHelper.java:856)

[0m [31m17:51:11,916 ERROR [stderr] (default task-24) at java.io.BufferedInputStream.close(BufferedInputStream.java:483)

[0m [31m17:51:11,916 ERROR [stderr] (default task-24) at java.nio.channels.Channels$ReadableByteChannelImpl.implCloseChannel(Channels.java:403)

[0m [31m17:51:11,916 ERROR [stderr] (default task-24) at java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:115)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at com.sun.faces.application.resource.ResourceHandlerImpl.handleResourceRequest(ResourceHandlerImpl.java:368)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:153)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at org.primefaces.application.resource.PrimeResourceHandler.handleResourceRequest(PrimeResourceHandler.java:87)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:153)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:643)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at it.onit.metrica.util.AuthorizationFilter.doFilter(AuthorizationFilter.java:42)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

[0m [31m17:51:11,917 ERROR [stderr] (default task-24) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

Any suggestion?

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261)

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:248)

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:77)

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:167)

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:761)

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

[0m [31m17:51:11,918 ERROR [stderr] (default task-24) at java.lang.Thread.run(Thread.java:745)

Any suggestion?

Thanks

Vincenzo

Tagged:

Answers

  • dvohra21
    dvohra21 Member Posts: 14,580 Gold Crown
    edited Sep 27, 2016 3:30PM

    application loses render attribute and i see the pages without css

    What is the meant by application loses "render" attribute? The page is not rendered, and could be because of browser. Which browser does not render? Does some other browser also does not render?

  • Vincenzo Tresoldi
    Vincenzo Tresoldi Member Posts: 3
    edited Oct 14, 2016 11:54AM

    Isn't browser dependent and is a server side issue.

    What I mean is that in one of jsf life cycle phases (proprably render response phase) the page passed to browser isn't build correctly.

    The visible effect is a page non completly build.

    Every time it's happen in server log I found

    com.sun.faces.application.resource.ResourceHelper$ELEvaluatingInputStream.close(ResourceHelper.java:856)

    This happen only on Linux enviroment no problem in Windows.

This discussion has been closed.