users@glassfish.java.net

AssertionException accessing MessageContext

From: <glassfish_at_javadesktop.org>
Date: Thu, 20 Nov 2008 02:50:43 PST

Hi,
I've a webservices secured with mutual certificates. The body and headers are signed and encrypted. The client and server communicate the expected way, message are encrypted en decrypted. I even can get a handle to the given X509 certificate.

But when I try the lookup a value in the MessageContext I an exception with the following cause. The exception is an ejbexception providing no info at all, but the cause is more interesting:

Caused by: java.lang.AssertionError: javax.xml.stream.XMLStreamException:
        at com.sun.xml.ws.api.addressing.WSEndpointReference.<init>(WSEndpointReference.java:158)
        at com.sun.xml.ws.api.addressing.WSEndpointReference.<init>(WSEndpointReference.java:174)
        at com.sun.xml.ws.message.AbstractHeaderImpl.readAsEPR(AbstractHeaderImpl.java:98)
        at com.sun.xml.ws.addressing.WsaPropertyBag.getEPR(WsaPropertyBag.java:88)
        at com.sun.xml.ws.addressing.WsaPropertyBag.getTo(WsaPropertyBag.java:46)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.xml.ws.api.PropertySet$MethodAccessor.get(PropertySet.java:283)
        at com.sun.xml.ws.api.PropertySet$3.getValue(PropertySet.java:421)
        at java.util.HashMap.putAll(HashMap.java:524)
        at com.sun.xml.ws.server.EndpointMessageContextImpl.createBackupMap(EndpointMessageContextImpl.java:192)
        at com.sun.xml.ws.server.EndpointMessageContextImpl.access$100(EndpointMessageContextImpl.java:65)
        at com.sun.xml.ws.server.EndpointMessageContextImpl$EntrySet.iterator(EndpointMessageContextImpl.java:163)
        at java.util.AbstractMap.containsKey(AbstractMap.java:123)
        at nl.nilling.ManagementService.ietApply(ManagementService.java:73)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
        at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
        at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
        at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
        at com.sun.ejb.containers.WebServiceInvocationHandler.invoke(WebServiceInvocationHandler.java:189)
        ... 62 more
Caused by: javax.xml.stream.XMLStreamException:
        at com.sun.xml.stream.buffer.stax.StreamReaderBufferProcessor.nextTag(StreamReaderBufferProcessor.java:387)
        at com.sun.xml.stream.buffer.stax.StreamReaderBufferProcessor.nextTag(StreamReaderBufferProcessor.java:371)
        at com.sun.xml.ws.api.addressing.WSEndpointReference.parse(WSEndpointReference.java:623)
        at com.sun.xml.ws.api.addressing.WSEndpointReference.<init>(WSEndpointReference.java:155)
        ... 87 more

I'm using Metro 1.4 on the client and Glassfish V2U2 on the server side. Can someone explain what is going on here?

Johan
[Message sent by forum member 'jcstover' (jcstover)]

http://forums.java.net/jive/thread.jspa?messageID=317817