cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donatas Ciuksys (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5147) NPE setting OUT param Holder to null
Date Tue, 23 Jul 2013 08:24:49 GMT

    [ https://issues.apache.org/jira/browse/CXF-5147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13716225#comment-13716225
] 

Donatas Ciuksys commented on CXF-5147:
--------------------------------------

Ooh, minOccurs... That would be the first time I see it being useful :) Metro seems to ignore
it completely (not as it is a good approach). 

Thanks, I thought I'm stuck.
                
> NPE setting OUT param Holder to null
> ------------------------------------
>
>                 Key: CXF-5147
>                 URL: https://issues.apache.org/jira/browse/CXF-5147
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.7.5, 2.7.6
>         Environment: Windows 7 x64, jdk 1.7.0u25
>            Reporter: Donatas Ciuksys
>             Fix For: 2.7.7
>
>         Attachments: CXFBug.zip
>
>
> Steps to reproduce:
> 1. Build attached maven project (WSDL first approach, service has OUT parameter wrapped
in Holder)
> 2. Run example.BookingService.main() 
> 3. Call WebService (e.g. with SoapUI)
> 4. Observe NPE (reason is Holder being left as null):
> {code}
> Starting Server
> Lie 22, 2013 7:13:06 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
> INFO: Creating Service {http://example/BookingService}BookingService from WSDL: classpath:wsdl/BookingService.wsdl
> INFO: Setting the server's publish address to be http://localhost:9000/bookingservice
> WARNING: Interceptor for {http://example/BookingService}BookingService#{http://example/BookingService}createBooking
has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault
> 	at org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor.handleMessage(WrapperClassOutInterceptor.java:117)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
> 	at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:77)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
> 	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
> 	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:355)
> 	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:319)
> 	at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1074)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1010)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> 	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:365)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937)
> 	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998)
> 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)
> 	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
> 	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> 	at java.lang.Thread.run(Thread.java:724)
> Caused by: java.lang.NullPointerException
> 	at example.bookingservice.CreateBookingResponse_WrapperTypeHelper1.createWrapperObject(Unknown
Source)
> 	at org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor.handleMessage(WrapperClassOutInterceptor.java:101)
> 	... 24 more
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message