I guess we're kind of stuck, because you seem to have a JDK 1.5
implementation using Xerces, and it's failing client-side, and I'm using
the same thing and can't reproduce the error.
Andrew, would it be possible for you to try the httpd sample on JDK 1.5 to
see if it works for you? I have the service set up on my machine, so let
me know when you can test it and I will start it up and give you the EPR
(so you don't have to install httpd and set up the whole sample). You'll
just need to run the client app against that EPR with Sun JDK 1.5 and
report on any errors.
Dan
Giovanni Fleres <[EMAIL PROTECTED]> wrote on 10/12/2006 04:02:24 AM:
>
> >>giovanni, can you perform the same test you did before in the client
app
> >>and verify the JDK version and XML parser?
>
> Excuse me for the delay, but I've finally understand what do You mean
> when You saw to modify HttpServerImpl.
> I've just created a new jar called 'apache-httpd.jar' which contain
> the modified version of HttpServerImpl and I've put this jar into
> 'Tomcat/webapps/apache-httpd/WEB-INF/lib', replacing the original jar.
>
> In catalina's log file, if I insert
> 'System.err.println("XML API: " +
> org.apache.muse.util.xml.XmlUtils.createDocument().getClass());'
> into initialize() method in HttpServerImpl, I've printed this message:
>
> INFO: XML API: class org.apache.xerces.dom.DocumentImpl
>
>
> Summing up:
>
> - if I modify 'HttpServerTestApp' under
> 'muse-2.1.0\samples\apache-httpd\src\...',
> inserting 'System.err.println("XML API: " +
> org.apache.muse.util.xml.XmlUtils.createDocument().getClass());',
> I saw this: XML API: class org.apache.xerces.dom.DocumentImpl
>
> - if I modify initialize() 'HttpServerImpl' under
> ''Tomcat/webapps/apache-httpd/WEB-INF/lib/apache-httpd.jar',
> I saw this: XML API: class org.apache.xerces.dom.DocumentImpl
>
> Ok ?
>
> Excusme for my wrong understanding.
>
> The stack trace, client side, is always:
>
> **********************************************
>
> 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(ReferenceByXPathMarshallingStrategy.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.java:125)
> at
> org.apache.muse.ws.resource.properties.impl.WsrpUtils.
> convertToObjects(WsrpUtils.java:128)
> at
> org.apache.muse.ws.resource.remote.WsResourceClient.
> getPropertyAsObject(WsResourceClient.java:127)
> at
> org.apache.muse.test.http.remote.HttpServerClient.
> getSupportedLanguage(HttpServerClient.java:87)
> at
>
org.apache.muse.test.http.testapp.HttpServerTestApp.main(HttpServerTestApp.java:93)
>
> **********************************************
>
> Giovanni
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]