| Summary: | [Compatibility] NPEs when closing and reopening perspective | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Stefan Mücke <s.muecke> | ||||||
| Component: | UI | Assignee: | Remy Suen <remy.suen> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | Remy Suen <remy.suen> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | bokowski, pwebster, remy.suen | ||||||
| Version: | 1.0 | Flags: | pwebster:
review+
bokowski: review+ |
||||||
| Target Milestone: | 1.0 RC3 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Stefan Mücke
Here is one of the stack traces (shortened; the others are similar): ERROR: Unable to create class 'org.eclipse.ui.internal.e4.compatibility.CompatibilityView' from bundle '501' org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:54) at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:795) at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:775) ... at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103) ... Caused by: java.lang.NullPointerException at org.eclipse.ui.internal.ViewSite.<init>(ViewSite.java:26) at org.eclipse.ui.internal.ViewReference.initialize(ViewReference.java:97) at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:165) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... Cannot reproduce with I20100716-1834 on Windows 7. 1. Point Eclipse at a new workspace. 2. Window > Close Perspective 3. Click the 'Open Perspective' icon in the top right hand corner. 4. Double-click on 'Java (default)'. 5. Perspective is resurrected as expected. Nothing suspicious in the logs. I have just tried that again with the -consoleLog option (started from the command line). I can reproduce this with I20100716-1834 on Windows 7. (In reply to comment #3) > I have just tried that again with the -consoleLog option (started from the > command line). I can reproduce this with I20100716-1834 on Windows 7. Confirmed. It seems to only appear in the console but not the .log file. Also confirmed in my inner. Have a fix in mind, will attach a patch later today. Created attachment 174561 [details]
Perspective handling patch v1
This isn't worth respinning RC2. Will consider for RC3. Created attachment 174793 [details]
Perspective handling patch v2
The patch went stale with recent changes.
Paul, please review and assess. Boris, please +1 to confirm the bug as an RC3 candidate. Looks good to me. I noticed that we still have a "Legacy Perspective"- Paul, is this because the 4.0 SDK contains the e4 SDK branding plugin? (In reply to comment #11) > I noticed that we still have a "Legacy Perspective"- Paul, is this because the > 4.0 SDK contains the e4 SDK branding plugin? Scratch that. I got confused between inner and outer. Released to HEAD. Verified on Windows XP with I20100720-2028. |