Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » JavaIoFileSystemAccess - null pointer
JavaIoFileSystemAccess - null pointer [message #1014000] Sun, 24 February 2013 18:53 Go to previous message
Bruce L. is currently offline Bruce L.
Messages: 49
Registered: June 2011
Member
Hi,

the following

public static void main(String[] args) {
        JavaIoFileSystemAccess fileWriter = new JavaIoFileSystemAccess();
        fileWriter.setOutputPath("out");
        fileWriter.generateFile("bla", "content");
        return;
}


raises a NullPointerException.
After looking into the code, I see the problem is that two members of the class JavaIoFileSystemAccess are never initialized. The constructor with no args does nothing. There are no setters.

My project depends on the jar org.eclipse.xtext_2.2.1... .jar , which is stored on my filesystem.
However my Eclipse (Juno) has version 2.3.1 of xtext

When I ctrl+click on JavaIoFileSystemAccess in my code it opens the class file, saying that there is no source attached. But when I click in the console on the error message of the exception, it magically opens a source file, which I think is the one installed in eclipse.

How am I supposed to use JavaIoFileSystemAccess?
Do you think I am having a version conflict problem?

Thanks in advance
B.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:How I can get the contents of my DSL file
Next Topic:Programming Language DSL (SAG Natural)
Goto Forum:
  


Current Time: Sun May 19 04:50:52 EDT 2013

Powered by FUDForum. Page generated in 0.01638 seconds