Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [TCS] NPE with TCSSamples
[TCS] NPE with TCSSamples [message #607563] Thu, 13 September 2007 07:28
Andy Carpenter is currently offline Andy Carpenter
Messages: 145
Registered: July 2009
Senior Member
I've trying to run the TCSSamples from the TCS wiki and
am getting a NPE when the ANTLR.tcs model is being
loaded; details below. I'm using the eclipse 3.3 release
and ATL 2.0RC2 from the ATL update site. From reading
this news group I can see that others are successfully
using TCS to parse their own DSLs. So, does anyone
know why I can't run the sample, or what setup are
those running TCS using?

thanks
Andy.


Buildfile: C:\andy\eclipse\tcs\SampleDSL_InjectorCreation.xml

default:

transfo:

init:
[am3.loadModel] INFO: Loading of model AddressBook.tcs
[am3.loadModel] INFO: Loading of model KM3
[am3.loadModel] INFO: Loading of model AddressBook.km3
[am3.loadModel] INFO: Loading of model ANTLR
[am3.loadModel] INFO: Loading of model ANTLR.tcs
[am3.loadModel] java.lang.NullPointerException
[am3.loadModel] at
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.set(A SMEMFModelElement.java:231)
[am3.loadModel] at
org.atl.engine.injectors.ebnf.ASMModelHandler.actualSet(ASMM odelHandler.java:47)
[am3.loadModel] at
org.atl.engine.injectors.ebnf.ASMModelHandler.set(ASMModelHa ndler.java:117)
[am3.loadModel] at
org.atl.engine.injectors.ebnf.EBNFInjector2.set(EBNFInjector 2.java:371)
[am3.loadModel] at
org.atl.engine.injectors.ebnf.TCS_ANTLR3Parser.classTemplate (TCS_ANTLR3Parser.java:2808)
[am3.loadModel] at
org.atl.engine.injectors.ebnf.TCS_ANTLR3Parser.template(TCS_ ANTLR3Parser.java:1978)
[am3.loadModel] at
org.atl.engine.injectors.ebnf.TCS_ANTLR3Parser.concreteSynta x(TCS_ANTLR3Parser.java:1422)
[am3.loadModel] at
org.atl.engine.injectors.ebnf.TCS_ANTLR3Parser.main(TCS_ANTL R3Parser.java:121)
[am3.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[am3.loadModel] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[am3.loadModel] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[am3.loadModel] at java.lang.reflect.Method.invoke(Method.java:585)
[am3.loadModel] at
org.eclipse.gmt.tcs.wrappers.antlr3.ParserWrapper.parse(Pars erWrapper.java:69)
[am3.loadModel] at
org.atl.engine.injectors.ebnf.EBNFInjector2.performImportati on(EBNFInjector2.java:253)
[am3.loadModel] at
org.atl.engine.injectors.ebnf.EBNFInjector2.performImportati on(EBNFInjector2.java:213)
[am3.loadModel] at
org.atl.engine.injectors.ebnf.EBNFInjector2.performImportati on(EBNFInjector2.java:162)
[am3.loadModel] at
org.atl.engine.injectors.ebnf.EBNFInjector2.inject(EBNFInjec tor2.java:92)
[am3.loadModel] at
org.eclipse.gmt.am3.tools.ant.toolkit.AM3AntToolKit.ebnfInje ction(AM3AntToolKit.java:256)
[am3.loadModel] at
org.eclipse.gmt.am3.tools.ant.toolkit.AM3AntToolKit.ebnfInje ction(AM3AntToolKit.java:273)
[am3.loadModel] at
org.eclipse.gmt.am3.tools.ant.toolkit.AM3AntToolKit.inject(A M3AntToolKit.java:281)
[am3.loadModel] at
org.eclipse.gmt.am3.tools.ant.tasks.LoadModelTask.execute(Lo adModelTask.java:62)
[am3.loadModel] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[am3.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[am3.loadModel] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[am3.loadModel] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[am3.loadModel] at java.lang.reflect.Method.invoke(Method.java:585)
[am3.loadModel] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
[am3.loadModel] at org.apache.tools.ant.Task.perform(Task.java:348)
[am3.loadModel] at org.apache.tools.ant.Target.execute(Target.java:357)
[am3.loadModel] at
org.apache.tools.ant.Target.performTasks(Target.java:385)
[am3.loadModel] at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
[am3.loadModel] at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:38)
[am3.loadModel] at
org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
[am3.loadModel] at
org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
[am3.loadModel] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
[am3.loadModel] at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:105)
[am3.loadModel] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[am3.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[am3.loadModel] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[am3.loadModel] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[am3.loadModel] at java.lang.reflect.Method.invoke(Method.java:585)
[am3.loadModel] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
[am3.loadModel] at org.apache.tools.ant.Task.perform(Task.java:348)
[am3.loadModel] at org.apache.tools.ant.Target.execute(Target.java:357)
[am3.loadModel] at
org.apache.tools.ant.Target.performTasks(Target.java:385)
[am3.loadModel] at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
[am3.loadModel] at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:38)
[am3.loadModel] at
org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
[am3.loadModel] at
org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
[am3.loadModel] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
[am3.loadModel] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[am3.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[am3.loadModel] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[am3.loadModel] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[am3.loadModel] at java.lang.reflect.Method.invoke(Method.java:585)
[am3.loadModel] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
[am3.loadModel] at org.apache.tools.ant.Task.perform(Task.java:348)
[am3.loadModel] at org.apache.tools.ant.Target.execute(Target.java:357)
[am3.loadModel] at
org.apache.tools.ant.Target.performTasks(Target.java:385)
[am3.loadModel] at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
[am3.loadModel] at
org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
[am3.loadModel] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
[am3.loadModel] at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
[am3.loadModel] at
org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
[am3.loadModel] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
[am3.loadModel] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
[am3.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[am3.loadModel] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[am3.loadModel] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[am3.loadModel] at java.lang.reflect.Method.invoke(Method.java:585)
[am3.loadModel] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:377)
[am3.loadModel] at
org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:230)
[am3.loadModel] at java.lang.Thread.run(Thread.java:595)
[am3.loadModel] INFO: Loading of model Problem
[am3.loadModel] INFO: Loading of model Problem.tcs

--
-- ------------------------------------------------------------ -------------
Dr Andy Carpenter
School of Computer Science,
University of Manchester, Manchester M13 9PL, UK
Email: Andy.Carpenter@manchester.ac.uk
Tel: +44 161 275 6168
Fax: +44 161 275 6280
Previous Topic:[OAW] Running java code from workflow
Next Topic:[OAW] Running java code from workflow
Goto Forum:
  


Current Time: Tue Sep 23 08:26:31 GMT 2014

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

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