NullPointerException when opening DDL wizard. [message #433708] |
Wed, 12 April 2006 16:57  |
Eclipse User |
|
|
|
Hi all,
I've run into a similar problem to bug report 134825. I noticed that the bug has been closed, but I've tried a clean install and I'm still getting the problem.
Whenever I try to generate DDL from a project I get this exception in the error log :
java.lang.NullPointerException
at org.eclipse.wst.rdb.internal.models.sql.datatypes.impl.Chara cterStringDataTypeImpl.eSet(CharacterStringDataTypeImpl.java :364)
at org.eclipse.dali.db.ddl.OrmDdlGenerator.copyDataType(OrmDdlG enerator.java:384)
at org.eclipse.dali.db.ddl.OrmDdlGenerator.addJoinColumn(OrmDdl Generator.java:345)
at org.eclipse.dali.db.ddl.OrmDdlGenerator.addRefColumns(OrmDdl Generator.java:320)
at org.eclipse.dali.db.ddl.OrmDdlGenerator.createDdl(OrmDdlGene rator.java:225)
at org.eclipse.dali.ui.actions.GenerateDdlAction.execute(Genera teDdlAction.java:28)
at org.eclipse.dali.ui.actions.ProjectAction.execute(ProjectAct ion.java:90)
at org.eclipse.dali.ui.actions.ProjectAction.execute(ProjectAct ion.java:71)
at org.eclipse.dali.ui.actions.ProjectAction.run(ProjectAction. java:63)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:246)
at org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
at org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2867)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2572)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
My environment might be a contributing to the problem, here's what I'm using :
Eclipse : Version: 3.1.2 Build id: M20060118-1600
OS : Ubuntu Linux 2.6.12-10-386
Java : java full version "J2RE 1.5.0 IBM Linux build pxi32dev-20060222 (SR1)"
Dali : dali-N-0.5M1-200603170005.zip
WTP : 1.0.1 ( I can get the full build if needed).
I also have a few third party plugins installed, I can post them if they'll help.
Has anyone else seen this error? Are there any other logs I should look at (I've only looked at the Error Log view in Eclipse).
Thanks in advance for any help you can offer,
Michael Dick
|
|
|
|
|
|
|
Re: NullPointerException when opening DDL wizard. [message #581596 is a reply to message #433708] |
Wed, 12 April 2006 17:33  |
Eclipse User |
|
|
|
Hi Michael,
Could you open a bug against Dali for this problem? It looks like a
different issue than bug 134825. This looks specific to your entities, if
you have a particular entity that you can reproduce this problem with,
please include it in the bug report.
thanks,
Karen
|
|
|
|
Re: NullPointerException when opening DDL wizard. [message #581772 is a reply to message #433711] |
Thu, 13 April 2006 11:08  |
Eclipse User |
|
|
|
Neil,
I've only tried with Derby 10.1 and MySQL 4.1. I've switched between the two with no discernible difference in behavior
(maybe I'm looking in the wrong place(s) though).
I opened bug 136658 to report/track the problem.
I think Karen was on to something though - the problem appears to be due to the entities that I'm using.. I'm able to bring
up the wizard with a simple entity, but I get the NPE if I use a more complicated example (stolen from the JPA spec).
I've included the source for the entities in the bug report, I can post it here too if you'd like.
-Mike
Neil Hauge wrote:
> Michael,
>
> What type of database are you connected to? The problem might be related
> to an unsupported datatype.
>
> Neil
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.05224 seconds