eclipse-modisco / org.eclipse.modisco

Eclipse Public License 2.0
0 stars 0 forks source link

Cannot open the "EPackage Registry" view #501

Closed eclipse-modisco-bot closed 3 hours ago

eclipse-modisco-bot commented 3 hours ago

| --- | --- | | Bugzilla Link | 325116 | | Status | CLOSED FIXED | | Importance | P3 normal | | Reported | Sep 13, 2010 10:17 EDT | | Modified | May 23, 2011 09:28 EDT | | Version | 0.8.0 | | Reporter | Gregoire Dupe |

Description

Hi,

I’m not able to open the "EPackage Registry" view: I get the following error:

eclipse.buildId=I20100608-0911\ java.version=1.6.0_20\ java.vendor=Sun Microsystems Inc.\ BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR\ Command-line arguments: -os win32 -ws win32 -arch x86

Error\ Mon Sep 13 16:08:08 CEST 2010\ An internal error occurred during: "Refreshing EPackage Registry View".

java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.gmt.modisco.infra.query.jxpath.JxpathPackage\ at sun.misc.Unsafe.ensureClassInitialized(Native Method)\ at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unknown Source)\ at sun.reflect.ReflectionFactory.newFieldAccessor(Unknown Source)\ at java.lang.reflect.Field.acquireFieldAccessor(Unknown Source)\ at java.lang.reflect.Field.getFieldAccessor(Unknown Source)\ at java.lang.reflect.Field.get(Unknown Source)\ at org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor.getEPackage(RegistryReader.java:274)\ at org.eclipse.emf.ecore.impl.EPackageImpl$1.getEPackage(EPackageImpl.java:168)\ at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage(EPackageRegistryImpl.java:133)\ at org.eclipse.gmt.modisco.infra.common.ui.internal.views.PackageRegistryView.preloadRegistry(PackageRegistryView.java:168)\ at org.eclipse.gmt.modisco.infra.common.ui.internal.views.PackageRegistryView.doRefresh(PackageRegistryView.java:299)\ at org.eclipse.gmt.modisco.infra.common.ui.internal.views.AbstractCatalogView$5.run(AbstractCatalogView.java:182)\ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Regards,\ Grégoire

eclipse-modisco-bot commented 3 hours ago

By Nicolas Bros on Sep 13, 2010 10:41

I got almost the same exception, but with "UnsupportedClassVersionError", because I had compiled with Java 6 and run with Java 5.

eclipse-modisco-bot commented 3 hours ago

By Nicolas Bros on Sep 13, 2010 10:57

Created attachment 178747 patch

Here is a patch that catches the exceptions and logs them, so that one single EPackage failing to load doesn't crash the whole view.

:notepad_spiral: Bug 325116.patch

eclipse-modisco-bot commented 3 hours ago

By Nicolas Bros on Sep 13, 2010 10:59

I committed this on trunk (revision 3024). Should this be applied to branch 0.8 as well?

eclipse-modisco-bot commented 3 hours ago

By Gregoire Dupe on Sep 13, 2010 11:53

Hi,

I think that this patch should be applied to branch 0.8.

Regards,\ Grégoire

eclipse-modisco-bot commented 3 hours ago

By Kenn Hussey on Sep 14, 2010 08:59

Note that, technically, PMC approval is not required to fix issues in a service release (although, depending on the nature of the issue/fix, it's not necessarily a bad idea)...

eclipse-modisco-bot commented 3 hours ago

By Nicolas Bros on Sep 14, 2010 09:15

Thank you.

I have committed the patch on branch 0.8 (revision 3044).

eclipse-modisco-bot commented 3 hours ago

By Hugo Bruneliere on Oct 05, 2010 05:07

The patch has been successfully applied.