From: Panayotis K. <pan...@pa...> - 2011-04-30 07:25:12
|
I believe there is a problem with the implementation of XmlvmResource. I was trying to compile a regular project, which was compiling fine with alder versions of XMLVM, and when processed by xmlvm, I got this exception. By tracking it down it seems that although the attribute "value" exists, the value "encoded-value" does not (is null). The string in question is a regular 10-characters ascii string. 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:116) 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.XmlvmProcessor.process(XmlvmProcessor.java:162) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) at org.xmlvm.Main.main(Main.java:53) ... 6 more |
From: Arno P. <ar...@pu...> - 2011-04-30 07:27:05
|
Try adding --no-cache On Apr 30, 2011, at 12:25 AM, Panayotis Katsaloulis <pan...@pa...> wrote: > I believe there is a problem with the implementation of XmlvmResource. > I was trying to compile a regular project, which was compiling fine with alder versions of XMLVM, and when processed by xmlvm, I got this exception. > > By tracking it down it seems that although the attribute "value" exists, the value "encoded-value" does not (is null). > The string in question is a regular 10-characters ascii string. > > > > 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:116) > 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.XmlvmProcessor.process(XmlvmProcessor.java:162) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > at org.xmlvm.Main.main(Main.java:53) > ... 6 more > ------------------------------------------------------------------------------ > 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: Panayotis K. <pan...@pa...> - 2011-04-30 08:55:49
|
On Apr 30, 2011, at 10:26 AM, Arno Puder wrote: > Try adding --no-cache > I preferred to clean the project. After cleaning, I was able to build it again. Is this the first step to produce unicode strings in xmlvm? :-D |
From: Arno P. <ar...@pu...> - 2011-04-30 16:44:47
|
On 4/30/11 1:55 AM, Panayotis Katsaloulis wrote: > Is this the first step to produce unicode strings in xmlvm? > :-D yes. Look in file constant_pool.c that gets generated for an application. It contains all the referenced string encoded as a list of short that represent the default charset encoding. I described what is missing in another post (about the Charset). Arno |