RE: Code Generation Exception - any way to work around?

"Talley, Angelina" <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <B129F661893DCD4BB9A828E8115DBD8031B12AD3@NXCA05EXCH10.NexusIS.com>
Hi folks! Yep, I thought about that. But, interestingly enough, wsimport (for creating a JAX-WS client) works, and I can even pass the simple test of opening the file as an XML file in IE (if it was malformed it would not open). It's just Axis that fails. :( So, I figure it's probably something in the WSDL that's either unusual or not supported. So, I guess I'm looking for ideas for the types of issues that might cause the error I'm seeing.

Angie Talley
Sr. Consulting Engineer
Nexus IS, Inc.
Phone: 480-517-6622

From: Stadelmann Josef [mailto:[email protected]]
Sent: Wednesday, April 24, 2013 7:10 AM
To: [email protected]
Subject: AW: Code Generation Exception - any way to work around?

maybe you can take someone's Visual Studio 2010 or better and
use the add service reference menu to suck up the wsdl file and
create stubs and skeletons
maybe it gives you insight about what is wrong with your wsdl.
Josef

Von: Talley, Angelina [mailto:[email protected]]
Gesendet: Dienstag, 23. April 2013 21:44
An: [email protected]<mailto:[email protected]>
Betreff: Code Generation Exception - any way to work around?

Hello folks. I'm working to parse a WSDL given to me by a customer, so unfortunately I don't have much control over its format and content. But, so far, I've not been able to get it to work with WSDL2Java. I've tried both adb and xmlbeans data binding options, and both get the same exception. I've tried searching for this error, but so far no luck.

The WSDL is quite large so I've not posted it here. Is there someplace or something in the WSDL I should be looking for that could cause this error as seen below? Or, is there anything that can be done to get past it?

Thanks in advance for any assistance!

This is the exception I am getting:

Using AXIS2_HOME:   C:\axis2-1.6.2
Using JAVA_HOME:    C:\Program Files (x86)\Java\jdk1.6.0_22
Retrieving document at 'Epic.wsdl'.
log4j:WARN No appenders could be found for logger (org.apache.axis2.i18n.Project
ResourceBundle).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: Error parsing WSDL
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:181)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.lang.NullPointerException
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseExtensibilityAttributes(Unknown
Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseOperation(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parsePortType(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(
CodeGenerationEngine.java:320)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:133)
        ... 2 more
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.