PQ79383: NULLPOINTEREXCEPTION IS THROWN WHEN RUNNING WSDL2JAVA.BAT -ROLE SERVER -C WEB -O PKG WS-TRUST.WSDL

 Fixes are available

5.1.1.17: WebSphere Application Server V5.1.1 Cumulative Fix 17 for AIX
5.1.1.17: WebSphere Application Server V5.1.1 Cumulative Fix 17 for HP-UX
5.1.1.19: WebSphere Application Server V5.1.1 Cumulative Fix 19 for Linux
5.1.1.16: WebSphere Application Server V5.1.1 Cumulative Fix 16 for AIX
5.1.1.18: WebSphere Application Server V5.1.1 Cumulative Fix 18 for AIX
5.1.1.18: WebSphere Application Server V5.1.1 Cumulative Fix 18 for HP-UX
5.1.1.18: WebSphere Application Server V5.1.1 Cumulative Fix 18 for Solaris
5.1.1.18: WebSphere Application Server V5.1.1 Cumulative Fix 18 for Windows
5.1.1.18: WebSphere Application Server V5.1.1 Cumulative Fix 18 for Linux
5.1.1.17: WebSphere Application Server V5.1.1 Cumulative Fix 17 for Linux
5.1.1.17: WebSphere Application Server V5.1.1 Cumulative Fix 17 for Solaris
5.1.1.17: WebSphere Application Server V5.1.1 Cumulative Fix 17 for Windows
5.0.2.7: WebSphere Application Server Express 5.0.2 Cumulative Fix 7
5.0.2.17: WebSphere Application Server 5.0.2 Cumulative Fix 17 for Solaris
5.0.2.17: WebSphere Application Server 5.0.2 Cumulative Fix 17 for Windows
5.0.2.14: WebSphere Application Server 5.0.2 Cumulative Fix 14 for Solaris
5.1.1.10: WebSphere Application Server V5.1.1 Cumulative Fix 10 for Windows
5.1.1.10: WebSphere Application Server V5.1.1 Cumulative Fix 10 for AIX
5.0.2.14: WebSphere Application Server 5.0.2 Cumulative Fix 14 for Linux
5.1.1.19: WebSphere Application Server V5.1.1 Cumulative Fix 19 for AIX
5.1.1.19: WebSphere Application Server V5.1.1 Cumulative Fix 19 for Windows
5.1.1.9: WebSphere Application Server V5.1.1 Cumulative Fix 9 for Solaris
5.0.2.15: WebSphere Application Server 5.0.2 Cumulative Fix 15 for Windows
5.0.2.15: WebSphere Application Server 5.0.2 Cumulative Fix 15 for Solaris
5.0.2.15: WebSphere Application Server 5.0.2 Cumulative Fix 15 for AIX
5.1.1.9: WebSphere Application Server V5.1.1 Cumulative Fix 9 for AIX
5.0.2.15: WebSphere Application Server 5.0.2 Cumulative Fix 15 for Linux
5.0.2.12: WebSphere Application Server 5.0.2 Cumulative Fix 12
5.0.2.14: WebSphere Application Server 5.0.2 Cumulative Fix 14 for HP-UX
5.0.2.14: WebSphere Application Server 5.0.2 Cumulative Fix 14 for AIX
5.1.1.9: WebSphere Application Server V5.1.1 Cumulative Fix 9 for Windows
5.0.2.17: WebSphere Application Server 5.0.2 Cumulative Fix 17 for HP-UX
5.0.2.17: WebSphere Application Server 5.0.2 Cumulative Fix 17 for AIX
5.1.1.11: WebSphere Application Server V5.1.1 Cumulative Fix 11 for AIX
5.0.2.17: WebSphere Application Server 5.0.2 Cumulative Fix 17 for Linux
5.1.1.10: WebSphere Application Server V5.1.1 Cumulative Fix 10 for HP-UX
5.1.1.10: WebSphere Application Server V5.1.1 Cumulative Fix 10 for Linux
5.1.1.9: WebSphere Application Server V5.1.1 Cumulative Fix 9 for HP-UX
5.1.1.9: WebSphere Application Server V5.1.1 Cumulative Fix 9 for Linux
5.0.2.16: WebSphere Application Server 5.0.2 Cumulative Fix 16 for HP-UX
5.1.1.12: WebSphere Application Server V5.1.1 Cumulative Fix 12 for Windows
5.0.2.16: WebSphere Application Server 5.0.2 Cumulative Fix 16 for Solaris
5.0.2.8: WebSphere Application Server V5.0.2 Cumulative Fix 8
5.0.2.16: WebSphere Application Server 5.0.2 Cumulative Fix 16 for Windows
5.0.2.16: WebSphere Application Server 5.0.2 Cumulative Fix 16 for AIX
5.1.1.11: WebSphere Application Server V5.1.1 Cumulative Fix 11 for Windows
5.1.1.16: WebSphere Application Server V5.1.1 Cumulative Fix 16 for Solaris
5.0.2.18: WebSphere Application Server 5.0.2 Cumulative Fix 18 for Solaris
5.1.1.11: WebSphere Application Server V5.1.1 Cumulative Fix 11 for Linux
5.0.2.18: WebSphere Application Server 5.0.2 Cumulative Fix 18 for Windows
5.0.2.18: WebSphere Application Server 5.0.2 Cumulative Fix 18 for HP-UX
5.0.2.18: WebSphere Application Server 5.0.2 Cumulative Fix 18 for AIX
5.1.1.16: WebSphere Application Server V5.1.1 Cumulative Fix 16 for Windows
5.1.1.14: WebSphere Application Server V5.1.1 Cumulative Fix 14 for Solaris
5.0.2.14: WebSphere Application Server 5.0.2 Cumulative Fix 14 for Windows
5.1.1.12: WebSphere Application Server V5.1.1 Cumulative Fix 12 for AIX
5.1.1.12: WebSphere Application Server V5.1.1 Cumulative Fix 12 for Linux
5.1.1.12: WebSphere Application Server V5.1.1 Cumulative Fix 12 for HP-UX
5.1.1.12: WebSphere Application Server V5.1.1 Cumulative Fix 12 for Solaris
5.1.1.11: WebSphere Application Server V5.1.1 Cumulative Fix 11 for Solaris
5.1.1.13: WebSphere Application Server V5.1.1 Cumulative Fix 13 for AIX
5.1.1.13: WebSphere Application Server V5.1.1 Cumulative Fix 13 for Windows
5.0.2.13: WebSphere Application Server 5.0.2 Cumulative Fix 13
5.1.1.13: WebSphere Application Server V5.1.1 Cumulative Fix 13 for HP-UX
5.1.1.15: WebSphere Application Server V5.1.1 Cumulative Fix 15 for Solaris
5.1.1.13: WebSphere Application Server V5.1.1 Cumulative Fix 13 for Solaris
5.1.1.13: WebSphere Application Server V5.1.1 Cumulative Fix 13 for Linux
5.1.1.14: WebSphere Application Server V5.1.1 Cumulative Fix 14 for AIX
5.1.1.14: WebSphere Application Server V5.1.1 Cumulative Fix 14 for Linux
5.1.1.14: WebSphere Application Server V5.1.1 Cumulative Fix 14 for Windows
5.1.1.15: WebSphere Application Server V5.1.1 Cumulative Fix 15 for Windows
5.0.2.5: WebSphere Application Server 5.0.2 Cumulative Fix 5
5.0.2.18: WebSphere Application Server 5.0.2 Cumulative Fix 18 for Linux
5.1.1.11: WebSphere Application Server V5.1.1 Cumulative Fix 11 for HP-UX
5.1.1.14: WebSphere Application Server V5.1.1 Cumulative Fix 14 for HP-UX
5.0.2.15: WebSphere Application Server 5.0.2 Cumulative Fix 15 for HP-UX
5.0.2.16: WebSphere Application Server 5.0.2 Cumulative Fix 16 for Linux
5.1.1.10: WebSphere Application Server V5.1.1 Cumulative Fix 10 for Solaris
5.1.1.15: WebSphere Application Server V5.1.1 Cumulative Fix 15 for AIX
5.1.1.15: WebSphere Application Server V5.1.1 Cumulative Fix 15 for HP-UX
5.0.2.2: WebSphere Application Server V5.0.2 Cumulative Fix 2
5.1.1.16: WebSphere Application Server V5.1.1 Cumulative Fix 16 for HP-UX
5.1.1.16: WebSphere Application Server V5.1.1 Cumulative Fix 16 for Linux
5.1.1.15: WebSphere Application Server V5.1.1 Cumulative Fix 15 for Linux
5.1.1.19: WebSphere Application Server V5.1.1 Cumulative Fix 19 for HP-UX



APAR status
Closed as program error.

Error description
NullpointerException is thrown when running
WSDL2Java.bat -role server -c web -o pkg ws-trust.wsdl
.
this is the stack: java.lang.NullPointerException
        at
com.ibm.ws.webservices.wsdl.toJava.JavaBeanWriter.writeToStringM
ethod
(JavaBeanWriter.java:499)
        at
com.ibm.ws.webservices.wsdl.toJava.JavaBeanWriter.writeFileBody(
JavaB
eanWriter.java:191)
        at
com.ibm.ws.webservices.wsdl.toJava.JavaWriter.generate(JavaWrite
r.jav
a:183)
        at
com.ibm.ws.webservices.wsdl.toJava.JavaTypeWriter.generate(JavaT
ypeWr
iter.java:173)
        at
com.ibm.ws.webservices.wsdl.toJava.GeneratorTable$List.generate(
Gener
atorTable.java:177)
        at
com.ibm.ws.webservices.wsdl.Parser.generateTypes(Parser.java:407
)
        at
com.ibm.ws.webservices.wsdl.Parser.generate(Parser.java:332)
        at
com.ibm.ws.webservices.wsdl.Parser.run(Parser.java:274)
        at
com.ibm.ws.webservices.wsdl.toJava.Emitter.run(Emitter.java:644)
        at com.ibm.ws.webservices.wsdl.WSDL2.run(WSDL2.java:305)
        at
com.ibm.ws.webservices.tools.WSDL2Java.main(WSDL2Java.java:375)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
Impl.
java:79)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
Acces
sorImpl.java:41)
        at java.lang.reflect.Method.invoke(Method.java:386)
Local fix
Customer worked around this issue by using
following
wsdl2java command line:
.
WSDL2Java.bat -role server -c web -NStoPkg

http://schemas.xmlsoap.org/ws/2002/12/secext=com.tivoli.am.fim.t
rustserr
ver.ws.was -o pkg -noDataBinding ws-trust.wsdl
Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server users of        *
*                 WSDL2JAVA                                    *
****************************************************************
* PROBLEM DESCRIPTION: NULLPOINTEREXCEPTION is thrown when     *
*                      running WSDL2JAVA.BAT -ROLE SERVER -C   *
*                      WEB -O PKG myWSDLFile.WSDL              *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
The following stack is the possible error stack user may see:

java.lang.NullPointerException
at
com.ibm.ws.webservices.wsdl.toJava.JavaBeanWriter.writeToStringM
ethod
(JavaBeanWriter.java:499)
at
com.ibm.ws.webservices.wsdl.toJava.JavaBeanWriter.writeFileBody(
JavaB
eanWriter.java:191)
at
com.ibm.ws.webservices.wsdl.toJava.JavaWriter.generate(JavaWrite
r.jav
a:183)
at
com.ibm.ws.webservices.wsdl.toJava.JavaTypeWriter.generate(JavaT
ypeWr
iter.java:173)
at
com.ibm.ws.webservices.wsdl.toJava.GeneratorTable$List.generate(
Gener
atorTable.java:177)
at
com.ibm.ws.webservices.wsdl.Parser.generateTypes(Parser.java:407
)
at
com.ibm.ws.webservices.wsdl.Parser.generate(Parser.java:332)
at
com.ibm.ws.webservices.wsdl.Parser.run(Parser.java:274)
at
com.ibm.ws.webservices.wsdl.toJava.Emitter.run(Emitter.java:644)
at com.ibm.ws.webservices.wsdl.WSDL2.run(WSDL2.java:305)
at
com.ibm.ws.webservices.tools.WSDL2Java.main(WSDL2Java.java:375)
Problem conclusion
This error is corrected by code fixes within
MappingMetaData.java, MetaOperationValue.java, SchemaUtils.java
and SymbolTable.java.
Temporary fix Comments
APAR information
APAR number PQ79383
Reported component name WAS BASE 5.0
Reported component ID 5630A3600
Reported release 00W
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Special Attention NoSpecatt
Submitted date 2003-10-08
Closed date 2003-11-04
Last modified date 2003-11-04

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
SOAP          

Publications Referenced

Fix information

Applicable component levels
R003 PSY    UP
R00A PSY    UP
R00H PSY    UP
R00I PSY    UP
R00P PSY    UP
R00S PSY    UP
R00W PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 00W
Software edition:
Reference #: PQ79383
IBM Group: Software Group
Modified date: Nov 4, 2003