Error reverse engineering on ApolloTest project

Use this forum for general discussion, feature requests or to report problems.

Error reverse engineering on ApolloTest project

Postby mark1 » Mon Jan 22, 2007 11:05 am

Hi there,

I have managed to install Apollo manually, but am getting an error when trying to view the diagram for the ApolloTest project (from the tutorial).

When I try and
- Open in Diagram Editor - Error while loading class diagram
. Error reverse engineering x2
- Open in Diagram view - same error as above.

When I try and open the model.auml_diagram I see the following error.

java.lang.NullPointerException
at com.gentleware.uml2.resource.xmi.A.A.E.A(Unknown Source)
at com.gentleware.uml2.resource.xmi.A.A.A.A(Unknown Source)
at com.gentleware.uml2.resource.xmi.A.A.A.getPackageFragmentRootId(Unknown Source)
at com.gentleware.uml2.resource.xmi.A.A.E.A(Unknown Source)
at com.gentleware.uml2.resource.xmi.XmiIdProvider.A(Unknown Source)
at com.gentleware.uml2.resource.xmi.XmiIdProvider.getXmiId(Unknown Source)
at com.gentleware.uml2.resource.xmi.NamedElementToIdMap.get(Unknown Source)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.getID(XMLResourceImpl.java:379)
at org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil.getProxyID(EMFCoreUtil.java:551)
at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.registerModel(GraphicalEditPart.java:1137)
at org.eclipse.gef.editparts.AbstractEditPart.register(AbstractEditPart.java:757)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:229)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:212)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
at org.eclipse.gef.editparts.SimpleRootEditPart.setContents(SimpleRootEditPart.java:101)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:583)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:592)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initializeGraphicalViewerContents(DiagramEditor.java:854)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initializeGraphicalViewer(DiagramEditor.java:847)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFlyOutPalette.initializeGraphicalViewer(DiagramEditorWithFlyOutPalette.java:112)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.createGraphicalViewer(DiagramEditor.java:791)
at org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(GraphicalEditor.java:163)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFlyOutPalette.createPartControl(DiagramEditorWithFlyOutPalette.java:310)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.createPartControl(DiagramDocumentEditor.java:1459)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2595)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528)
at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2500)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2485)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:275)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:139)
at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:49)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:190)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:174)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:267)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:243)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:306)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:653)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:817)

Can anyone help ??

Many thanks

Mark
Mark
mark1
 
Posts: 2
Joined: Mon Jan 22, 2007 11:00 am
Location: London, UK

Re: Error reverse engineering on ApolloTest project

Postby [gw] Jan Koehnlein » Fri Jan 26, 2007 3:40 pm

Hi,

it looks like Apollo is missing the Apache Derby feature. You can download it from the callisto update site.

If the problem persists, please file a support request.

BTW, Apache Derby will no longer be necessary for Apollo 1.1 which is about to be released. Stay tuned.
Jan Koehnlein
[gw] Jan Koehnlein
 
Posts: 116
Joined: Thu Jul 14, 2005 10:54 am

Re: Error reverse engineering on ApolloTest project

Postby mark1 » Fri Jan 26, 2007 4:09 pm

Hi there,

I believe Derby is all ok. But I am still getting the error.
Derby Network server is running ok.

And I can get sys info from derby

------------------ Java Information ------------------
Java Version: 1.3.1_18
Java Vendor: Sun Microsystems Inc.
Java home: C:\Java\jdk1.3.1_18\jre
Java classpath: C:\all\eclipse\workspace\Croner [local]\webcentre\feed\classes;C:\all\eclipse\workspace\Croner [local]\webcentre\classes;C:\all\eclipse\workspace\Croner [local]\CLASSES\webappCommon.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\bvcore.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\bvdmem.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\bvweb.jar;C:\all\eclipse\workspace\Croner [local]\webcentre\feed\lib\classes12.zip;C:\all\eclipse\workspace\Croner [local]\CLASSES\commerce.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\commercecore.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\commerceIEP.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\demandAcl.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\demandApp.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\demandservices.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\emarketing.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\emarketingApp.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\emarketingTag.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\iepcore.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\ieportal.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\lucene-1.2.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\servicefwk.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\servlet.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\smgrcache.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\struts.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\tools121.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\webapp.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\bv_lucene.jar;C:\all\eclipse\workspace\Croner [local]\webcentre\feed\lib\log4j-1.2.8.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\commons-logging.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\jakarta-regexp-1.2.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\jaxp.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\jakarta-oro.jar;C:\all\eclipse\workspace\Croner [local]\webcentre\athens-agent-java-3.7.0\lib\athens-agent-3.7.0.jar;C:\all\eclipse\workspace\Croner [local]\webcentre\scriptroot\croner\jsp\WEB-INF\lib\commons-codec-1.3.jar;C:\all\eclipse\workspace\Croner [local]\webcentre\scriptroot\croner\jsp\WEB-INF\lib\commons-httpclient-3.0.1.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\commons-fileupload.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\bvfsearch.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\bvidl.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\commons-beanutils.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\commons-collections.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\commons-digester.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\commons-lang.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\commons-validator.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\cup.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\ejb.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\iepldap.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\jdom.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\mridl.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\portal.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\publish.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\rulemanager.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\SchemaCenter.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\ServerMonitor.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\struts-legacy.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\tools.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\tradingconnector.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\utility.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\xalan.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\xerces.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\commons-net-1.4.1.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\bvxml.jar;C:\all\eclipse\workspace\Croner [local]\CLASSES\parser.jar;C:\Java\eclipse_wpt1.5.2\plugins\org.apache.derby.core_10.1.2\derby.jar;C:\Java\eclipse_wpt1.5.2\plugins\org.apache.derby.core_10.1.2\derbyclient.jar;C:\Java\eclipse_wpt1.5.2\plugins\org.apache.derby.core_10.1.2\derbytools.jar;C:\Java\eclipse_wpt1.5.2\plugins\org.apache.derby.core_10.1.2\derbynet.jar
OS name: Windows XP
OS architecture: x86
OS version: 5.1
Java user name: Mark Wiltshire
Java user home: C:\Documents and Settings\Mark Wiltshire
Java user dir: C:\all\eclipse\workspace\Croner [local]
java.specification.name: Java Platform API Specification
java.specification.version: 1.3
--------- Derby Information --------
JRE - JDBC: J2SE 1.3 - JDBC 2.1
[C:\Java\eclipse_wpt1.5.2\plugins\org.apache.derby.core_10.1.2\derby.jar] 10.1.2.1 - (330608)
[C:\Java\eclipse_wpt1.5.2\plugins\org.apache.derby.core_10.1.2\derbyclient.jar] 10.1.2.1 - (330608)
[C:\Java\eclipse_wpt1.5.2\plugins\org.apache.derby.core_10.1.2\derbytools.jar] 10.1.2.1 - (330608)
[C:\Java\eclipse_wpt1.5.2\plugins\org.apache.derby.core_10.1.2\derbynet.jar] 10.1.2.1 - (330608)
------------------------------------------------------
----------------- Locale Information -----------------
------------------------------------------------------


BUT when I right click on a java class in the package Explorer and select open in diagram editor I get

'Error while loading class diagram'

When I look at the

model.auml_diagram

I see following
'Unable to create this part due to an internal error. Reason for failure: An exception was thrown during initialisation'

java.lang.NullPointerException
at org.eclipse.emf.transaction.util.TransactionUtil.getEditingDomain(TransactionUtil.java:50)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.DiagramModificationListener.<init>(DiagramModificationListener.java:55)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.document.FileDiagramModificationListener.<init>(FileDiagramModificationListener.java:54)
at com.gentleware.uml2.diagram.clazz.part.UMLDocumentProvider$_A.<init>(Unknown Source)
at com.gentleware.uml2.diagram.clazz.part.UMLDocumentProvider.createFileInfo(Unknown Source)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.document.FileDocumentProvider.createElementInfo(FileDocumentProvider.java:486)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider.connect(AbstractDocumentProvider.java:387)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.doSetInput(DiagramDocumentEditor.java:426)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.setInput(DiagramDocumentEditor.java:389)
at org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEditor.java:318)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.init(DiagramEditor.java:638)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.init(DiagramDocumentEditor.java:116)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:840)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:583)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2595)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528)
at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2500)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2485)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:275)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:139)
at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:49)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:190)

-------------------

under the model.auml i see the following error....

java.lang.NullPointerException
at com.gentleware.uml2.resource.xmi.A.A.E.A(Unknown Source)
at com.gentleware.uml2.resource.xmi.UmlResourceImpl.setURI(Unknown Source)
at org.eclipse.uml2.uml.editor.presentation.UMLEditor.createModel(UMLEditor.java:958)
at org.eclipse.uml2.uml.editor.presentation.UMLEditor.createPages(UMLEditor.java:1012)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:276)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2595)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528)
at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2500)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2485)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:275)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:139)
at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:49)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:190)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:174)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:267)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:243)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:306)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:653)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:817)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:815)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1069)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1168)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:249)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:243)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:283)
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.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)


-------------------
NOTE eclipse is running under java 1.5, but I need to compile my code against version 1.3

Any help you can offer would be great many thanks

Mark


Message was edited by: mark1
Mark
mark1
 
Posts: 2
Joined: Mon Jan 22, 2007 11:00 am
Location: London, UK

Re: Error reverse engineering on ApolloTest project

Postby [gw] Stefan Haensgen » Wed Jan 31, 2007 3:31 pm

Hi,

it seems that the creation of your diagram file failed. Please open this file for the corresponding package and look whether it is empty. If this is the case please delete both the diagram file and the model. After that select the package again and open the diagram view via the context menu again.

Within the next few days, the next version of Apollo will be released where such errors were fixed.

Regards,
Stefan
Stefan Haensgen [Gentleware]
[gw] Stefan Haensgen
 
Posts: 17
Joined: Mon Feb 20, 2006 11:03 am


Return to Apollo for Eclipse

Who is online

Users browsing this forum: No registered users and 1 guest