You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue when reading .balx files and building the program model again. The connector info doesn't seem to be setting properly and it results in a null pointer exception being thrown at Java level. This issue is related to issue #3134 and PR #3176. Sample Ballerina code is given below:
[2017-08-18 10:30:18,971] ERROR {org.ballerinalang.launcher.Main} - ballerina: ballerina: invalid program file format
org.ballerinalang.util.exceptions.ProgramFileFormatException: ballerina: invalid program file format
at org.ballerinalang.BLangProgramLoader.read(BLangProgramLoader.java:52)
at org.ballerinalang.launcher.LauncherUtils.runProgram(LauncherUtils.java:57)
at org.ballerinalang.launcher.Main$RunCmd.execute(Main.java:233)
at java.util.Optional.ifPresent(Optional.java:159)
at org.ballerinalang.launcher.Main.main(Main.java:42)
Caused by: java.lang.NullPointerException
at org.ballerinalang.util.codegen.ProgramFileReader.createBTypeFromSig(ProgramFileReader.java:791)
at org.ballerinalang.util.codegen.ProgramFileReader.getParamTypes(ProgramFileReader.java:721)
at org.ballerinalang.util.codegen.ProgramFileReader.setCallableUnitSignature(ProgramFileReader.java:712)
at org.ballerinalang.util.codegen.ProgramFileReader.readConnectorInfoEntries(ProgramFileReader.java:462)
at org.ballerinalang.util.codegen.ProgramFileReader.readPackageInfo(ProgramFileReader.java:337)
at org.ballerinalang.util.codegen.ProgramFileReader.readProgramInternal(ProgramFileReader.java:135)
at org.ballerinalang.util.codegen.ProgramFileReader.readProgram(ProgramFileReader.java:109)
at org.ballerinalang.BLangProgramLoader.read(BLangProgramLoader.java:45)
... 4 more
The text was updated successfully, but these errors were encountered:
pubudu91
changed the title
Ballerina not reading connector info from .balx files properly
[Connectors] Ballerina not reading connector info from .balx files properly
Aug 18, 2017
There is an issue when reading .balx files and building the program model again. The connector info doesn't seem to be setting properly and it results in a null pointer exception being thrown at Java level. This issue is related to issue #3134 and PR #3176. Sample Ballerina code is given below:
The error logged in the bre.log:
The text was updated successfully, but these errors were encountered: