为什么UMLDesigner插件有实例化错误?

时间:2019-06-11 04:02:55

标签: uml

我试图构建一些UMLDesigner插件,但是存在实例化错误。     这是pluginplugin.xml的xml文件:     <?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.4"?> <plugin> <extension point="org.eclipse.sirius.componentization"> <component class="org.obeonetwork.dsl.uml2.core.UMLDesignerCorePlugin" id="org.obeonetwork.dsl.uml2.core.design" name="uml2 Designer Core"> </component> </extension> <extension point="org.eclipse.sirius.sessionManagerListener"> <listener class="org.obeonetwork.dsl.uml2.core.internal.listeners.UmlDesignerCoreSessionManagerListener"> </listener> </extension> <extension point="org.eclipse.core.runtime.preferences"> <initializer class="org.obeonetwork.dsl.uml2.core.preferences.UmlDesignerPreferenceInitializer"> </initializer> </extension> <extension point="org.eclipse.eef.properties.ui.eefTabDescriptorFilter"> <descriptor class="org.obeonetwork.dsl.uml2.core.internal.properties.UmlDesignerTabDescriptorFilter" description="Filter to display UML properties tab " id="org.obeonetwork.dsl.uml2.core.design.descriptor" label="UML tab filter"> </descriptor> </extension> </plugin>

This is the error message:
`!ENTRY org.eclipse.sirius.common 4 0 2019-06-11 11:02:22.720
!MESSAGE Impossible to load the extension 
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in "org.obeonetwork.dsl.uml2.core.design" was unable to instantiate class "org.obeonetwork.dsl.uml2.core.internal.listeners.UmlDesignerCoreSessionManagerListener".
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:188)
    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
    at org.eclipse.sirius.common.tools.api.util.EclipseUtil.getExtensionPlugins(EclipseUtil.java:139)
    at org.eclipse.sirius.common.tools.api.util.EclipseUtil.getExtensionPlugins(EclipseUtil.java:82)
    at org.eclipse.sirius.business.internal.session.SessionManagerImpl.getExtensionPointListeners(SessionManagerImpl.java:379)
    at org.eclipse.sirius.business.internal.session.SessionManagerImpl.getAllListeners(SessionManagerImpl.java:368)
    at org.eclipse.sirius.business.internal.session.SessionManagerImpl.add(SessionManagerImpl.java:141)
    at org.eclipse.sirius.business.internal.session.danalysis.DAnalysisSessionImpl.open(DAnalysisSessionImpl.java:1167)
    at org.eclipse.sirius.business.api.session.DefaultLocalSessionCreationOperation.execute(DefaultLocalSessionCreationOperation.java:73)
    at org.eclipse.sirius.ui.tools.internal.views.common.modelingproject.manager.ModelingProjectManagerImpl.createLocalRepresentationsFile(ModelingProjectManagerImpl.java:320)
    at org.eclipse.sirius.ui.tools.internal.views.common.modelingproject.manager.ModelingProjectManagerImpl$3.run(ModelingProjectManagerImpl.java:256)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2262)
    at org.eclipse.sirius.ui.tools.internal.views.common.modelingproject.manager.ModelingProjectManagerImpl.createNewModelingProject(ModelingProjectManagerImpl.java:272)
    at org.eclipse.sirius.ui.tools.internal.wizards.ModelingProjectWizard$1.run(ModelingProjectWizard.java:77)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/uml2/uml/Pin
    at org.obeonetwork.dsl.uml2.core.internal.listeners.UmlDesignerCoreSessionManagerListener.<init>(UmlDesignerCoreSessionManagerListener.java:61)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at java.lang.Class.newInstance(Class.java:442)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
    ... 17 more`

根据umlDesigner,整个项目的源代码报告不正确,因此我选择了umlDesigner的一些插件并运行它。

0 个答案:

没有答案