I am getting a NullPointerException when I run Java2WSDL for an interface (Event Handler) that passes a custom bean type (Event). I haven't tried this with Axis1.1, but it happens with the current (1/12/2004 ~11:30pm) CVS tree for 1.2alpha. The exception goes away if I change the data type passed in to a java.lang.String. It only occurs when the data type is a custom data type.

I am starting to run through the debugger to see if I can locate the specific issue. I was hoping that someone could point out anything radically wrong with what I am trying to do.

thanks,
jim

package itis.ewm.soapdemo.axis2.wsdl;
import java.io.Serializable;
public class Event implements Serializable {
private int seq_;
private String text_; public int getSeq() { return seq_; }
public String getText() { return text_; }
public void setSeq(int seq) { seq_ = seq; }
public void setText_(String text) { text_ = text;}
}


package itis.ewm.soapdemo.axis2.wsdl;
public interface EventHandler {
   void handleEvent(Event event);
}

java org.apache.axis.wsdl.Java2WSDL
-o C:\cygwin\home\jcstaff\proj\ewm\src\ewmLib/../../build/ewmLib/wsdl/EventHandler.wsdl


-y Wrapped
-P EventHandler
-s EventHandler
-n urn:EventHandlerNS
-l jms:/topics.general?domain=TOPIC&vendor=JNDI&java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialContextFactory&java.naming.provider.url=_NOT_SUPPLIED_&ConnectionFactoryJNDIName=TopicConnectionFactory&waitForResponse=false&msgProp.EWMService=EventHandler -e java.lang.String itis.ewm.soapdemo.axis2.wsdl.EventHandler


* Note the -e java.lang.String is a default value for ant tasks that do not define extra classes

java.lang.NullPointerException
at org.apache.axis.wsdl.fromJava.Types.getTypeQName(Types.java:688)
at org.apache.axis.wsdl.fromJava.Types.writeTypeForPart(Types.java:420)
at org.apache.axis.wsdl.fromJava.Types.writeWrappedParameter(Types.java:571)
at org.apache.axis.wsdl.fromJava.Emitter.writeWrapperPart(Emitter.java:1518)
at org.apache.axis.wsdl.fromJava.Emitter.writeRequestMessage(Emitter.java:1387)
at org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:1092)
at org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1063)
at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:496)
at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:347)
at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:442)
at org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:622)
at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:668)






Reply via email to