[jboss-user] [JBossWS] - NullPointerException when processing response

boopet do-not-reply at jboss.com
Fri Apr 4 06:46:55 EDT 2008


JBoss AS version: 4.0.5GA

Hi everyone,

we have created a JBossWS Client with version 2.0.1 consuming a Axis2 webservice, that is sending its responses in multipart/related format.
The client uses the UserNameToken authentification.

when the client is processing the ws answer, i get a NullPointer Exception because of some security issue:

javax.xml.ws.WebServiceException: java.lang.NullPointerException
  | 	at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276)
  | 	at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155)
  | 	at org.jboss.ws.core.jaxws.client.ClientImpl.callResponseHandlerChain(ClientImpl.java:168)
  | 	at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:363)
  | 	at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
  | 	at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
  | 	at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
  | 	at $Proxy24.loadEloFileUrl(Unknown Source)
  | 	at com.giag.fo.elo.giagws.service.EloWsClientTest.testGetFileUrl(EloWsClientTest.java:110)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | 	at java.lang.reflect.Method.invoke(Unknown Source)
  | 	at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
  | 	at org.testng.internal.Invoker.invokeMethod(Invoker.java:478)
  | 	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:607)
  | 	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:874)
  | 	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
  | 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
  | 	at org.testng.TestRunner.runWorkers(TestRunner.java:689)
  | 	at org.testng.TestRunner.privateRun(TestRunner.java:566)
  | 	at org.testng.TestRunner.run(TestRunner.java:466)
  | 	at org.testng.SuiteRunner.runTest(SuiteRunner.java:301)
  | 	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:296)
  | 	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:276)
  | 	at org.testng.SuiteRunner.run(SuiteRunner.java:191)
  | 	at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:808)
  | 	at org.testng.TestNG.runSuitesLocally(TestNG.java:776)
  | 	at org.testng.TestNG.run(TestNG.java:701)
  | 	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
  | 	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
  | Caused by: java.lang.NullPointerException
  | 	at org.jboss.ws.extensions.security.Util.matchNode(Util.java:188)
  | 	at org.jboss.ws.extensions.security.Util.matchNode(Util.java:183)
  | 	at org.jboss.ws.extensions.security.Util.findElement(Util.java:89)
  | 	at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:115)
  | 	at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78)
  | 	at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handleInbound(WSSecurityHandlerClient.java:40)
  | 	at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
  | 	at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295)
  | 	at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140)
  | 
  | 
can sbd give an advice?

thanks in advance!
norbert

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141608#4141608

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141608



More information about the jboss-user mailing list