| Summary: | VE 1.3 on Ganymede throws NullPointerException when opening a ViewPart | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Emanuele Ziglioli <me> | ||||||||
| Component: | VE | Assignee: | Yves YANG <yves.yang> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | jkolter, juusojekku, philippe_mulet, remy.suen, ville.kanerva, yves.yang | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| URL: | http://divby0.blogspot.com/2008/07/visual-editor-for-eclipse-34-ganymede.html | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Emanuele Ziglioli
I'm also getting this error. Although I also had some other JEM errors. Note that I was debugging VE and not actually launching a VE-installed Eclipse. I get the same errors when trying Ganymede with the VE 1.4 version at http://update.soyatec.org/Ganymede/ve/1.4 Created attachment 115238 [details]
Patch to ControlManager to log warnings when controlBeanProxies are not resolved
The NullPointerException is caused by a missing controlBeanProxy in ControlManager. Simply checking if controlBeanproxy is null to avoid the NullPointerException does not solve the problem because ControlManager can't work without a controlBeanProxy.
The missing controlBeanProxy can be detected earlier (see patch): ControlManager#setControlBeanProxy(...) does not set the controlBeanProxy directly, but registers a proxy listener (line 378, ControlManager), and when the proxy is correctly resolved, the controlBeanProxy is set. I added the proxyNotResolved(ProxyEvent)-method to log unresolved proxies which actually cause the NullPointerExceptions.
Unfortunately I couldn't figure out what causes proxy resolution to fail. I first suspected a network communication problem betwenn remote and local vm. Then I thought that the creation of proxies according to the EMF-model has problems caused by the workbench parts (view or editor). But I could not approve any of my thoughts.
Created attachment 130852 [details]
replace: org.eclipse.ve.swt_1.4.0.xxxx.jar/vm/jbcfswtvm.jar
replace: org.eclipse.ve.swt_1.4.0.xxxx.jar/vm/jbcfswtvm.jar
Created attachment 130853 [details]
patch for this bug.
Thanks legend! I have tested and integrated it in CVS. fixed in 1.4. |