Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Creating Profile, applying stereotype on a Class, saving model --> trouble
Creating Profile, applying stereotype on a Class, saving model --> trouble [message #472540] Mon, 16 April 2007 14:15 Go to next message
Eclipse UserFriend
Originally posted by: guillaume.clement.gmail.com

Hi,

I use the 2 tutorials (getting started and Introduction to UML2 profiles)
to simply create a model, add a package and a stereotyped class.

The creation of the model, the package and the profile (with stereotype)
seem to be good. (I follow the turorials)

The model is serialized into an output file.
Here is the code :
IntroductionToUML2Profiles.registerResourceFactories();
IntroductionToUML2Profiles.registerPathmaps(URI.createURI(ar gs[0]));

Model model = UMLFactory.eINSTANCE.createModel();
model.setName("MonModele");

Package package_ =
GettingStartedWithUML2.createPackage(model.getNearestPackage (), "UnPackage");

Profile test = IntroductionToUML2Profiles.createProfile("documentation");

Stereotype stereotype = IntroductionToUML2Profiles.createStereotype(
test, "document", false);

Class metaclass = IntroductionToUML2Profiles
.referenceMetaclass(test, UMLPackage.Literals.CLASS.getName());

IntroductionToUML2Profiles
.createExtension(metaclass, stereotype, false);

test.define();
package_.applyProfile(test);

Class maClasse =
GettingStartedWithUML2.createClass(package_,"UneClasse",false);
maClasse.applyStereotype(stereotype);

GettingStartedWithUML2.save(model,URI.createURI("test.uml"));

But when I try to see the model with the editor I got an error message
from the details panel :


java.lang.ArrayIndexOutOfBoundsException: -1
at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:5 14)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObjectF orURIFragmentRootSegment(ResourceImpl.java:642)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObject( ResourceImpl.java:692)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObject( ResourceImpl.java:671)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardRefer ences(XMLHandler.java:989)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHan dler.java:1071)
at
org.eclipse.uml2.uml.internal.resource.UMLHandler.endDocumen t(UMLHandler.java:43)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown
Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:180)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:179)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1094)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:900)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:249)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:264)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:390)
at
org.eclipse.uml2.uml.editor.presentation.UMLEditor.createMod elGen(UMLEditor.java:879)
at
org.eclipse.uml2.uml.editor.presentation.UMLEditor.createMod el(UMLEditor.java:912)
at
org.eclipse.uml2.uml.editor.presentation.UMLEditor.createPag es(UMLEditor.java:1012)
at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:277)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:609)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:379)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:566)
at
org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:219)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2571)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2504)
at
org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPag e.java:2496)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2481)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2476)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2461)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:515)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:474)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:285)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:138)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:19 5)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:17 6)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:268)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:244)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:310)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:618)
at
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:819)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:850)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:45)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:15 3)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:817)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1078)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1177)
at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3465)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3079)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1945)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1909)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:425)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
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.internal.app.EclipseAppContainer.callMet hod(EclipseAppContainer.java:522)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:147)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:104)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:74)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:354)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:170)
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.core.launcher.Main.invokeFramework(Main.java:339 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:283)
at org.eclipse.core.launcher.Main.run(Main.java:984)
at org.eclipse.core.launcher.Main.main(Main.java:959)

Any idea ?

Thx

Guillaume
Re: Creating Profile, applying stereotype on a Class, saving model --> trouble [message #472551 is a reply to message #472540] Wed, 18 April 2007 13:50 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Guillaume,

I'm thinking that we'll need to change the sample code for these articles
since this issue comes up fairly often (you should be able to find similar
threads if you search the newsgroup)... :(

The cause of the problem is that you are saving the model (adding it to a
resource set an serializing it) without the profile having been added to the
same resource set (and serialized). To avoid the problem, be sure that you
save the profile first.

Kenn

"Guillaume Clement" <guillaume.clement@gmail.com> wrote in message
news:5f6958b23dc63f94bdb486d03c152727$1@www.eclipse.org...
> Hi,
>
> I use the 2 tutorials (getting started and Introduction to UML2 profiles)
> to simply create a model, add a package and a stereotyped class.
>
> The creation of the model, the package and the profile (with stereotype)
> seem to be good. (I follow the turorials)
>
> The model is serialized into an output file.
> Here is the code :
> IntroductionToUML2Profiles.registerResourceFactories();
> IntroductionToUML2Profiles.registerPathmaps(URI.createURI(ar gs[0]));
>
> Model model = UMLFactory.eINSTANCE.createModel();
> model.setName("MonModele");
> Package package_ =
> GettingStartedWithUML2.createPackage(model.getNearestPackage (), "UnPackage");
> Profile test =
> IntroductionToUML2Profiles.createProfile("documentation");
>
> Stereotype stereotype = IntroductionToUML2Profiles.createStereotype(
> test, "document", false);
>
> Class metaclass = IntroductionToUML2Profiles
> .referenceMetaclass(test, UMLPackage.Literals.CLASS.getName());
>
> IntroductionToUML2Profiles
> .createExtension(metaclass, stereotype, false);
>
> test.define();
> package_.applyProfile(test);
>
> Class maClasse =
> GettingStartedWithUML2.createClass(package_,"UneClasse",false);
> maClasse.applyStereotype(stereotype);
>
> GettingStartedWithUML2.save(model,URI.createURI("test.uml"));
>
> But when I try to see the model with the editor I got an error message
> from the details panel :
>
> java.lang.ArrayIndexOutOfBoundsException: -1
> at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:5 14)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObjectF orURIFragmentRootSegment(ResourceImpl.java:642)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObject( ResourceImpl.java:692)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObject( ResourceImpl.java:671)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardRefer ences(XMLHandler.java:989)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHan dler.java:1071)
> at
> org.eclipse.uml2.uml.internal.resource.UMLHandler.endDocumen t(UMLHandler.java:43)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown
> Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:180)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:179)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1094)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:900)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:249)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:264)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:390)
> at
> org.eclipse.uml2.uml.editor.presentation.UMLEditor.createMod elGen(UMLEditor.java:879)
> at
> org.eclipse.uml2.uml.editor.presentation.UMLEditor.createMod el(UMLEditor.java:912)
> at
> org.eclipse.uml2.uml.editor.presentation.UMLEditor.createPag es(UMLEditor.java:1012)
> at
> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:277)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:609)
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:379)
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:566)
> at
> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:219)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2571)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2504)
> at
> org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPag e.java:2496)
> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2481)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2476)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2461)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:515)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:474)
> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:285)
> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:138)
> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:19 5)
> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:17 6)
> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:268)
> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:244)
> at
> org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:310)
> at
> org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:618)
> at
> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:819)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:850)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:45)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:15 3)
> at
> org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:817)
> at
> org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1078)
> at
> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1177)
> at
> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3465)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3079)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1945)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1909)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:425)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> 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.internal.app.EclipseAppContainer.callMet hod(EclipseAppContainer.java:522)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:147)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:104)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:74)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:354)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:170)
> 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.core.launcher.Main.invokeFramework(Main.java:339 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:283)
> at org.eclipse.core.launcher.Main.run(Main.java:984)
> at org.eclipse.core.launcher.Main.main(Main.java:959)
>
> Any idea ?
>
> Thx
>
> Guillaume
>
Re: Creating Profile, applying stereotype on a Class, saving model --> trouble [message #607715 is a reply to message #472540] Wed, 18 April 2007 13:50 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Guillaume,

I'm thinking that we'll need to change the sample code for these articles
since this issue comes up fairly often (you should be able to find similar
threads if you search the newsgroup)... :(

The cause of the problem is that you are saving the model (adding it to a
resource set an serializing it) without the profile having been added to the
same resource set (and serialized). To avoid the problem, be sure that you
save the profile first.

Kenn

"Guillaume Clement" <guillaume.clement@gmail.com> wrote in message
news:5f6958b23dc63f94bdb486d03c152727$1@www.eclipse.org...
> Hi,
>
> I use the 2 tutorials (getting started and Introduction to UML2 profiles)
> to simply create a model, add a package and a stereotyped class.
>
> The creation of the model, the package and the profile (with stereotype)
> seem to be good. (I follow the turorials)
>
> The model is serialized into an output file.
> Here is the code :
> IntroductionToUML2Profiles.registerResourceFactories();
> IntroductionToUML2Profiles.registerPathmaps(URI.createURI(ar gs[0]));
>
> Model model = UMLFactory.eINSTANCE.createModel();
> model.setName("MonModele");
> Package package_ =
> GettingStartedWithUML2.createPackage(model.getNearestPackage (), "UnPackage");
> Profile test =
> IntroductionToUML2Profiles.createProfile("documentation");
>
> Stereotype stereotype = IntroductionToUML2Profiles.createStereotype(
> test, "document", false);
>
> Class metaclass = IntroductionToUML2Profiles
> .referenceMetaclass(test, UMLPackage.Literals.CLASS.getName());
>
> IntroductionToUML2Profiles
> .createExtension(metaclass, stereotype, false);
>
> test.define();
> package_.applyProfile(test);
>
> Class maClasse =
> GettingStartedWithUML2.createClass(package_,"UneClasse",false);
> maClasse.applyStereotype(stereotype);
>
> GettingStartedWithUML2.save(model,URI.createURI("test.uml"));
>
> But when I try to see the model with the editor I got an error message
> from the details panel :
>
> java.lang.ArrayIndexOutOfBoundsException: -1
> at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:5 14)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObjectF orURIFragmentRootSegment(ResourceImpl.java:642)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObject( ResourceImpl.java:692)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObject( ResourceImpl.java:671)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardRefer ences(XMLHandler.java:989)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHan dler.java:1071)
> at
> org.eclipse.uml2.uml.internal.resource.UMLHandler.endDocumen t(UMLHandler.java:43)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown
> Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:180)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:179)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1094)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:900)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:249)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:264)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:390)
> at
> org.eclipse.uml2.uml.editor.presentation.UMLEditor.createMod elGen(UMLEditor.java:879)
> at
> org.eclipse.uml2.uml.editor.presentation.UMLEditor.createMod el(UMLEditor.java:912)
> at
> org.eclipse.uml2.uml.editor.presentation.UMLEditor.createPag es(UMLEditor.java:1012)
> at
> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:277)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:609)
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:379)
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:566)
> at
> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:219)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2571)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2504)
> at
> org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPag e.java:2496)
> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2481)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2476)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2461)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:515)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:474)
> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:285)
> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:138)
> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:19 5)
> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:17 6)
> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:268)
> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:244)
> at
> org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:310)
> at
> org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:618)
> at
> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:819)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:850)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:45)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:15 3)
> at
> org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:817)
> at
> org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1078)
> at
> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1177)
> at
> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3465)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3079)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1945)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1909)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:425)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> 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.internal.app.EclipseAppContainer.callMet hod(EclipseAppContainer.java:522)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:147)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:104)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:74)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:354)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:170)
> 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.core.launcher.Main.invokeFramework(Main.java:339 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:283)
> at org.eclipse.core.launcher.Main.run(Main.java:984)
> at org.eclipse.core.launcher.Main.main(Main.java:959)
>
> Any idea ?
>
> Thx
>
> Guillaume
>
Previous Topic:minor extensions to the UML metamodel
Next Topic:UML Testing profile
Goto Forum:
  


Current Time: Fri Apr 19 21:21:55 GMT 2024

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

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

Back to the top