Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MOFScript » call transformation from Java API
call transformation from Java API [message #589761] Fri, 05 March 2010 13:19 Go to next message
yeliu is currently offline yeliu
Messages: 145
Registered: July 2009
Senior Member
Hello,
When running the TestAPI.java , there is NullPointer exception and the problem is located in the following lines.
--------------
protected int parse (String transformation) {
File f = new File (transformation);

MOFScriptSpecification spec = parserUtil.parse(f, true);
------------
The debugging shows that f is null , and parserUtil is null too. And specification of the parserUtil used in this program couldn't be found. We run out of any possible solutions. What's the problem and any way to solve this problem. Thanks for reply!



M
Re: call transformation from Java API [message #589769 is a reply to message #589761] Tue, 09 March 2010 20:35 Go to previous message
Gøran K. Olsen is currently offline Gøran K. Olsen
Messages: 184
Registered: July 2009
Senior Member
Hello,

have you tried runiing the TestAPI in debugmode?

There you should be abel to see what you have done wrong.

Based on the provided information I am not abel to pin point the error.

Cheers,
G
Previous Topic:call transformation from Java API
Next Topic:call transformation from Java API
Goto Forum:
  


Current Time: Wed Sep 17 19:38:16 GMT 2014

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

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