Can you try accessing the field metaBpList before sending the Entity to the
client?

Thanks,
Rick

On Fri, Nov 11, 2011 at 8:32 AM, M. Walter <marc.wal...@sbb.ch> wrote:

> Hi Rick,
>
> detach state property configuration is:
> <property name="openjpa.DetachState"
> value="fetch-groups(DetachedStateField=true)" />
>
> We need this because we would like to delete values of fields (set them to
> null in the database explicitly).
>
> Here's the stack trace:
>
> java.lang.NullPointerException
>  at xx.xxx.xxxxx.common.entity.stammdaten.Bp.addMetaBp(Bp.java:804)
>  at xx.xxx.xxxxx.common.entity.stammdaten.MetaBp.addBp(MetaBp.java:145)
>  at
>
> xx.xxx.xxxxx.rcp.stammdaten.internal.ui.editors.metabp.MetaBpEditor$1.run(MetaBpEditor.java:209)
>  at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
>  at
>
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
>  at
>
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
>  at
>
> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
>  at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
>  at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
>  at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
>  at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
>  at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
>  at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
>  at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
>  at
>
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>  at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
>  at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>  at
>
> xx.xxx.xxxxx.rcp.internal.ui.application.Application.start(Application.java:56)
>  at
>
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>  at
>
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>  at
>
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>  at
>
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
>  at
>
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>  at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>  at java.lang.reflect.Method.invoke(Method.java:600)
>  at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
>  at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
>  at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
>  at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
>
>
> And here's the requested file:
> http://openjpa.208410.n2.nabble.com/file/n6985542/Bp.class Bp.class
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/Strange-behaviour-on-ManyToMany-relationship-using-RCP-client-tp6985422p6985542.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>



-- 
*Rick Curtis*

Reply via email to