Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: IllegalArgumentException when Building the GraphQL Package #43675

Closed
ThisaruGuruge opened this issue Dec 3, 2024 · 1 comment · Fixed by #43674
Closed

[Bug]: IllegalArgumentException when Building the GraphQL Package #43675

ThisaruGuruge opened this issue Dec 3, 2024 · 1 comment · Fixed by #43674
Labels
needTriage The issue has to be inspected and labeled manually Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Type/Bug userCategory/Compilation

Comments

@ThisaruGuruge
Copy link
Member

Description

We have recently introduced the parallel execution support for GraphQL. This change was done on Ballerina 2201.9.x. However, when we try to port those changes to the 2201.10.x and master branches, we observe the following error:

Compiling source
        ballerina/graphql:1.15.0
ballerina: Oh no, something really went wrong. Bad. Sad.

We appreciate it if you can report the code that broke Ballerina in
https://github.com/ballerina-platform/ballerina-lang/issues with the
log you get below and your sample code.

We thank you for helping make us better.

[2024-12-03 14:00:07,881] SEVERE {b7a.log.crash} - value null
java.lang.IllegalArgumentException: value null
        at org.objectweb.asm.SymbolTable.addConstant(SymbolTable.java:525)
        at org.objectweb.asm.MethodWriter.visitLdcInsn(MethodWriter.java:1281)
        at org.wso2.ballerinalang.compiler.bir.codegen.methodgen.LambdaGen.getMethodVisitorAndLoadFirst(LambdaGen.java:332)
        at org.wso2.ballerinalang.compiler.bir.codegen.methodgen.LambdaGen.generateLambdaMethod(LambdaGen.java:148)
        at org.wso2.ballerinalang.compiler.bir.codegen.methodgen.LambdaGen.generateLambdaClasses(LambdaGen.java:121)
        at org.wso2.ballerinalang.compiler.bir.codegen.JvmPackageGen.generate(JvmPackageGen.java:736)
        at org.wso2.ballerinalang.compiler.bir.codegen.CodeGenerator.generate(CodeGenerator.java:86)
        at org.wso2.ballerinalang.compiler.bir.codegen.CodeGenerator.generate(CodeGenerator.java:63)
        at io.ballerina.projects.JBallerinaBackend.performCodeGen(JBallerinaBackend.java:376)
        at io.ballerina.projects.ModuleContext.generateCodeInternal(ModuleContext.java:454)
        at io.ballerina.projects.ModuleCompilationState$4.generatePlatformSpecificCode(ModuleCompilationState.java:132)
        at io.ballerina.projects.ModuleContext.generatePlatformSpecificCode(ModuleContext.java:355)
        at io.ballerina.projects.JBallerinaBackend.performCodeGen(JBallerinaBackend.java:177)
        at io.ballerina.projects.JBallerinaBackend.<init>(JBallerinaBackend.java:143)
        at io.ballerina.projects.JBallerinaBackend.lambda$from$0(JBallerinaBackend.java:127)
        at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228)
        at io.ballerina.projects.PackageCompilation.getCompilerBackend(PackageCompilation.java:179)
        at io.ballerina.projects.JBallerinaBackend.from(JBallerinaBackend.java:126)
        at io.ballerina.projects.JBallerinaBackend.from(JBallerinaBackend.java:114)
        at io.ballerina.cli.task.CompileTask.execute(CompileTask.java:234)
        at io.ballerina.cli.TaskExecutor.executeTasks(TaskExecutor.java:40)
        at io.ballerina.cli.cmd.TestCommand.execute(TestCommand.java:407)
        at java.base/java.util.Optional.ifPresent(Optional.java:178)
        at io.ballerina.cli.launcher.Main.main(Main.java:63)

You can check the error by building the following branches:

Steps to Reproduce

No response

Affected Version(s)

2201.10.x
master

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

Copy link

github-actions bot commented Dec 3, 2024

This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.

      - Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
      - Reason/Regression - The issue has introduced a regression.
      - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
      - Reason/Complex - Issue occurred due to complex scenario.
      - Reason/Invalid - Issue is invalid.
      - Reason/Other - None of the above cases.

@gimantha gimantha added the Reason/EngineeringMistake The issue occurred due to a mistake made in the past. label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needTriage The issue has to be inspected and labeled manually Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Type/Bug userCategory/Compilation
Projects
None yet
3 participants