Forum: Building VoltDB Applications

Post: Error Compiling Schema in Eclipse

Error Compiling Schema in Eclipse
interntest
May 8, 2015
I am trying to build and compile schema dynamically using Eclipse. I am following the example given in https://github.com/VoltDB/voltdb/wiki/Using-Eclipse-to-Develop-and-Debug-VoltDB-Client-Applications .

I believe testclient.jar and testclient.xml should be automatically created on running the program. The xml file is created but the program always end up giving a File Not Found error for testclient.jar (See attached log file).

And suppose if I give an already compiled catalog.jar, then TestProcedure does not add up to the catalog and I end up with Class Not Found Exception.
For both these cases, the following java statement in TestClient.java always returns false.

boolean success = builder.compile(config.m_pathToCatalog, 2, 1, 0);

What is wrong here?
pzhao
May 19, 2015
Interntest,

Can you copy and paste the eclipse console output that's generated?
Thanks.

Peter Zhao
interntest
May 21, 2015
Hi Peter,

This is the console output from Eclipse. The log file is already attached.

log4j:WARN No appenders could be found for logger (COMPILER).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
path to deployment is /tmp/myAppDeployment8640557534932147133.tmp
VoltDB has encountered an unrecoverable error and is exiting.
The log may contain additional information.
pzhao
May 21, 2015
Interntest,

Please take a look at step 6. There are some JVM configuration for running VoltDB code from within Eclipse that should be set. Let me know if there are other problems.

Peter Zhao
pzhao
May 21, 2015
I am trying to build and compile schema dynamically using Eclipse. I am following the example given in https://github.com/VoltDB/voltdb/wiki/Using-Eclipse-to-Develop-and-Debug-VoltDB-Client-Applications .


Interntest,

FYI, I've updated the code and everything should be working now. If you have any problems, please let me know.

Peter Zhao
interntest
May 22, 2015
Peter,

The updated code works perfectly. Thanks !!