wso2 / choreo-apim-mediation-policies Goto Github PK
View Code? Open in Web Editor NEWA set of mediation policies provided out of the box in Choreo
License: Apache License 2.0
A set of mediation policies provided out of the box in Choreo
License: Apache License 2.0
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:
Need to add more mediation policies. Take a look at the APIM policies and try and implement the ones that make sense for Choreo.
Need to refactor the policies to work with https://github.com/wso2-enterprise/choreo-apim-mediation-module/issues/52
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.