axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Corby (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-1161) error occurring using the CodeGenerationEngine with the attached wsdl file
Date Thu, 14 Sep 2006 12:43:22 GMT
     [ http://issues.apache.org/jira/browse/AXIS2-1161?page=all ]

Matt Corby updated AXIS2-1161:
------------------------------

    Attachment: gws.wsdl

> error occurring using the CodeGenerationEngine with the attached wsdl file
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-1161
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1161
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 0.9
>         Environment: eclipse 3.0
> Windows XP
>            Reporter: Matt Corby
>         Attachments: gws.wsdl
>
>
> I have the following error occurring using the CodeGenerationEngine with the attached
wsdl file.  I cannot work out what the problem is perhaps you can help?
> java.lang.NullPointerException
>         at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.addE
> ndpoints(MultiLanguageClientEmitter.java:692)
>         at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.crea
> teDOMDocuementForInterfaceImplementation(MultiLanguageClientEmitter.java:665)
>         at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.writ
> eInterfaceImplementation(MultiLanguageClientEmitter.java:281)
>         at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emit
> Stub(MultiLanguageClientEmitter.java:120)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:102)
>         at com.vcint.maven.WSDL2JavaGeneratorMojo.execute(WSDL2JavaGeneratorMojo
> .java:147)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:415)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:531)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:472)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:451)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:303)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:270)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:139)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [ERROR]
> org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.NullPointerExce
> ption
>         at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emit
> Stub(MultiLanguageClientEmitter.java:133)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:102)
>         at com.vcint.maven.WSDL2JavaGeneratorMojo.execute(WSDL2JavaGeneratorMojo
> .java:147)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:415)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:531)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:472)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:451)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:303)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:270)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:139)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: java.lang.NullPointerException
>         at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.addE
> ndpoints(MultiLanguageClientEmitter.java:692)
>         at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.crea
> teDOMDocuementForInterfaceImplementation(MultiLanguageClientEmitter.java:665)
>         at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.writ
> eInterfaceImplementation(MultiLanguageClientEmitter.java:281)
>         at org.apache.axis2.wsdl.codegen.emitter.MultiLanguageClientEmitter.emit
> Stub(MultiLanguageClientEmitter.java:120)
> The CodeGenerationEngine is being given the following parameters (effectively, as I am
generating them using CommandLineOptionParser in a maven plugin):
> <packageName>com.vcint.amtote.api.stub</packageName>
> <language>java</language>
> <serverSide>false</serverSide>
> <asyncOnly>true</asyncOnly>
> <generateServerXml>false</generateServerXml>
> <testCase>false</testCase>                    
> <wsdl>target/wsdl</wsdl>
> <output>src</output>
> It seems to be generating some if not all of the java files ok but it throws this exception
at some point in the generation.. Can you please help? 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message