You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kandula-dev@ws.apache.org by Ruben DF <rd...@yahoo.es> on 2006/03/16 14:28:13 UTC
A problem with InitiatorApp.java
Hi, i have this error when i test initiatorApp.java
with private String eprOfInteropService =
KANDULA_INTEROP_SERVICE;
Exception in thread "main" AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:portatilrdf
java.lang.NullPointerException
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at
javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at
org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at
org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at
org.apache.kandula.wscoor.RegistrationPortTypeRPCBindingStub.registerOperation(RegistrationPortTypeRPCBindingStub.java:276)
at
org.apache.kandula.coordinator.RegistrationStub.registerOperation(RegistrationStub.java:53)
at
org.apache.kandula.coordinator.CoordinationContext.register(CoordinationContext.java:131)
at InitiatorApp.begin(InitiatorApp.java:154)
at InitiatorApp.testCommit(InitiatorApp.java:50)
at InitiatorApp.main(InitiatorApp.java:140)
I test testcommit() in main method. This error occurs
in begin() method, in this assignation: cps =
ctx.register(ATCoordinator.PROTOCOL_ID_COMPLETION,
new EndpointReference(
"http://localhost:8081/axis/services/completionInitiator"));
the error in tcpmon:
The request:
POST /axis/services/registrationCoordinator HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime,
multipart/related, text/*
User-Agent: Axis/1.3
Host: 127.0.0.1:8081
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "http://xxx"
Content-Length: 997
<?xml version="1.0"
encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Register
xmlns="http://schemas.xmlsoap.org/ws/2004/10/wscoor"><ProtocolIdentifier>http://schemas.xmlsoap.org/ws/2004/10/wsat/Completion</ProtocolIdentifier><ParticipantProtocolService><ns1:Address
absoluteURI="true" genericURI="true" host="localhost"
path="/axis/services/completionInitiator" port="8081"
scheme="http"
schemeSpecificPart="//localhost:8081/axis/services/completionInitiator"
xmlns:ns1="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://localhost:8081/axis/services/completionInitiator</ns1:Address><ns2:ReferenceProperties
xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing"/><ns3:ReferenceParameters
xmlns:ns3="http://schemas.xmlsoap.org/ws/2004/08/addressing"/></ParticipantProtocolService></Register></soapenv:Body></soapenv:Envelope>
The response:
HTTP/1.1 500 Error Interno del Servidor
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Date: Thu, 16 Mar 2006 12:47:09 GMT
Connection: close
<?xml version="1.0"
encoding="utf-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>java.lang.NullPointerException</faultstring><detail><ns1:hostname
xmlns:ns1="http://xml.apache.org/axis/">portatilrdf</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
This is my environment:
Axis 1.3, tomcat 5.512
My Kandula.properties is by default:
kandula.context=http://localhost:8081/axis/services/
and i use coordinator.at in server-config.wsdd and
client-config.wsdd and I redirect by tcpmon (8080 to
8081) I dont understand this error, what happens?
However, testsuite1 works ok but i would like that
initiatorApp works ok too.
Thanks in advance.
Regards
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org