Hi APIM team, I'm trying to run micro-gw build generated balx file as a separate ballerina program and getting following error. Is that something possible ? Any idea on what could be wrong here ?
Tried to execute the balx file in project's target directory and then the one in "target/distribution/micro-gw-marketing_store/exec" directory. projects/marketing_store/target/distribution/micro-gw-marketing_store/exec$ *tree* . ├── ballerina-internal.log └── marketing_store.balx $ *ballerina run marketing_store.balx --config ../conf/micro-gw.conf * ballerina: Oh no, something really went wrong. Bad. Sad. *There should be a file named "ballerina-internal.log" in the current directory.* If you are able to share with us the code that broke Ballerina then we would REALLY appreciate if you would report this to us: go to https://github.com/ballerina-platform/ballerina-lang/issues and create a bug report with both this log file and the sample code. Following exception can be seen in "ballerina-internal.log" file. ERROR {org.ballerinalang.launcher.Main} - ballerina: invalid program file format org.ballerinalang.util.exceptions.ProgramFileFormatException: ballerina: invalid program file format at org.ballerinalang.BLangProgramLoader.read(BLangProgramLoader.java:46) at org.ballerinalang.launcher.LauncherUtils.runProgram(LauncherUtils.java:82) at org.ballerinalang.launcher.Main$RunCmd.execute(Main.java:256) at java.util.Optional.ifPresent(Optional.java:159) at org.ballerinalang.launcher.Main.main(Main.java:66) Caused by: java.lang.IndexOutOfBoundsException: Index: 33554432, Size: 125 at java.util.ArrayList.rangeCheck(ArrayList.java:657) at java.util.ArrayList.get(ArrayList.java:433) at org.ballerinalang.util.codegen.PackageInfo.getCPEntry(PackageInfo.java:103) at org.ballerinalang.util.codegen.ProgramFileReader.getAttributeInfo(ProgramFileReader.java:1143) at org.ballerinalang.util.codegen.ProgramFileReader.readAttributeInfoEntries(ProgramFileReader.java:1133) at org.ballerinalang.util.codegen.ProgramFileReader.readStructInfoEntries(ProgramFileReader.java:497) at org.ballerinalang.util.codegen.ProgramFileReader.readPackageInfo(ProgramFileReader.java:377) at org.ballerinalang.util.codegen.ProgramFileReader.readProgramInternal(ProgramFileReader.java:159) at org.ballerinalang.util.codegen.ProgramFileReader.readProgram(ProgramFileReader.java:126) at org.ballerinalang.BLangProgramLoader.read(BLangProgramLoader.java:39) ... 4 more Regards, Dinusha -- Dinusha Dilrukshi Technical Lead WSO2 Inc.: http://wso2.com/ Mobile: +94764069991 Blog: http://dinushasblog.blogspot.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
