Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Compare] Pb comparing a SysML model using SVN
[EMF Compare] Pb comparing a SysML model using SVN [message #136360] Wed, 13 May 2009 15:58 Go to next message
Martin Neidert is currently offline Martin NeidertFriend
Messages: 8
Registered: July 2009
Junior Member
Hi Everyone,


I'm currently working on a SysML model using Topcased (EMF Compare 0.8.1,
Subversive 0.7.7) and I have a problem when trying to compare it with its
latest version from an SVN repository.

When I do so, I get an "org.eclipse.emf.compare.EMFCompareException: Error
while loading resources, input was null" message on my workbench and the
following exception is logged :
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with
uri 'http:///schemas/profile.sysml/_3DJYIB3VEd6GUNPMHrQ6Ug/0' not found.
( file:///C:/Program%20Files/Topcased_2.5/eclipse/profile.sysm l, 1727, 157)
at ...

It seems that a profile used in my model cannot be loaded. Could it be the
bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=199877 striking again ?

I have another UML model that also imports a profile under the same
conditions but this time EMF Compare works perfectly well. Could the
problem be related to the fact that my model is a SysML one, not UML ?

Please, help me :'(


Regards,
Martin NEIDERT
Re: [EMF Compare] Pb comparing a SysML model using SVN [message #136434 is a reply to message #136360] Thu, 14 May 2009 08:31 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050705030307050509040602
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi Martin,

That is most probably it : your model needs a third-party model to be
loaded yet you're using EMF Compare 0.8.x which didn't resolve
references to other models. These changes weren't and won't be
backported in the 0.8 branch.

I can only advise you to get one of the latest 0.9 releases (0.9M7 is
the latest as I write) and if you're using subversive, install the
subversive integration feature we provide alongside it (I don't know if
it is accessible through the update site as I haven't checked it for M7,
but it is available for download at
http://www.eclipse.org/modeling/download.php?file=/modeling/ emft/compare/downloads/drops/0.9.0/S200905050835/emft-compar e-subversive-integration-incubation-0.9.0M7.zip
).

If these latest releases don't solve your problems, don't hesitate to
come back here with the errors you get :).

Laurent Goubet
Obeo

Martin Neidert a
Re: [EMF Compare] Pb comparing a SysML model using SVN [message #136456 is a reply to message #136434] Thu, 14 May 2009 12:16 Go to previous messageGo to next message
Martin Neidert is currently offline Martin NeidertFriend
Messages: 8
Registered: July 2009
Junior Member
Hi Laurent,


Unfortunately, for some reason I can't update EMF Compare (or just any
other plugin) when using Topcased ... and Topcased will probably not be
shipped with the version 0.9 or 1.0 until they are available through the
"release" update-site.

Could you tell me when these releases are planned ?

Anyway, thanks for your answer, and thanks for this nice tool !


Regards,
Martin NEIDERT
Re: [EMF Compare] Pb comparing a SysML model using SVN [message #136815 is a reply to message #136456] Wed, 27 May 2009 09:19 Go to previous messageGo to next message
Cedric Brun is currently offline Cedric BrunFriend
Messages: 431
Registered: July 2009
Senior Member
Hi Martin,

The 1.0 release is part of the Eclipse Galileo simultaneous release in June.
Let's hope topcased will quicly integrate it :)

Cédric

Martin Neidert wrote:

> Hi Laurent,
>
>
> Unfortunately, for some reason I can't update EMF Compare (or just any
> other plugin) when using Topcased ... and Topcased will probably not be
> shipped with the version 0.9 or 1.0 until they are available through the
> "release" update-site.
>
> Could you tell me when these releases are planned ?
>
> Anyway, thanks for your answer, and thanks for this nice tool !
>
>
> Regards,
> Martin NEIDERT


http://cedric.brun.io news and articles on eclipse and eclipse modeling.
Re: [EMF Compare] Pb comparing a SysML model using SVN [message #482038 is a reply to message #136815] Tue, 25 August 2009 08:18 Go to previous messageGo to next message
Martin Neidert is currently offline Martin NeidertFriend
Messages: 8
Registered: July 2009
Junior Member
Hi all,


A few months before I experienced some problems while trying to compare a
SysML model with its last version from an SVN repository using Topcased
2.5 (and EMF Compare 0.8)

I was advised in this newsgroup to try again with a more recent version of
EMF Compare.

I did just that yesterday using Topcased 3.0.1 and EMF Compare 1.0. I also
installed the org.eclipse.emf.compare.team.subversive plugin.

Yet, EMF Compare still crashes when I try to compare my SysML model ...
but this time the EMF Compare view opens and displays the following
exception :

java.lang.ArrayIndexOutOfBoundsException: 0
at
org.eclipse.emf.compare.ui.viewer.content.part.diff.ModelCon tentMergeDiffTab.mapDifferences(ModelContentMergeDiffTab.jav a:607)
at
org.eclipse.emf.compare.ui.viewer.content.part.diff.ModelCon tentMergeDiffTab.setReflectiveInput(ModelContentMergeDiffTab .java:288)
at
org.eclipse.emf.compare.ui.viewer.content.part.ModelContentM ergeTabFolder.setInput(ModelContentMergeTabFolder.java:309)
at
org.eclipse.emf.compare.ui.viewer.content.ModelContentMergeV iewer.updateContent(ModelContentMergeViewer.java:749)
at
org.eclipse.compare.contentmergeviewer.ContentMergeViewer.in ternalRefresh(ContentMergeViewer.java:783)
at
org.eclipse.compare.contentmergeviewer.ContentMergeViewer.in putChanged(ContentMergeViewer.java:683)
at
org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:274)
at
org.eclipse.emf.compare.ui.viewer.content.ModelContentMergeV iewer.setInput(ModelContentMergeViewer.java:301)
at
org.eclipse.compare.CompareViewerSwitchingPane.setInput(Comp areViewerSwitchingPane.java:270)
at
org.eclipse.compare.internal.CompareContentViewerSwitchingPa ne.setInput(CompareContentViewerSwitchingPane.java:132)
at
org.eclipse.compare.CompareEditorInput.internalSetContentPan eInput(CompareEditorInput.java:812)
at
org.eclipse.compare.CompareEditorInput.access$7(CompareEdito rInput.java:810)
at
org.eclipse.compare.CompareEditorInput$10.run(CompareEditorI nput.java:750)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.compare.CompareEditorInput.feed1(CompareEditorIn put.java:744)
at
org.eclipse.compare.CompareEditorInput.feedInput(CompareEdit orInput.java:722)
at
org.eclipse.compare.CompareEditorInput.createContents(Compar eEditorInput.java:545)
at
org.eclipse.compare.internal.CompareEditor.createCompareCont rol(CompareEditor.java:449)
at
org.eclipse.compare.internal.CompareEditor.createPartControl (CompareEditor.java:408)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:662)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462)
...

I get this exception even on very simple SysML models (or UML models ...
but then the ArrayIndexOutOfBoundsException turns into a
NullPointerException ... weird ;\) as long as they make references to
other models.

Am I missing something ? Could anyone help me ? It's sooo frustrating ! :(


Regards,
Martin Neidert
Re: [EMF Compare] Pb comparing a SysML model using SVN [message #482666 is a reply to message #482038] Thu, 27 August 2009 13:17 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090000050507070300070906
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi Martin,

This exception often hides another that's raised before it. Is it the
only one you get in the error log when comparing the problematic model?
And if not, can you paste the stack trace of the first exception?

Laurent Goubet
Obeo

Martin Neidert a
Re: [EMF Compare] Pb comparing a SysML model using SVN [message #483191 is a reply to message #482666] Mon, 31 August 2009 13:59 Go to previous message
Martin Neidert is currently offline Martin NeidertFriend
Messages: 8
Registered: July 2009
Junior Member
Hi Laurent,


Yes, this is the only exception I get when I try to run EMF Compare on a
SysML model that references other models.

But ! When I try to run EMF Compare on a model that has no reference (the
one I used only contained a block), I get a bunch of
NullPointerExceptions. Here's one of them :

!ENTRY org.eclipse.jface 4 2 2009-08-31 15:08:33.421
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
at
org.eclipse.uml2.common.util.UML2Util.getResourceBundle(UML2 Util.java:442)
at
org.eclipse.uml2.common.util.UML2Util.getResourceBundle(UML2 Util.java:472)
at org.eclipse.uml2.common.util.UML2Util.getString(UML2Util.jav a:498)
at
org.eclipse.uml2.uml.internal.operations.NamedElementOperati ons.getLabel(NamedElementOperations.java:246)
at
org.eclipse.uml2.uml.internal.impl.NamedElementImpl.getLabel (NamedElementImpl.java:556)
at
org.eclipse.uml2.uml.edit.providers.ElementItemProvider.appe ndLabel(ElementItemProvider.java:534)
at
org.eclipse.uml2.uml.edit.providers.ModelItemProvider.getTex t(ModelItemProvider.java:114)
at
org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider .getText(AdapterFactoryLabelProvider.java:380)
at
org.eclipse.jface.viewers.WrappedViewerLabelProvider.getText (WrappedViewerLabelProvider.java:108)
at
org.eclipse.jface.viewers.WrappedViewerLabelProvider.update( WrappedViewerLabelProvider.java:164)
at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn. java:145)
at
org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(Ab stractTreeViewer.java:932)
at
org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeR unnable.run(AbstractTreeViewer.java:102)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:888)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
at
org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(Ab stractTreeViewer.java:1012)
at
org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRun nable.run(StructuredViewer.java:481)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:888)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
at
org.eclipse.jface.viewers.StructuredViewer.updateItem(Struct uredViewer.java:2111)
at
org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem( AbstractTreeViewer.java:827)
at
org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractT reeViewer.java:802)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.jface.viewers.AbstractTreeViewer.createChildren( AbstractTreeViewer.java:776)
at
org.eclipse.jface.viewers.TreeViewer.createChildren(TreeView er.java:639)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalInitial izeTree(AbstractTreeViewer.java:1490)
at
org.eclipse.jface.viewers.TreeViewer.internalInitializeTree( TreeViewer.java:828)
at
org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractT reeViewer.java:1474)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1392)
at
org.eclipse.jface.viewers.TreeViewer.preservingSelection(Tre eViewer.java:402)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1353)
at
org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(Ab stractTreeViewer.java:1467)
at
org.eclipse.emf.compare.ui.viewer.content.part.diff.ModelCon tentMergeDiffTab.inputChanged(ModelContentMergeDiffTab.java: 365)
at
org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:274)
at
org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:1634)
at
org.eclipse.emf.compare.ui.viewer.content.part.diff.ModelCon tentMergeDiffTab.setReflectiveInput(ModelContentMergeDiffTab .java:284)
at
org.eclipse.emf.compare.ui.viewer.content.part.ModelContentM ergeTabFolder.setInput(ModelContentMergeTabFolder.java:309)
at
org.eclipse.emf.compare.ui.viewer.content.ModelContentMergeV iewer.updateContent(ModelContentMergeViewer.java:749)
at
org.eclipse.compare.contentmergeviewer.ContentMergeViewer.in ternalRefresh(ContentMergeViewer.java:783)
at
org.eclipse.compare.contentmergeviewer.ContentMergeViewer.in putChanged(ContentMergeViewer.java:683)
at
org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:274)
at
org.eclipse.emf.compare.ui.viewer.content.ModelContentMergeV iewer.setInput(ModelContentMergeViewer.java:301)
at
org.eclipse.compare.CompareViewerSwitchingPane.setInput(Comp areViewerSwitchingPane.java:270)
at
org.eclipse.compare.internal.CompareContentViewerSwitchingPa ne.setInput(CompareContentViewerSwitchingPane.java:132)
at
org.eclipse.compare.CompareEditorInput.internalSetContentPan eInput(CompareEditorInput.java:812)
at
org.eclipse.compare.CompareEditorInput.access$7(CompareEdito rInput.java:810)
at
org.eclipse.compare.CompareEditorInput$10.run(CompareEditorI nput.java:750)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.compare.CompareEditorInput.feed1(CompareEditorIn put.java:744)
at
org.eclipse.compare.CompareEditorInput.feedInput(CompareEdit orInput.java:722)
at
org.eclipse.compare.CompareEditorInput.createContents(Compar eEditorInput.java:545)
at
org.eclipse.compare.internal.CompareEditor.createCompareCont rol(CompareEditor.java:449)
at
org.eclipse.compare.internal.CompareEditor.createPartControl (CompareEditor.java:408)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:662)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:31 3)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:180)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:270)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:473)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 08)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
at
org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
at
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:225)
at
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:213)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:778)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:677)
at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:638)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2854)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2762)
at
org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2754)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2705)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2701)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2685)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2676)
at
org.eclipse.compare.internal.CompareUIPlugin$1.run(CompareUI Plugin.java:518)
at
org.eclipse.compare.internal.CompareUIPlugin.syncExec(Compar eUIPlugin.java:1258)
at
org.eclipse.compare.internal.CompareUIPlugin.internalOpenEdi tor(CompareUIPlugin.java:529)
at
org.eclipse.compare.internal.CompareUIPlugin.openCompareEdit or(CompareUIPlugin.java:491)
at
org.eclipse.compare.CompareUI.openCompareEditorOnPage(Compar eUI.java:168)
at org.eclipse.compare.CompareUI.openCompareEditor(CompareUI.ja va:137)
at org.eclipse.compare.CompareUI.openCompareEditor(CompareUI.ja va:121)
at
org.eclipse.team.svn.ui.compare.ResourceCompareInput.openCom pareEditor(ResourceCompareInput.java:116)
at
org.eclipse.team.svn.ui.operation.CompareResourcesInternalOp eration$4$1.run(CompareResourcesInternalOperation.java:165)
at
org.eclipse.ui.internal.UILockListener.doPendingWork(UILockL istener.java:155)
at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer. java:158)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
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:194)
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:368)
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: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

I hope this will help. I'll try some other things in the meanwhile.


Regards,
Martin Neidert
Re: [EMF Compare] Pb comparing a SysML model using SVN [message #620951 is a reply to message #136360] Thu, 14 May 2009 08:31 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050705030307050509040602
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi Martin,

That is most probably it : your model needs a third-party model to be
loaded yet you're using EMF Compare 0.8.x which didn't resolve
references to other models. These changes weren't and won't be
backported in the 0.8 branch.

I can only advise you to get one of the latest 0.9 releases (0.9M7 is
the latest as I write) and if you're using subversive, install the
subversive integration feature we provide alongside it (I don't know if
it is accessible through the update site as I haven't checked it for M7,
but it is available for download at
http://www.eclipse.org/modeling/download.php?file=/modeling/ emft/compare/downloads/drops/0.9.0/S200905050835/emft-compar e-subversive-integration-incubation-0.9.0M7.zip
).

If these latest releases don't solve your problems, don't hesitate to
come back here with the errors you get :).

Laurent Goubet
Obeo

Martin Neidert a
Re: [EMF Compare] Pb comparing a SysML model using SVN [message #620953 is a reply to message #136434] Thu, 14 May 2009 12:16 Go to previous message
Martin Neidert is currently offline Martin NeidertFriend
Messages: 8
Registered: July 2009
Junior Member
Hi Laurent,


Unfortunately, for some reason I can't update EMF Compare (or just any
other plugin) when using Topcased ... and Topcased will probably not be
shipped with the version 0.9 or 1.0 until they are available through the
"release" update-site.

Could you tell me when these releases are planned ?

Anyway, thanks for your answer, and thanks for this nice tool !


Regards,
Martin NEIDERT
Re: [EMF Compare] Pb comparing a SysML model using SVN [message #620983 is a reply to message #136456] Wed, 27 May 2009 09:19 Go to previous message
Cedric Brun is currently offline Cedric BrunFriend
Messages: 431
Registered: July 2009
Senior Member
Hi Martin,

The 1.0 release is part of the Eclipse Galileo simultaneous release in June.
Let's hope topcased will quicly integrate it :)

Cédric

Martin Neidert wrote:

> Hi Laurent,
>
>
> Unfortunately, for some reason I can't update EMF Compare (or just any
> other plugin) when using Topcased ... and Topcased will probably not be
> shipped with the version 0.9 or 1.0 until they are available through the
> "release" update-site.
>
> Could you tell me when these releases are planned ?
>
> Anyway, thanks for your answer, and thanks for this nice tool !
>
>
> Regards,
> Martin NEIDERT


http://cedric.brun.io news and articles on eclipse and eclipse modeling.
Re: [EMF Compare] Pb comparing a SysML model using SVN [message #621331 is a reply to message #136815] Tue, 25 August 2009 08:18 Go to previous message
Martin Neidert is currently offline Martin NeidertFriend
Messages: 8
Registered: July 2009
Junior Member
Hi all,


A few months before I experienced some problems while trying to compare a
SysML model with its last version from an SVN repository using Topcased
2.5 (and EMF Compare 0.8)

I was advised in this newsgroup to try again with a more recent version of
EMF Compare.

I did just that yesterday using Topcased 3.0.1 and EMF Compare 1.0. I also
installed the org.eclipse.emf.compare.team.subversive plugin.

Yet, EMF Compare still crashes when I try to compare my SysML model ...
but this time the EMF Compare view opens and displays the following
exception :

java.lang.ArrayIndexOutOfBoundsException: 0
at
org.eclipse.emf.compare.ui.viewer.content.part.diff.ModelCon tentMergeDiffTab.mapDifferences(ModelContentMergeDiffTab.jav a:607)
at
org.eclipse.emf.compare.ui.viewer.content.part.diff.ModelCon tentMergeDiffTab.setReflectiveInput(ModelContentMergeDiffTab .java:288)
at
org.eclipse.emf.compare.ui.viewer.content.part.ModelContentM ergeTabFolder.setInput(ModelContentMergeTabFolder.java:309)
at
org.eclipse.emf.compare.ui.viewer.content.ModelContentMergeV iewer.updateContent(ModelContentMergeViewer.java:749)
at
org.eclipse.compare.contentmergeviewer.ContentMergeViewer.in ternalRefresh(ContentMergeViewer.java:783)
at
org.eclipse.compare.contentmergeviewer.ContentMergeViewer.in putChanged(ContentMergeViewer.java:683)
at
org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:274)
at
org.eclipse.emf.compare.ui.viewer.content.ModelContentMergeV iewer.setInput(ModelContentMergeViewer.java:301)
at
org.eclipse.compare.CompareViewerSwitchingPane.setInput(Comp areViewerSwitchingPane.java:270)
at
org.eclipse.compare.internal.CompareContentViewerSwitchingPa ne.setInput(CompareContentViewerSwitchingPane.java:132)
at
org.eclipse.compare.CompareEditorInput.internalSetContentPan eInput(CompareEditorInput.java:812)
at
org.eclipse.compare.CompareEditorInput.access$7(CompareEdito rInput.java:810)
at
org.eclipse.compare.CompareEditorInput$10.run(CompareEditorI nput.java:750)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.compare.CompareEditorInput.feed1(CompareEditorIn put.java:744)
at
org.eclipse.compare.CompareEditorInput.feedInput(CompareEdit orInput.java:722)
at
org.eclipse.compare.CompareEditorInput.createContents(Compar eEditorInput.java:545)
at
org.eclipse.compare.internal.CompareEditor.createCompareCont rol(CompareEditor.java:449)
at
org.eclipse.compare.internal.CompareEditor.createPartControl (CompareEditor.java:408)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:662)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462)
...

I get this exception even on very simple SysML models (or UML models ...
but then the ArrayIndexOutOfBoundsException turns into a
NullPointerException ... weird ;\) as long as they make references to
other models.

Am I missing something ? Could anyone help me ? It's sooo frustrating ! :(


Regards,
Martin Neidert
Re: [EMF Compare] Pb comparing a SysML model using SVN [message #621336 is a reply to message #482038] Thu, 27 August 2009 13:17 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090000050507070300070906
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi Martin,

This exception often hides another that's raised before it. Is it the
only one you get in the error log when comparing the problematic model?
And if not, can you paste the stack trace of the first exception?

Laurent Goubet
Obeo

Martin Neidert a
Re: [EMF Compare] Pb comparing a SysML model using SVN [message #621344 is a reply to message #482666] Mon, 31 August 2009 13:59 Go to previous message
Martin Neidert is currently offline Martin NeidertFriend
Messages: 8
Registered: July 2009
Junior Member
Hi Laurent,


Yes, this is the only exception I get when I try to run EMF Compare on a
SysML model that references other models.

But ! When I try to run EMF Compare on a model that has no reference (the
one I used only contained a block), I get a bunch of
NullPointerExceptions. Here's one of them :

!ENTRY org.eclipse.jface 4 2 2009-08-31 15:08:33.421
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
at
org.eclipse.uml2.common.util.UML2Util.getResourceBundle(UML2 Util.java:442)
at
org.eclipse.uml2.common.util.UML2Util.getResourceBundle(UML2 Util.java:472)
at org.eclipse.uml2.common.util.UML2Util.getString(UML2Util.jav a:498)
at
org.eclipse.uml2.uml.internal.operations.NamedElementOperati ons.getLabel(NamedElementOperations.java:246)
at
org.eclipse.uml2.uml.internal.impl.NamedElementImpl.getLabel (NamedElementImpl.java:556)
at
org.eclipse.uml2.uml.edit.providers.ElementItemProvider.appe ndLabel(ElementItemProvider.java:534)
at
org.eclipse.uml2.uml.edit.providers.ModelItemProvider.getTex t(ModelItemProvider.java:114)
at
org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider .getText(AdapterFactoryLabelProvider.java:380)
at
org.eclipse.jface.viewers.WrappedViewerLabelProvider.getText (WrappedViewerLabelProvider.java:108)
at
org.eclipse.jface.viewers.WrappedViewerLabelProvider.update( WrappedViewerLabelProvider.java:164)
at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn. java:145)
at
org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(Ab stractTreeViewer.java:932)
at
org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeR unnable.run(AbstractTreeViewer.java:102)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:888)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
at
org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(Ab stractTreeViewer.java:1012)
at
org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRun nable.run(StructuredViewer.java:481)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:888)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
at
org.eclipse.jface.viewers.StructuredViewer.updateItem(Struct uredViewer.java:2111)
at
org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem( AbstractTreeViewer.java:827)
at
org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractT reeViewer.java:802)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.jface.viewers.AbstractTreeViewer.createChildren( AbstractTreeViewer.java:776)
at
org.eclipse.jface.viewers.TreeViewer.createChildren(TreeView er.java:639)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalInitial izeTree(AbstractTreeViewer.java:1490)
at
org.eclipse.jface.viewers.TreeViewer.internalInitializeTree( TreeViewer.java:828)
at
org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractT reeViewer.java:1474)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1392)
at
org.eclipse.jface.viewers.TreeViewer.preservingSelection(Tre eViewer.java:402)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1353)
at
org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(Ab stractTreeViewer.java:1467)
at
org.eclipse.emf.compare.ui.viewer.content.part.diff.ModelCon tentMergeDiffTab.inputChanged(ModelContentMergeDiffTab.java: 365)
at
org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:274)
at
org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:1634)
at
org.eclipse.emf.compare.ui.viewer.content.part.diff.ModelCon tentMergeDiffTab.setReflectiveInput(ModelContentMergeDiffTab .java:284)
at
org.eclipse.emf.compare.ui.viewer.content.part.ModelContentM ergeTabFolder.setInput(ModelContentMergeTabFolder.java:309)
at
org.eclipse.emf.compare.ui.viewer.content.ModelContentMergeV iewer.updateContent(ModelContentMergeViewer.java:749)
at
org.eclipse.compare.contentmergeviewer.ContentMergeViewer.in ternalRefresh(ContentMergeViewer.java:783)
at
org.eclipse.compare.contentmergeviewer.ContentMergeViewer.in putChanged(ContentMergeViewer.java:683)
at
org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:274)
at
org.eclipse.emf.compare.ui.viewer.content.ModelContentMergeV iewer.setInput(ModelContentMergeViewer.java:301)
at
org.eclipse.compare.CompareViewerSwitchingPane.setInput(Comp areViewerSwitchingPane.java:270)
at
org.eclipse.compare.internal.CompareContentViewerSwitchingPa ne.setInput(CompareContentViewerSwitchingPane.java:132)
at
org.eclipse.compare.CompareEditorInput.internalSetContentPan eInput(CompareEditorInput.java:812)
at
org.eclipse.compare.CompareEditorInput.access$7(CompareEdito rInput.java:810)
at
org.eclipse.compare.CompareEditorInput$10.run(CompareEditorI nput.java:750)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.compare.CompareEditorInput.feed1(CompareEditorIn put.java:744)
at
org.eclipse.compare.CompareEditorInput.feedInput(CompareEdit orInput.java:722)
at
org.eclipse.compare.CompareEditorInput.createContents(Compar eEditorInput.java:545)
at
org.eclipse.compare.internal.CompareEditor.createCompareCont rol(CompareEditor.java:449)
at
org.eclipse.compare.internal.CompareEditor.createPartControl (CompareEditor.java:408)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:662)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:31 3)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:180)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:270)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:473)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 08)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
at
org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
at
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:225)
at
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:213)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:778)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:677)
at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:638)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2854)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2762)
at
org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2754)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2705)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2701)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2685)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2676)
at
org.eclipse.compare.internal.CompareUIPlugin$1.run(CompareUI Plugin.java:518)
at
org.eclipse.compare.internal.CompareUIPlugin.syncExec(Compar eUIPlugin.java:1258)
at
org.eclipse.compare.internal.CompareUIPlugin.internalOpenEdi tor(CompareUIPlugin.java:529)
at
org.eclipse.compare.internal.CompareUIPlugin.openCompareEdit or(CompareUIPlugin.java:491)
at
org.eclipse.compare.CompareUI.openCompareEditorOnPage(Compar eUI.java:168)
at org.eclipse.compare.CompareUI.openCompareEditor(CompareUI.ja va:137)
at org.eclipse.compare.CompareUI.openCompareEditor(CompareUI.ja va:121)
at
org.eclipse.team.svn.ui.compare.ResourceCompareInput.openCom pareEditor(ResourceCompareInput.java:116)
at
org.eclipse.team.svn.ui.operation.CompareResourcesInternalOp eration$4$1.run(CompareResourcesInternalOperation.java:165)
at
org.eclipse.ui.internal.UILockListener.doPendingWork(UILockL istener.java:155)
at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer. java:158)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
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:194)
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:368)
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: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

I hope this will help. I'll try some other things in the meanwhile.


Regards,
Martin Neidert
Previous Topic:[EMF Compare] 3 way match
Next Topic:[Announce] Eclipse Modeling Days
Goto Forum:
  


Current Time: Mon Feb 26 07:15:39 GMT 2024

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

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

Back to the top