I've used WSDL2Java to generate the stubs for a web service deployed in Axis.
I'm seeing the following error when I try to access a method on the web service as shown below.
I'm pretty new to Axis, so could anyone suggest what I may be doing wrong.

public class QueryWSTester {

    public static void main(String args[]) {
        try {
            //first get the service
            JavaServiceLocator service = new JavaServiceLocator();
            // next create a port from the service
            QueryWS port = service.getQueryWS();
            // create a user bean
            UserBean user = new UserBean();
            user.setUserName("SuperUser");
            UserBean$Key userKey = user.getKey();
            // finally invoke the method
            UserBean result = port.getUser(userKey);

            }catch (Exception e){
                System.out.println("Exception caught "+e);
            }
        }
}


Feb 6, 2003 1:24:43 PM org.apache.axis.utils.BeanUtils processPropertyDescriptors
SEVERE: Internal Error occurred while build the property descriptors for com.systinet.wsdl.com.manu.webservices.security.beans.UserBean$Key
java.lang.NullPointerException
        at org.apache.axis.description.TypeDesc.getFields(TypeDesc.java:169)
        at org.apache.axis.utils.BeanUtils.processPropertyDescriptors(BeanUtils.java:257)
        at org.apache.axis.utils.BeanUtils.getPd(BeanUtils.java:103)
        at org.apache.axis.description.TypeDesc.getPropertyDescriptors(TypeDesc.java:419)
        at org.apache.axis.encoding.ser.BeanSerializerFactory.<init>(BeanSerializerFactory.java:88)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSerializerFactory.java:284)
        at org.apache.axis.client.Call.registerTypeMapping(Call.java:2025)
        at com.systinet.wsdl.com.manu.eval.QueryWSStub.createCall(QueryWSStub.java:333)
        at com.systinet.wsdl.com.manu.eval.QueryWSStub.getUser(QueryWSStub.java:348)
        at QueryWSTester.main(QueryWSTester.java:27)
Feb 6, 2003 1:24:43 PM org.apache.axis.InternalException <init>


Thanks.

Reply via email to