Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gendoc » issue with IDE 2019-03
issue with IDE 2019-03 [message #1804846] Tue, 02 April 2019 08:53 Go to next message
samuel kallmeyer is currently offline samuel kallmeyerFriend
Messages: 47
Registered: March 2017
Member
Hello,
I did a complete new installation from scratch based on eclipse 2019-03.
I went through the following issue:

The execution of a script failed: Error during generation of Gendoc script :org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved reference '/0/cleanAndFormat/arg0'. (platform:/plugin/org.eclipse.gendoc.bundle.acceleo.commons//org/eclipse/gendoc/bundle/acceleo/commons/files/commons.emtl, 60, 106)

With a simple gendoc configuration code:
<config>
<output path='${project_loc}/Documentation/Sample.docx' />
</config>
<context model='${project_loc}/Sample.uml' element='{0}' importedBundles='gmf;sirius'/>
<gendoc>
</gendoc> <drop/>

I run the following configuration :
- Eclipse Modeling Tools 2019-03 (4.11.0)
- Sirius : 6.1.2
- Gendoc : 0.7.2
- Papyrus Bundle for Gendoc 0.7.2

I suspect a conflict in my installation, but does anyone already have a try, or an idea from where this could come ?

Regards,

Samuel
Re: issue with IDE 2019-03 [message #1804852 is a reply to message #1804846] Tue, 02 April 2019 10:35 Go to previous messageGo to next message
Anne HAUGOMMARD is currently offline Anne HAUGOMMARDFriend
Messages: 13
Registered: October 2013
Junior Member
Hi Samuel

As you are using Sirius, you should install Sirius Bundle for Gendoc 0.7.2 instead of Papyrus bundle.

Regards,
Anne


- Anne
Re: issue with IDE 2019-03 [message #1804900 is a reply to message #1804852] Wed, 03 April 2019 06:29 Go to previous messageGo to next message
samuel kallmeyer is currently offline samuel kallmeyerFriend
Messages: 47
Registered: March 2017
Member
Hi Anne,
In fact, I also tried to use Papyrus bundle with importedBundles='gmf;papyrus;commons' in the context model, and I have the same issue.
Could it be a conflict when both bundles are installed ?

It seems that I also have some crash before :(

java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:770)
at com.google.common.collect.MapMakerInternalMap.putIfAbsent(MapMakerInternalMap.java:2198)
at org.eclipse.papyrus.infra.gmfdiag.common.helper.DiagramHelper.setNeedsRefresh(DiagramHelper.java:164)
at org.eclipse.papyrus.infra.gmfdiag.common.helper.DiagramHelper.forceRefresh(DiagramHelper.java:184)
at org.eclipse.papyrus.uml.diagram.common.part.UmlGmfDiagramEditor.refreshEditorPart(UmlGmfDiagramEditor.java:375)
at org.eclipse.papyrus.infra.internationalization.utils.PreferencePartLabelSynchronizer$1.propertyChange(PreferencePartLabelSynchronizer.java:67)
at org.eclipse.papyrus.infra.ui.preferences.PapyrusScopedPreferenceStore$3.run(PapyrusScopedPreferenceStore.java:391)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.papyrus.infra.ui.preferences.PapyrusScopedPreferenceStore.firePropertyChangeEvent(PapyrusScopedPreferenceStore.java:387)
at org.eclipse.papyrus.infra.ui.preferences.PapyrusScopedPreferenceStore$2.preferenceChange(PapyrusScopedPreferenceStore.java:220)
at org.eclipse.core.internal.preferences.EclipsePreferences$2.run(EclipsePreferences.java:848)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.core.internal.preferences.EclipsePreferences.firePreferenceEvent(EclipsePreferences.java:851)
at org.eclipse.core.internal.preferences.EclipsePreferences.put(EclipsePreferences.java:863)
at org.eclipse.papyrus.infra.ui.preferences.PapyrusScopedPreferenceStore.setValue(PapyrusScopedPreferenceStore.java:827)
at org.eclipse.papyrus.infra.internationalization.common.utils.InternationalizationPreferencesUtils.setLanguagePreference(InternationalizationPreferencesUtils.java:390)
at org.eclipse.papyrus.infra.internationalization.modelresource.InternationalizationPreferenceModel.loadInternationalizationPreference(InternationalizationPreferenceModel.java:274)
at org.eclipse.papyrus.infra.internationalization.modelresource.InternationalizationPreferenceModel.createModel(InternationalizationPreferenceModel.java:292)
at org.eclipse.papyrus.infra.internationalization.modelresource.InternationalizationPreferenceModel.loadModel(InternationalizationPreferenceModel.java:227)
at org.eclipse.papyrus.infra.core.resource.ModelSet.loadModels(ModelSet.java:584)
at org.eclipse.gendoc.bundle.acceleo.papyrus.service.PapyrusModelLoaderService.getPapyrusModelSet(PapyrusModelLoaderService.java:197)
at org.eclipse.gendoc.bundle.acceleo.papyrus.service.PapyrusModelLoaderService.constructResourceSet(PapyrusModelLoaderService.java:69)
at org.eclipse.gendoc.tags.handlers.impl.context.EMFModelLoaderService.getResourceSet(EMFModelLoaderService.java:82)
at org.eclipse.gendoc.bundle.acceleo.papyrus.service.PapyrusModelLoaderService.getResource(PapyrusModelLoaderService.java:134)
at org.eclipse.gendoc.tags.handlers.impl.context.EMFModelLoaderService.getModel(EMFModelLoaderService.java:103)
at org.eclipse.gendoc.tags.handlers.impl.context.ContextService.getModel(ContextService.java:104)
at org.eclipse.gendoc.tags.handlers.impl.context.ContextService.getElement(ContextService.java:191)
at org.eclipse.gendoc.tags.handlers.AbstractScriptTagHandler.runProcessorScript(AbstractScriptTagHandler.java:89)
at org.eclipse.gendoc.tags.handlers.AbstractScriptTagHandler.runScripts(AbstractScriptTagHandler.java:62)
at org.eclipse.gendoc.tags.handlers.AbstractTagHandler.run(AbstractTagHandler.java:120)
at org.eclipse.gendoc.tags.handlers.AbstractPrePostTagHandler.doRun(AbstractPrePostTagHandler.java:114)
at org.eclipse.gendoc.tags.handlers.AbstractPrePostTagHandler.run(AbstractPrePostTagHandler.java:55)
at org.eclipse.gendoc.tags.handlers.process.TagAnalyserProcess.executeOneTag(TagAnalyserProcess.java:226)
at org.eclipse.gendoc.tags.handlers.process.TagAnalyserProcess.executeTags(TagAnalyserProcess.java:204)
at org.eclipse.gendoc.tags.handlers.process.TagAnalyserProcess.executeAndInjectTags(TagAnalyserProcess.java:147)
at org.eclipse.gendoc.tags.handlers.process.TagAnalyserProcess.step(TagAnalyserProcess.java:138)
at org.eclipse.gendoc.process.AbstractStepProcess.doRun(AbstractStepProcess.java:51)
at org.eclipse.gendoc.process.AbstractProcess.run(AbstractProcess.java:72)
at org.eclipse.gendoc.GendocProcess.runProcess(GendocProcess.java:81)
at org.eclipse.gendoc.GendocProcess.runProcess(GendocProcess.java:140)
at org.eclipse.gendoc.ui.run.GenDocRunnable.run(GenDocRunnable.java:83)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:438)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:354)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:469)
at org.eclipse.gendoc.ui.actions.GenerateDocumentation.execute(GenerateDocumentation.java:62)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:96)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:320)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:254)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:497)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:490)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:438)
at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:449)
at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.lambda$2(AbstractContributionItem.java:475)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1055)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:566)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:661)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
at org.eclipse.equinox.launcher.Main.run(Main.java:1476)

Regards,

Samuel
Re: issue with IDE 2019-03 [message #1805184 is a reply to message #1804846] Tue, 09 April 2019 13:07 Go to previous messageGo to next message
THEOBALD Maurice is currently offline THEOBALD MauriceFriend
Messages: 23
Registered: February 2017
Junior Member
Hello,

I confirm there is a problem with GENDOC and IDE 2019-03.

I'm using papyrus, and cannot run GENDOC anymore after a fresh install.
I get the following errors :
See details.
----------
The execution of a script failed: Error during generation of Gendoc script :org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved reference '/0/isDiagramEmpty/arg0'. (platform:/plugin/org.eclipse.gendoc.bundle.acceleo.gmf//org/eclipse/gendoc/bundle/acceleo/gmf/mtl/gmf.emtl, 56, 106)
The execution of a script failed: Error during generation of Gendoc script :org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved reference '/0/getPapyrusOwnedDiagrams/arg0'. (platform:/plugin/org.eclipse.gendoc.bundle.acceleo.papyrus//org/eclipse/gendoc/bundle/acceleo/papyrus/mtl/papyrus.emtl, 76, 115)
The execution of a script failed: Error during generation of Gendoc script :org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved reference '/0/cleanAndFormat/arg0'. (platform:/plugin/org.eclipse.gendoc.bundle.acceleo.commons//org/eclipse/gendoc/bundle/acceleo/commons/files/commons.emtl, 60, 106)
-----------

I didn't succeed in finding any workaround.

Maurice
Re: issue with IDE 2019-03 [message #1805553 is a reply to message #1805184] Wed, 17 April 2019 10:54 Go to previous messageGo to next message
Antonio Campesino is currently offline Antonio CampesinoFriend
Messages: 56
Registered: August 2016
Member
Hi,

There is an issue with the acceleo for 2019-12.

The issue should be fixed in acceleo 3.8, but I not sure if it make it.

Could you please try to downgrade acceleo to this build and check if it solve your issue?

http://download.eclipse.org/acceleo/updates/milestones/3.7/S201902261618/

In anyway I will check the issue and I will prepare a build for 2019-03.

Best Regards,
Antonio Campesino






Re: issue with IDE 2019-03 [message #1805777 is a reply to message #1805553] Tue, 23 April 2019 14:56 Go to previous messageGo to next message
Antonio Campesino is currently offline Antonio CampesinoFriend
Messages: 56
Registered: August 2016
Member
Hi,

I did some digging on the issue and some test. The problem is related to this issues in Acceleo:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=545963

But I guess the root cause is that other issue en EMF:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=545978

In any case, After a little bit of test I found that there are issues with releases 2018-12 and 2019-03, so the workaround it is:

- 2018-12: Install acceleo 3.7.8, from this update site: http://download.eclipse.org/acceleo/updates/milestones/3.7/S201902261618/
- 2019-03 Install the EMF SDK from this update site: http://download.eclipse.org/modeling/emf/emf/builds/milestone/S201904050820

Please, give it a try if you can and let me know if your issues are fixed.

Thanks a lot,
Antonio
Re: issue with IDE 2019-03 [message #1805789 is a reply to message #1805777] Wed, 24 April 2019 06:30 Go to previous messageGo to next message
THEOBALD Maurice is currently offline THEOBALD MauriceFriend
Messages: 23
Registered: February 2017
Junior Member
Hi,

I tried - 2019-03 with the EMF SDK from this update site: http://download.eclipse.org/modeling/emf/emf/builds/milestone/S201904050820

Unfortunately this doesn't solve the problem.
We get the following error :

" The execution of a script failed: Error during generation of Gendoc script :org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved reference '/0/cleanAndFormat/arg0'. (platform:/plugin/org.eclipse.gendoc.bundle.acceleo.commons//org/eclipse/gendoc/bundle/acceleo/commons/files/commons.emtl, 60, 106)"

Maurice
Re: issue with IDE 2019-03 [message #1805800 is a reply to message #1805789] Wed, 24 April 2019 11:10 Go to previous messageGo to next message
Antonio Campesino is currently offline Antonio CampesinoFriend
Messages: 56
Registered: August 2016
Member
Hi,

I have tried in this configuration:

1) Install MDT package IDE 2019-03 (windows 64bits)
2) Install Papyrus 2019-03 (http://download.eclipse.org/modeling/mdt/papyrus/updates/releases/2019-03)
3) Intall EMF SDK with the fix ( http://download.eclipse.org/modeling/emf/emf/builds/milestone/S201904050820)
4) Install GenDoc 0.7.2 - 2018-09 bundle (http://download.eclipse.org/gendoc/updates/releases/0.7.2/2018-09)

Then I used the sample model and template from the wiki: https://wiki.eclipse.org/images/e/e3/SampleGendocProject.zip

The generation was ok, no error at all.

If I run the same configuration without EMF 2.17.x, I get the same kinds of errors.

Can you confirm you have version 2.18.v20190405-1218 of EMF - Eclipse Modeling Framework SDK installed ???

Thanks,
Antonio



Re: issue with IDE 2019-03 [message #1805847 is a reply to message #1805800] Thu, 25 April 2019 11:39 Go to previous messageGo to next message
Antonio Campesino is currently offline Antonio CampesinoFriend
Messages: 56
Registered: August 2016
Member
Hi,

I have add builds for 2019-03 and 2018-12 and run the test to verify the work around:

  1. IDE 2019-03: You will need to install

    1. EMF SDK 2.18: http://download.eclipse.org/modeling/emf/emf/builds/milestone/S201904050820

  2. IDE 2018-12: You will need to install

    1. Acceleo SDK 3.7.8: http://download.eclipse.org/acceleo/updates/milestones/3.7/S201902261618
    2. EMF SDK 2.18: http://download.eclipse.org/modeling/emf/emf/builds/milestone/S201904050820

I hope that work for all of you.

Best Regards,
Antonio Campesino
Re: issue with IDE 2019-03 [message #1805851 is a reply to message #1805847] Thu, 25 April 2019 12:37 Go to previous message
THEOBALD Maurice is currently offline THEOBALD MauriceFriend
Messages: 23
Registered: February 2017
Junior Member
Hi,

Thank you Antonio, I confirm that the solution you are proposing is working with 2019-03.
I proceed step by step, and I noticed that had a plugin who was pulling Acceleo 3.7.7. (Preventing the solution working)

Now everything is OK.

Maurice
Previous Topic:Gendoc pop up menu in photon
Next Topic:Default Generation to docx failed
Goto Forum:
  


Current Time: Sat May 04 21:44:26 GMT 2024

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

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

Back to the top