can anyone else reproduce this? I've tried JDK 1.5 on both client and
server and it works for me. It also works if I use JDK 1.4.2 on client
side (which is where the exception is happening).
giovanni, can you perform the same test you did before in the client app
and verify the JDK version and XML parser? also, the exact stack trace
you're still getting on the client is below, right?
java.lang.NullPointerException
at
org.apache.muse.core.serializer.xstream.XStreamSerializer$JavaFieldConverter.realClass
\
(XStreamSerializer.java:211) at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
at
com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:28)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:95)
at
com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceB
\
yXPathMarshallingStrategy.java:12) at \
com.thoughtworks.xstream.XStream.unmarshal(XStream.java:521) at \
com.thoughtworks.xstream.XStream.unmarshal(XStream.java:500) at
org.apache.muse.core.serializer.xstream.XStreamSerializer.fromXML(XStreamSerializer.ja
\
va:125) at
org.apache.muse.ws.resource.properties.impl.WsrpUtils.convertToObjects(WsrpUtils.java:
\
128) at
org.apache.muse.ws.resource.remote.WsResourceClient.getPropertyAsObject(WsResourceClie
\
nt.java:127) at
org.apache.muse.test.http.remote.HttpServerClient.getSupportedLanguage(HttpServerClien
\
t.java:86) at
org.apache.muse.test.http.testapp.HttpServerTestApp.main(HttpServerTestApp.java:92)
Giovanni Fleres <[EMAIL PROTECTED]> wrote on 10/10/2006 04:32:51 AM:
> >
> > I'm also on WinXP SP 2, and I can't replicate this problem on Sun JDK
> > 1.5.0. Since the problem is likely with the JAXP implementation(s), I
> > added the following to the initialize() method in HttpServerImpl.java:
> >
> > System.err.println("XML API: " +
> > org.apache.muse.util.xml.XmlUtils.createDocument().getClass());
> >
> > and it printed this:
> >
> > XML API: class org.apache.xerces.dom.DocumentImpl
> >
> > This makes sense because a) the wsdl2java tool includes Xerces in
> > WEB-INF/lib, and b) the Sun JDK replaced Crimson with Xerces in JDK
1.5.
> >
> > If you add this line of code to HttpServerImpl.java, rebuild, and
re-run
> > the test, what do you get?
> >
> >
> I get "XML API: class org.apache.xerces.dom.DocumentImpl"
>
> Here there is the log:
>
> ------- begin log ----------
>
> <soapenv:Envelope
> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
> xmlns:wsa="http://www.w3.org/2005/08/addressing">
> <soapenv:Header>
> <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
> <wsa:ReplyTo>
>
> <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
> </wsa:ReplyTo>
>
>
<wsa:MessageID>urn:uuid:7B3F26676C2DAE0CFC116046895753154</wsa:MessageID>
>
> <wsa:Action>http://docs.oasis-open.
>
org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest</wsa:Action>
> <wsa:RelatesTo
> wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid:
> 32b7924e-5c55-484d-3520-e557061c2ecd</wsa:RelatesTo>
> </soapenv:Header>
> <soapenv:Body>
> <wsrf-rp:GetResourcePropertyResponse
> xmlns:tns="http://ws.apache.org/axis2"
> xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2">
> <http:Port
> xmlns:http="http://ws.apache.org/muse/test/http-server">80</http:Port>
> </wsrf-rp:GetResourcePropertyResponse>
> </soapenv:Body>
> </soapenv:Envelope>
>
> XML API: class org.apache.xerces.dom.DocumentImpl
> [CLIENT TRACE] SOAP envelope contents (outgoing):
>
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
> <soap:Header>
> <wsa:To
> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://192.168.42.87:
> 8080/apache-httpd/services/http-server</wsa:To>
> <wsa:Action
> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.
>
org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest</wsa:Action>
> <wsa:MessageID
>
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:f12bcd74-584a-b17b-
> de1f-990e72a0c6c1</wsa:MessageID>
> <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>
>
<wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
> </wsa:From>
> </soap:Header>
> <soap:Body>
> <wsrf-rp:GetResourceProperty
> xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"
> xmlns:http="http://ws.apache.org/muse/test/http-server">http:
> SupportedLanguage</wsrf-rp:GetResourceProperty>
> </soap:Body>
> </soap:Envelope>
>
>
> ------- end log ----------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]