Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369575 - NPE while working with POM editors
Summary: NPE while working with POM editors
Status: CLOSED DUPLICATE of bug 357044
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-24 14:25 EST by Reuben Garrett CLA
Modified: 2012-01-24 14:36 EST (History)
1 user (show)

See Also:


Attachments
Eclipse configuration (787.11 KB, text/plain)
2012-01-24 14:27 EST, Reuben Garrett CLA
no flags Details
excerpt from Eclipse log with stack traces (14.12 KB, text/plain)
2012-01-24 14:27 EST, Reuben Garrett CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reuben Garrett CLA 2012-01-24 14:25:05 EST
Occasional NPE while working with POMs - sometimes while editing the XML, sometimes when viewing effective POM.  After the first NPE, editors exhibit strange behavior, including failure to respond to certain keyboard accelerators (such as Ctrl+C).  In some cases, typing has even been directed to the wrong editor.  The entire Eclipse sessions feels unusable afterwards, requiring a restart to regain operability.  

I'm not sure if this is relevant, but I also see a strange "blipping" on the toolbar as an icon repeatedly appears and disappears - probably in connection with some background process such as building.  This occurs before the NPE, and would not be an issue except that the background process seems sluggish and makes the toolbar unusable for longer than an average use would be willing to wait (can't select icons to the right of the "blipping" button because they repeatedly shift back and forth).  

Not sure how to provoke this reliably, besides to open several editors (at least one of which must be a POM) and hack away at the underlying XML in the POM.  I'm also not sure if this is caused by the m2e plugin or not.  Will attach config and full stack trace.  

!ENTRY org.eclipse.e4.ui.workbench.swt 4 2 2012-01-24 12:53:45.959
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.e4.ui.workbench.swt".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.core.internal.runtime.AdapterManager.hasAdapter(AdapterManager.java:334)
	at org.eclipse.core.internal.expressions.AdaptExpression.evaluate(AdaptExpression.java:77)
	at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
	at org.eclipse.core.internal.expressions.AndExpression.evaluate(AndExpression.java:29)
	at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
	at org.eclipse.core.internal.expressions.IterateExpression.evaluate(IterateExpression.java:184)
	at org.eclipse.ui.internal.services.EvaluationReference.evaluate(EvaluationReference.java:93)
[remaining frames truncated] 

-- Configuration Details --
Product: Eclipse 1.5.0.20110817-2116 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.platform 4.2.0.v20111129-9IF7EHAmFuzFOcSz-MfDWL7uSMPWVz0QZg10z0BYVl6TH
Comment 1 Reuben Garrett CLA 2012-01-24 14:27:18 EST
Created attachment 209996 [details]
Eclipse configuration
Comment 2 Reuben Garrett CLA 2012-01-24 14:27:48 EST
Created attachment 209997 [details]
excerpt from Eclipse log with stack traces
Comment 3 Remy Suen CLA 2012-01-24 14:36:26 EST

*** This bug has been marked as a duplicate of bug 357044 ***