You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Ajith Ranabahu <aj...@gmail.com> on 2005/06/09 05:52:15 UTC
Re: [Axis2] NPE trying to use eclipse code-gen plugin
Hello Mike,
Yes, a good suggestion. We will definitely look into the possibility
of generating the .project file. For now we just copy the necessary
files to a directory to allow any interested party to easily create
the project.
I am not sure what this problem is. I was thinking perhaps it is an
Eclipse version prob (which is highly unlikely since you seem to have
gone upto the finish :)). Did you point to a valid WSDL ? please send
in the eclipse error log (just the portion relevant to this one is
enough)
BTW just prefix with [Axis2].
On 6/8/05, Mike Haller <Mi...@innovations.de> wrote:
> Hey,
>
> i was able to compile axis2 src and create an eclipse plugin
>
> Btw, the /modules/tool/maven.xml doesn't create a ".project" file for
> the eclipse plugins - any reason? if it would create the .project files,
> too, you could import the folder directly as projects. Then, you don't
> need to manually create a Plug-In Project in Eclipse and copy all the
> files and set the build paths correctly etc.
>
> If you need more infos, please let me know (errorlogs, screenshots?)
>
> regards
> Mike
>
> Retrieving schema at
> 'D:\workspaces\lizenzserver\de.innovations.licenseserver.common\src\xmldsig-core-schema.xsd'.
> getServiceReferences(java.net.ContentHandler, "null")
> Retrieving schema at
> 'D:\workspaces\lizenzserver\de.innovations.licenseserver.common\src\licenses.xsd'.
> Retrieving schema at 'xmldsig-core-schema.xsd', relative to
> 'file:/D:/workspaces/lizenzserver/de.innovations.licenseserver.common/src/licenses.xsd'.
> java.lang.RuntimeException: java.lang.NullPointerException
> at
> org.apache.axis.tool.codegen.eclipse.CodeGenWizard.doFinish(CodeGenWizard.java:104)
> at
> org.apache.axis.tool.codegen.eclipse.CodeGenWizard.performFinish(CodeGenWizard.java:78)
> at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
> at org.eclipse.jface.window.Window.open(Window.java:648)
> at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:163)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
> at
> org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
> at org.eclipse.core.launcher.Main.run(Main.java:704)
> at org.eclipse.core.launcher.Main.main(Main.java:688)
> Caused by: java.lang.NullPointerException
> at
> org.apache.axis.wsdl.builder.wsdl4j.WSDLPump.populateBindingOperation(WSDLPump.java:439)
> at
> org.apache.axis.wsdl.builder.wsdl4j.WSDLPump.populateBindings(WSDLPump.java:251)
> at
> org.apache.axis.wsdl.builder.wsdl4j.WSDLPump.populateDefinition(WSDLPump.java:169)
> at org.apache.axis.wsdl.builder.wsdl4j.WSDLPump.pump(WSDLPump.java:97)
> at
> org.apache.axis.wsdl.builder.wsdl4j.WSDL1ToWOMBuilder.build(WSDL1ToWOMBuilder.java:44)
> at
> org.apache.axis.tool.codegen.eclipse.CodeGenWizard.getWOM(CodeGenWizard.java:201)
> at
> org.apache.axis.tool.codegen.eclipse.CodeGenWizard.doFinish(CodeGenWizard.java:98)
> ... 35 more
>
--
Ajith Ranabahu
Re: [Axis2] NPE trying to use eclipse code-gen plugin
Posted by Mike Haller <Mi...@Innovations.de>.
Hi Ajith,
Ajith Ranabahu:
> Yes, a good suggestion. We will definitely look into the possibility
> of generating the .project file. For now we just copy the necessary
> files to a directory to allow any interested party to easily create
> the project.
all you have to do is to include the following content as ".project":
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.apache.ws.axis2.tool.code-gen</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
> I am not sure what this problem is. I was thinking perhaps it is an
> Eclipse version prob (which is highly unlikely since you seem to have
> gone upto the finish :)). Did you point to a valid WSDL ? please send
> in the eclipse error log (just the portion relevant to this one is
> enough)
Hmm, i'm using stable Eclipse 3.0.1 for running the plugin, with jdk
1.4.2_06. I don't think it's a versioning problem.
And I hope my wsdl is valid! It's self-written, not from a public web
service.
> BTW just prefix with [Axis2].
see http://wiki.apache.org/ws/FrontPage/Axis2:
Email:
*
Use convention in subject: "\[Axis2[/<module>]\] subject"
:-)
regards
Mike
Re: [Axis2] NPE trying to use eclipse code-gen plugin
Posted by Mohammed Nour <no...@gmail.com>.
I hope this will help, and sorry if not.
http://maven.apache.org/reference/plugins/eclipse/
On 6/9/05, Chathura Herath <ch...@opensource.lk> wrote:
> Can I have a look at the WSDL???
>
>
> On 6/8/05, Mike Haller <Mi...@innovations.de> wrote:
> > Hey,
> >
> > i was able to compile axis2 src and create an eclipse plugin
> >
> > Btw, the /modules/tool/maven.xml doesn't create a ".project" file for
> > the eclipse plugins - any reason? if it would create the .project files,
> > too, you could import the folder directly as projects. Then, you don't
> > need to manually create a Plug-In Project in Eclipse and copy all the
> > files and set the build paths correctly etc.
> >
> > If you need more infos, please let me know (errorlogs, screenshots?)
> >
> > regards
> > Mike
> >
> > Retrieving schema at
> >
> 'D:\workspaces\lizenzserver\de.innovations.licenseserver.common\src\xmldsig-
> core-schema.xsd'.
> > getServiceReferences(java.net.ContentHandler, "null")
> > Retrieving schema at
> >
> 'D:\workspaces\lizenzserver\de.innovations.licenseserver.common\src\licenses
> .xsd'.
> > Retrieving schema at 'xmldsig-core-schema.xsd', relative to
> >
> 'file:/D:/workspaces/lizenzserver/de.innovations.licenseserver.common/src/li
> censes.xsd'.
> > java.lang.RuntimeException: java.lang.NullPointerException
> > at
> >
> org.apache.axis.tool.codegen.eclipse.CodeGenWizard.doFinish(CodeGenWizard.ja
> va:104)
> > at
> >
> org.apache.axis.tool.codegen.eclipse.CodeGenWizard.performFinish(CodeGenWiza
> rd.java:78)
> > at
> > org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
> > at
> > org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
> > at
> org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
> > at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
> > at
> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
> > at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
> > at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
> > at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
> > at org.eclipse.jface.window.Window.open(Window.java:648)
> > at
> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:163)
> > at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
> > at
> >
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Action
> ContributionItem.java:915)
> > at
> >
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionI
> tem.java:866)
> > at
> >
> org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContribu
> tionItem.java:785)
> > at
> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
> > at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
> > at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
> > at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
> > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
> > at
> >
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
> > at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
> > at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
> > at
> >
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.
> java:335)
> > at
> >
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
> > at
> >
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
> > at org.eclipse.core.launcher.Main.run(Main.java:704)
> > at org.eclipse.core.launcher.Main.main(Main.java:688)
> > Caused by: java.lang.NullPointerException
> > at
> >
> org.apache.axis.wsdl.builder.wsdl4j.WSDLPump.populateBindingOperation(WSDLPu
> mp.java:439)
> > at
> >
> org.apache.axis.wsdl.builder.wsdl4j.WSDLPump.populateBindings(WSDLPump.java:
> 251)
> > at
> >
> org.apache.axis.wsdl.builder.wsdl4j.WSDLPump.populateDefinition(WSDLPump.jav
> a:169)
> > at
> org.apache.axis.wsdl.builder.wsdl4j.WSDLPump.pump(WSDLPump.java:97)
> > at
> >
> org.apache.axis.wsdl.builder.wsdl4j.WSDL1ToWOMBuilder.build(WSDL1ToWOMBuilde
> r.java:44)
> > at
> >
> org.apache.axis.tool.codegen.eclipse.CodeGenWizard.getWOM(CodeGenWizard.java
> :201)
> > at
> >
> org.apache.axis.tool.codegen.eclipse.CodeGenWizard.doFinish(CodeGenWizard.ja
> va:98)
> > ... 35 more
> >
>
>
> --
> Ajith Ranabahu
>
>
>
>
RE: [Axis2] NPE trying to use eclipse code-gen plugin
Posted by Chathura Herath <ch...@opensource.lk>.
Can I have a look at the WSDL???
On 6/8/05, Mike Haller <Mi...@innovations.de> wrote:
> Hey,
>
> i was able to compile axis2 src and create an eclipse plugin
>
> Btw, the /modules/tool/maven.xml doesn't create a ".project" file for
> the eclipse plugins - any reason? if it would create the .project files,
> too, you could import the folder directly as projects. Then, you don't
> need to manually create a Plug-In Project in Eclipse and copy all the
> files and set the build paths correctly etc.
>
> If you need more infos, please let me know (errorlogs, screenshots?)
>
> regards
> Mike
>
> Retrieving schema at
>
'D:\workspaces\lizenzserver\de.innovations.licenseserver.common\src\xmldsig-
core-schema.xsd'.
> getServiceReferences(java.net.ContentHandler, "null")
> Retrieving schema at
>
'D:\workspaces\lizenzserver\de.innovations.licenseserver.common\src\licenses
.xsd'.
> Retrieving schema at 'xmldsig-core-schema.xsd', relative to
>
'file:/D:/workspaces/lizenzserver/de.innovations.licenseserver.common/src/li
censes.xsd'.
> java.lang.RuntimeException: java.lang.NullPointerException
> at
>
org.apache.axis.tool.codegen.eclipse.CodeGenWizard.doFinish(CodeGenWizard.ja
va:104)
> at
>
org.apache.axis.tool.codegen.eclipse.CodeGenWizard.performFinish(CodeGenWiza
rd.java:78)
> at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
> at
org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
> at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
> at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
> at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
> at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
> at org.eclipse.jface.window.Window.open(Window.java:648)
> at
org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:163)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
> at
>
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Action
ContributionItem.java:915)
> at
>
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionI
tem.java:866)
> at
>
org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContribu
tionItem.java:785)
> at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
> at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
> at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
> at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
> at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
> at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
> at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.
java:335)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
> at org.eclipse.core.launcher.Main.run(Main.java:704)
> at org.eclipse.core.launcher.Main.main(Main.java:688)
> Caused by: java.lang.NullPointerException
> at
>
org.apache.axis.wsdl.builder.wsdl4j.WSDLPump.populateBindingOperation(WSDLPu
mp.java:439)
> at
>
org.apache.axis.wsdl.builder.wsdl4j.WSDLPump.populateBindings(WSDLPump.java:
251)
> at
>
org.apache.axis.wsdl.builder.wsdl4j.WSDLPump.populateDefinition(WSDLPump.jav
a:169)
> at
org.apache.axis.wsdl.builder.wsdl4j.WSDLPump.pump(WSDLPump.java:97)
> at
>
org.apache.axis.wsdl.builder.wsdl4j.WSDL1ToWOMBuilder.build(WSDL1ToWOMBuilde
r.java:44)
> at
>
org.apache.axis.tool.codegen.eclipse.CodeGenWizard.getWOM(CodeGenWizard.java
:201)
> at
>
org.apache.axis.tool.codegen.eclipse.CodeGenWizard.doFinish(CodeGenWizard.ja
va:98)
> ... 35 more
>
--
Ajith Ranabahu