Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » NullPointerException when opening DDL wizard.
NullPointerException when opening DDL wizard. [message #433708] Wed, 12 April 2006 16:57 Go to next message
Michael Dick is currently offline Michael Dick
Messages: 4
Registered: July 2009
Junior Member
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 #433709 is a reply to message #433708] Wed, 12 April 2006 17:33 Go to previous messageGo to next message
Karen Butzke is currently offline Karen Butzke
Messages: 220
Registered: July 2009
Senior Member
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 #433711 is a reply to message #433708] Wed, 12 April 2006 18:04 Go to previous messageGo to next message
Neil Hauge is currently offline Neil Hauge
Messages: 469
Registered: July 2009
Senior Member
Michael,

What type of database are you connected to? The problem might be related
to an unsupported datatype.

Neil
Re: NullPointerException when opening DDL wizard. [message #433719 is a reply to message #433711] Thu, 13 April 2006 11:08 Go to previous messageGo to next message
Michael Dick is currently offline Michael Dick
Messages: 4
Registered: July 2009
Junior Member
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
>
Re: NullPointerException when opening DDL wizard. [message #433724 is a reply to message #433719] Thu, 13 April 2006 15:24 Go to previous message
Neil Hauge is currently offline Neil Hauge
Messages: 469
Registered: July 2009
Senior Member
Michael,

It appears that the M-M on DeliveryService is the culprit. Removing that
gets rid of the NPE. DDL gen supports M-M mappings, so we will need to
look into this figure and figure out why this is failing.

Neil
Re: NullPointerException when opening DDL wizard. [message #581596 is a reply to message #433708] Wed, 12 April 2006 17:33 Go to previous message
Karen Butzke is currently offline Karen Butzke
Messages: 220
Registered: July 2009
Senior Member
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 #581627 is a reply to message #433708] Wed, 12 April 2006 18:04 Go to previous message
Neil Hauge is currently offline Neil Hauge
Messages: 469
Registered: July 2009
Senior Member
Michael,

What type of database are you connected to? The problem might be related
to an unsupported datatype.

Neil
Re: NullPointerException when opening DDL wizard. [message #581772 is a reply to message #433711] Thu, 13 April 2006 11:08 Go to previous message
Michael Dick is currently offline Michael Dick
Messages: 4
Registered: July 2009
Junior Member
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
>
Re: NullPointerException when opening DDL wizard. [message #581890 is a reply to message #433719] Thu, 13 April 2006 15:24 Go to previous message
Neil Hauge is currently offline Neil Hauge
Messages: 469
Registered: July 2009
Senior Member
Michael,

It appears that the M-M on DeliveryService is the culprit. Removing that
gets rid of the NPE. DDL gen supports M-M mappings, so we will need to
look into this figure and figure out why this is failing.

Neil
Previous Topic:UNCONFIRMED bug reports?
Next Topic:Dali, Toplink (GlassFish) and DB2
Goto Forum:
  


Current Time: Thu Aug 28 03:17:17 EDT 2014

Powered by FUDForum. Page generated in 0.12660 seconds