facebook

(5.1&5.5) Generating Web Service Client results in NPE

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #270644 Reply

    erlaan
    Member

    When generating a new web servixce client using a wsdl file containing a SOAP fault the generation fails. With the following stacktrace in the error log:

    
    eclipse.buildId=M20070212-1330
    java.version=1.5.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=nl_NL
    Command-line arguments:  -os win32 -ws win32 -arch x86
    
    Error
    Fri May 25 08:46:45 CEST 2007
    Error generating services
    
    java.lang.NullPointerException
        at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.getExceptionClass(AbstractServiceGenerator.java:428)
        at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generateFaults(AbstractServiceGenerator.java:407)
        at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generateOperation(AbstractServiceGenerator.java:366)
        at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(AbstractServiceGenerator.java:123)
        at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(AbstractServiceGenerator.java:67)
        at org.codehaus.xfire.gen.jsr181.ServiceInterfaceGenerator.generate(ServiceInterfaceGenerator.java:49)
        at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(AbstractServiceGenerator.java:54)
        at org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:167)
        at com.genuitec.eclipse.ws.xfire.generator.WSGenJob.run(WSGenJob.java:209)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
    

    I first created the web service using JSR181 and deployed it.
    Saved the resulting wsdl
    Used the wizard to create a new web service client…
    No validation errors found -> next
    Dialog pops up with Error during Generation 🙁

    Removing MyException from the throw clause from the orginal webmethod results in the client stubs being generated. Soap fault handling seems to be broken!

    I have all the code and logs available in a zip file. How can I submit this information?

    #270670 Reply

    Riyad Kalla
    Member

    Please email them to support@genuitec.com ATTN Riyad, with a link to this post for reference. We’ll look at them right away, thank you for the report.

    #270761 Reply

    Riyad Kalla
    Member

    Ernst-Jan,
    Thank you for the email, we are looking into your example project.

    #275651 Reply

    matra
    Member

    This message has not been recovered.

    #275656 Reply

    rshendershot
    Member

    This message has not been recovered.

    #275690 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

    #275926 Reply

    steppoll
    Member

    This message has not been recovered.

    #275932 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: (5.1&5.5) Generating Web Service Client results in NPE

You must be logged in to post in the forum log in