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 |