[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-7026) Meta model fails to be loaded in some Eclipse configurations

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Wed Sep 8 07:57:49 EDT 2010


    [ https://jira.jboss.org/browse/JBIDE-7026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12549617#action_12549617 ] 

Viacheslav Kabanovich commented on JBIDE-7026:
----------------------------------------------

Before commits of fixes, typical log had error message like that:

java.lang.ExceptionInInitializerError 
at org.jboss.tools.common.model.options.PreferenceModelUtilities.getPreferenceModel(PreferenceModelUtilities.java:43) 
at org.jboss.tools.common.model.ui.editor.XMLContentDescriber.describe(XMLContentDescriber.java:47) 
at org.jboss.tools.common.model.ui.editor.XMLContentDescriber.describe(XMLContentDescriber.java:34) 
at org.eclipse.core.internal.content.ContentTypeCatalog.describe(ContentTypeCatalog.java:218) 
at org.eclipse.core.internal.content.ContentTypeCatalog.collectMatchingByContents(ContentTypeCatalog.java:190) 
at org.eclipse.core.internal.content.ContentTypeCatalog.internalFindContentTypesFor(ContentTypeCatalog.java:403) 
at org.eclipse.core.internal.content.ContentTypeCatalog.internalFindContentTypesFor(ContentTypeCatalog.java:450) 
at org.eclipse.core.internal.content.ContentTypeCatalog.getDescriptionFor(ContentTypeCatalog.java:346) 
at org.eclipse.core.internal.content.ContentTypeCatalog.getDescriptionFor(ContentTypeCatalog.java:360) 
at org.eclipse.core.internal.content.ContentTypeMatcher.getDescriptionFor(ContentTypeMatcher.java:86) 
at org.eclipse.core.internal.resources.ContentDescriptionManager.readDescription(ContentDescriptionManager.java:436) 
at org.eclipse.core.internal.resources.ContentDescriptionManager.getDescriptionFor(ContentDescriptionManager.java:346) 
at org.eclipse.core.internal.resources.File.getContentDescription(File.java:275) 
at org.eclipse.ui.internal.ide.model.WorkbenchResource.testContentTypeProperty(WorkbenchResource.java:150) 
at org.eclipse.ui.internal.ide.model.WorkbenchResource.testAttribute(WorkbenchResource.java:117) 
at org.eclipse.ui.internal.ActionExpression$ObjectStateExpression.preciselyMatches(ActionExpression.java:530) 
at org.eclipse.ui.internal.ActionExpression$ObjectStateExpression.isEnabledFor(ActionExpression.java:499) 
at org.eclipse.ui.internal.ActionExpression$OrExpression.isEnabledFor(ActionExpression.java:582) 
at org.eclipse.ui.internal.ActionExpression$AndExpression.isEnabledFor(ActionExpression.java:132) 
at org.eclipse.ui.internal.ActionExpression$SingleExpression.isEnabledFor(ActionExpression.java:743) 
at org.eclipse.ui.internal.ActionExpression.isEnabledFor(ActionExpression.java:1053) 
at org.eclipse.ui.internal.decorators.DecoratorDefinition.isEnabledFor(DecoratorDefinition.java:282) 
at org.eclipse.ui.internal.decorators.DecoratorManager.getDecoratorsFor(DecoratorManager.java:382) 
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecoratorsFor(LightweightDecoratorManager.java:315) 
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:340) 
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:371) 
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:331) 
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) 
Caused by: java.lang.NullPointerException 
at com.sun.org.apache.xerces.internal.dom.ParentNode.internalRemoveChild(ParentNode.java:531) 
at com.sun.org.apache.xerces.internal.dom.ParentNode.removeChild(ParentNode.java:480) 
at org.jboss.tools.common.meta.impl.MetaLibLoader.parse(MetaLibLoader.java:161) 
at org.jboss.tools.common.meta.impl.MetaLibLoader.load(MetaLibLoader.java:103) 
at org.jboss.tools.common.meta.impl.MetaLibLoader.load(MetaLibLoader.java:68) 
at org.jboss.tools.common.meta.impl.XMetaDataLoader.loadMetaModel(XMetaDataLoader.java:117) 
at org.jboss.tools.common.meta.impl.XModelMetaDataImpl.<init>(XModelMetaDataImpl.java:52) 
at org.jboss.tools.common.meta.impl.XModelMetaDataImpl.getInstance(XModelMetaDataImpl.java:44) 
at org.jboss.tools.common.model.XModelFactory.createInstance(XModelFactory.java:33) 
at org.jboss.tools.common.model.XModelFactory.getModel(XModelFactory.java:28) 
at org.jboss.tools.common.model.options.PreferenceModelUtilities.createPreferenceModel(PreferenceModelUtilities.java:49) 
at org.jboss.tools.common.model.options.PreferenceModelUtilities$PreferenceModelHolder.<clinit>(PreferenceModelUtilities.java:28) 
... 28 more 

> Meta model fails to be loaded in some Eclipse configurations
> ------------------------------------------------------------
>
>                 Key: JBIDE-7026
>                 URL: https://jira.jboss.org/browse/JBIDE-7026
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>    Affects Versions: 3.2.0.M2
>            Reporter: Viacheslav Kabanovich
>            Assignee: Viacheslav Kabanovich
>            Priority: Critical
>             Fix For: 3.2.0.M2, 3.2.0.Beta
>
>
> Class MetaLibLoader creates instance of SAX parser using standard XMLReaderFactory.createXMLReader(className) method, which loads class by  context classloader. Context class loader in some Eclipse configurations may be that which does not see library with parser implementation. It seems that we should replace this method with loading class by bundle class loader of plugin org.apache.xerces and if that plugin is not available, use DOM parser.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list