Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » NPE in mint(mint [v0.9.0] lately no longer functional due to NPE)
NPE in mint [message #555346] Thu, 26 August 2010 11:56 Go to next message
stefan  is currently offline stefan Friend
Messages: 9
Registered: July 2010
Junior Member
After having enjoyed the MINT enhancements without problems, I experience NPEs whenever I attempt to 'customize EMF-generated method' from the outline's context menu.

color codes still work on manually customized methods.

I am using this version:

Eclipse Modeling Framework Technologies (EMFT) - Mint Runtime (Incubation)
Version: 0.9.0.v201006142335
Build id: 201006142335

on this platform:

Eclipse Platform

Version: 3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY
Build id: I20100608-0911


What can / should I do to fix this problem (reinstall the plugin maybe?)

thanks
/stefan
Re: NPE in mint [message #555425 is a reply to message #555346] Thu, 26 August 2010 14:28 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Stefan,

Please share the stack trace. Probably it's a bug that you should
report. Does it work within the source view?


stefan wrote:
> After having enjoyed the MINT enhancements without problems, I
> experience NPEs whenever I attempt to 'customize EMF-generated method'
> from the outline's context menu.
> color codes still work on manually customized methods.
>
> I am using this version:
>
> Eclipse Modeling Framework Technologies (EMFT) - Mint Runtime
> (Incubation)
> Version: 0.9.0.v201006142335
> Build id: 201006142335
>
> on this platform:
>
> Eclipse Platform
>
> Version: 3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY
> Build id: I20100608-0911
>
>
> What can / should I do to fix this problem (reinstall the plugin maybe?)
>
> thanks
> /stefan


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: NPE in mint [message #555435 is a reply to message #555425] Thu, 26 August 2010 15:07 Go to previous messageGo to next message
stefan  is currently offline stefan Friend
Messages: 9
Registered: July 2010
Junior Member
Hi Ed

No, it does not work in the source view (it actually never did, even when the outline view did).

I tried to debug the error, but it seems I did not get the source code even though I thought to have obtained all source for modeling bundles.


Anyway, here is the stacktrace:

Paste stack traces into this console and follow hyperlinks to source code.
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:477)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(Progress MonitorDialog.java:507)
at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.r un(ProgressMonitorJobsDialog.java:275)
at org.eclipse.ui.internal.progress.ProgressManager.run(Progres sManager.java:1162)
at org.eclipse.ui.internal.progress.ProgressManager$RunnableWit hStatus.run(ProgressManager.java:1346)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at org.eclipse.ui.internal.progress.ProgressManager$7.run(Progr essManager.java:1184)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:179)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4584)
at org.eclipse.ui.internal.progress.ProgressManager.runInUI(Pro gressManager.java:1182)
at org.eclipse.emf.mint.internal.ui.source.CustomizeGeneratedMe thodHandler.run(CustomizeGeneratedMethodHandler.java:101)
at org.eclipse.emf.mint.internal.ui.source.CustomizeGeneratedMe thodHandler.run(CustomizeGeneratedMethodHandler.java:62)
at org.eclipse.emf.mint.internal.ui.source.CustomizeGeneratedMe thodHandler.execute(CustomizeGeneratedMethodHandler.java:48)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(Handle rProxy.java:293)
at org.eclipse.core.commands.Command.executeWithChecks(Command. java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.execute Command(SlaveHandlerService.java:241)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.execute Command(SlaveHandlerService.java:241)
at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSel ection(CommandContributionItem.java:820)
at org.eclipse.ui.menus.CommandContributionItem.access$19(Comma ndContributionItem.java:806)
at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(C ommandContributionItem.java:796)
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.ja va:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:24 27)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Caused by: java.lang.NullPointerException
at org.eclipse.emf.mint.internal.ui.source.CustomizeGeneratedMe thodOperation.findGeneratedTag(CustomizeGeneratedMethodOpera tion.java:232)
at org.eclipse.emf.mint.internal.ui.source.CustomizeGeneratedMe thodOperation.doRun(CustomizeGeneratedMethodOperation.java:1 57)
at org.eclipse.emf.mint.internal.ui.source.CustomizeGeneratedMe thodOperation.run(CustomizeGeneratedMethodOperation.java:77)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperatio n(BatchOperation.java:39)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod elOperation.java:728)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1975)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4777)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4734)
at org.eclipse.emf.mint.internal.ui.source.CustomizeGeneratedMe thodHandler$1.run(CustomizeGeneratedMethodHandler.java:105)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:464)
... 48 more
Root exception:
java.lang.NullPointerException
at org.eclipse.emf.mint.internal.ui.source.CustomizeGeneratedMe thodOperation.findGeneratedTag(CustomizeGeneratedMethodOpera tion.java:232)
at org.eclipse.emf.mint.internal.ui.source.CustomizeGeneratedMe thodOperation.doRun(CustomizeGeneratedMethodOperation.java:1 57)
at org.eclipse.emf.mint.internal.ui.source.CustomizeGeneratedMe thodOperation.run(CustomizeGeneratedMethodOperation.java:77)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperatio n(BatchOperation.java:39)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod elOperation.java:728)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1975)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4777)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4734)
at org.eclipse.emf.mint.internal.ui.source.CustomizeGeneratedMe thodHandler$1.run(CustomizeGeneratedMethodHandler.java:105)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(Progress MonitorDialog.java:507)
at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.r un(ProgressMonitorJobsDialog.java:275)
at org.eclipse.ui.internal.progress.ProgressManager.run(Progres sManager.java:1162)
at org.eclipse.ui.internal.progress.ProgressManager$RunnableWit hStatus.run(ProgressManager.java:1346)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at org.eclipse.ui.internal.progress.ProgressManager$7.run(Progr essManager.java:1184)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:179)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4584)
at org.eclipse.ui.internal.progress.ProgressManager.runInUI(Pro gressManager.java:1182)
at org.eclipse.emf.mint.internal.ui.source.CustomizeGeneratedMe thodHandler.run(CustomizeGeneratedMethodHandler.java:101)
at org.eclipse.emf.mint.internal.ui.source.CustomizeGeneratedMe thodHandler.run(CustomizeGeneratedMethodHandler.java:62)
at org.eclipse.emf.mint.internal.ui.source.CustomizeGeneratedMe thodHandler.execute(CustomizeGeneratedMethodHandler.java:48)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(Handle rProxy.java:293)
at org.eclipse.core.commands.Command.executeWithChecks(Command. java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.execute Command(SlaveHandlerService.java:241)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.execute Command(SlaveHandlerService.java:241)
at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSel ection(CommandContributionItem.java:820)
at org.eclipse.ui.menus.CommandContributionItem.access$19(Comma ndContributionItem.java:806)
at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(C ommandContributionItem.java:796)
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.ja va:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:24 27)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

Re: NPE in mint [message #557036 is a reply to message #555435] Fri, 03 September 2010 16:39 Go to previous message
Peter Nehrer is currently offline Peter NehrerFriend
Messages: 241
Registered: July 2009
Senior Member
Stefan, could you please share the source file that exhibits the issue?
A bugzilla would be the ideal means. From the stack trace it appears
that there is an unguarded invocation on a null Javadoc reference, but
the action shouldn't even be enabled in this case. A way to reproduce
would be very helpful. Thanks.

--Peter
Previous Topic:[Announce] Modeling Classes - Sep. 20 - Nov. 5
Next Topic:Setting content for EcoreEditor
Goto Forum:
  


Current Time: Thu Apr 25 22:05:25 GMT 2024

Powered by FUDForum. Page generated in 0.02827 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top