Hello everybody,
I've just checked out the trunk folder of GSN to try run it from ANT. Everything went smoothly but when I issue
> ant gsn
I get the following error:
--------------------------------------------------
Buildfile: D:\GSN\trunk\build.xml
init:
setup:
build:
[javac] D:\GSN\trunk\build.xml:64: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
bind:
cleandb:
[java] Exception in thread "main" java.lang.VerifyError: Expecting a stackmap frame at branch target 24 in method gsn.beans.ContainerConfig.JiBX_conf_containerJIBX_unmarshal_1_0(Lorg/jibx/runtime/impl/UnmarshallingContext;)Lgsn/beans/ContainerConfig; at offset 16
[java] at java.lang.Class.getDeclaredFields0(Native Method)
[java] at java.lang.Class.privateGetDeclaredFields(Class.java:2317)
[java] at java.lang.Class.getDeclaredField(Class.java:1899)
[java] at org.jibx.runtime.BindingDirectory.getBindingList(BindingDirectory.java:70)
[java] at org.jibx.runtime.BindingDirectory.getFactory(BindingDirectory.java:207)
[java] at gsn.Main.loadContainerConfig(Main.java:304)
[java] at gsn.Main.getContainerConfig(Main.java:343)
[java] at gsn.storage.CleanDB.main(CleanDB.java:17)
gsn:
[java] GSN is trying to start.
[java] All GSN logs are available at: logs/gsn.log
[java] ERROR [2013-03-14 15:01:34,507] [main] ( Main.java:212) -
[java] java.lang.NullPointerException
[java] at gsn.Main.<init>(Main.java:98)
[java] at gsn.Main.getInstance(Main.java:210)
[java] at gsn.Main.main(Main.java:244)
[java] Starting GSN failed! Look at logs/gsn.log for more information.
--------------------------------------------------
The same if I try to run it in eclipse. Tried in Win7 and Ubuntu 12.10,,,any ideas?
Thx a lot.
Which version of Java are you using?
GSN requires Java 1.6 and cannot run with version 1.7
Hi Sofiane,
Java 7 introduces stricter verification.
http://stackoverflow.com/questions/15122890/java-lang-verifyerror-expecting-a-stackmap-frame-at-branch-target-jdk-1-7
You can workaround it by adding <jvmarg value="-noverify"> to the targets bind, cleandb and gsn in the build file.</jvmarg>
best regards
Tonio
by adding:
jvmarg value="-noverify"
Fixed