Hi Eric,

Bad luck, you just tried two obsolete commands. Export and new Gendoc model were the old way to generate documentation from a model and we did not take time to remove those menus. Thanks for pointing it out. We will do some cleanup for next release (3.3.0) next 5th of march.

In fact the current document generator takes as input a document template and a set of models. In the document template ( Word or openOffice) you add specific gendoc tags to retrieve diagrams or display element name, comment, or a specific behavior defined in Acceleo script.
Everything is explained in the online documentation : http://www.topcased.org/index.php?documentsSynthesis=y&Itemid=59
There are three tutorials:
  • configure the input document template
  • generate the document from your template
  • launch it in cmd line (batch mode)

And it really works :-)    there are now many usages on very big models.

Best regards
raphaël






[email protected] a écrit :

Hi all,

 

We’re working on a big project and we’ve used TopCased to make some design.

Now we’re starting to put things on documents, and we’ve tried to generate something with TopCased… and it doesn’t work.

 

We’ve tried to:

  • Use the Export feature (Export>Topcased>Documentation generator)… we have a NullPointerException
  • Then we’ve tried to use GenDoc (New>Top Case>Gen Doc Model)… another NullPointerException

 

We use the TopCased 3.2 Eclipse bundle that we have downloaded from your website.

 

Any idea how I can solve my problem?

 

Here is the stack trace for the Export:

java.lang.NullPointerException

            at org.topcased.gendoc.ihm.export.wizards.GenerateDocWizardPage.updateAvailableTemplates(GenerateDocWizardPage.java:251)

            at org.topcased.gendoc.ihm.export.wizards.GenerateDocWizardPage.initializeData(GenerateDocWizardPage.java:181)

            at org.topcased.gendoc.ihm.export.wizards.GenerateDocWizardPage.createControl(GenerateDocWizardPage.java:141)

            at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)

            at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:675)

            at org.eclipse.jface.wizard.WizardDialog.setWizard(WizardDialog.java:1093)

            at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1152)

            at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog.java:1149)

            at org.eclipse.jface.wizard.WizardDialog$5.run(WizardDialog.java:1138)

            at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

            at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1136)

            at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:830)

            at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)

            at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)

            at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)

            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)

            at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)

            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)

            at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)

            at org.eclipse.jface.window.Window.open(Window.java:801)

            at org.eclipse.ui.internal.handlers.WizardHandler$Export.executeHandler(WizardHandler.java:97)

            at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:273)

            at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)

            at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)

            at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)

            at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)

            at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)

            at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)

            at org.eclipse.ui.internal.actions.CommandAction.run(CommandAction.java:171)

            at org.eclipse.ui.actions.ExportResourcesAction.run(ExportResourcesAction.java:116)

            at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)

            at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)

            at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)

            at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)

            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)

            at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)

            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)

            at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)

            at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)

            at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)

            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(Workbench.java:493)

            at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

            at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)

            at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.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(EclipseStarter.java:368)

            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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)

 

Here is the stack trace for the gendoc process:

java.lang.NullPointerException

at org.topcased.gendoc.internal.properties.sections.LoopIterativeTypeSection.getContainerLoop(LoopIterativeTypeSection.java:199)

at org.topcased.gendoc.internal.properties.sections.LoopIterativeTypeSection.getEClasses(LoopIterativeTypeSection.java:127)

at org.topcased.gendoc.internal.properties.sections.LoopIterativeTypeSection.getComboFeatureValues(LoopIterativeTypeSection.java:61)

at org.topcased.tabbedproperties.sections.AbstractChooserPropertySection.refresh(AbstractChooserPropertySection.java:164)

at org.eclipse.ui.views.properties.tabbed.TabContents$6.run(TabContents.java:217)

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:175)

at org.eclipse.ui.views.properties.tabbed.TabContents.refresh(TabContents.java:220)

at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage$SelectionChangedListener.selectionChanged(TabbedPropertySheetPage.java:222)

at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)

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:175)

at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)

at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2132)

at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1669)

at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:392)

at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.setInput(TabbedPropertySheetPage.java:736)

at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.selectionChanged(TabbedPropertySheetPage.java:555)

at org.topcased.tabbedproperties.AbstractTabbedPropertySheetPage.selectionChanged(AbstractTabbedPropertySheetPage.java:124)

at org.eclipse.ui.views.properties.PropertySheet.selectionChanged(PropertySheet.java:344)

at org.eclipse.ui.internal.AbstractSelectionService.fireSelection(AbstractSelectionService.java:156)

at org.eclipse.ui.internal.AbstractSelectionService$1.selectionChanged(AbstractSelectionService.java:62)

at org.topcased.gendoc.presentation.GendocEditor.setSelection(GendocEditor.java:1795)

at org.topcased.gendoc.presentation.GendocEditor$6.selectionChanged(GendocEditor.java:912)

at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)

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:175)

at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)

at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2132)

at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1160)

at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1190)

at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:228)

at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:222)

at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:389)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)

at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)

at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)

at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)

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(Workbench.java:493)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.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(EclipseStarter.java:368)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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)

 

Thanks, 

 

Eric


_______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

--
Raphaël FAUDOU

Image Signature IOC Raphaël FAUDOU
Responsable cellule Innovation / bureau méthodes
Head of Innovation & Method Definition
Embedded systems & critical systems
Atos Origin

Tel     : +33 (0)5 34 36 32 89
Tel     : +33 (0)6 10 53 50 44
Mail   : [email protected]
Atos Origin
6, Impasse Alice Guy
BP 43045
31024 Toulouse Cedex 3, France

P Avant d'imprimer cet e-mail, pensez à l'environnement. Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.
P Please consider your environmental responsibility before printing this e-mail. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.



_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Reply via email to