Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Model Driven Health Tools » Error while creating a new CDA model(when i try to create a new cda model using eclipse(mars 2),it gives a null pointer exception )
Error while creating a new CDA model [message #1771866] Thu, 31 August 2017 13:36 Go to next message
Gowtham Jayaraman is currently offline Gowtham JayaramanFriend
Messages: 3
Registered: August 2017
Junior Member
Hello Sean,
I wanted to work on new CDA model.Followed relevant threads and added .psf file to the workspace and also used eclipse 'update site' for my mars version.While trying to create new CDA model named "testmodel",i get the following error

 5ERROR:   Package "<<codegenSupport>> <Package> testmodel" must import the CDA and HL7 datatypes packages.
    [cdatools] Validation found one or more errors in the UML model.
    [cdatools] 	at org.eclipse.mdht.uml.cda.ant.taskdefs.ValidateModel.validateUML(ValidateModel.java:87)
    [cdatools] 	at org.eclipse.mdht.uml.cda.ant.taskdefs.ValidateModel.doExecute(ValidateModel.java:48)
    [cdatools] 	at org.eclipse.mdht.uml.cda.ant.taskdefs.CDAModelingSubTask.execute(CDAModelingSubTask.java:62)
    [cdatools] 	at org.eclipse.mdht.uml.cda.ant.taskdefs.CDAModelingTask.execute(CDAModelingTask.java:201)
    [cdatools] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
    [cdatools] 	at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source)
    [cdatools] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [cdatools] 	at java.lang.reflect.Method.invoke(Method.java:498)
    [cdatools] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [cdatools] 	at org.apache.tools.ant.Task.perform(Task.java:348)
    [cdatools] 	at org.apache.tools.ant.Target.execute(Target.java:435)
    [cdatools] 	at org.apache.tools.ant.Target.performTasks(Target.java:456)
    [cdatools] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
    [cdatools] 	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [cdatools] 	at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:34)
    [cdatools] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
    [cdatools] 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
    [cdatools] 	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [cdatools] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
    [cdatools] 	at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source)
    [cdatools] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [cdatools] 	at java.lang.reflect.Method.invoke(Method.java:498)
    [cdatools] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [cdatools] 	at org.apache.tools.ant.Task.perform(Task.java:348)
    [cdatools] 	at org.apache.tools.ant.Target.execute(Target.java:435)
    [cdatools] 	at org.apache.tools.ant.Target.performTasks(Target.java:456)
    [cdatools] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
    [cdatools] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
    [cdatools] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [cdatools] 	at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:36)
    [cdatools] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
    [cdatools] 	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:705)
    [cdatools] 	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:527)
    [cdatools] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [cdatools] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    [cdatools] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [cdatools] 	at java.lang.reflect.Method.invoke(Method.java:498)
    [cdatools] 	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:371)
    [cdatools] 	at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.runInSameVM(AntLaunchDelegate.java:290)
    [cdatools] 	at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:249)
    [cdatools] 	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
    [cdatools] 	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
    [cdatools] 	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731)
    [cdatools] 	at org.eclipse.mdht.uml.cda.ui.builder.CDABuilder.runTransformation(CDABuilder.java:502)
    [cdatools] 	at org.eclipse.mdht.uml.cda.ui.builder.CDABuilder.runTransformation(CDABuilder.java:434)
    [cdatools] 	at org.eclipse.mdht.uml.cda.ui.wizards.NewCDAModelProjectWizard$1.run(NewCDAModelProjectWizard.java:261)
    [cdatools] 	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:463)
    [cdatools] 	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:371)
    [cdatools] 	at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:500)
    [cdatools] 	at org.eclipse.mdht.uml.cda.ui.wizards.NewCDAModelProjectWizard.performFinish(NewCDAModelProjectWizard.java:147)
    [cdatools] 	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:799)
    [cdatools] 	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:429)
    [cdatools] 	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
    [cdatools] 	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
    [cdatools] 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    [cdatools] 	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4230)
    [cdatools] 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491)
    [cdatools] 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514)
    [cdatools] 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1499)
    [cdatools] 	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1299)
    [cdatools] 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072)
    [cdatools] 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3698)
    [cdatools] 	at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
    [cdatools] 	at org.eclipse.jface.window.Window.open(Window.java:803)
    [cdatools] 	at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:269)
    [cdatools] 	at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:290)
    [cdatools] 	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
    [cdatools] 	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
    [cdatools] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [cdatools] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    [cdatools] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [cdatools] 	at java.lang.reflect.Method.invoke(Method.java:498)
    [cdatools] 	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
    [cdatools] 	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:252)
    [cdatools] 	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234)
    [cdatools] 	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
    [cdatools] 	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
    [cdatools] 	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:493)
    [cdatools] 	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:486)
    [cdatools] 	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
    [cdatools] 	at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:343)
    [cdatools] 	at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:160)
    [cdatools] 	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
    [cdatools] 	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
    [cdatools] 	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
    [cdatools] 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    [cdatools] 	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4230)
    [cdatools] 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491)
    [cdatools] 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514)
    [cdatools] 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1499)
    [cdatools] 	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1299)
    [cdatools] 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072)
    [cdatools] 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3698)
    [cdatools] 	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
    [cdatools] 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
    [cdatools] 	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
    [cdatools] 	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
    [cdatools] 	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694)
    [cdatools] 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
    [cdatools] 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606)
    [cdatools] 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    [cdatools] 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
    [cdatools] 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    [cdatools] 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    [cdatools] 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    [cdatools] 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
    [cdatools] 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
    [cdatools] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [cdatools] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    [cdatools] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [cdatools] 	at java.lang.reflect.Method.invoke(Method.java:498)
    [cdatools] 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
    [cdatools] 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
    [cdatools] 	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
Re: Error while creating a new CDA model [message #1771872 is a reply to message #1771866] Thu, 31 August 2017 14:25 Go to previous message
Sean Muir is currently offline Sean MuirFriend
Messages: 54
Registered: September 2015
Member
We have moved onto using OOMPH for install but are behind in some of the documentation - so i do apologize

Here is the modeler setup
first
Download appropriate eclipse installer from here

https://wiki.eclipse.org/Eclipse_Installer
then download MDHTModeler.setup
from
https://github.com/mdht/mdht-models/tree/develop/releng/setups
or see attachment
Then Use the Eclipse Installer to install MDHTModeler.setup file using the advanced mode

This will install a new version of NEON with the correct plugins

It is a work in progress so it is beta more then a release

we will be going to oxygen asap

thanks

sean




Previous Topic:Error while creating a new CDA model
Next Topic:cda dependency
Goto Forum:
  


Current Time: Fri Nov 16 13:27:01 GMT 2018

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

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

Back to the top