Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » MOFScript » call transformation from Java API
call transformation from Java API [message #518924] Fri, 05 March 2010 13:19 Go to next message
yeliu is currently offline yeliuFriend
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 #519751 is a reply to message #518924] Tue, 09 March 2010 20:35 Go to previous message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
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:MOFScript:generate output with the same filename as the source file
Next Topic:call transformation from Java API
Goto Forum:
  


Current Time: Sat Nov 09 00:47:25 GMT 2024

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

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

Back to the top