Community
Participate
Working Groups
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
I got almost the same exception, but with "UnsupportedClassVersionError", because I had compiled with Java 6 and run with Java 5.
Created attachment 178747 [details] 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.
I committed this on trunk (revision 3024). Should this be applied to branch 0.8 as well?
Hi, I think that this patch should be applied to branch 0.8. Regards, Grégoire
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)...
Thank you. I have committed the patch on branch 0.8 (revision 3044).
The patch has been successfully applied.