Bug 340179 - NullpointerException in DebugTargetProxy while debugging into a org.eclipse.emf.mwe WorflowComponent
Summary: NullpointerException in DebugTargetProxy while debugging into a org.eclipse.e...
Status: NEW
Alias: None
Product: EMFT
Classification: Modeling
Component: MWE (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-16 11:57 EDT by Missing name CLA
Modified: 2011-03-17 16:27 EDT (History)
1 user (show)

See Also:


Attachments
debug config main (35.78 KB, image/png)
2011-03-17 12:22 EDT, Missing name CLA
no flags Details
debug config common (40.03 KB, image/png)
2011-03-17 12:22 EDT, Missing name CLA
no flags Details
debug config classpath (47.44 KB, image/png)
2011-03-17 12:23 EDT, Missing name CLA
no flags Details
debug config args (38.52 KB, image/png)
2011-03-17 12:23 EDT, Missing name CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name CLA 2011-03-16 11:57:51 EDT
Build Identifier: 20110301-1815

I have set a Breakpoint in an org.eclipse.emf.mwe.core.WorkflowComponent. 
When the Debugger hits the Breakpoint the Debug-Perspective is activated but then a NullpointerException occurs.

The Exception is not thrown when eclipse is started from the pde. In this case the debugging works as expected.

---- Error log details

eclipse.buildId=M20110210-1200
java.version=1.6.0_19
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product -clean


Error
Wed Mar 16 16:43:44 CET 2011
An internal error occurred during: "Model Proxy installed notification job".

java.lang.NullPointerException
at org.eclipse.debug.internal.ui.viewers.update.DebugTargetProxy.getNextSuspendedThreadDelta(DebugTargetProxy.java:118)
at org.eclipse.debug.internal.ui.viewers.update.DebugTargetProxy.installed(DebugTargetProxy.java:79)
at org.eclipse.debug.internal.ui.viewers.model.ModelContentProvider$13.run(ModelContentProvider.java:1226)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)



Reproducible: Always

Steps to Reproduce:
1. Plugin with a org.eclipse.emf.mwe.core.WorkflowComponent
2. Breakpoint set in the component implementation
3. debug as mwe workflow
Comment 1 Michael Rennie CLA 2011-03-16 12:08:34 EDT
Just to confirm, are using the Java debugger or some other debugger (the 'mwe' debugger you mentioned in comment #0)? 

I am curious because from the stacktrace it looks like the backing debug target is returning an array of threads with a null entry.
Comment 2 Missing name CLA 2011-03-17 05:42:01 EDT
(In reply to comment #1)
> Just to confirm, are using the Java debugger or some other debugger (the 'mwe'
> debugger you mentioned in comment #0)? 
> 
> I am curious because from the stacktrace it looks like the backing debug target
> is returning an array of threads with a null entry.

yes, I am using the java debugger. The class that I am trying to debug is an implementation of a WorkflowComponent interface which comes from the emf project.

I start the workflow by using the debug MWE Workflow Command provided by the emf project.

I am not sure if it is a generla debugger problem or a problem for the modeling project.
Comment 3 Michael Rennie CLA 2011-03-17 10:10:20 EDT
(In reply to comment #2)
> 
> I start the workflow by using the debug MWE Workflow Command provided by the
> emf project.

What kind of launch configuration is used with the "debug MWE Workflow Command"? Can you attach a screen shot of the debug session that causes the exception?

> 
> I am not sure if it is a generla debugger problem or a problem for the modeling
> project.

The is sounding like a problem with EMF and their MWE debugger
Comment 4 Missing name CLA 2011-03-17 12:22:18 EDT
Created attachment 191438 [details]
debug config main
Comment 5 Missing name CLA 2011-03-17 12:22:53 EDT
Created attachment 191439 [details]
debug config common
Comment 6 Missing name CLA 2011-03-17 12:23:14 EDT
Created attachment 191440 [details]
debug config classpath
Comment 7 Missing name CLA 2011-03-17 12:23:43 EDT
Created attachment 191441 [details]
debug config args
Comment 8 Missing name CLA 2011-03-17 12:24:12 EDT
(In reply to comment #3)
> (In reply to comment #2)
> > 
> > I start the workflow by using the debug MWE Workflow Command provided by the
> > emf project.
> 
> What kind of launch configuration is used with the "debug MWE Workflow
> Command"? Can you attach a screen shot of the debug session that causes the
> exception?
> 
> > 
> > I am not sure if it is a generla debugger problem or a problem for the modeling
> > project.
> 
> The is sounding like a problem with EMF and their MWE debugger

Attached screen shots of my debug config