axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "R J Scheuerle Jr" <sc...@us.ibm.com>
Subject Re: "base=" causes null pointer exception in WSDL2Java
Date Wed, 20 Mar 2002 17:50:22 GMT
I don't think this is valid xml.  Here is what the xml should look like:

<xsd:simpleType name="waterTempF" >
   <xsd:restriction base="xsd:decimal">
     <xsd:minInclusive value="32"/>
     <xsd:maxInclusive value="212"/>
   </xsd:restriction>
 </xsd:simpleType>

Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)


                                                                                         
                                  
                      "Ted X. Toth"                                                      
                                  
                      <ttoth@austin.rr.        To:       <axis-dev@xml.apache.org>
                                         
                      com>                     cc:                                    
                                     
                                               Subject:  "base=" causes null pointer exception
in WSDL2Java                 
                      03/20/2002 09:35                                                   
                                  
                      AM                                                                 
                                  
                      Please respond to                                                  
                                  
                      axis-dev                                                           
                                  
                                                                                         
                                  
                                                                                         
                                  





Schema which causes exception:

<xsd:simpleType name="waterTempF" base="xsd:decimal">
   <xsd:minInclusive value="32"/>
   <xsd:maxInclusive value="212"/>
 </xsd:simpleType>

Stack trace of exception:

java.lang.NullPointerException
 at org.apache.axis.wsdl.toJava.TypeEntry.<init>(TypeEntry.java:140)
 at org.apache.axis.wsdl.toJava.Element.<init>(Element.java:74)
 at
org.apache.axis.wsdl.toJava.DefinedElement.<init>(DefinedElement.java:73)
 at
org.apache.axis.wsdl.toJava.SymbolTable.createTypeFromDef(SymbolTable.java:638)
 at org.apache.axis.wsdl.toJava.SymbolTable.addTypes(SymbolTable.java:538)
 at org.apache.axis.wsdl.toJava.SymbolTable.addTypes(SymbolTable.java:608)
 at org.apache.axis.wsdl.toJava.SymbolTable.addTypes(SymbolTable.java:608)
 at org.apache.axis.wsdl.toJava.SymbolTable.addTypes(SymbolTable.java:608)
 at org.apache.axis.wsdl.toJava.SymbolTable.addTypes(SymbolTable.java:608)
 at
org.apache.axis.wsdl.toJava.SymbolTable.populateTypes(SymbolTable.java:501)
 at org.apache.axis.wsdl.toJava.SymbolTable.populate(SymbolTable.java:408)
 at org.apache.axis.wsdl.toJava.SymbolTable.add(SymbolTable.java:331)
 at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:179)
 at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:146)
 at org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(WSDL2Java.java:627)
 at java.lang.Thread.run(Thread.java:484)
java.lang.NullPointerException
 at org.apache.axis.wsdl.WSDL2Java.emit(WSDL2Java.java:445)
 at org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:603)





Mime
View raw message