Bug 5502 - Error accessing Axis service
: Error accessing Axis service
Status: ASSIGNED
: Java WS Core
globus_wsrf_core
: 4.0.4
: PC Windows XP
: P3 normal
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2007-08-27 16:51 by
Modified: 2007-09-07 11:01 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2007-08-27 16:51:27
Hello list,

I have a problem with a GT4 service. I want to access an Axis Webservice from a
GT4 service. The axis service is created with AXIS 1.2 RC2 and can be accessed
with an Axis client outside GT4 without problems. The problem inside GT4 is,
when I want to access I always get an
"org.apache.axis.types.URI$MalformedURIException: Cannot initialize URI with
empty parameters" exception.

The code for  accessing the Axis service is very simple:

org.fzk.auger.MathAddService service = new
org.fzk.auger.MathAddServiceLocator();
java.net.URL serviceloca = new
java.net.URL("http://192.168.12.100:9090/axis/TestService";);
org.fzk.auger.MathAdd port = service.getTestService(serviceloca);
sum = port.add(a, b);

Does anybody know why the exception is thrown or how I can solve it? Maybe I
need some special parameters for the call?

Below is the whole exception.

Kind regards
Michael

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.apache.axis.types.URI$MalformedURIException: Cannot
initialize URI with empty parameters.
 faultActor:
 faultNode:
 faultDetail:

{http://xml.apache.org/axis/}stackTrace:org.apache.axis.types.URI$MalformedURIException:
Cannot initialize URI with empty parameters.
        at org.apache.axis.types.URI.initialize(URI.java:444)
        at org.apache.axis.types.URI.<init>(URI.java:283)
        at org.apache.axis.types.URI.<init>(URI.java:267)
        at
org.apache.axis.message.addressing.handler.AddressingHandler.processClientRequest(AddressingHandler.java:245)
        at
org.globus.wsrf.handlers.AddressingHandler.processClientRequest(AddressingHandler.java:69)
        at
org.apache.axis.message.addressing.handler.AddressingHandler.invoke(AddressingHandler.java:108)
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:127)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2727)
        at org.apache.axis.client.Call.invoke(Call.java:2710)
        at org.apache.axis.client.Call.invoke(Call.java:2386)
        at org.apache.axis.client.Call.invoke(Call.java:2309)
        at org.apache.axis.client.Call.invoke(Call.java:1766)
        at
org.fzk.auger.TestServiceSoapBindingStub.add(TestServiceSoapBindingStub.java:102)
        at
org.fzk.auger.services.axiscpptest.impl.AxisCPPTestService.add(AxisCPPTestService.java:78)
        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:585)
        at
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:384)
        at
org.globus.axis.providers.RPCProvider.invokeMethodSub(RPCProvider.java:107)
        at
org.globus.axis.providers.PrivilegedInvokeMethodAction.run(PrivilegedInvokeMethodAction.java:42)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:396)
        at org.globus.gsi.jaas.GlobusSubject.runAs(GlobusSubject.java:55)
        at org.globus.gsi.jaas.JaasSubject.doAs(JaasSubject.java:90)
        at
org.globus.axis.providers.RPCProvider.invokeMethod(RPCProvider.java:97)
        at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:281)
        at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:450)
        at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)
        at
org.globus.wsrf.container.ServiceThread.doPost(ServiceThread.java:664)
        at
org.globus.wsrf.container.ServiceThread.process(ServiceThread.java:382)
        at
org.globus.wsrf.container.GSIServiceThread.process(GSIServiceThread.java:147)
        at
org.globus.wsrf.container.ServiceThread.run(ServiceThread.java:291)

        {http://xml.apache.org/axis/}hostname:ipecdas

org.apache.axis.types.URI$MalformedURIException: Cannot initialize URI with
empty parameters.
        at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
        at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
        at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
        at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        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:645)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
        at
org.apache.axis.message.addressing.handler.AddressingHandler.processClientResponse(AddressingHandler.java:305)
        at
org.apache.axis.message.addressing.handler.AddressingHandler.invoke(AddressingHandler.java:110)
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:190)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2727)
        at org.apache.axis.client.Call.invoke(Call.java:2710)
        at org.apache.axis.client.Call.invoke(Call.java:2386)
        at org.apache.axis.client.Call.invoke(Call.java:2309)
        at org.apache.axis.client.Call.invoke(Call.java:1766)
        at
org.fzk.auger.services.axiscpptest.stubs.bindings.AxisCPPTestPortTypeSOAPBindingStub.add(AxisCPPTestPortTypeSOAPBindingStub.java:544)
        at
org.fzk.auger.services.axiscpptest.clients.AxisCPPTestClient.add(AxisCPPTestClient.java:61)
        at
org.fzk.auger.services.axiscpptest.clients.AxisCPPTestClient.main(AxisCPPTestClient.java:74)
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
------- Comment #1 From 2007-09-07 11:01:05 -------
[Updating from email exchanges]

Apparently the following was used to generate WSDL:

"I generated the wsdl from a java class and the stubs over the classes
integrated in axis 1.2 RC2. java org.apache.axis.wsdl.Java2WSDL 
-l"http://localhost:9090/axis/TestService" -uLITERAL 
 -yWRAPPED -T1.2 -n"org.fzk.auger" org.fzk.auger.MathAdd 
and than java org.apache.axis.wsdl.WSDL2Java -p org.fzk.auger -o wsdl/ 
wsdl/testService.wsdl" 

A few things with the above:

- we use document literal and this link provides 
 information about that:

 http://www.globus.org/toolkit/docs/4.0/common/javawscore/developer-ind
 ex.htm l#s-javawscore-developer-archdes. It also provides 
 an option to  use with Axis's WSDL2Java tool.

- expect soapAction to be populated.