Hi, I think you're running into a bug I fixed the other day - had to do with DOM Level 1 support in various XML parsers. Each JDK (Sun/IBM/1.4.x/1.5) has a different XML parser (Crimson, Xerces, XML4J) and although they all implement DOM, the behavior on some of the methods can be quirky. I found that the use of Element.getLocalPart() in the XStreamSerializer class performed differently with some parser versions, and changed the reference to Element.getNodeName() - I think it works consistently now.
Replace WEB-INF/lib/muse-util-xstream-2.0.0.jar with muse-util-xstream-2.1.0-SNAPSHOT.jar and you should be good to go. This only affects you if you are using XStream to handle the serialization of complex schema types (like the sample does). Dan Giovanni Fleres <[EMAIL PROTECTED]> wrote on 10/06/2006 04:34:52 AM: > Hi, > finally I've been able to run apache-httpd's sample. > Now I need some help to debugging it. > > I've imported muse-2.1.0\samples\apache-httpd\src\... into Eclipse and > after I've > imported all JARs necessary to compile and run. > > When I run from Eclipse: > \apache-httpd\src\org\apache\muse\test\http\testapp\HttpServerTestApp > I have these errors: > > ------------ begin error log ---------------- > > [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.131.66: > 8080/apache-httpd/services/http-server</wsa:To> > <wsa:Action > xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache. > org/muse/test/http-server/Start</wsa:Action> > <wsa:MessageID > xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:fbcb3413-229a-7890-7e5c- > bbf9fb697173</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> > <http:Start > xmlns:http="http://ws.apache.org/muse/test/http-server"/> > </soap:Body> > </soap:Envelope> > > [CLIENT TRACE] SOAP envelope contents (incoming): > > <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:0CADE1EB03519A5BC2116014364931212</wsa:MessageID> > > <wsa:Action>http://ws.apache.org/muse/test/http-server/Start</wsa:Action> > <wsa:RelatesTo > wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid: > fbcb3413-229a-7890-7e5c-bbf9fb697173</wsa:RelatesTo> > </soapenv:Header> > <soapenv:Body> > <muse-op:StartResponse > xmlns:muse-op="http://ws.apache.org/muse/test/http-server" > xmlns:tns="http://ws.apache.org/axis2"/> > </soapenv:Body> > </soapenv:Envelope> > > [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.131.66: > 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:8c2422bf- > c4fb-2bcd-9b7d-1709c7be92ac</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:Name</wsrf-rp: > GetResourceProperty> > </soap:Body> > </soap:Envelope> > > [CLIENT TRACE] SOAP envelope contents (incoming): > > <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:0CADE1EB03519A5BC2116014365025314</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: > 8c2422bf-c4fb-2bcd-9b7d-1709c7be92ac</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:Name > xmlns:http="http://ws.apache.org/muse/test/http-server">fleresvpc01</http:Name> > </wsrf-rp:GetResourcePropertyResponse> > </soapenv:Body> > </soapenv:Envelope> > > [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.131.66: > 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:9ffb7056-7110- > b742-7838-7dae7ce7ca7a</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:Port</wsrf-rp: > GetResourceProperty> > </soap:Body> > </soap:Envelope> > > [CLIENT TRACE] SOAP envelope contents (incoming): > > <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:0CADE1EB03519A5BC2116014365076416</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: > 9ffb7056-7110-b742-7838-7dae7ce7ca7a</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> > > [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.131.66: > 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:644a94c6-356a-9f5b-bd19- > eb7022e1c227</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> > > [CLIENT TRACE] SOAP envelope contents (incoming): > > <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:0CADE1EB03519A5BC2116014365123418</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: > 644a94c6-356a-9f5b-bd19-eb7022e1c227</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:SupportedLanguage > xmlns:http="http://ws.apache.org/muse/test/http-server"> > <http:FileSuffix>en</http:FileSuffix> > <http:LangCode>en</http:LangCode> > </http:SupportedLanguage> > </wsrf-rp:GetResourcePropertyResponse> > </soapenv:Body> > </soapenv:Envelope> > > 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:86) > at > org.apache.muse.test.http.testapp.HttpServerTestApp.main(HttpServerTestApp.java:92) > [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.131.66: > 8080/apache-httpd/services/http-server</wsa:To> > <wsa:Action > xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache. > org/muse/test/http-server/Stop</wsa:Action> > <wsa:MessageID > xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:09d8f3f2-f86c-7ea3- > d33e-6d44e517471e</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> > <http:Stop xmlns:http="http://ws.apache.org/muse/test/http-server"/> > </soap:Body> > </soap:Envelope> > > [CLIENT TRACE] SOAP envelope contents (incoming): > > <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:0CADE1EB03519A5BC2116014365163520</wsa:MessageID> > > <wsa:Action>http://ws.apache.org/muse/test/http-server/Stop</wsa:Action> > <wsa:RelatesTo > wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">uuid: > 09d8f3f2-f86c-7ea3-d33e-6d44e517471e</wsa:RelatesTo> > </soapenv:Header> > <soapenv:Body> > <soap:Fault xmlns:soap="http://www.w3.org/2003/05/soap-envelope" > xmlns:tns="http://ws.apache.org/axis2"> > <soap:Code> > <soap:Value>soap:Receiver</soap:Value> > </soap:Code> > <soap:Reason> > <soap:Text>The httpd process failed to stop.</soap:Text> > </soap:Reason> > <soap:Detail> > <http:StopFailedFault > xmlns:http="http://ws.apache.org/muse/test/http-server">The httpd > process failed to stop.</http:StopFailedFault> > </soap:Detail> > </soap:Fault> > </soapenv:Body> > </soapenv:Envelope> > > org.apache.muse.ws.addressing.soap.SoapFault: The httpd process failed > to stop. > at > org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254) > at > org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:213) > at > org.apache.muse.test.http.remote.HttpServerClient.stop(HttpServerClient.java:111) > at > org.apache.muse.test.http.testapp.HttpServerTestApp.main(HttpServerTestApp.java:113) > > > ------------ end error log ------------------------------------------------- > > I'm using this version Apache Http: > apache_2.2.3-win32-x86-no_ssl.msi > > Here there are the two HttpServerTestApp.java's lines > > 92: SupportedLanguage[] httpLang = http.getSupportedLanguage(); > 113: http.stop(); > > Could anybody help me ? > > Thanks > > Giovanni > > > --------------------------------------------------------------------- > 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]
