-
1. Re: NullPointerException from io.undertow.servlet.spec.HttpServletRequestImpl
ctomc Jul 29, 2014 10:21 AM (in response to gytis)Version of WildFly?
also do you have any proper stacktrace with linenumber?
-
2. Re: Re: NullPointerException from io.undertow.servlet.spec.HttpServletRequestImpl
gytis Jul 30, 2014 4:55 AM (in response to ctomc)I use WildFly upstream.
Exception stack trace is bellow and full test output is attached.
[0m [33m09:49:54,569 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (default task-38) Interceptor for {http://docs.oasis-open.org/ws-tx/wsat/2006/06}CompletionCoordinatorService#{http://docs.oasis-open.org/ws-tx/wsat/2006/06}CommitOperation has thrown exception, unwinding now: java.lang.NullPointerException at io.undertow.servlet.spec.HttpServletRequestImpl.getRemotePort(HttpServletRequestImpl.java:876) at org.apache.cxf.transport.http.HttpServletRequestSnapshot.<init>(HttpServletRequestSnapshot.java:91) at org.apache.cxf.transport.http.AbstractHTTPDestination$1.cacheInput(AbstractHTTPDestination.java:285) at org.apache.cxf.interceptor.OneWayProcessorInterceptor.handleMessage(OneWayProcessorInterceptor.java:95) [cxf-api-2.7.11.jar:2.7.11] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272) [cxf-api-2.7.11.jar:2.7.11] at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [cxf-api-2.7.11.jar:2.7.11] at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:241) at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:97) at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:131) at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:88) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final] at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:136) at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final] at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:247) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:234) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:153) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:737) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_55] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_55] at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_55]
-
3. Re: Re: NullPointerException from io.undertow.servlet.spec.HttpServletRequestImpl
tomjenkinson Jul 30, 2014 5:11 AM (in response to ctomc)Hi Tomaz,
We are actually on this version of WildFly: Merge pull request #6388 from bstansberry/fix-msg · 545dada · wildfly/wildfly · GitHub
We have not tracked master for the last month during the build split as some commits were added that made our additional subsystem break so we are waiting for the build split to settle before we continue tracking master again.
Tom
-
4. Re: Re: NullPointerException from io.undertow.servlet.spec.HttpServletRequestImpl
gytis Jul 30, 2014 5:14 AM (in response to tomjenkinson)I did test it with WildFly master this morning and it also failed.
-
5. Re: Re: NullPointerException from io.undertow.servlet.spec.HttpServletRequestImpl
ctomc Jul 30, 2014 6:17 AM (in response to gytis)It looks like you guys are hitting https://issues.jboss.org/browse/XNIO-213
which is already fixed in xnio, but not yet released.
-
6. Re: NullPointerException from io.undertow.servlet.spec.HttpServletRequestImpl
gytis Jul 31, 2014 6:01 AM (in response to ctomc)Thanks, Tomaz. This looks like our problem. Any idea when it is going to end up in WildFly?
-
7. Re: NullPointerException from io.undertow.servlet.spec.HttpServletRequestImpl
ctomc Aug 5, 2014 5:35 PM (in response to gytis)As soon as xnio 3.3.0.Beta2 by ctomc · Pull Request #6575 · wildfly/wildfly · GitHub gets merged
-
8. Re: NullPointerException from io.undertow.servlet.spec.HttpServletRequestImpl
gytis Aug 6, 2014 4:13 AM (in response to ctomc)Thanks Tomaz.
-
9. Re: NullPointerException from io.undertow.servlet.spec.HttpServletRequestImpl
ctomc Sep 11, 2014 9:22 AM (in response to gytis)It took bit longer, but this fix is now part of wildfly codebase