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

NPE on unfold expressions #102

Open
hadrienk opened this issue Nov 20, 2018 · 0 comments
Open

NPE on unfold expressions #102

hadrienk opened this issue Nov 20, 2018 · 0 comments

Comments

@hadrienk
Copy link

java.lang.NullPointerException
Line: -1, Column: -1
javax.script.ScriptException: java.lang.NullPointerException
    at no.ssb.vtl.script.VTLScriptEngine.eval(VTLScriptEngine.java:152)
    at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:212)
    at no.ssb.common.method.executors.vtl.VTLMethodExecutor.eval(VTLMethodExecutor.java:84)
    at no.ssb.common.method.v1.ExecutionIterable.executeAndCache(ExecutionIterable.java:253)
    at no.ssb.common.method.v1.ExecutionIterable.executeScript(ExecutionIterable.java:240)
    at no.ssb.common.method.v1.ExecutionIterable.sendToQueue(ExecutionIterable.java:163)
    at no.ssb.common.method.v1.ExecutionIterable.run(ExecutionIterable.java:143)
    at no.ssb.common.method.v1.services.AsyncExecutorService.lambda$execute$0(AsyncExecutorService.java:111)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.springframework.security.concurrent.DelegatingSecurityContextRunnable.run(DelegatingSecurityContextRunnable.java:83)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
    at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)
    at no.ssb.vtl.script.visitors.join.UnfoldVisitor.visitJoinUnfoldExpression(UnfoldVisitor.java:51)
    at no.ssb.vtl.script.visitors.join.UnfoldVisitor.visitJoinUnfoldExpression(UnfoldVisitor.java:37)
    at no.ssb.vtl.parser.VTLParser$JoinUnfoldExpressionContext.accept(VTLParser.java:4683)
    at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(AbstractParseTreeVisitor.java:46)
    at no.ssb.vtl.parser.VTLBaseVisitor.visitJoinUnfoldClause(VTLBaseVisitor.java:587)
    at no.ssb.vtl.parser.VTLParser$JoinUnfoldClauseContext.accept(VTLParser.java:4405)
    at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)
    at no.ssb.vtl.script.visitors.join.JoinBodyVisitor.visitJoinUnfoldClause(JoinBodyVisitor.java:115)
    at no.ssb.vtl.script.visitors.join.JoinBodyVisitor.visitJoinUnfoldClause(JoinBodyVisitor.java:42)
    at no.ssb.vtl.parser.VTLParser$JoinUnfoldClauseContext.accept(VTLParser.java:4405)
    at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(AbstractParseTreeVisitor.java:46)
    at no.ssb.vtl.parser.VTLBaseVisitor.visitJoinBody(VTLBaseVisitor.java:538)
    at no.ssb.vtl.parser.VTLParser$JoinBodyContext.accept(VTLParser.java:4222)
    at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)
    at no.ssb.vtl.script.visitors.join.JoinBodyVisitor.visitJoinExpression(JoinBodyVisitor.java:68)
    at no.ssb.vtl.script.visitors.join.JoinBodyVisitor.visitJoinExpression(JoinBodyVisitor.java:42)
    at no.ssb.vtl.parser.VTLParser$JoinExpressionContext.accept(VTLParser.java:4044)
    at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)
    at no.ssb.vtl.script.visitors.DatasetExpressionVisitor.visitJoinExpression(DatasetExpressionVisitor.java:73)
    at no.ssb.vtl.script.visitors.DatasetExpressionVisitor.visitJoinExpression(DatasetExpressionVisitor.java:40)
    at no.ssb.vtl.parser.VTLParser$JoinExpressionContext.accept(VTLParser.java:4044)
    at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(AbstractParseTreeVisitor.java:46)
    at no.ssb.vtl.parser.VTLBaseVisitor.visitRelationalExpression(VTLBaseVisitor.java:510)
    at no.ssb.vtl.parser.VTLParser$RelationalExpressionContext.accept(VTLParser.java:3912)
    at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)
    at no.ssb.vtl.script.visitors.AssignmentVisitor.visitRelationalExpression(AssignmentVisitor.java:108)
    at no.ssb.vtl.parser.VTLParser$RelationalExpressionContext.accept(VTLParser.java:3912)
    at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(AbstractParseTreeVisitor.java:46)
    at no.ssb.vtl.parser.VTLBaseVisitor.visitWithRelational(VTLBaseVisitor.java:223)
    at no.ssb.vtl.parser.VTLParser$WithRelationalContext.accept(VTLParser.java:1871)
    at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)
    at no.ssb.vtl.script.visitors.AssignmentVisitor.visitAssignment(AssignmentVisitor.java:88)
    at no.ssb.vtl.parser.VTLParser$AssignmentContext.accept(VTLParser.java:290)
    at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(AbstractParseTreeVisitor.java:46)
    at no.ssb.vtl.parser.VTLBaseVisitor.visitStatement(VTLBaseVisitor.java:27)
    at no.ssb.vtl.parser.VTLParser$StatementContext.accept(VTLParser.java:239)
    at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)
    at no.ssb.vtl.script.VTLScriptEngine.run(VTLScriptEngine.java:207)
    at no.ssb.vtl.script.VTLScriptEngine.eval(VTLScriptEngine.java:145)
    ... 12 more
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