You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by J R <ca...@yahoo.com> on 2005/05/23 18:24:17 UTC

Axis 1.1 => 1.2 Problems

Good Afternoon,
   I have been using axis 1.1 up until very recently. 
I had an assignment using axis that basically followed
the following steps:

We had a class called "MyMath" that looked like the
following:
public class MyMath 
{
  public int squared(int x) 
  {
    return x * x;
  }			
}


We would use the WSDL2Java program to create several
other files.  Afterwards we would create the client
that looks like:

import
localhost.axis.yourusername.MyMath_jws.MyMathServiceLocator;
import
localhost.axis.yourusername.MyMath_jws.MyMathService;
import localhost.axis.yourusername.MyMath_jws.MyMath;

public class MyMathClient {
public static void main(String args[]) throws 
	Exception {
    MyMathService service = new
MyMathServiceLocator();
    MyMath myMath = service.getMyMath();
    int x = (new Integer(args[0])).intValue();
    System.out.println("The square of " + args[0] + 
" is " + myMath.squared(x));
  }
}

However, upon doing this in Axis 1.2, I get the
following error:
2005-05-23 12:08:03,321 ERROR
handler.AddressingHandler [main,invoke:120] Exception
in AddressingHandler
org.apache.axis.types.URI$MalformedURIException:
Cannot initialize URI with empty parameters.
        at
org.apache.axis.types.URI.initialize(URI.java:442)
        at
org.apache.axis.types.URI.<init>(URI.java:281)
        at
org.apache.axis.types.URI.<init>(URI.java:265)
        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:2765)
        at
org.apache.axis.client.Call.invoke(Call.java:2748)
        at
org.apache.axis.client.Call.invoke(Call.java:2424)
        at
org.apache.axis.client.Call.invoke(Call.java:2347)
        at
org.apache.axis.client.Call.invoke(Call.java:1804)
        at
localhost.axis.dummy.MyMath_jws.MyMathSoapBindingStub.squared(MyMathSoapBindingStub.java:101)
        at MyMathClient.main(MyMathClient.java:13)
Exception in thread "main" 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:442)
        at
org.apache.axis.types.URI.&lt;init&gt;(URI.java:281)
        at
org.apache.axis.types.URI.&lt;init&gt;(URI.java:265)
        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)

... keeps going....

I would hope that someone can help me fix this error. 
I appreciate the help,
J


		
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html