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

Mediation log message policy 2.0.0 build fails with stage central #32

Open
menakaj opened this issue Jan 18, 2023 · 0 comments
Open

Mediation log message policy 2.0.0 build fails with stage central #32

menakaj opened this issue Jan 18, 2023 · 0 comments

Comments

@menakaj
Copy link
Contributor

menakaj commented Jan 18, 2023

Description:

Compiling source
	choreo/mediation.log_message:2.0.0
Generating 'policy-meta.json' file...
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.

[2023-01-18 06:21:31,602] SEVERE {b7a.log.crash} - null 
java.lang.NullPointerException
	at org.wso2.ballerinalang.compiler.desugar.Desugar.createAndAddRecordFieldForIncRecordLiteral(Desugar.java:9330)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.setFieldsForIncRecordLiterals(Desugar.java:9319)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.reorderNamedArgs(Desugar.java:9297)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.reorderArguments(Desugar.java:9025)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteInvocation(Desugar.java:6690)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:6327)
	at org.wso2.ballerinalang.compiler.tree.expressions.BLangInvocation.accept(BLangInvocation.java:128)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteExpr(Desugar.java:8867)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:3509)
	at org.wso2.ballerinalang.compiler.tree.statements.BLangExpressionStmt.accept(BLangExpressionStmt.java:51)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8842)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8880)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteStmt(Desugar.java:8886)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:1601)
	at org.wso2.ballerinalang.compiler.tree.statements.BLangBlockStmt.accept(BLangBlockStmt.java:65)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8842)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8880)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteStmt(Desugar.java:8886)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:1601)
	at org.wso2.ballerinalang.compiler.tree.statements.BLangBlockStmt.accept(BLangBlockStmt.java:65)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8842)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8880)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.rewriteStmt(Desugar.java:8886)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:1374)
	at org.wso2.ballerinalang.compiler.tree.BLangBlockFunctionBody.accept(BLangBlockFunctionBody.java:60)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8842)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:1420)
	at org.wso2.ballerinalang.compiler.tree.BLangFunction.accept(BLangFunction.java:76)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8842)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.visit(Desugar.java:826)
	at org.wso2.ballerinalang.compiler.tree.BLangPackage.accept(BLangPackage.java:167)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.rewrite(Desugar.java:8842)
	at org.wso2.ballerinalang.compiler.desugar.Desugar.perform(Desugar.java:469)
	at io.ballerina.projects.internal.CompilerPhaseRunner.desugar(CompilerPhaseRunner.java:216)
	at io.ballerina.projects.internal.CompilerPhaseRunner.performBirGenPhases(CompilerPhaseRunner.java:152)
	at io.ballerina.projects.ModuleContext.generateCodeInternal(ModuleContext.java:451)
	at io.ballerina.projects.ModuleCompilationState$4.generatePlatformSpecificCode(ModuleCompilationState.java:132)
	at io.ballerina.projects.ModuleContext.generatePlatformSpecificCode(ModuleContext.java:385)
	at io.ballerina.projects.JBallerinaBackend.performCodeGen(JBallerinaBackend.java:170)
	at io.ballerina.projects.JBallerinaBackend.<init>(JBallerinaBackend.java:139)
	at io.ballerina.projects.JBallerinaBackend.lambda$from$0(JBallerinaBackend.java:117)
	at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1134)
	at io.ballerina.projects.PackageCompilation.getCompilerBackend(PackageCompilation.java:170)
	at io.ballerina.projects.JBallerinaBackend.from(JBallerinaBackend.java:116)
	at io.ballerina.cli.task.CompileTask.execute(CompileTask.java:165)
	at io.ballerina.cli.TaskExecutor.executeTasks(TaskExecutor.java:40)
	at io.ballerina.cli.cmd.TestCommand.execute(TestCommand.java:297)
	at java.base/java.util.Optional.ifPresent(Optional.java:183)
	at io.ballerina.cli.launcher.Main.main(Main.java:51)
 
ERROR [mediation.log_message:(1:1,1:1)] Compilation failed due to an unhandled exception
error: compilation contains errors
Traceback (most recent call last):
1 Building 'mediation-add-header'
  File "/home/runner/work/choreo-apim-mediation-policies/choreo-apim-mediation-policies/build.py", line 141, in <module>
    build()
  File "/home/runner/work/choreo-apim-mediation-policies/choreo-apim-mediation-policies/build.py", line 53, in build
    raise ValueError(f'Failed to build the following projects: {failed_projects}')
ValueError: Failed to build the following projects: ['mediation-log-message']

Suggested Labels:

Suggested Assignees:

Affected Product Version:
2201.3.1

OS, DB, other environment details and versions:

Steps to reproduce:

Related Issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant