Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Export to UML from ECore fails, different this time
Export to UML from ECore fails, different this time [message #478313] Tue, 21 April 2009 11:21 Go to next message
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member
Hi,

I saw the previous past on a similar exception. This is transferred
across from EMF newsgroup.

Version: 3.4.1
Build id: M20080911-1700
java.home=C:\Program Files\Java\jre6

No matter what setting I use, even Ignore all I get this exception.

java.lang.reflect.InvocationTargetException
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:119)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:458)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:366)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 934)
at
org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard.performFinish(ModelConverterWizard.java:246)
at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
at org.eclipse.jface.window.Window.open(Window.java:801)
at
org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:115)
at
org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:105)
at
org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDel egate.java:70)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:241)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: org.eclipse.core.runtime.CoreException: An error occurred
while performing this operation.
at
org.eclipse.emf.common.util.DiagnosticException.toCoreExcept ion(DiagnosticException.java:47)
at
org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:235)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:104)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:116)
... 45 more
Caused by: org.eclipse.emf.common.util.DiagnosticException: An error
occurred while performing this operation.
at
org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:234)
... 48 more
Caused by: java.lang.NullPointerException
at
org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process AnnotationDetails(UMLUtil.java:8058)
at
org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process Options(UMLUtil.java:8142)
at
org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.convert (UMLUtil.java:8172)
at
org.eclipse.uml2.uml.ecore.exporter.UMLExporter.doExport(UML Exporter.java:126)
at
org.eclipse.emf.exporter.ModelExporter.export(ModelExporter. java:634)
at
org.eclipse.emf.exporter.ui.contribution.base.ModelExporterW izard.doPerformFinish(ModelExporterWizard.java:113)
at
org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:228)
... 48 more

Thx.

David
Re: Export to UML from ECore fails, different this time [message #478318 is a reply to message #478313] Wed, 22 April 2009 17:44 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi David,

I've noticed a similar issue that will be addressed in the latest 3.5 stream
(M7).
If you have a specific model and can send it to me, I can test it out with
the fix to ensure that your problem is addressed.

Cheers,
- James.

"David Wynter" <david@roamware.co.uk> wrote in message
news:gsk9nh$o2q$1@build.eclipse.org...
> Hi,
>
> I saw the previous past on a similar exception. This is transferred across
> from EMF newsgroup.
>
> Version: 3.4.1
> Build id: M20080911-1700
> java.home=C:\Program Files\Java\jre6
>
> No matter what setting I use, even Ignore all I get this exception.
>
> java.lang.reflect.InvocationTargetException
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:119)
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:458)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:366)
> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 934)
> at
> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard.performFinish(ModelConverterWizard.java:246)
> at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:373)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
> at org.eclipse.jface.window.Window.open(Window.java:801)
> at
> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:115)
> at
> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:105)
> at
> org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDel egate.java:70)
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:241)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> Caused by: org.eclipse.core.runtime.CoreException: An error occurred while
> performing this operation.
> at
> org.eclipse.emf.common.util.DiagnosticException.toCoreExcept ion(DiagnosticException.java:47)
> at
> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:235)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:104)
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:116)
> ... 45 more
> Caused by: org.eclipse.emf.common.util.DiagnosticException: An error
> occurred while performing this operation.
> at
> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:234)
> ... 48 more
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process AnnotationDetails(UMLUtil.java:8058)
> at
> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process Options(UMLUtil.java:8142)
> at
> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.convert (UMLUtil.java:8172)
> at
> org.eclipse.uml2.uml.ecore.exporter.UMLExporter.doExport(UML Exporter.java:126)
> at
> org.eclipse.emf.exporter.ModelExporter.export(ModelExporter. java:634)
> at
> org.eclipse.emf.exporter.ui.contribution.base.ModelExporterW izard.doPerformFinish(ModelExporterWizard.java:113)
> at
> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:228)
> ... 48 more
>
> Thx.
>
> David
Re: Export to UML from ECore fails, different this time [message #478319 is a reply to message #478318] Wed, 22 April 2009 20:10 Go to previous messageGo to next message
John T.E. Timm is currently offline John T.E. TimmFriend
Messages: 161
Registered: July 2009
Senior Member
I have a similar problem exporting an ecore model to ecore. I took the
library example schema and imported it into ecore and then attempted ot
export using the "Export model..." option on the genmodel context menu. I
ended up with no option to select referenced genmodels (e.g. Ecore).
Instead it wanted to create a UML model for ecore and then ended up
producing this InvocationTargetException. I can send the schemas I am
using these very simple schemas:

library.xsd

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.org/Library"
xmlns:lib="http://www.example.org/Library"
xmlns:book="http://www.example.org/Book">
<xs:import namespace="http://www.example.org/Book"
schemaLocation="book.xsd"></xs:import>
<xs:element name="library" type="lib:LibraryType" />
<xs:complexType name="LibraryType">
<xs:sequence>
<xs:element name="books" maxOccurs="unbounded" type="book:BookType"
/>
</xs:sequence>
<xs:attribute name="name" type="xs:string"></xs:attribute>
</xs:complexType>
</xs:schema>

book.xsd

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.org/Book"
xmlns:book="http://www.example.org/Book">
<xs:element name="book" type="book:BookType"></xs:element>
<xs:complexType name="BookType">
<xs:sequence>
<xs:element name="title" type="xs:string"/>
<xs:element name="pages" type="xs:int"/>
<xs:element name="category" type="xs:string"/>
<xs:element name="author" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>

I import the library.xsd using the "EMF Model" project wizard which
produces:

library.ecore
book.ecore
library.genmodel

There is nothing particularily special about this step. The ecore models
look fine. Then I choose "Export Model..." from the library.genmodel
context menu and receive the error mentioned above. Any ideas?

Thanks,

JT
Re: Export to UML from ECore fails, different this time [message #478320 is a reply to message #478319] Wed, 22 April 2009 20:12 Go to previous messageGo to next message
John T.E. Timm is currently offline John T.E. TimmFriend
Messages: 161
Registered: July 2009
Senior Member
I mean export ecore to UML. :)
Re: Export to UML from ECore fails, different this time [message #478321 is a reply to message #478318] Thu, 23 April 2009 18:23 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi David,

I see the error in the method processAnnotationDetails in UMLUtil. We try
to get the eAnnotation.getSource() and then try to use the result. A simple
null pointer check would seem like a good thing here ;). In your
particular case, you have an annotation under 'Accretion' with no source
(open up your mddl4db.ecore). It looks like there is some appinfo details.

I will fix this up in the next 3.5 build. Will you be able to upgrade to
3.5?

Cheers,
- James.

"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:gsnksn$kv8$1@build.eclipse.org...
> Hi David,
>
> I've noticed a similar issue that will be addressed in the latest 3.5
> stream (M7).
> If you have a specific model and can send it to me, I can test it out with
> the fix to ensure that your problem is addressed.
>
> Cheers,
> - James.
>
> "David Wynter" <david@roamware.co.uk> wrote in message
> news:gsk9nh$o2q$1@build.eclipse.org...
>> Hi,
>>
>> I saw the previous past on a similar exception. This is transferred
>> across from EMF newsgroup.
>>
>> Version: 3.4.1
>> Build id: M20080911-1700
>> java.home=C:\Program Files\Java\jre6
>>
>> No matter what setting I use, even Ignore all I get this exception.
>>
>> java.lang.reflect.InvocationTargetException
>> at
>> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:119)
>> at
>> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:458)
>> at
>> org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:366)
>> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 934)
>> at
>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard.performFinish(ModelConverterWizard.java:246)
>> at
>> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
>> at
>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:373)
>> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
>> at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
>> at org.eclipse.jface.window.Window.open(Window.java:801)
>> at
>> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:115)
>> at
>> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:105)
>> at
>> org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDel egate.java:70)
>> at
>> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:241)
>> at
>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
>> at
>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
>> at
>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>> Caused by: org.eclipse.core.runtime.CoreException: An error occurred
>> while performing this operation.
>> at
>> org.eclipse.emf.common.util.DiagnosticException.toCoreExcept ion(DiagnosticException.java:47)
>> at
>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:235)
>> at
>> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:104)
>> at
>> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
>> at
>> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:116)
>> ... 45 more
>> Caused by: org.eclipse.emf.common.util.DiagnosticException: An error
>> occurred while performing this operation.
>> at
>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:234)
>> ... 48 more
>> Caused by: java.lang.NullPointerException
>> at
>> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process AnnotationDetails(UMLUtil.java:8058)
>> at
>> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process Options(UMLUtil.java:8142)
>> at
>> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.convert (UMLUtil.java:8172)
>> at
>> org.eclipse.uml2.uml.ecore.exporter.UMLExporter.doExport(UML Exporter.java:126)
>> at
>> org.eclipse.emf.exporter.ModelExporter.export(ModelExporter. java:634)
>> at
>> org.eclipse.emf.exporter.ui.contribution.base.ModelExporterW izard.doPerformFinish(ModelExporterWizard.java:113)
>> at
>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:228)
>> ... 48 more
>>
>> Thx.
>>
>> David
>
>
Re: Export to UML from ECore fails, different this time [message #478329 is a reply to message #478321] Fri, 24 April 2009 08:29 Go to previous message
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member
Hi,

If it fixes the problem I will upgrade to 3.5. The ecore is derived from
an annotated xsd using EMF/Teneo that is based on a standard xsd, so
these elements here are the source of the no source element.

<xsd:annotation>
<xsd:documentation>
<p>Indicates that instruments increase in value over time -
perhaps to maturity.</p>
</xsd:documentation>
<xsd:appinfo>
<mddl4db:schema-classification type="Simple"
xmlns:mddl4db="http://www.example.com/mddl4db">property</mddl4db:schema-classification>
<mddl4db:applicable-properties
xmlns:mddl4db="http://www.example.com/mddl4db">accretionBehavior
schedule</mddl4db:applicable-properties>
<mddl4db:inheritable-properties
xmlns:mddl4db="http://www.example.com/mddl4db">calculationType crossrate
valuationBase</mddl4db:inheritable-properties>
</xsd:appinfo>
</xsd:annotation>


Cannot find where mddl4db:schema-classification is defined. If I define
it as an element will the resultant ecore have a source for this?

Thx.

David

James Bruck wrote:
> Hi David,
>
> I see the error in the method processAnnotationDetails in UMLUtil. We try
> to get the eAnnotation.getSource() and then try to use the result. A simple
> null pointer check would seem like a good thing here ;). In your
> particular case, you have an annotation under 'Accretion' with no source
> (open up your mddl4db.ecore). It looks like there is some appinfo details.
>
> I will fix this up in the next 3.5 build. Will you be able to upgrade to
> 3.5?
>
> Cheers,
> - James.
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:gsnksn$kv8$1@build.eclipse.org...
>> Hi David,
>>
>> I've noticed a similar issue that will be addressed in the latest 3.5
>> stream (M7).
>> If you have a specific model and can send it to me, I can test it out with
>> the fix to ensure that your problem is addressed.
>>
>> Cheers,
>> - James.
>>
>> "David Wynter" <david@roamware.co.uk> wrote in message
>> news:gsk9nh$o2q$1@build.eclipse.org...
>>> Hi,
>>>
>>> I saw the previous past on a similar exception. This is transferred
>>> across from EMF newsgroup.
>>>
>>> Version: 3.4.1
>>> Build id: M20080911-1700
>>> java.home=C:\Program Files\Java\jre6
>>>
>>> No matter what setting I use, even Ignore all I get this exception.
>>>
>>> java.lang.reflect.InvocationTargetException
>>> at
>>> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:119)
>>> at
>>> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:458)
>>> at
>>> org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:366)
>>> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 934)
>>> at
>>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard.performFinish(ModelConverterWizard.java:246)
>>> at
>>> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
>>> at
>>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:373)
>>> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
>>> at
>>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
>>> at org.eclipse.jface.window.Window.open(Window.java:801)
>>> at
>>> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:115)
>>> at
>>> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:105)
>>> at
>>> org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDel egate.java:70)
>>> at
>>> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:241)
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
>>> at
>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
>>> at
>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
>>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
>>> at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at
>>> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>>> Caused by: org.eclipse.core.runtime.CoreException: An error occurred
>>> while performing this operation.
>>> at
>>> org.eclipse.emf.common.util.DiagnosticException.toCoreExcept ion(DiagnosticException.java:47)
>>> at
>>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:235)
>>> at
>>> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:104)
>>> at
>>> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
>>> at
>>> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:116)
>>> ... 45 more
>>> Caused by: org.eclipse.emf.common.util.DiagnosticException: An error
>>> occurred while performing this operation.
>>> at
>>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:234)
>>> ... 48 more
>>> Caused by: java.lang.NullPointerException
>>> at
>>> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process AnnotationDetails(UMLUtil.java:8058)
>>> at
>>> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process Options(UMLUtil.java:8142)
>>> at
>>> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.convert (UMLUtil.java:8172)
>>> at
>>> org.eclipse.uml2.uml.ecore.exporter.UMLExporter.doExport(UML Exporter.java:126)
>>> at
>>> org.eclipse.emf.exporter.ModelExporter.export(ModelExporter. java:634)
>>> at
>>> org.eclipse.emf.exporter.ui.contribution.base.ModelExporterW izard.doPerformFinish(ModelExporterWizard.java:113)
>>> at
>>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:228)
>>> ... 48 more
>>>
>>> Thx.
>>>
>>> David
>>
>
>
Re: Export to UML from ECore fails, different this time [message #627508 is a reply to message #478313] Wed, 22 April 2009 17:44 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi David,

I've noticed a similar issue that will be addressed in the latest 3.5 stream
(M7).
If you have a specific model and can send it to me, I can test it out with
the fix to ensure that your problem is addressed.

Cheers,
- James.

"David Wynter" <david@roamware.co.uk> wrote in message
news:gsk9nh$o2q$1@build.eclipse.org...
> Hi,
>
> I saw the previous past on a similar exception. This is transferred across
> from EMF newsgroup.
>
> Version: 3.4.1
> Build id: M20080911-1700
> java.home=C:\Program Files\Java\jre6
>
> No matter what setting I use, even Ignore all I get this exception.
>
> java.lang.reflect.InvocationTargetException
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:119)
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:458)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:366)
> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 934)
> at
> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard.performFinish(ModelConverterWizard.java:246)
> at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:373)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
> at org.eclipse.jface.window.Window.open(Window.java:801)
> at
> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:115)
> at
> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:105)
> at
> org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDel egate.java:70)
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:241)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> Caused by: org.eclipse.core.runtime.CoreException: An error occurred while
> performing this operation.
> at
> org.eclipse.emf.common.util.DiagnosticException.toCoreExcept ion(DiagnosticException.java:47)
> at
> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:235)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:104)
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:116)
> ... 45 more
> Caused by: org.eclipse.emf.common.util.DiagnosticException: An error
> occurred while performing this operation.
> at
> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:234)
> ... 48 more
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process AnnotationDetails(UMLUtil.java:8058)
> at
> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process Options(UMLUtil.java:8142)
> at
> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.convert (UMLUtil.java:8172)
> at
> org.eclipse.uml2.uml.ecore.exporter.UMLExporter.doExport(UML Exporter.java:126)
> at
> org.eclipse.emf.exporter.ModelExporter.export(ModelExporter. java:634)
> at
> org.eclipse.emf.exporter.ui.contribution.base.ModelExporterW izard.doPerformFinish(ModelExporterWizard.java:113)
> at
> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:228)
> ... 48 more
>
> Thx.
>
> David
Re: Export to UML from ECore fails, different this time [message #627509 is a reply to message #478318] Wed, 22 April 2009 20:10 Go to previous message
John T.E. Timm is currently offline John T.E. TimmFriend
Messages: 161
Registered: July 2009
Senior Member
I have a similar problem exporting an ecore model to ecore. I took the
library example schema and imported it into ecore and then attempted ot
export using the "Export model..." option on the genmodel context menu. I
ended up with no option to select referenced genmodels (e.g. Ecore).
Instead it wanted to create a UML model for ecore and then ended up
producing this InvocationTargetException. I can send the schemas I am
using these very simple schemas:

library.xsd

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.org/Library"
xmlns:lib="http://www.example.org/Library"
xmlns:book="http://www.example.org/Book">
<xs:import namespace="http://www.example.org/Book"
schemaLocation="book.xsd"></xs:import>
<xs:element name="library" type="lib:LibraryType" />
<xs:complexType name="LibraryType">
<xs:sequence>
<xs:element name="books" maxOccurs="unbounded" type="book:BookType"
/>
</xs:sequence>
<xs:attribute name="name" type="xs:string"></xs:attribute>
</xs:complexType>
</xs:schema>

book.xsd

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.org/Book"
xmlns:book="http://www.example.org/Book">
<xs:element name="book" type="book:BookType"></xs:element>
<xs:complexType name="BookType">
<xs:sequence>
<xs:element name="title" type="xs:string"/>
<xs:element name="pages" type="xs:int"/>
<xs:element name="category" type="xs:string"/>
<xs:element name="author" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>

I import the library.xsd using the "EMF Model" project wizard which
produces:

library.ecore
book.ecore
library.genmodel

There is nothing particularily special about this step. The ecore models
look fine. Then I choose "Export Model..." from the library.genmodel
context menu and receive the error mentioned above. Any ideas?

Thanks,

JT
Re: Export to UML from ECore fails, different this time [message #627510 is a reply to message #478319] Wed, 22 April 2009 20:12 Go to previous message
John T.E. Timm is currently offline John T.E. TimmFriend
Messages: 161
Registered: July 2009
Senior Member
I mean export ecore to UML. :)
Re: Export to UML from ECore fails, different this time [message #627511 is a reply to message #478318] Thu, 23 April 2009 18:23 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi David,

I see the error in the method processAnnotationDetails in UMLUtil. We try
to get the eAnnotation.getSource() and then try to use the result. A simple
null pointer check would seem like a good thing here ;). In your
particular case, you have an annotation under 'Accretion' with no source
(open up your mddl4db.ecore). It looks like there is some appinfo details.

I will fix this up in the next 3.5 build. Will you be able to upgrade to
3.5?

Cheers,
- James.

"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:gsnksn$kv8$1@build.eclipse.org...
> Hi David,
>
> I've noticed a similar issue that will be addressed in the latest 3.5
> stream (M7).
> If you have a specific model and can send it to me, I can test it out with
> the fix to ensure that your problem is addressed.
>
> Cheers,
> - James.
>
> "David Wynter" <david@roamware.co.uk> wrote in message
> news:gsk9nh$o2q$1@build.eclipse.org...
>> Hi,
>>
>> I saw the previous past on a similar exception. This is transferred
>> across from EMF newsgroup.
>>
>> Version: 3.4.1
>> Build id: M20080911-1700
>> java.home=C:\Program Files\Java\jre6
>>
>> No matter what setting I use, even Ignore all I get this exception.
>>
>> java.lang.reflect.InvocationTargetException
>> at
>> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:119)
>> at
>> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:458)
>> at
>> org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:366)
>> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 934)
>> at
>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard.performFinish(ModelConverterWizard.java:246)
>> at
>> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
>> at
>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:373)
>> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
>> at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
>> at org.eclipse.jface.window.Window.open(Window.java:801)
>> at
>> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:115)
>> at
>> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:105)
>> at
>> org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDel egate.java:70)
>> at
>> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:241)
>> at
>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
>> at
>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
>> at
>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>> Caused by: org.eclipse.core.runtime.CoreException: An error occurred
>> while performing this operation.
>> at
>> org.eclipse.emf.common.util.DiagnosticException.toCoreExcept ion(DiagnosticException.java:47)
>> at
>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:235)
>> at
>> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:104)
>> at
>> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
>> at
>> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:116)
>> ... 45 more
>> Caused by: org.eclipse.emf.common.util.DiagnosticException: An error
>> occurred while performing this operation.
>> at
>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:234)
>> ... 48 more
>> Caused by: java.lang.NullPointerException
>> at
>> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process AnnotationDetails(UMLUtil.java:8058)
>> at
>> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process Options(UMLUtil.java:8142)
>> at
>> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.convert (UMLUtil.java:8172)
>> at
>> org.eclipse.uml2.uml.ecore.exporter.UMLExporter.doExport(UML Exporter.java:126)
>> at
>> org.eclipse.emf.exporter.ModelExporter.export(ModelExporter. java:634)
>> at
>> org.eclipse.emf.exporter.ui.contribution.base.ModelExporterW izard.doPerformFinish(ModelExporterWizard.java:113)
>> at
>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:228)
>> ... 48 more
>>
>> Thx.
>>
>> David
>
>
Re: Export to UML from ECore fails, different this time [message #627518 is a reply to message #478321] Fri, 24 April 2009 08:29 Go to previous message
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member
Hi,

If it fixes the problem I will upgrade to 3.5. The ecore is derived from
an annotated xsd using EMF/Teneo that is based on a standard xsd, so
these elements here are the source of the no source element.

<xsd:annotation>
<xsd:documentation>
<p>Indicates that instruments increase in value over time -
perhaps to maturity.</p>
</xsd:documentation>
<xsd:appinfo>
<mddl4db:schema-classification type="Simple"
xmlns:mddl4db="http://www.example.com/mddl4db">property</mddl4db:schema-classification>
<mddl4db:applicable-properties
xmlns:mddl4db="http://www.example.com/mddl4db">accretionBehavior
schedule</mddl4db:applicable-properties>
<mddl4db:inheritable-properties
xmlns:mddl4db="http://www.example.com/mddl4db">calculationType crossrate
valuationBase</mddl4db:inheritable-properties>
</xsd:appinfo>
</xsd:annotation>


Cannot find where mddl4db:schema-classification is defined. If I define
it as an element will the resultant ecore have a source for this?

Thx.

David

James Bruck wrote:
> Hi David,
>
> I see the error in the method processAnnotationDetails in UMLUtil. We try
> to get the eAnnotation.getSource() and then try to use the result. A simple
> null pointer check would seem like a good thing here ;). In your
> particular case, you have an annotation under 'Accretion' with no source
> (open up your mddl4db.ecore). It looks like there is some appinfo details.
>
> I will fix this up in the next 3.5 build. Will you be able to upgrade to
> 3.5?
>
> Cheers,
> - James.
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:gsnksn$kv8$1@build.eclipse.org...
>> Hi David,
>>
>> I've noticed a similar issue that will be addressed in the latest 3.5
>> stream (M7).
>> If you have a specific model and can send it to me, I can test it out with
>> the fix to ensure that your problem is addressed.
>>
>> Cheers,
>> - James.
>>
>> "David Wynter" <david@roamware.co.uk> wrote in message
>> news:gsk9nh$o2q$1@build.eclipse.org...
>>> Hi,
>>>
>>> I saw the previous past on a similar exception. This is transferred
>>> across from EMF newsgroup.
>>>
>>> Version: 3.4.1
>>> Build id: M20080911-1700
>>> java.home=C:\Program Files\Java\jre6
>>>
>>> No matter what setting I use, even Ignore all I get this exception.
>>>
>>> java.lang.reflect.InvocationTargetException
>>> at
>>> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:119)
>>> at
>>> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:458)
>>> at
>>> org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:366)
>>> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 934)
>>> at
>>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard.performFinish(ModelConverterWizard.java:246)
>>> at
>>> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
>>> at
>>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:373)
>>> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
>>> at
>>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
>>> at org.eclipse.jface.window.Window.open(Window.java:801)
>>> at
>>> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:115)
>>> at
>>> org.eclipse.emf.converter.ui.OpenWizardActionDelegate.run(Op enWizardActionDelegate.java:105)
>>> at
>>> org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDel egate.java:70)
>>> at
>>> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:241)
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:583)
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:500)
>>> at
>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
>>> at
>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
>>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
>>> at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at
>>> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>>> Caused by: org.eclipse.core.runtime.CoreException: An error occurred
>>> while performing this operation.
>>> at
>>> org.eclipse.emf.common.util.DiagnosticException.toCoreExcept ion(DiagnosticException.java:47)
>>> at
>>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:235)
>>> at
>>> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:104)
>>> at
>>> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
>>> at
>>> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:116)
>>> ... 45 more
>>> Caused by: org.eclipse.emf.common.util.DiagnosticException: An error
>>> occurred while performing this operation.
>>> at
>>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:234)
>>> ... 48 more
>>> Caused by: java.lang.NullPointerException
>>> at
>>> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process AnnotationDetails(UMLUtil.java:8058)
>>> at
>>> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.process Options(UMLUtil.java:8142)
>>> at
>>> org.eclipse.uml2.uml.util.UMLUtil$Ecore2UMLConverter.convert (UMLUtil.java:8172)
>>> at
>>> org.eclipse.uml2.uml.ecore.exporter.UMLExporter.doExport(UML Exporter.java:126)
>>> at
>>> org.eclipse.emf.exporter.ModelExporter.export(ModelExporter. java:634)
>>> at
>>> org.eclipse.emf.exporter.ui.contribution.base.ModelExporterW izard.doPerformFinish(ModelExporterWizard.java:113)
>>> at
>>> org.eclipse.emf.converter.ui.contribution.base.ModelConverte rWizard$1.execute(ModelConverterWizard.java:228)
>>> ... 48 more
>>>
>>> Thx.
>>>
>>> David
>>
>
>
Previous Topic:Unable to add required property 'event' in ExecutionOccurrenceSpecification
Next Topic:[Announce] MDT UML2 3.0.0 I200904241604 is available
Goto Forum:
  


Current Time: Sun Aug 14 19:11:16 GMT 2022

Powered by FUDForum. Page generated in 0.02153 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top