[
http://jira.jboss.com/jira/browse/JBWS-1592?page=comments#action_12362325 ]
Heiko Braun commented on JBWS-1592:
-----------------------------------
Requires further information:
"Could you provide me with the SOAP messages in transit that have been causing this
error?
I am unable to reproduce the exception. But I am pretty sure it's a client side
configuration problem.
The messages send from the client have to plain SOAP messages, lacking security headers.
But in order to verify i'll need some example requests."
Investigate NPE in opMetaData.getQName() with WS-Security
---------------------------------------------------------
Key: JBWS-1592
URL:
http://jira.jboss.com/jira/browse/JBWS-1592
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: ws-security
Reporter: Jason T. Greene
Assigned To: Heiko Braun
Fix For: jbossws-2.0.0
java.lang.NullPointerException
at
org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:13
0)
at
org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler
.java:59)
at
org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerSe
rver.java:41)
at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
at
org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:276
)
at
org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleRequest(HandlerChainExecutor.java:112
)
at
org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXW
S.java:65)
at
org.jboss.ws.core.server.AbstractServiceEndpointInvoker.callRequestHandlerChain(AbstractServiceE
Client:
sdlURL = new
URL("http://chaponniere-linux:8080/procedures-beans/PstProcedureManager?wsdl");
URL securityURL = new File("jboss-wsse-client.xml").toURL();
QName serviceName = new QName("http://procedure.procedures/",
"PstProcedureManagerService");
Service service = Service.create(wsdlURL, serviceName);
((ServiceExt)service).setSecurityConfig(securityURL.toExternalForm());
PstProcedureManager port =
(PstProcedureManager)service.getPort(PstProcedureManager.class);
//Hello port = (Hello)service.getPort(Hello.class);
((StubExt)port).setConfigName("Standard WSSecurity Client");
Map<String, Object> reqContext = ((BindingProvider)port).getRequestContext();
//reqContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
"http://localhost:8080/jaxws-samples-wssecurity-encrypt");
reqContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
"http://chaponniere-linux:8080/procedures-beans/PstProcedureManager?wsdl");
String procedureNumber = port.getProcedure(1).getNumber();
System.out.println(procedureNumber);
Server:
@WebService
@EndpointConfig(configName = "Standard WSSecurity Endpoint")
public class PstProcedureManager implements PstProcedureInterface {
@PersistenceContext
protected EntityManager em;
@WebMethod
public PstProcedureBean getProcedure(int pId) {
Collection procedureCol =
em.createQuery("from PstProcedureBean procedureBean where procedureBean.id =
:id")
.setParameter ("id", pId)
.getResultList();
return (PstProcedureBean)procedureCol.iterator().next();
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira