|
|
|
|
Re: Export to UML from ECore fails, different this time [message #478321 is a reply to message #478318] |
Thu, 23 April 2009 18:23 |
james bruck 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 |
David Wynter 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 #627511 is a reply to message #478318] |
Thu, 23 April 2009 18:23 |
james bruck 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 |
David Wynter 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
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04778 seconds