voyent
1.8.2_p06, session timeout  XML
Forum Index -> General Help
Author Message
neritan

Joined: 27/Apr/2008 00:00:00
Messages: 14
Offline


Hello all

In my applicacion I have often session timeout and during this session timeout in my logs I have this error message:
The application is deployed in a Sun GlassFish Enterprise Server v2.1.1 cluster with solaros operation system


[#|2013-04-02T21:35:52.947+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=153;_ThreadName=httpSSLWorkerThread-38080-23;_RequestID=30f2dc44-5124-48fd-a27f-99239fa1d82a;|StandardWrapperValve[Blocking Servlet]: PWC1406: Servlet.service() for servlet Blocking Servlet threw exception
java.lang.RuntimeException: wrapped Exception: java.lang.NullPointerException
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:71)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:108)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:191)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:670)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:601)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:875)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:365)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:285)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:221)
at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:393)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:269)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:111)
Caused by: java.lang.NullPointerException
|#]

[#|2013-04-02T21:35:52.971+0200|SEVERE|sun-appserver2.1|org.apache.coyote.tomcat5.CoyoteAdapter|_ThreadID=153;_ThreadName=httpSSLWorkerThread-38080-23;_RequestID=30f2dc44-5124-48fd-a27f-99239fa1d82a;|PWC3989: An exception or error occurred in the container during the request processing
java.lang.NullPointerException
|#]

[#|2013-04-02T21:35:52.980+0200|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=153;_ThreadName=httpSSLWorkerThread-38080-23;_RequestID=30f2dc44-5124-48fd-a27f-99239fa1d82a;|
java.lang.NullPointerException
|#]

[#|2013-04-02T21:35:52.981+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=153;_ThreadName=httpSSLWorkerThread-38080-23;_RequestID=30f2dc44-5124-48fd-a27f-99239fa1d82a;|WEB0782: Error finishing response
java.lang.NullPointerException
|#]

[#|2013-04-02T21:35:52.983+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=153;_ThreadName=httpSSLWorkerThread-38080-23;_RequestID=30f2dc44-5124-48fd-a27f-99239fa1d82a;|readTask.processException
java.lang.NullPointerException


Do anybody has an idea why happen?
Please help me..
neritan

Joined: 27/Apr/2008 00:00:00
Messages: 14
Offline


Can somebody help me with this problem??
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Are these session timeouts expected, or are the exceptions happening before a session has actually timed out? Is the exception and stack trace only visible in the logs, or is the end user seeing any error?

.
neritan

Joined: 27/Apr/2008 00:00:00
Messages: 14
Offline


philip.breau wrote:
Are these session timeouts expected, or are the exceptions happening before a session has actually timed out? Is the exception and stack trace only visible in the logs, or is the end user seeing any error? 


No there are timeout happening during the user is working.. The error is in the log file and to the users appears the popup with User Session Expired
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Can you give any other information? Do the exceptions happen randomly? How long have you set the session timeout too and when do the exceptions happen? Are there any other wrapped exceptions in the logs? Perhaps also post the browser logs. Can you reproduce it in test case?

.
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Also, do you see the same issue when the application is not deployed in a cluster?

.
neritan

Joined: 27/Apr/2008 00:00:00
Messages: 14
Offline


philip.breau wrote:
Can you give any other information? Do the exceptions happen randomly? How long have you set the session timeout too and when do the exceptions happen? Are there any other wrapped exceptions in the logs? Perhaps also post the browser logs. Can you reproduce it in test case? 


The exception happen randomly and I can reproduce in my testing and development environment. I put the time of session timeout in 10 min. In production the application is running in two glassfish cluster with 2 instances for each.
In the log I haven't any others severe messages.
I try to reproduce the exception in my browser with firebugs but it was impossible
neritan

Joined: 27/Apr/2008 00:00:00
Messages: 14
Offline


philip.breau wrote:
Also, do you see the same issue when the application is not deployed in a cluster? 

No in the single instance running these doesn't happen

neritan

Joined: 27/Apr/2008 00:00:00
Messages: 14
Offline


I did an check in IPlanet logs and i finded this type of error when this type of error is happen:

[10/Apr/2013:16:04:28] failure ( 5884): for host 192.168.5.224 trying to POST /JavaTimsWeb/block/send-receive-updates;jsessionid=442e86140b440d79a5325e8d43a1:T0ieYB3W5ZXGactX, service-http reports: HTTP7765: error reading response header (Server closed connection)
[10/Apr/2013:16:04:28] info ( 5884): for host 192.168.5.224 trying to POST /JavaTimsWeb/block/send-receive-updates;jsessionid=442e86140b440d79a5325e8d43a1:T0ieYB3W5ZXGactX, set-origin-server reports: HTTP7751: server solaris22:38080 offline
[10/Apr/2013:16:04:28] warning ( 5884): for host 192.168.5.224 trying to POST /JavaTimsWeb/block/send-receive-updates;jsessionid=442e86140b440d79a5325e8d43a1:T0ieYB3W5ZXGactX, set-origin-server reports: HTTP7753: received sticky request for offline server solaris22:38080 (using server solaris23:38080 instead)
[10/Apr/2013:16:04:28] warning ( 5884): for host 192.168.5.224 trying to POST /JavaTimsWeb/block/dispose-views;jsessionid=442e86140b440d79a5325e8d43a1:T0ieYB3W5ZXGactX, set-origin-server reports: HTTP7753: received sticky request for offline server solaris22:38080 (using server solaris24:38080 instead)
[10/Apr/2013:16:04:32] warning ( 5884): for host 192.168.5.224 trying to POST /JavaTimsWeb/block/send-receive-updates;jsessionid=442e86140b440d79a5325e8d43a1:T0ieYB3W5ZXGactX, set-origin-server reports: HTTP7753: received sticky request for offline server solaris22:38080 (using server solaris25:38080 instead)
[10/Apr/2013:16:04:47] warning ( 5884): for host 192.168.5.224 trying to POST /JavaTimsWeb/block/send-receive-updates;jsessionid=442e86140b440d79a5325e8d43a1:T0ieYB3W5ZXGactX, set-origin-server reports: HTTP7753: received sticky request for offline server solaris22:38080 (using server solaris25:38080 instead)
[10/Apr/2013:16:04:56] info ( 5884): , check-http-server reports: HTTP7750: server solaris22:38080 online
[10/Apr/2013:16:05:13] failure ( 5884): for host 192.168.5.224 trying to POST /JavaTimsWeb/block/receive-updated-views;jsessionid=442e86140b440d79a5325e8d43a1:T0ieYB3W5ZXGactX, service-http reports: HTTP7765: error reading response header (Server closed connection)
[10/Apr/2013:16:05:13] info ( 5884): for host 192.168.5.224 trying to POST /JavaTimsWeb/block/receive-updated-views;jsessionid=442e86140b440d79a5325e8d43a1:T0ieYB3W5ZXGactX, set-origin-server reports: HTTP7751: server solaris22:38080 offline
[10/Apr/2013:16:05:13] warning ( 5884): for host 192.168.5.224 trying to POST /JavaTimsWeb/block/receive-updated-views;jsessionid=442e86140b440d79a5325e8d43a1:T0ieYB3W5ZXGactX, set-origin-server reports: HTTP7753: received sticky request for offline server solaris22:38080 (using server solaris24:38080 instead)
[10/Apr/2013:16:05:17] warning ( 5884): for host 192.168.5.224 trying to POST /JavaTimsWeb/block/receive-updated-views;jsessionid=442e86140b440d79a5325e8d43a1:T0ieYB3W5ZXGactX, set-origin-server reports: HTTP7753: received sticky request for offline server solaris22:38080 (using server solaris25:38080 instead)


philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Have you deployed EPS with the recommended configuration for Glassfish as well as configured JMS? Is this a new deployment configuration? Has anything changed in your configuration?

.
neritan

Joined: 27/Apr/2008 00:00:00
Messages: 14
Offline


philip.breau wrote:
Have you deployed EPS with the recommended configuration for Glassfish as well as configured JMS? Is this a new deployment configuration? Has anything changed in your configuration? 


In the old deployed project it isn't deployed the EPS, because we doesn't implement failover, but only the loadbalance.
below is the code of loadbalancer.xml loaded by iPlanet:

<!DOCTYPE loadbalancer PUBLIC "-//Sun Microsystems Inc.//DTD Sun ONE Application Server 7.1//EN" "sun-loadbalancer_1_2.dtd">
<loadbalancer>
<cluster name="cluster1" policy="round-robin">

<instance name="instance1" enabled="true" disable-timeout-in-minutes="60" listeners="" weight="100"/>
<web-module context-root="abc" enabled="true" disable-timeout-in-minutes="60" error-url="sun-http-lberror.html" />
<health-checker url="/" interval-in-seconds="10" timeout-in-seconds="30" />
</cluster>
<property name="reload-poll-interval-in-seconds" value="60"/>
<property name="response-timeout-in-seconds" value="30"/>
<property name="https-routing" value="true"/>
<property name="require-monitor-data" value="false"/>
<property name="active-healthcheck-enabled" value="false"/>
<property name="number-healthcheck-retries" value="3"/>
<property name="rewrite-location" value="true"/>
</loadbalancer>


the propeterty "active-healthcheck-enabled" in this case is false and in old configuration it was true. Can this be the cause of problems??
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team