From: <hka...@go...> - 2011-04-07 18:45:05
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> </head> <body text="#000000" bgcolor="#ffffff"> Hello list,<br> <br> today I did my first steps with XMLVM, but I failed completely. I tried to run an crosscompile from java (class) to C++.<br> So please help me, just only to start a simple Hello World cross compile!<br> <br> What I did:<br> - I checked out the trunk<br> - started eclipse<br> - created a own project xmlvmDemoTests<br> - create a test class in the project<br> <tt><b><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(127, 0, 85);">package</span></b><span style="font-size: 10pt; font-family: "Courier New"; color: black;"> com.dummy.xmlvm.demo;</span><span style="font-size: 10pt; font-family: "Courier New";"></span><span style="font-size: 10pt; font-family: "Courier New";"></span><b><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(127, 0, 85);" lang="EN-US"></span></b><br> <b><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(127, 0, 85);" lang="EN-US"> public</span></b><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> </span><b><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(127, 0, 85);" lang="EN-US">class</span></b><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> Test {</span><span style="font-size: 10pt; font-family: "Courier New";" lang="EN-US"></span><br> <span style="font-size: 10pt; font-family: "Courier New";" lang="EN-US"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> </span><b><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(127, 0, 85);" lang="EN-US">public</span></b><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> </span><b><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(127, 0, 85);" lang="EN-US">static</span></b><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> </span><b><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(127, 0, 85);" lang="EN-US">void</span></b><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> main(String[] args) {</span><span style="font-size: 10pt; font-family: "Courier New";" lang="EN-US"></span><br> <span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> System.</span><i><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 192);" lang="EN-US">out</span></i><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US">.println(</span><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(42, 0, 255);" lang="EN-US">"hello world"</span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US">);</span><span style="font-size: 10pt; font-family: "Courier New";" lang="EN-US"></span><br> <span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;">}</span><span style="font-size: 10pt; font-family: "Courier New";"></span><br> <span style="font-size: 10pt; font-family: "Courier New"; color: black;"> }<br> </span></tt><span style="font-size: 10pt; font-family: "Courier New"; color: black;">- created a launch configuration with: <br> project=xmlvm </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"></span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"><br> Main class=org.xmlvm.Main<br> Program arguments=</span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"></span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US">--debug=all --in=${project_loc:/xmlvmDemoTests}/bin/ --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=cpp<br> <br> I started the launch config and now I get cpp is an unkown target??? But the documentation says: </span><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="font-family: arial,tahoma; font-size: 13px;"><code style="color: rgb(0, 96, 0); font-weight: bold; font-family: 'Courier New',monospace;">cpp</code>: The input files are cross-compiled to C++.</span></span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"><br> <br> </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;">- okay I do not give up so easily, now I tried to crosscompile against XMLVMjvm. Changed launch configuration programm arguments to: <br> </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> Program arguments=</span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"></span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US">--debug=all --in=${project_loc:/xmlvmDemoTests}/bin/ --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=jvm</span><br> <span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"><br> Now I get: Could not create target process for target JVM. But the documentations says: jvm: The input files are cross-compiled to XMLVMJVM.<br> <br> </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;">- okay even now I do not give up easily, I tried to crosscompile against xmlvm. Changed launch configuration programm arguments to: <br> </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> Program arguments=</span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"></span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US">--debug=all --in=${project_loc:/xmlvmDemoTests}/bin/ --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=xmlvm</span><br> <span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"><br> </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US">Now I get the following console-output:<br> [04/07/11 20:25:58.189] DEBUG: Instantiated: org.xmlvm.proc.in.InputProcess$ClassInputProcess<br> [04/07/11 20:25:58.189] DEBUG: Instantiated: org.xmlvm.proc.in.InputProcess$ClassInputProcess for "C:\Projects\xmlvm\trunk\xmlvmDemoTests\bin\com\dummy\xmlvm\demo\Test.class"<br> [04/07/11 20:25:58.189] DEBUG: Instantiated: org.xmlvm.proc.out.XmlvmOutputProcess<br> [04/07/11 20:25:58.189] DEBUG: Instantiated: org.xmlvm.proc.out.RecursiveResourceLoadingProcess<br> [04/07/11 20:25:58.204] DEBUG: Adding preprocess org.xmlvm.proc.out.RecursiveResourceLoadingProcess to process org.xmlvm.proc.out.XmlvmOutputProcess<br> [04/07/11 20:25:58.236] DEBUG: UniversalFileCreator: Could not find either resource: (One-JAR resource: /redlist.txt / file system resource: lib/redlist.txt)<br> [04/07/11 20:25:58.236] DEBUG: Instantiated: org.xmlvm.proc.out.DEXmlvmOutputProcess<br> java.lang.reflect.InvocationTargetException<br> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)<br> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)<br> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)<br> at org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217)<br> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152)<br> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137)<br> at org.xmlvm.Main.main(Main.java:53)<br> Caused by: java.lang.NullPointerException<br> at org.xmlvm.proc.out.DEXmlvmOutputProcess.initializeRedList(DEXmlvmOutputProcess.java:461)<br> at org.xmlvm.proc.out.DEXmlvmOutputProcess.<init>(DEXmlvmOutputProcess.java:264)<br> at org.xmlvm.proc.out.DEXmlvmOutputProcess.<init>(DEXmlvmOutputProcess.java:238)<br> ... 11 more<br> [04/07/11 20:25:58.251] DEBUG: Instantiated: org.xmlvm.proc.out.ExeToXmlvmProcess<br> [04/07/11 20:25:58.251] DEBUG: Adding preprocess org.xmlvm.proc.out.ExeToXmlvmProcess to process org.xmlvm.proc.out.RecursiveResourceLoadingProcess<br> [04/07/11 20:25:58.251] DEBUG: Instantiated: org.xmlvm.proc.out.XmlvmToXmlvmProcess<br> [04/07/11 20:25:58.251] DEBUG: Adding preprocess org.xmlvm.proc.out.XmlvmToXmlvmProcess to process org.xmlvm.proc.out.RecursiveResourceLoadingProcess<br> java.lang.NoSuchMethodException: org.xmlvm.proc.in.InputProcess$ExeInputProcess.<init>(org.xmlvm.main.Arguments)<br> at java.lang.Class.getConstructor0(Class.java:2706)<br> at java.lang.Class.getConstructor(Class.java:1657)<br> at org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217)<br> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152)<br> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137)<br> at org.xmlvm.Main.main(Main.java:53)<br> java.lang.NoSuchMethodException: org.xmlvm.proc.in.InputProcess$XmlvmInputProcess.<init>(org.xmlvm.main.Arguments)<br> at java.lang.Class.getConstructor0(Class.java:2706)<br> at java.lang.Class.getConstructor(Class.java:1657)<br> at org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217)<br> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152)<br> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137)<br> at org.xmlvm.Main.main(Main.java:53)<br> [04/07/11 20:25:58.251] ERROR: There are still 1 processes left.<br> [04/07/11 20:25:58.251] ERROR: Something went wrong during processing.<br> <br> So please help a new user to get started.<br> <br> best regards,<br> Hans<br> </span> </body> </html> |
From: <hka...@go...> - 2011-04-07 19:04:25
|
Hello list, sorry new try (hopefully without html-tags). today I did my first steps with XMLVM, but I failed completely. I tried to run an crosscompile from java (class) to C++. So please help me, just only to start a simple Hello World cross compile! What I did: - I checked out the trunk - started eclipse - created a own project xmlvmDemoTests - create a test class in the project *package*com.dummy.xmlvm.demo;** * public**class*Test { *public**static**void*main(String[] args) { System./out/.println("hello world"); } } - created a launch configuration with: project=xmlvm Main class=org.xmlvm.Main Program arguments=--debug=all --in=${project_loc:/xmlvmDemoTests}/bin/ --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=cpp I started the launch config and now I get cpp is an unkown target??? But the documentation says: |cpp|: The input files are cross-compiled to C++. - okay I do not give up so easily, now I tried to crosscompile against XMLVMjvm. Changed launch configuration programm arguments to: Program arguments=--debug=all --in=${project_loc:/xmlvmDemoTests}/bin/ --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=jvm Now I get: Could not create target process for target JVM. But the documentations says: jvm: The input files are cross-compiled to XMLVMJVM. - okay even now I do not give up easily, I tried to crosscompile against xmlvm. Changed launch configuration programm arguments to: Program arguments=--debug=all --in=${project_loc:/xmlvmDemoTests}/bin/ --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=xmlvm Now I get the following console-output: [04/07/11 20:25:58.189] DEBUG: Instantiated: org.xmlvm.proc.in.InputProcess$ClassInputProcess [04/07/11 20:25:58.189] DEBUG: Instantiated: org.xmlvm.proc.in.InputProcess$ClassInputProcess for "C:\Projects\xmlvm\trunk\xmlvmDemoTests\bin\com\dummy\xmlvm\demo\Test.class" [04/07/11 20:25:58.189] DEBUG: Instantiated: org.xmlvm.proc.out.XmlvmOutputProcess [04/07/11 20:25:58.189] DEBUG: Instantiated: org.xmlvm.proc.out.RecursiveResourceLoadingProcess [04/07/11 20:25:58.204] DEBUG: Adding preprocess org.xmlvm.proc.out.RecursiveResourceLoadingProcess to process org.xmlvm.proc.out.XmlvmOutputProcess [04/07/11 20:25:58.236] DEBUG: UniversalFileCreator: Could not find either resource: (One-JAR resource: /redlist.txt / file system resource: lib/redlist.txt) [04/07/11 20:25:58.236] DEBUG: Instantiated: org.xmlvm.proc.out.DEXmlvmOutputProcess java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) at org.xmlvm.Main.main(Main.java:53) Caused by: java.lang.NullPointerException at org.xmlvm.proc.out.DEXmlvmOutputProcess.initializeRedList(DEXmlvmOutputProcess.java:461) at org.xmlvm.proc.out.DEXmlvmOutputProcess.<init>(DEXmlvmOutputProcess.java:264) at org.xmlvm.proc.out.DEXmlvmOutputProcess.<init>(DEXmlvmOutputProcess.java:238) ... 11 more [04/07/11 20:25:58.251] DEBUG: Instantiated: org.xmlvm.proc.out.ExeToXmlvmProcess [04/07/11 20:25:58.251] DEBUG: Adding preprocess org.xmlvm.proc.out.ExeToXmlvmProcess to process org.xmlvm.proc.out.RecursiveResourceLoadingProcess [04/07/11 20:25:58.251] DEBUG: Instantiated: org.xmlvm.proc.out.XmlvmToXmlvmProcess [04/07/11 20:25:58.251] DEBUG: Adding preprocess org.xmlvm.proc.out.XmlvmToXmlvmProcess to process org.xmlvm.proc.out.RecursiveResourceLoadingProcess java.lang.NoSuchMethodException: org.xmlvm.proc.in.InputProcess$ExeInputProcess.<init>(org.xmlvm.main.Arguments) at java.lang.Class.getConstructor0(Class.java:2706) at java.lang.Class.getConstructor(Class.java:1657) at org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) at org.xmlvm.Main.main(Main.java:53) java.lang.NoSuchMethodException: org.xmlvm.proc.in.InputProcess$XmlvmInputProcess.<init>(org.xmlvm.main.Arguments) at java.lang.Class.getConstructor0(Class.java:2706) at java.lang.Class.getConstructor(Class.java:1657) at org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) at org.xmlvm.Main.main(Main.java:53) [04/07/11 20:25:58.251] ERROR: There are still 1 processes left. [04/07/11 20:25:58.251] ERROR: Something went wrong during processing. So please help a new user to get started. best regards, Hans |
From: Arno P. <ar...@pu...> - 2011-04-07 19:57:28
|
unfortunately the documentation is out of sync with the actual implementation. The cpp target does not exist anymore. We are working on adding a target for C (which is a subset of C++). If you select --target=c, you will get portable C code. If you select --target=posix, you get a ready to use Makefile plus all dependent classes. Arno On 4/7/11 12:04 PM, hka...@go... wrote: > Hello list, > > sorry new try (hopefully without html-tags). > > today I did my first steps with XMLVM, but I failed completely. I tried > to run an crosscompile from java (class) to C++. > So please help me, just only to start a simple Hello World cross compile! > > What I did: > - I checked out the trunk > - started eclipse > - created a own project xmlvmDemoTests > - create a test class in the project > *package*com.dummy.xmlvm.demo;** > * public**class*Test { > *public**static**void*main(String[] args) { > System./out/.println("hello world"); > } > } > - created a launch configuration with: > project=xmlvm > Main class=org.xmlvm.Main > Program arguments=--debug=all > --in=${project_loc:/xmlvmDemoTests}/bin/ > --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=cpp > > I started the launch config and now I get cpp is an unkown target??? But > the documentation says: |cpp|: The input files are cross-compiled to C++. > > - okay I do not give up so easily, now I tried to crosscompile against > XMLVMjvm. Changed launch configuration programm arguments to: > Program arguments=--debug=all > --in=${project_loc:/xmlvmDemoTests}/bin/ > --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=jvm > > Now I get: Could not create target process for target JVM. But the > documentations says: jvm: The input files are cross-compiled to XMLVMJVM. > > - okay even now I do not give up easily, I tried to crosscompile against > xmlvm. Changed launch configuration programm arguments to: > Program arguments=--debug=all > --in=${project_loc:/xmlvmDemoTests}/bin/ > --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=xmlvm > > Now I get the following console-output: > [04/07/11 20:25:58.189] DEBUG: Instantiated: > org.xmlvm.proc.in.InputProcess$ClassInputProcess > [04/07/11 20:25:58.189] DEBUG: Instantiated: > org.xmlvm.proc.in.InputProcess$ClassInputProcess for > "C:\Projects\xmlvm\trunk\xmlvmDemoTests\bin\com\dummy\xmlvm\demo\Test.class" > [04/07/11 20:25:58.189] DEBUG: Instantiated: > org.xmlvm.proc.out.XmlvmOutputProcess > [04/07/11 20:25:58.189] DEBUG: Instantiated: > org.xmlvm.proc.out.RecursiveResourceLoadingProcess > [04/07/11 20:25:58.204] DEBUG: Adding preprocess > org.xmlvm.proc.out.RecursiveResourceLoadingProcess to process > org.xmlvm.proc.out.XmlvmOutputProcess > [04/07/11 20:25:58.236] DEBUG: UniversalFileCreator: Could not find > either resource: (One-JAR resource: /redlist.txt / file system resource: > lib/redlist.txt) > [04/07/11 20:25:58.236] DEBUG: Instantiated: > org.xmlvm.proc.out.DEXmlvmOutputProcess > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at > org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > at org.xmlvm.Main.main(Main.java:53) > Caused by: java.lang.NullPointerException > at > org.xmlvm.proc.out.DEXmlvmOutputProcess.initializeRedList(DEXmlvmOutputProcess.java:461) > at > org.xmlvm.proc.out.DEXmlvmOutputProcess.<init>(DEXmlvmOutputProcess.java:264) > at > org.xmlvm.proc.out.DEXmlvmOutputProcess.<init>(DEXmlvmOutputProcess.java:238) > ... 11 more > [04/07/11 20:25:58.251] DEBUG: Instantiated: > org.xmlvm.proc.out.ExeToXmlvmProcess > [04/07/11 20:25:58.251] DEBUG: Adding preprocess > org.xmlvm.proc.out.ExeToXmlvmProcess to process > org.xmlvm.proc.out.RecursiveResourceLoadingProcess > [04/07/11 20:25:58.251] DEBUG: Instantiated: > org.xmlvm.proc.out.XmlvmToXmlvmProcess > [04/07/11 20:25:58.251] DEBUG: Adding preprocess > org.xmlvm.proc.out.XmlvmToXmlvmProcess to process > org.xmlvm.proc.out.RecursiveResourceLoadingProcess > java.lang.NoSuchMethodException: > org.xmlvm.proc.in.InputProcess$ExeInputProcess.<init>(org.xmlvm.main.Arguments) > at java.lang.Class.getConstructor0(Class.java:2706) > at java.lang.Class.getConstructor(Class.java:1657) > at > org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > at org.xmlvm.Main.main(Main.java:53) > java.lang.NoSuchMethodException: > org.xmlvm.proc.in.InputProcess$XmlvmInputProcess.<init>(org.xmlvm.main.Arguments) > at java.lang.Class.getConstructor0(Class.java:2706) > at java.lang.Class.getConstructor(Class.java:1657) > at > org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > at org.xmlvm.Main.main(Main.java:53) > [04/07/11 20:25:58.251] ERROR: There are still 1 processes left. > [04/07/11 20:25:58.251] ERROR: Something went wrong during processing. > > So please help a new user to get started. > > best regards, > Hans > > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: <hka...@go...> - 2011-04-28 08:27:02
|
Hello Arno, currently I am again struggeling with xmlvm. I gived the xmlvm now the second try and I am falling again... My goal: I just want to get C/C++ code from Java. I cannot even get a simple example running. 1. I checked out trunk. 2. I created a test class, a pretty, pretty simple one Here my test class: package test; public class HelloWorld { public static void main(String[] args) { System.out.println("hello world"); } } 3. I created a launch config Here my launch params: --in=${workspace_loc:xmlvm-test}/bin --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix --app-name=xmlvm-test now I get: Exception in thread "main" java.lang.NullPointerException at org.xmlvm.proc.CompilationBundle.addResources(CompilationBundle.java:44) at org.xmlvm.proc.out.RecursiveResourceLoadingProcess.processPhase1(RecursiveResourceLoadingProcess.java:63) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:209) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:157) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) at org.xmlvm.Main.main(Main.java:53) 4. okay try the c target here my launch params --in=${workspace_loc:xmlvm-test}/bin --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=c --app-name=xmlvm-test 5. now I get [04/28/11 10:23:51.892] ERROR: Vtable for java.io.PrintStream not found! Can you imaging, that is really frustrating trying something and the simpliest things aren't running? Please provide simple examples AND a running launch config. I think this would do a easy kick start for users like me. And I can tell you I have mulitple years of experience in programming. But I have not the time to struggle around to get the simpliest things - from user view point - running. Currently I am evaluating, if xmlvm could be a possible "invest" for my team. But in that project state of xmlvm... Maybe it is a missing documentation, maybe it is the missing simple example or maybe both. But I am sure, if you just invest 30 min of your current effort in the place to get new users started, new users wouldn't turn around and giving up so fast. So hopefully the developers of this list would here my crying and try to fix the issues. And maybe you should freeze a running version by tagging/branching or providing a zip/tag.gz for the users. best regards, Hans On 04/07/2011 09:32 PM, Arno Puder wrote: > unfortunately the documentation is out of sync with the actual > implementation. The cpp target does not exist anymore. We are working on > adding a target for C (which is a subset of C++). If you select > --target=c, you will get portable C code. If you select --target=posix, > you get a ready to use Makefile plus all dependent classes. > > Arno > > > On 4/7/11 12:04 PM, hka...@go... wrote: >> Hello list, >> >> sorry new try (hopefully without html-tags). >> >> today I did my first steps with XMLVM, but I failed completely. I tried >> to run an crosscompile from java (class) to C++. >> So please help me, just only to start a simple Hello World cross compile! >> >> What I did: >> - I checked out the trunk >> - started eclipse >> - created a own project xmlvmDemoTests >> - create a test class in the project >> *package*com.dummy.xmlvm.demo;** >> * public**class*Test { >> *public**static**void*main(String[] args) { >> System./out/.println("hello world"); >> } >> } >> - created a launch configuration with: >> project=xmlvm >> Main class=org.xmlvm.Main >> Program arguments=--debug=all >> --in=${project_loc:/xmlvmDemoTests}/bin/ >> --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=cpp >> >> I started the launch config and now I get cpp is an unkown target??? But >> the documentation says: |cpp|: The input files are cross-compiled to C++. >> >> - okay I do not give up so easily, now I tried to crosscompile against >> XMLVMjvm. Changed launch configuration programm arguments to: >> Program arguments=--debug=all >> --in=${project_loc:/xmlvmDemoTests}/bin/ >> --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=jvm >> >> Now I get: Could not create target process for target JVM. But the >> documentations says: jvm: The input files are cross-compiled to XMLVMJVM. >> >> - okay even now I do not give up easily, I tried to crosscompile against >> xmlvm. Changed launch configuration programm arguments to: >> Program arguments=--debug=all >> --in=${project_loc:/xmlvmDemoTests}/bin/ >> --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=xmlvm >> >> Now I get the following console-output: >> [04/07/11 20:25:58.189] DEBUG: Instantiated: >> org.xmlvm.proc.in.InputProcess$ClassInputProcess >> [04/07/11 20:25:58.189] DEBUG: Instantiated: >> org.xmlvm.proc.in.InputProcess$ClassInputProcess for >> "C:\Projects\xmlvm\trunk\xmlvmDemoTests\bin\com\dummy\xmlvm\demo\Test.class" >> [04/07/11 20:25:58.189] DEBUG: Instantiated: >> org.xmlvm.proc.out.XmlvmOutputProcess >> [04/07/11 20:25:58.189] DEBUG: Instantiated: >> org.xmlvm.proc.out.RecursiveResourceLoadingProcess >> [04/07/11 20:25:58.204] DEBUG: Adding preprocess >> org.xmlvm.proc.out.RecursiveResourceLoadingProcess to process >> org.xmlvm.proc.out.XmlvmOutputProcess >> [04/07/11 20:25:58.236] DEBUG: UniversalFileCreator: Could not find >> either resource: (One-JAR resource: /redlist.txt / file system resource: >> lib/redlist.txt) >> [04/07/11 20:25:58.236] DEBUG: Instantiated: >> org.xmlvm.proc.out.DEXmlvmOutputProcess >> java.lang.reflect.InvocationTargetException >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >> at java.lang.reflect.Constructor.newInstance(Constructor.java:513) >> at >> org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) >> at >> org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) >> at >> org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) >> at >> org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) >> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) >> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) >> at org.xmlvm.Main.main(Main.java:53) >> Caused by: java.lang.NullPointerException >> at >> org.xmlvm.proc.out.DEXmlvmOutputProcess.initializeRedList(DEXmlvmOutputProcess.java:461) >> at >> org.xmlvm.proc.out.DEXmlvmOutputProcess.<init>(DEXmlvmOutputProcess.java:264) >> at >> org.xmlvm.proc.out.DEXmlvmOutputProcess.<init>(DEXmlvmOutputProcess.java:238) >> ... 11 more >> [04/07/11 20:25:58.251] DEBUG: Instantiated: >> org.xmlvm.proc.out.ExeToXmlvmProcess >> [04/07/11 20:25:58.251] DEBUG: Adding preprocess >> org.xmlvm.proc.out.ExeToXmlvmProcess to process >> org.xmlvm.proc.out.RecursiveResourceLoadingProcess >> [04/07/11 20:25:58.251] DEBUG: Instantiated: >> org.xmlvm.proc.out.XmlvmToXmlvmProcess >> [04/07/11 20:25:58.251] DEBUG: Adding preprocess >> org.xmlvm.proc.out.XmlvmToXmlvmProcess to process >> org.xmlvm.proc.out.RecursiveResourceLoadingProcess >> java.lang.NoSuchMethodException: >> org.xmlvm.proc.in.InputProcess$ExeInputProcess.<init>(org.xmlvm.main.Arguments) >> at java.lang.Class.getConstructor0(Class.java:2706) >> at java.lang.Class.getConstructor(Class.java:1657) >> at >> org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) >> at >> org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) >> at >> org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) >> at >> org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) >> at >> org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) >> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) >> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) >> at org.xmlvm.Main.main(Main.java:53) >> java.lang.NoSuchMethodException: >> org.xmlvm.proc.in.InputProcess$XmlvmInputProcess.<init>(org.xmlvm.main.Arguments) >> at java.lang.Class.getConstructor0(Class.java:2706) >> at java.lang.Class.getConstructor(Class.java:1657) >> at >> org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) >> at >> org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) >> at >> org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) >> at >> org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) >> at >> org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) >> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) >> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) >> at org.xmlvm.Main.main(Main.java:53) >> [04/07/11 20:25:58.251] ERROR: There are still 1 processes left. >> [04/07/11 20:25:58.251] ERROR: Something went wrong during processing. >> >> So please help a new user to get started. |
From: John C. <jc...@un...> - 2011-04-28 20:36:17
|
Hans, I tried your test class on my system and it partially compiled, but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh no, XMLVM needs more memory. Try running with -Xmx1G or more." Don't know if it matters, but did you put your source file into a directory named 'test' to match the package? See the layout of my files, and the content of the Makefile, at http://unternet.net/xmlvm, and the part that xmlvm was able to complete at http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ On my (Debian stable) build system, /usr/local/bin/xmlvm is a symlink to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... <hka...@go...> wrote: > Hello Arno, > > currently I am again struggeling with xmlvm. I gived the xmlvm now the > second try and I am falling again... > My goal: I just want to get C/C++ code from Java. > > I cannot even get a simple example running. > 1. I checked out trunk. > 2. I created a test class, a pretty, pretty simple one > Here my test class: > package test; > > public class HelloWorld { > > public static void main(String[] args) { > System.out.println("hello world"); > } > > } > > 3. I created a launch config > Here my launch params: > --in=${workspace_loc:xmlvm-test}/bin > --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix > --app-name=xmlvm-test > > now I get: > Exception in thread "main" java.lang.NullPointerException > at -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |
From: John C. <jc...@un...> - 2011-04-29 05:10:37
|
Fixed my Makefile to invoke 'java' with '-Xmx1G' and the xmlvm compiler finished; but the resulting C source has an error, see output of 'make' below. jcomeau@intrepid:~/rentacoder/xmlvm/generated/posix/src/dist$ make make[1]: Entering directory `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' mkdir -p build/obj/ gcc -w -std=c99 -I../src -c ../src/finalize.c -o build/obj/finalize.o In file included from ../src/gc_pmark.h:45, from ../src/finalize.c:17: ../src/gc_priv.h:2196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GC_jmp_buf’ make[1]: *** [build/obj/finalize.o] Error 1 make[1]: Leaving directory `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' Line 2196 is the 3rd line of the statement: # if defined(NEED_FIND_LIMIT) || \ defined(USE_PROC_FOR_LIBRARIES) && defined(THREADS) JMP_BUF GC_jmp_buf; Any ideas how to fix? On Thu, Apr 28, 2011 at 1:36 PM, John Comeau <jc...@un...> wrote: > Hans, I tried your test class on my system and it partially compiled, > but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh no, > XMLVM needs more memory. Try running with -Xmx1G or more." > > Don't know if it matters, but did you put your source file into a > directory named 'test' to match the package? See the layout of my > files, and the content of the Makefile, at http://unternet.net/xmlvm, > and the part that xmlvm was able to complete at > http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ > > On my (Debian stable) build system, /usr/local/bin/xmlvm is a symlink > to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar > > On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... > <hka...@go...> wrote: >> Hello Arno, >> >> currently I am again struggeling with xmlvm. I gived the xmlvm now the >> second try and I am falling again... >> My goal: I just want to get C/C++ code from Java. >> >> I cannot even get a simple example running. >> 1. I checked out trunk. >> 2. I created a test class, a pretty, pretty simple one >> Here my test class: >> package test; >> >> public class HelloWorld { >> >> public static void main(String[] args) { >> System.out.println("hello world"); >> } >> >> } >> >> 3. I created a launch config >> Here my launch params: >> --in=${workspace_loc:xmlvm-test}/bin >> --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix >> --app-name=xmlvm-test >> >> now I get: >> Exception in thread "main" java.lang.NullPointerException >> at > -- > John Comeau <jc...@un...> http://jc.unternet.net/ > "A place for everything, and everything > all over the place" > -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |
From: Arno P. <ar...@pu...> - 2011-04-29 05:14:36
|
you don't seem to be using the latest version. We removed the manual bundling of the Boehm GC and for the --target=posix we now expect a local installation of the Boehm GC (the boehmgc.jar that is bundled with XMLVM is specifically for iOS). After a svn update, re-generate your project and check the comments in the Makefile. Arno On 4/28/11 10:10 PM, John Comeau wrote: > Fixed my Makefile to invoke 'java' with '-Xmx1G' and the xmlvm > compiler finished; but the resulting C source has an error, see output > of 'make' below. > > jcomeau@intrepid:~/rentacoder/xmlvm/generated/posix/src/dist$ make > make[1]: Entering directory > `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' > mkdir -p build/obj/ > gcc -w -std=c99 -I../src -c ../src/finalize.c -o build/obj/finalize.o > In file included from ../src/gc_pmark.h:45, > from ../src/finalize.c:17: > ../src/gc_priv.h:2196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or > ‘__attribute__’ before ‘GC_jmp_buf’ > make[1]: *** [build/obj/finalize.o] Error 1 > make[1]: Leaving directory > `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' > > Line 2196 is the 3rd line of the statement: > > # if defined(NEED_FIND_LIMIT) || \ > defined(USE_PROC_FOR_LIBRARIES)&& defined(THREADS) > JMP_BUF GC_jmp_buf; > > Any ideas how to fix? > > On Thu, Apr 28, 2011 at 1:36 PM, John Comeau<jc...@un...> wrote: >> Hans, I tried your test class on my system and it partially compiled, >> but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh no, >> XMLVM needs more memory. Try running with -Xmx1G or more." >> >> Don't know if it matters, but did you put your source file into a >> directory named 'test' to match the package? See the layout of my >> files, and the content of the Makefile, at http://unternet.net/xmlvm, >> and the part that xmlvm was able to complete at >> http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ >> >> On my (Debian stable) build system, /usr/local/bin/xmlvm is a symlink >> to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar >> >> On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... >> <hka...@go...> wrote: >>> Hello Arno, >>> >>> currently I am again struggeling with xmlvm. I gived the xmlvm now the >>> second try and I am falling again... >>> My goal: I just want to get C/C++ code from Java. >>> >>> I cannot even get a simple example running. >>> 1. I checked out trunk. >>> 2. I created a test class, a pretty, pretty simple one >>> Here my test class: >>> package test; >>> >>> public class HelloWorld { >>> >>> public static void main(String[] args) { >>> System.out.println("hello world"); >>> } >>> >>> } >>> >>> 3. I created a launch config >>> Here my launch params: >>> --in=${workspace_loc:xmlvm-test}/bin >>> --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix >>> --app-name=xmlvm-test >>> >>> now I get: >>> Exception in thread "main" java.lang.NullPointerException >>> at >> -- >> John Comeau<jc...@un...> http://jc.unternet.net/ >> "A place for everything, and everything >> all over the place" >> > > > |
From: John C. <jc...@un...> - 2011-04-29 05:34:58
|
Thanks, Arno. My bad, should have updated before posting. But now I get: jcomeau@intrepid:~/rentacoder/xmlvm$ make mkdir -p generated/posix/src cd src && javac -d ../bin test/*.java java -Xmx1G -jar /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar \ --in=bin \ --out=generated/posix/src --target=posix \ --app-name=xmlvm-test Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:417) at java.lang.Integer.parseInt(Integer.java:499) at org.xmlvm.proc.XmlvmResource$XmlvmConstantStringElement.getLength(XmlvmResource.java:160) at org.xmlvm.proc.out.OptimizationOutputProcess.generateStringConstantPool(OptimizationOutputProcess.java:115) at org.xmlvm.proc.out.OptimizationOutputProcess.processPhase2(OptimizationOutputProcess.java:88) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) at org.xmlvm.Main.main(Main.java:53) ... 6 more Source tree is at http://unternet.net/xmlvm/ is current. On Thu, Apr 28, 2011 at 10:13 PM, Arno Puder <ar...@pu...> wrote: > > you don't seem to be using the latest version. We removed the manual > bundling of the Boehm GC and for the --target=posix we now expect a > local installation of the Boehm GC (the boehmgc.jar that is bundled with > XMLVM is specifically for iOS). After a svn update, re-generate your > project and check the comments in the Makefile. > > Arno > > > On 4/28/11 10:10 PM, John Comeau wrote: >> Fixed my Makefile to invoke 'java' with '-Xmx1G' and the xmlvm >> compiler finished; but the resulting C source has an error, see output >> of 'make' below. >> >> jcomeau@intrepid:~/rentacoder/xmlvm/generated/posix/src/dist$ make >> make[1]: Entering directory >> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >> mkdir -p build/obj/ >> gcc -w -std=c99 -I../src -c ../src/finalize.c -o build/obj/finalize.o >> In file included from ../src/gc_pmark.h:45, >> from ../src/finalize.c:17: >> ../src/gc_priv.h:2196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or >> ‘__attribute__’ before ‘GC_jmp_buf’ >> make[1]: *** [build/obj/finalize.o] Error 1 >> make[1]: Leaving directory >> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >> >> Line 2196 is the 3rd line of the statement: >> >> # if defined(NEED_FIND_LIMIT) || \ >> defined(USE_PROC_FOR_LIBRARIES)&& defined(THREADS) >> JMP_BUF GC_jmp_buf; >> >> Any ideas how to fix? >> >> On Thu, Apr 28, 2011 at 1:36 PM, John Comeau<jc...@un...> wrote: >>> Hans, I tried your test class on my system and it partially compiled, >>> but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh no, >>> XMLVM needs more memory. Try running with -Xmx1G or more." >>> >>> Don't know if it matters, but did you put your source file into a >>> directory named 'test' to match the package? See the layout of my >>> files, and the content of the Makefile, at http://unternet.net/xmlvm, >>> and the part that xmlvm was able to complete at >>> http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ >>> >>> On my (Debian stable) build system, /usr/local/bin/xmlvm is a symlink >>> to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar >>> >>> On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... >>> <hka...@go...> wrote: >>>> Hello Arno, >>>> >>>> currently I am again struggeling with xmlvm. I gived the xmlvm now the >>>> second try and I am falling again... >>>> My goal: I just want to get C/C++ code from Java. >>>> >>>> I cannot even get a simple example running. >>>> 1. I checked out trunk. >>>> 2. I created a test class, a pretty, pretty simple one >>>> Here my test class: >>>> package test; >>>> >>>> public class HelloWorld { >>>> >>>> public static void main(String[] args) { >>>> System.out.println("hello world"); >>>> } >>>> >>>> } >>>> >>>> 3. I created a launch config >>>> Here my launch params: >>>> --in=${workspace_loc:xmlvm-test}/bin >>>> --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix >>>> --app-name=xmlvm-test >>>> >>>> now I get: >>>> Exception in thread "main" java.lang.NullPointerException >>>> at >>> -- >>> John Comeau<jc...@un...> http://jc.unternet.net/ >>> "A place for everything, and everything >>> all over the place" >>> >> >> >> > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |
From: Sascha H. <sa...@gm...> - 2011-04-28 21:13:24
|
Hi Hans, On Thu, Apr 28, 2011 at 10:26 AM, hka...@go... < hka...@go...> wrote: > Hello Arno, > > currently I am again struggeling with xmlvm. I gived the xmlvm now the > second try and I am falling again... > My goal: I just want to get C/C++ code from Java. > > I cannot even get a simple example running. > 1. I checked out trunk. > 2. I created a test class, a pretty, pretty simple one > Here my test class: > package test; > > public class HelloWorld { > > public static void main(String[] args) { > System.out.println("hello world"); > } > > } > > 3. I created a launch config > Here my launch params: > --in=${workspace_loc:xmlvm-test}/bin > --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix > --app-name=xmlvm-test > > now I get: > Exception in thread "main" java.lang.NullPointerException > at > org.xmlvm.proc.CompilationBundle.addResources(CompilationBundle.java:44) > at > > org.xmlvm.proc.out.RecursiveResourceLoadingProcess.processPhase1(RecursiveResourceLoadingProcess.java:63) > at > > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:209) > at > > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) > at > > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) > at > > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) > at > > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) > at > > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:157) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > at org.xmlvm.Main.main(Main.java:53) > I am not sure why this is happening. The error basically tells me that a loaded resources is null. I could get rid of the error message, but I think there is another issue here. Can you pleaserun xmlvm using "--debug=all" and send me the complete log? There might be a pointer earlier in the log that might give more insight into what is going wrong here. This simple example should certainly work. > > 4. okay try the c target > here my launch params > --in=${workspace_loc:xmlvm-test}/bin > --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=c > --app-name=xmlvm-test > > 5. now I get > [04/28/11 10:23:51.892] ERROR: Vtable for java.io.PrintStream not found! I was able to reproduce this problem and we will take a look at it. Thanks for finding! > > Can you imaging, that is really frustrating trying something and the > simpliest things aren't running? > > Please provide simple examples AND a running launch config. I think this > would do a easy kick start for users like me. > And I can tell you I have mulitple years of experience in programming. > But I have not the time to struggle around to get the simpliest things - > from user view point - running. Currently I am evaluating, if xmlvm > could be a possible "invest" for my team. But in that project state of > xmlvm... > > Maybe it is a missing documentation, maybe it is the missing simple > example or maybe both. But I am sure, if you just invest 30 min of your > current effort in the place to get new users started, new users wouldn't > turn around and giving up so fast. > > So hopefully the developers of this list would here my crying and try to > fix the issues. > And maybe you should freeze a running version by tagging/branching or > providing a zip/tag.gz for the users. > > best regards, > Hans > > > > On 04/07/2011 09:32 PM, Arno Puder wrote: > > unfortunately the documentation is out of sync with the actual > > implementation. The cpp target does not exist anymore. We are working on > > adding a target for C (which is a subset of C++). If you select > > --target=c, you will get portable C code. If you select --target=posix, > > you get a ready to use Makefile plus all dependent classes. > > > > Arno > > > > > > On 4/7/11 12:04 PM, hka...@go... wrote: > >> Hello list, > >> > >> sorry new try (hopefully without html-tags). > >> > >> today I did my first steps with XMLVM, but I failed completely. I tried > >> to run an crosscompile from java (class) to C++. > >> So please help me, just only to start a simple Hello World cross > compile! > >> > >> What I did: > >> - I checked out the trunk > >> - started eclipse > >> - created a own project xmlvmDemoTests > >> - create a test class in the project > >> *package*com.dummy.xmlvm.demo;** > >> * public**class*Test { > >> *public**static**void*main(String[] args) { > >> System./out/.println("hello world"); > >> } > >> } > >> - created a launch configuration with: > >> project=xmlvm > >> Main class=org.xmlvm.Main > >> Program arguments=--debug=all > >> --in=${project_loc:/xmlvmDemoTests}/bin/ > >> --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=cpp > >> > >> I started the launch config and now I get cpp is an unkown target??? But > >> the documentation says: |cpp|: The input files are cross-compiled to > C++. > >> > >> - okay I do not give up so easily, now I tried to crosscompile against > >> XMLVMjvm. Changed launch configuration programm arguments to: > >> Program arguments=--debug=all > >> --in=${project_loc:/xmlvmDemoTests}/bin/ > >> --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=jvm > >> > >> Now I get: Could not create target process for target JVM. But the > >> documentations says: jvm: The input files are cross-compiled to > XMLVMJVM. > >> > >> - okay even now I do not give up easily, I tried to crosscompile against > >> xmlvm. Changed launch configuration programm arguments to: > >> Program arguments=--debug=all > >> --in=${project_loc:/xmlvmDemoTests}/bin/ > >> --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=xmlvm > >> > >> Now I get the following console-output: > >> [04/07/11 20:25:58.189] DEBUG: Instantiated: > >> org.xmlvm.proc.in.InputProcess$ClassInputProcess > >> [04/07/11 20:25:58.189] DEBUG: Instantiated: > >> org.xmlvm.proc.in.InputProcess$ClassInputProcess for > >> > "C:\Projects\xmlvm\trunk\xmlvmDemoTests\bin\com\dummy\xmlvm\demo\Test.class" > >> [04/07/11 20:25:58.189] DEBUG: Instantiated: > >> org.xmlvm.proc.out.XmlvmOutputProcess > >> [04/07/11 20:25:58.189] DEBUG: Instantiated: > >> org.xmlvm.proc.out.RecursiveResourceLoadingProcess > >> [04/07/11 20:25:58.204] DEBUG: Adding preprocess > >> org.xmlvm.proc.out.RecursiveResourceLoadingProcess to process > >> org.xmlvm.proc.out.XmlvmOutputProcess > >> [04/07/11 20:25:58.236] DEBUG: UniversalFileCreator: Could not find > >> either resource: (One-JAR resource: /redlist.txt / file system resource: > >> lib/redlist.txt) > >> [04/07/11 20:25:58.236] DEBUG: Instantiated: > >> org.xmlvm.proc.out.DEXmlvmOutputProcess > >> java.lang.reflect.InvocationTargetException > >> at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > >> Method) > >> at > >> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > >> at > >> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > >> at > java.lang.reflect.Constructor.newInstance(Constructor.java:513) > >> at > >> > org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) > >> at > >> > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > >> at > >> > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > >> at > >> > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) > >> at > org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) > >> at > org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > >> at org.xmlvm.Main.main(Main.java:53) > >> Caused by: java.lang.NullPointerException > >> at > >> > org.xmlvm.proc.out.DEXmlvmOutputProcess.initializeRedList(DEXmlvmOutputProcess.java:461) > >> at > >> > org.xmlvm.proc.out.DEXmlvmOutputProcess.<init>(DEXmlvmOutputProcess.java:264) > >> at > >> > org.xmlvm.proc.out.DEXmlvmOutputProcess.<init>(DEXmlvmOutputProcess.java:238) > >> ... 11 more > >> [04/07/11 20:25:58.251] DEBUG: Instantiated: > >> org.xmlvm.proc.out.ExeToXmlvmProcess > >> [04/07/11 20:25:58.251] DEBUG: Adding preprocess > >> org.xmlvm.proc.out.ExeToXmlvmProcess to process > >> org.xmlvm.proc.out.RecursiveResourceLoadingProcess > >> [04/07/11 20:25:58.251] DEBUG: Instantiated: > >> org.xmlvm.proc.out.XmlvmToXmlvmProcess > >> [04/07/11 20:25:58.251] DEBUG: Adding preprocess > >> org.xmlvm.proc.out.XmlvmToXmlvmProcess to process > >> org.xmlvm.proc.out.RecursiveResourceLoadingProcess > >> java.lang.NoSuchMethodException: > >> > org.xmlvm.proc.in.InputProcess$ExeInputProcess.<init>(org.xmlvm.main.Arguments) > >> at java.lang.Class.getConstructor0(Class.java:2706) > >> at java.lang.Class.getConstructor(Class.java:1657) > >> at > >> > org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) > >> at > >> > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > >> at > >> > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > >> at > >> > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > >> at > >> > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) > >> at > org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) > >> at > org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > >> at org.xmlvm.Main.main(Main.java:53) > >> java.lang.NoSuchMethodException: > >> > org.xmlvm.proc.in.InputProcess$XmlvmInputProcess.<init>(org.xmlvm.main.Arguments) > >> at java.lang.Class.getConstructor0(Class.java:2706) > >> at java.lang.Class.getConstructor(Class.java:1657) > >> at > >> > org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) > >> at > >> > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > >> at > >> > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > >> at > >> > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > >> at > >> > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) > >> at > org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) > >> at > org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > >> at org.xmlvm.Main.main(Main.java:53) > >> [04/07/11 20:25:58.251] ERROR: There are still 1 processes left. > >> [04/07/11 20:25:58.251] ERROR: Something went wrong during > processing. > >> > >> So please help a new user to get started. > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Arno P. <ar...@pu...> - 2011-04-29 05:36:31
|
do an "ant clean" and remove all .cache directories. Then try again. Arno On 4/28/11 10:34 PM, John Comeau wrote: > Thanks, Arno. My bad, should have updated before posting. But now I get: > > jcomeau@intrepid:~/rentacoder/xmlvm$ make > mkdir -p generated/posix/src > cd src&& javac -d ../bin test/*.java > java -Xmx1G -jar /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar \ > --in=bin \ > --out=generated/posix/src --target=posix \ > --app-name=xmlvm-test > Exception in thread "main" java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at com.simontuffs.onejar.Boot.run(Boot.java:306) > at com.simontuffs.onejar.Boot.main(Boot.java:159) > Caused by: java.lang.NumberFormatException: null > at java.lang.Integer.parseInt(Integer.java:417) > at java.lang.Integer.parseInt(Integer.java:499) > at org.xmlvm.proc.XmlvmResource$XmlvmConstantStringElement.getLength(XmlvmResource.java:160) > at org.xmlvm.proc.out.OptimizationOutputProcess.generateStringConstantPool(OptimizationOutputProcess.java:115) > at org.xmlvm.proc.out.OptimizationOutputProcess.processPhase2(OptimizationOutputProcess.java:88) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > at org.xmlvm.Main.main(Main.java:53) > ... 6 more > > Source tree is at http://unternet.net/xmlvm/ is current. > > On Thu, Apr 28, 2011 at 10:13 PM, Arno Puder<ar...@pu...> wrote: >> >> you don't seem to be using the latest version. We removed the manual >> bundling of the Boehm GC and for the --target=posix we now expect a >> local installation of the Boehm GC (the boehmgc.jar that is bundled with >> XMLVM is specifically for iOS). After a svn update, re-generate your >> project and check the comments in the Makefile. >> >> Arno >> >> >> On 4/28/11 10:10 PM, John Comeau wrote: >>> Fixed my Makefile to invoke 'java' with '-Xmx1G' and the xmlvm >>> compiler finished; but the resulting C source has an error, see output >>> of 'make' below. >>> >>> jcomeau@intrepid:~/rentacoder/xmlvm/generated/posix/src/dist$ make >>> make[1]: Entering directory >>> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >>> mkdir -p build/obj/ >>> gcc -w -std=c99 -I../src -c ../src/finalize.c -o build/obj/finalize.o >>> In file included from ../src/gc_pmark.h:45, >>> from ../src/finalize.c:17: >>> ../src/gc_priv.h:2196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or >>> ‘__attribute__’ before ‘GC_jmp_buf’ >>> make[1]: *** [build/obj/finalize.o] Error 1 >>> make[1]: Leaving directory >>> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >>> >>> Line 2196 is the 3rd line of the statement: >>> >>> # if defined(NEED_FIND_LIMIT) || \ >>> defined(USE_PROC_FOR_LIBRARIES)&& defined(THREADS) >>> JMP_BUF GC_jmp_buf; >>> >>> Any ideas how to fix? >>> >>> On Thu, Apr 28, 2011 at 1:36 PM, John Comeau<jc...@un...> wrote: >>>> Hans, I tried your test class on my system and it partially compiled, >>>> but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh no, >>>> XMLVM needs more memory. Try running with -Xmx1G or more." >>>> >>>> Don't know if it matters, but did you put your source file into a >>>> directory named 'test' to match the package? See the layout of my >>>> files, and the content of the Makefile, at http://unternet.net/xmlvm, >>>> and the part that xmlvm was able to complete at >>>> http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ >>>> >>>> On my (Debian stable) build system, /usr/local/bin/xmlvm is a symlink >>>> to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar >>>> >>>> On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... >>>> <hka...@go...> wrote: >>>>> Hello Arno, >>>>> >>>>> currently I am again struggeling with xmlvm. I gived the xmlvm now the >>>>> second try and I am falling again... >>>>> My goal: I just want to get C/C++ code from Java. >>>>> >>>>> I cannot even get a simple example running. >>>>> 1. I checked out trunk. >>>>> 2. I created a test class, a pretty, pretty simple one >>>>> Here my test class: >>>>> package test; >>>>> >>>>> public class HelloWorld { >>>>> >>>>> public static void main(String[] args) { >>>>> System.out.println("hello world"); >>>>> } >>>>> >>>>> } >>>>> >>>>> 3. I created a launch config >>>>> Here my launch params: >>>>> --in=${workspace_loc:xmlvm-test}/bin >>>>> --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix >>>>> --app-name=xmlvm-test >>>>> >>>>> now I get: >>>>> Exception in thread "main" java.lang.NullPointerException >>>>> at >>>> -- >>>> John Comeau<jc...@un...> http://jc.unternet.net/ >>>> "A place for everything, and everything >>>> all over the place" >>>> >>> >>> >>> >> >> ------------------------------------------------------------------------------ >> WhatsUp Gold - Download Free Network Management Software >> The most intuitive, comprehensive, and cost-effective network >> management toolset available today. Delivers lowest initial >> acquisition cost and overall TCO of any competing solution. >> http://p.sf.net/sfu/whatsupgold-sd >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> > > > |
From: John C. <jc...@un...> - 2011-04-29 05:45:10
|
Done. Exactly same result. On Thu, Apr 28, 2011 at 10:35 PM, Arno Puder <ar...@pu...> wrote: > > do an "ant clean" and remove all .cache directories. Then try again. > > Arno > > > On 4/28/11 10:34 PM, John Comeau wrote: >> Thanks, Arno. My bad, should have updated before posting. But now I get: >> >> jcomeau@intrepid:~/rentacoder/xmlvm$ make >> mkdir -p generated/posix/src >> cd src&& javac -d ../bin test/*.java >> java -Xmx1G -jar /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar \ >> --in=bin \ >> --out=generated/posix/src --target=posix \ >> --app-name=xmlvm-test >> Exception in thread "main" java.lang.reflect.InvocationTargetException >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at com.simontuffs.onejar.Boot.run(Boot.java:306) >> at com.simontuffs.onejar.Boot.main(Boot.java:159) >> Caused by: java.lang.NumberFormatException: null >> at java.lang.Integer.parseInt(Integer.java:417) >> at java.lang.Integer.parseInt(Integer.java:499) >> at org.xmlvm.proc.XmlvmResource$XmlvmConstantStringElement.getLength(XmlvmResource.java:160) >> at org.xmlvm.proc.out.OptimizationOutputProcess.generateStringConstantPool(OptimizationOutputProcess.java:115) >> at org.xmlvm.proc.out.OptimizationOutputProcess.processPhase2(OptimizationOutputProcess.java:88) >> at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223) >> at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >> at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >> at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >> at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >> at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >> at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162) >> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) >> at org.xmlvm.Main.main(Main.java:53) >> ... 6 more >> >> Source tree is at http://unternet.net/xmlvm/ is current. >> >> On Thu, Apr 28, 2011 at 10:13 PM, Arno Puder<ar...@pu...> wrote: >>> >>> you don't seem to be using the latest version. We removed the manual >>> bundling of the Boehm GC and for the --target=posix we now expect a >>> local installation of the Boehm GC (the boehmgc.jar that is bundled with >>> XMLVM is specifically for iOS). After a svn update, re-generate your >>> project and check the comments in the Makefile. >>> >>> Arno >>> >>> >>> On 4/28/11 10:10 PM, John Comeau wrote: >>>> Fixed my Makefile to invoke 'java' with '-Xmx1G' and the xmlvm >>>> compiler finished; but the resulting C source has an error, see output >>>> of 'make' below. >>>> >>>> jcomeau@intrepid:~/rentacoder/xmlvm/generated/posix/src/dist$ make >>>> make[1]: Entering directory >>>> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >>>> mkdir -p build/obj/ >>>> gcc -w -std=c99 -I../src -c ../src/finalize.c -o build/obj/finalize.o >>>> In file included from ../src/gc_pmark.h:45, >>>> from ../src/finalize.c:17: >>>> ../src/gc_priv.h:2196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or >>>> ‘__attribute__’ before ‘GC_jmp_buf’ >>>> make[1]: *** [build/obj/finalize.o] Error 1 >>>> make[1]: Leaving directory >>>> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >>>> >>>> Line 2196 is the 3rd line of the statement: >>>> >>>> # if defined(NEED_FIND_LIMIT) || \ >>>> defined(USE_PROC_FOR_LIBRARIES)&& defined(THREADS) >>>> JMP_BUF GC_jmp_buf; >>>> >>>> Any ideas how to fix? >>>> >>>> On Thu, Apr 28, 2011 at 1:36 PM, John Comeau<jc...@un...> wrote: >>>>> Hans, I tried your test class on my system and it partially compiled, >>>>> but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh no, >>>>> XMLVM needs more memory. Try running with -Xmx1G or more." >>>>> >>>>> Don't know if it matters, but did you put your source file into a >>>>> directory named 'test' to match the package? See the layout of my >>>>> files, and the content of the Makefile, at http://unternet.net/xmlvm, >>>>> and the part that xmlvm was able to complete at >>>>> http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ >>>>> >>>>> On my (Debian stable) build system, /usr/local/bin/xmlvm is a symlink >>>>> to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar >>>>> >>>>> On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... >>>>> <hka...@go...> wrote: >>>>>> Hello Arno, >>>>>> >>>>>> currently I am again struggeling with xmlvm. I gived the xmlvm now the >>>>>> second try and I am falling again... >>>>>> My goal: I just want to get C/C++ code from Java. >>>>>> >>>>>> I cannot even get a simple example running. >>>>>> 1. I checked out trunk. >>>>>> 2. I created a test class, a pretty, pretty simple one >>>>>> Here my test class: >>>>>> package test; >>>>>> >>>>>> public class HelloWorld { >>>>>> >>>>>> public static void main(String[] args) { >>>>>> System.out.println("hello world"); >>>>>> } >>>>>> >>>>>> } >>>>>> >>>>>> 3. I created a launch config >>>>>> Here my launch params: >>>>>> --in=${workspace_loc:xmlvm-test}/bin >>>>>> --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix >>>>>> --app-name=xmlvm-test >>>>>> >>>>>> now I get: >>>>>> Exception in thread "main" java.lang.NullPointerException >>>>>> at >>>>> -- >>>>> John Comeau<jc...@un...> http://jc.unternet.net/ >>>>> "A place for everything, and everything >>>>> all over the place" >>>>> >>>> >>>> >>>> >>> >>> ------------------------------------------------------------------------------ >>> WhatsUp Gold - Download Free Network Management Software >>> The most intuitive, comprehensive, and cost-effective network >>> management toolset available today. Delivers lowest initial >>> acquisition cost and overall TCO of any competing solution. >>> http://p.sf.net/sfu/whatsupgold-sd >>> _______________________________________________ >>> xmlvm-users mailing list >>> xml...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>> >> >> >> > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |
From: John C. <jc...@un...> - 2011-04-29 06:08:37
|
OK, using --no-cache it built. Now I need to install the garbage collector before continuing. On Thu, Apr 28, 2011 at 11:05 PM, John Comeau <jc...@un...> wrote: > This is the same HelloWorld test that Hans posted yesterday, I'm still > trying to help with it. > > Currently rebuilding with --no-cache as requested. > > On Thu, Apr 28, 2011 at 11:00 PM, John Comeau <jc...@un...> wrote: >> On Thu, Apr 28, 2011 at 10:53 PM, Arno Puder <ar...@pu...> wrote: >>> >>> John: this is related to the new string handling, but without seeing the >>> program, I can't tell what is going wrong. In >>> XmlvmConstantStringElement.getLength() (which is the origin of the problem >>> according to the stack trace), can you print out all members of >>> XmlvmConstantStringElement? This will generate a lot of output, but just >>> before the exception is thrown, we should see which string constant is >>> causing the problem. >>> >>> Arno >>> >>> >>> On 4/28/11 10:44 PM, John Comeau wrote: >>>> >>>> Done. Exactly same result. >>>> >>>> On Thu, Apr 28, 2011 at 10:35 PM, Arno Puder<ar...@pu...> wrote: >>>>> >>>>> do an "ant clean" and remove all .cache directories. Then try again. >>>>> >>>>> Arno >>>>> >>>>> >>>>> On 4/28/11 10:34 PM, John Comeau wrote: >>>>>> >>>>>> Thanks, Arno. My bad, should have updated before posting. But now I get: >>>>>> >>>>>> jcomeau@intrepid:~/rentacoder/xmlvm$ make >>>>>> mkdir -p generated/posix/src >>>>>> cd src&& javac -d ../bin test/*.java >>>>>> java -Xmx1G -jar /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar \ >>>>>> --in=bin \ >>>>>> --out=generated/posix/src --target=posix \ >>>>>> --app-name=xmlvm-test >>>>>> Exception in thread "main" java.lang.reflect.InvocationTargetException >>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>>> at >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>>>>> at >>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>>>>> at java.lang.reflect.Method.invoke(Method.java:597) >>>>>> at com.simontuffs.onejar.Boot.run(Boot.java:306) >>>>>> at com.simontuffs.onejar.Boot.main(Boot.java:159) >>>>>> Caused by: java.lang.NumberFormatException: null >>>>>> at java.lang.Integer.parseInt(Integer.java:417) >>>>>> at java.lang.Integer.parseInt(Integer.java:499) >>>>>> at >>>>>> org.xmlvm.proc.XmlvmResource$XmlvmConstantStringElement.getLength(XmlvmResource.java:160) >>>>>> at >>>>>> org.xmlvm.proc.out.OptimizationOutputProcess.generateStringConstantPool(OptimizationOutputProcess.java:115) >>>>>> at >>>>>> org.xmlvm.proc.out.OptimizationOutputProcess.processPhase2(OptimizationOutputProcess.java:88) >>>>>> at >>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223) >>>>>> at >>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>> at >>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>> at >>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>> at >>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>> at >>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>> at >>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162) >>>>>> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) >>>>>> at org.xmlvm.Main.main(Main.java:53) >>>>>> ... 6 more >>>>>> >>>>>> Source tree is at http://unternet.net/xmlvm/ is current. >>>>>> >>>>>> On Thu, Apr 28, 2011 at 10:13 PM, Arno Puder<ar...@pu...> wrote: >>>>>>> >>>>>>> you don't seem to be using the latest version. We removed the manual >>>>>>> bundling of the Boehm GC and for the --target=posix we now expect a >>>>>>> local installation of the Boehm GC (the boehmgc.jar that is bundled >>>>>>> with >>>>>>> XMLVM is specifically for iOS). After a svn update, re-generate your >>>>>>> project and check the comments in the Makefile. >>>>>>> >>>>>>> Arno >>>>>>> >>>>>>> >>>>>>> On 4/28/11 10:10 PM, John Comeau wrote: >>>>>>>> >>>>>>>> Fixed my Makefile to invoke 'java' with '-Xmx1G' and the xmlvm >>>>>>>> compiler finished; but the resulting C source has an error, see output >>>>>>>> of 'make' below. >>>>>>>> >>>>>>>> jcomeau@intrepid:~/rentacoder/xmlvm/generated/posix/src/dist$ make >>>>>>>> make[1]: Entering directory >>>>>>>> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >>>>>>>> mkdir -p build/obj/ >>>>>>>> gcc -w -std=c99 -I../src -c ../src/finalize.c -o build/obj/finalize.o >>>>>>>> In file included from ../src/gc_pmark.h:45, >>>>>>>> from ../src/finalize.c:17: >>>>>>>> ../src/gc_priv.h:2196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or >>>>>>>> ‘__attribute__’ before ‘GC_jmp_buf’ >>>>>>>> make[1]: *** [build/obj/finalize.o] Error 1 >>>>>>>> make[1]: Leaving directory >>>>>>>> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >>>>>>>> >>>>>>>> Line 2196 is the 3rd line of the statement: >>>>>>>> >>>>>>>> # if defined(NEED_FIND_LIMIT) || \ >>>>>>>> defined(USE_PROC_FOR_LIBRARIES)&& defined(THREADS) >>>>>>>> JMP_BUF GC_jmp_buf; >>>>>>>> >>>>>>>> Any ideas how to fix? >>>>>>>> >>>>>>>> On Thu, Apr 28, 2011 at 1:36 PM, John Comeau<jc...@un...> >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> Hans, I tried your test class on my system and it partially compiled, >>>>>>>>> but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh no, >>>>>>>>> XMLVM needs more memory. Try running with -Xmx1G or more." >>>>>>>>> >>>>>>>>> Don't know if it matters, but did you put your source file into a >>>>>>>>> directory named 'test' to match the package? See the layout of my >>>>>>>>> files, and the content of the Makefile, at http://unternet.net/xmlvm, >>>>>>>>> and the part that xmlvm was able to complete at >>>>>>>>> >>>>>>>>> http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ >>>>>>>>> >>>>>>>>> On my (Debian stable) build system, /usr/local/bin/xmlvm is a symlink >>>>>>>>> to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar >>>>>>>>> >>>>>>>>> On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... >>>>>>>>> <hka...@go...> wrote: >>>>>>>>>> >>>>>>>>>> Hello Arno, >>>>>>>>>> >>>>>>>>>> currently I am again struggeling with xmlvm. I gived the xmlvm now >>>>>>>>>> the >>>>>>>>>> second try and I am falling again... >>>>>>>>>> My goal: I just want to get C/C++ code from Java. >>>>>>>>>> >>>>>>>>>> I cannot even get a simple example running. >>>>>>>>>> 1. I checked out trunk. >>>>>>>>>> 2. I created a test class, a pretty, pretty simple one >>>>>>>>>> Here my test class: >>>>>>>>>> package test; >>>>>>>>>> >>>>>>>>>> public class HelloWorld { >>>>>>>>>> >>>>>>>>>> public static void main(String[] args) { >>>>>>>>>> System.out.println("hello world"); >>>>>>>>>> } >>>>>>>>>> >>>>>>>>>> } >>>>>>>>>> >>>>>>>>>> 3. I created a launch config >>>>>>>>>> Here my launch params: >>>>>>>>>> --in=${workspace_loc:xmlvm-test}/bin >>>>>>>>>> --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src >>>>>>>>>> --target=posix >>>>>>>>>> --app-name=xmlvm-test >>>>>>>>>> >>>>>>>>>> now I get: >>>>>>>>>> Exception in thread "main" java.lang.NullPointerException >>>>>>>>>> at >>>>>>>>> >>>>>>>>> -- >>>>>>>>> John Comeau<jc...@un...> http://jc.unternet.net/ >>>>>>>>> "A place for everything, and everything >>>>>>>>> all over the place" >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> WhatsUp Gold - Download Free Network Management Software >>>>>>> The most intuitive, comprehensive, and cost-effective network >>>>>>> management toolset available today. Delivers lowest initial >>>>>>> acquisition cost and overall TCO of any competing solution. >>>>>>> http://p.sf.net/sfu/whatsupgold-sd >>>>>>> _______________________________________________ >>>>>>> xmlvm-users mailing list >>>>>>> xml...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> WhatsUp Gold - Download Free Network Management Software >>>>> The most intuitive, comprehensive, and cost-effective network >>>>> management toolset available today. Delivers lowest initial >>>>> acquisition cost and overall TCO of any competing solution. >>>>> http://p.sf.net/sfu/whatsupgold-sd >>>>> _______________________________________________ >>>>> xmlvm-users mailing list >>>>> xml...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>>>> >>>> >>>> >>>> >>> >> >> >> >> -- >> John Comeau <jc...@un...> http://jc.unternet.net/ >> "A place for everything, and everything >> all over the place" >> > > > > -- > John Comeau <jc...@un...> http://jc.unternet.net/ > "A place for everything, and everything > all over the place" > -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |
From: John C. <jc...@un...> - 2011-04-29 06:19:51
|
Using --no-cache fixed the problem. When you told me 'do an "ant clean" and remove all .cache directories. Then try again' I mistakenly assumed you meant both things were to be done in the xmlvm sources, not the first in xmlvm and the second in my test build directory. And after running "ant clean" I did "find . -name .cache" and didn't find anything, so assumed you had meant "ant clean" would remove the .cache directories to which you were referring. Anyway, the latest build error is: gcc -w -std=c99 -I../src -c ../src/native_java_io_File.c -o build/obj/native_java_io_File.o ../src/native_java_io_File.c: In function ‘java_io_File_isDirectoryImpl___byte_1ARRAY’: ../src/native_java_io_File.c:94: error: ‘S_IFDIR’ undeclared (first use in this function) ../src/native_java_io_File.c:94: error: (Each undeclared identifier is reported only once ../src/native_java_io_File.c:94: error: for each function it appears in.) make[1]: *** [build/obj/native_java_io_File.o] Error 1 make[1]: Leaving directory `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' make: *** [default] Error 2 On Thu, Apr 28, 2011 at 11:10 PM, Arno Puder <ar...@pu...> wrote: > > well, that means that there is a .cache directory floating around somewhere > that still has some .xmlvm cached from before the constant pool update. > > Can you please send another message on the mailing list to say --no-cache > fixed the problem? > > Thanks, > Arno > > > On 4/28/11 11:08 PM, John Comeau wrote: >> >> OK, using --no-cache it built. Now I need to install the garbage >> collector before continuing. >> >> On Thu, Apr 28, 2011 at 11:05 PM, John Comeau<jc...@un...> wrote: >>> >>> This is the same HelloWorld test that Hans posted yesterday, I'm still >>> trying to help with it. >>> >>> Currently rebuilding with --no-cache as requested. >>> >>> On Thu, Apr 28, 2011 at 11:00 PM, John Comeau<jc...@un...> wrote: >>>> >>>> On Thu, Apr 28, 2011 at 10:53 PM, Arno Puder<ar...@pu...> wrote: >>>>> >>>>> John: this is related to the new string handling, but without seeing >>>>> the >>>>> program, I can't tell what is going wrong. In >>>>> XmlvmConstantStringElement.getLength() (which is the origin of the >>>>> problem >>>>> according to the stack trace), can you print out all members of >>>>> XmlvmConstantStringElement? This will generate a lot of output, but >>>>> just >>>>> before the exception is thrown, we should see which string constant is >>>>> causing the problem. >>>>> >>>>> Arno >>>>> >>>>> >>>>> On 4/28/11 10:44 PM, John Comeau wrote: >>>>>> >>>>>> Done. Exactly same result. >>>>>> >>>>>> On Thu, Apr 28, 2011 at 10:35 PM, Arno Puder<ar...@pu...> wrote: >>>>>>> >>>>>>> do an "ant clean" and remove all .cache directories. Then try again. >>>>>>> >>>>>>> Arno >>>>>>> >>>>>>> >>>>>>> On 4/28/11 10:34 PM, John Comeau wrote: >>>>>>>> >>>>>>>> Thanks, Arno. My bad, should have updated before posting. But now I >>>>>>>> get: >>>>>>>> >>>>>>>> jcomeau@intrepid:~/rentacoder/xmlvm$ make >>>>>>>> mkdir -p generated/posix/src >>>>>>>> cd src&& javac -d ../bin test/*.java >>>>>>>> java -Xmx1G -jar /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar \ >>>>>>>> --in=bin \ >>>>>>>> --out=generated/posix/src --target=posix \ >>>>>>>> --app-name=xmlvm-test >>>>>>>> Exception in thread "main" >>>>>>>> java.lang.reflect.InvocationTargetException >>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>>>>> at >>>>>>>> >>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>>>>>>> at >>>>>>>> >>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597) >>>>>>>> at com.simontuffs.onejar.Boot.run(Boot.java:306) >>>>>>>> at com.simontuffs.onejar.Boot.main(Boot.java:159) >>>>>>>> Caused by: java.lang.NumberFormatException: null >>>>>>>> at java.lang.Integer.parseInt(Integer.java:417) >>>>>>>> at java.lang.Integer.parseInt(Integer.java:499) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.XmlvmResource$XmlvmConstantStringElement.getLength(XmlvmResource.java:160) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.out.OptimizationOutputProcess.generateStringConstantPool(OptimizationOutputProcess.java:115) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.out.OptimizationOutputProcess.processPhase2(OptimizationOutputProcess.java:88) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>>>> at >>>>>>>> org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162) >>>>>>>> at >>>>>>>> org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) >>>>>>>> at org.xmlvm.Main.main(Main.java:53) >>>>>>>> ... 6 more >>>>>>>> >>>>>>>> Source tree is at http://unternet.net/xmlvm/ is current. >>>>>>>> >>>>>>>> On Thu, Apr 28, 2011 at 10:13 PM, Arno Puder<ar...@pu...> >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> you don't seem to be using the latest version. We removed the >>>>>>>>> manual >>>>>>>>> bundling of the Boehm GC and for the --target=posix we now expect a >>>>>>>>> local installation of the Boehm GC (the boehmgc.jar that is bundled >>>>>>>>> with >>>>>>>>> XMLVM is specifically for iOS). After a svn update, re-generate >>>>>>>>> your >>>>>>>>> project and check the comments in the Makefile. >>>>>>>>> >>>>>>>>> Arno >>>>>>>>> >>>>>>>>> >>>>>>>>> On 4/28/11 10:10 PM, John Comeau wrote: >>>>>>>>>> >>>>>>>>>> Fixed my Makefile to invoke 'java' with '-Xmx1G' and the xmlvm >>>>>>>>>> compiler finished; but the resulting C source has an error, see >>>>>>>>>> output >>>>>>>>>> of 'make' below. >>>>>>>>>> >>>>>>>>>> jcomeau@intrepid:~/rentacoder/xmlvm/generated/posix/src/dist$ make >>>>>>>>>> make[1]: Entering directory >>>>>>>>>> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >>>>>>>>>> mkdir -p build/obj/ >>>>>>>>>> gcc -w -std=c99 -I../src -c ../src/finalize.c -o >>>>>>>>>> build/obj/finalize.o >>>>>>>>>> In file included from ../src/gc_pmark.h:45, >>>>>>>>>> from ../src/finalize.c:17: >>>>>>>>>> ../src/gc_priv.h:2196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or >>>>>>>>>> ‘__attribute__’ before ‘GC_jmp_buf’ >>>>>>>>>> make[1]: *** [build/obj/finalize.o] Error 1 >>>>>>>>>> make[1]: Leaving directory >>>>>>>>>> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >>>>>>>>>> >>>>>>>>>> Line 2196 is the 3rd line of the statement: >>>>>>>>>> >>>>>>>>>> # if defined(NEED_FIND_LIMIT) || \ >>>>>>>>>> defined(USE_PROC_FOR_LIBRARIES)&& defined(THREADS) >>>>>>>>>> JMP_BUF GC_jmp_buf; >>>>>>>>>> >>>>>>>>>> Any ideas how to fix? >>>>>>>>>> >>>>>>>>>> On Thu, Apr 28, 2011 at 1:36 PM, John Comeau<jc...@un...> >>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>> Hans, I tried your test class on my system and it partially >>>>>>>>>>> compiled, >>>>>>>>>>> but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh >>>>>>>>>>> no, >>>>>>>>>>> XMLVM needs more memory. Try running with -Xmx1G or more." >>>>>>>>>>> >>>>>>>>>>> Don't know if it matters, but did you put your source file into a >>>>>>>>>>> directory named 'test' to match the package? See the layout of my >>>>>>>>>>> files, and the content of the Makefile, at >>>>>>>>>>> http://unternet.net/xmlvm, >>>>>>>>>>> and the part that xmlvm was able to complete at >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ >>>>>>>>>>> >>>>>>>>>>> On my (Debian stable) build system, /usr/local/bin/xmlvm is a >>>>>>>>>>> symlink >>>>>>>>>>> to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar >>>>>>>>>>> >>>>>>>>>>> On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... >>>>>>>>>>> <hka...@go...> wrote: >>>>>>>>>>>> >>>>>>>>>>>> Hello Arno, >>>>>>>>>>>> >>>>>>>>>>>> currently I am again struggeling with xmlvm. I gived the xmlvm >>>>>>>>>>>> now >>>>>>>>>>>> the >>>>>>>>>>>> second try and I am falling again... >>>>>>>>>>>> My goal: I just want to get C/C++ code from Java. >>>>>>>>>>>> >>>>>>>>>>>> I cannot even get a simple example running. >>>>>>>>>>>> 1. I checked out trunk. >>>>>>>>>>>> 2. I created a test class, a pretty, pretty simple one >>>>>>>>>>>> Here my test class: >>>>>>>>>>>> package test; >>>>>>>>>>>> >>>>>>>>>>>> public class HelloWorld { >>>>>>>>>>>> >>>>>>>>>>>> public static void main(String[] args) { >>>>>>>>>>>> System.out.println("hello world"); >>>>>>>>>>>> } >>>>>>>>>>>> >>>>>>>>>>>> } >>>>>>>>>>>> >>>>>>>>>>>> 3. I created a launch config >>>>>>>>>>>> Here my launch params: >>>>>>>>>>>> --in=${workspace_loc:xmlvm-test}/bin >>>>>>>>>>>> --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src >>>>>>>>>>>> --target=posix >>>>>>>>>>>> --app-name=xmlvm-test >>>>>>>>>>>> >>>>>>>>>>>> now I get: >>>>>>>>>>>> Exception in thread "main" java.lang.NullPointerException >>>>>>>>>>>> at >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> John Comeau<jc...@un...> http://jc.unternet.net/ >>>>>>>>>>> "A place for everything, and everything >>>>>>>>>>> all over the place" >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ------------------------------------------------------------------------------ >>>>>>>>> WhatsUp Gold - Download Free Network Management Software >>>>>>>>> The most intuitive, comprehensive, and cost-effective network >>>>>>>>> management toolset available today. Delivers lowest initial >>>>>>>>> acquisition cost and overall TCO of any competing solution. >>>>>>>>> http://p.sf.net/sfu/whatsupgold-sd >>>>>>>>> _______________________________________________ >>>>>>>>> xmlvm-users mailing list >>>>>>>>> xml...@li... >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> WhatsUp Gold - Download Free Network Management Software >>>>>>> The most intuitive, comprehensive, and cost-effective network >>>>>>> management toolset available today. Delivers lowest initial >>>>>>> acquisition cost and overall TCO of any competing solution. >>>>>>> http://p.sf.net/sfu/whatsupgold-sd >>>>>>> _______________________________________________ >>>>>>> xmlvm-users mailing list >>>>>>> xml...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> John Comeau<jc...@un...> http://jc.unternet.net/ >>>> "A place for everything, and everything >>>> all over the place" >>>> >>> >>> >>> >>> -- >>> John Comeau<jc...@un...> http://jc.unternet.net/ >>> "A place for everything, and everything >>> all over the place" >>> >> >> >> > -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |
From: <hka...@go...> - 2011-04-29 16:40:02
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body text="#000000" bgcolor="#ffffff"> Hello list,<br> <br> Sorry I've been away on business. <br> <br> First of all many thanks for the quick reply and also the effort in finding the issue!<br> Here my answers and questions go...<br> <br> @Arno: the ant clean and the manual delete of xmlvm/.cache didn't change anything.<br> <blockquote cite="mid:BAN...@ma..." type="cite"> <div> <div class="gmail_quote"> <div>I am not sure why this is happening. The error basically tells me that a loaded resources is null. I could get rid of the error message, but I think there is another issue here. Can you pleaserun xmlvm using "--debug=all" and send me the complete log? There might be a pointer earlier in the log that might give more insight into what is going wrong here. This simple example should certainly work.</div> </div> </div> </blockquote> The bugs seems to be hunted, do you need the logs anyway?<br> <blockquote cite="mid:BAN...@ma..." type="cite"> <div> <div class="gmail_quote"> <div> </div> <div>I was able to reproduce this problem and we will take a look at it. Thanks for finding!</div> <div> </div> </div> </div> </blockquote> Okay thanks! Is there any workaround available or maybe the patch/fix itself?<br> <blockquote cite="mid:BAN...@ma..." type="cite"> <div> <div class="gmail_quote"> <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> <br> Can you imaging, that is really frustrating trying something and the<br> simpliest things aren't running?<br> <br> Please provide simple examples AND a running launch config. I think this<br> would do a easy kick start for users like me.<br> And I can tell you I have mulitple years of experience in programming.<br> But I have not the time to struggle around to get the simpliest things -<br> from user view point - running. Currently I am evaluating, if xmlvm<br> could be a possible "invest" for my team. But in that project state of<br> xmlvm...<br> <br> Maybe it is a missing documentation, maybe it is the missing simple<br> example or maybe both. But I am sure, if you just invest 30 min of your<br> current effort in the place to get new users started, new users wouldn't<br> turn around and giving up so fast.<br> <br> So hopefully the developers of this list would here my crying and try to<br> fix the issues.<br> And maybe you should freeze a running version by tagging/branching or<br> providing a zip/tag.gz for the users.<br> <br> best regards,<br> Hans<br> </blockquote> </div> </div> </blockquote> Have you considered to freeze a stable state, so users could use a running version without the newest - maybe buggy - features?<br> Additionally, have you considered to provide run-targets to execute some very simple examples?<br> <br> best regards,<br> Hans<br> </body> </html> |
From: Sascha H. <sa...@xm...> - 2011-04-29 16:52:08
|
On Fri, Apr 29, 2011 at 6:39 PM, hka...@go... < hka...@go...> wrote: > Hello list, > > Sorry I've been away on business. > > First of all many thanks for the quick reply and also the effort in finding > the issue! > Here my answers and questions go... > > @Arno: the ant clean and the manual delete of xmlvm/.cache didn't change > anything. > > I am not sure why this is happening. The error basically tells me that a > loaded resources is null. I could get rid of the error message, but I think > there is another issue here. Can you pleaserun xmlvm using "--debug=all" and > send me the complete log? There might be a pointer earlier in the log that > might give more insight into what is going wrong here. This simple example > should certainly work. > > The bugs seems to be hunted, do you need the logs anyway? > What do you mean by the bugs are hunted? Is your error gone? If not, please send me the log so I can take a look. Thanks. > > > I was able to reproduce this problem and we will take a look at it. Thanks > for finding! > > > Okay thanks! Is there any workaround available or maybe the patch/fix > itself? > We will most probably remove target=c. > > >> Can you imaging, that is really frustrating trying something and the >> simpliest things aren't running? >> >> Please provide simple examples AND a running launch config. I think this >> would do a easy kick start for users like me. >> And I can tell you I have mulitple years of experience in programming. >> But I have not the time to struggle around to get the simpliest things - >> from user view point - running. Currently I am evaluating, if xmlvm >> could be a possible "invest" for my team. But in that project state of >> xmlvm... >> >> Maybe it is a missing documentation, maybe it is the missing simple >> example or maybe both. But I am sure, if you just invest 30 min of your >> current effort in the place to get new users started, new users wouldn't >> turn around and giving up so fast. >> >> So hopefully the developers of this list would here my crying and try to >> fix the issues. >> And maybe you should freeze a running version by tagging/branching or >> providing a zip/tag.gz for the users. >> >> best regards, >> Hans >> > Have you considered to freeze a stable state, so users could use a > running version without the newest - maybe buggy - features? > We have. However at the moment XMLVM can still be considered "early" in some cases, which is why our current model is to make sure the trunk is stable in general. Bigger developments that need testing are done in branches first. So trunk should always be as stable as it gets. We will probably move to versions at some point when functionality is more complete. > Additionally, have you considered to provide run-targets to execute some > very simple examples? > I agree that we should provide more exmaples, especially on our documentation page. Thanks for your feedback! // Sascha |