[
https://issues.apache.org/jira/browse/ASTERIXDB-1867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15952489#comment-15952489
]
Xikui Wang commented on ASTERIXDB-1867:
---------------------------------------
I had a NPE exception on this test case when running "mvn test' against one
patch. Then I tried to run this test case by itself. Same NPE happened again. I
tried to run this test case alone (execute this test case directly) under
master, and I had the same exception. Probably I am executing the test case in
a wrong way? I didn't see where the context variable is assigned in this test
case. Am I missed something here..? Thanks!
> SequentialFirstRuleCheckFixpointRuleController has null context
> ---------------------------------------------------------------
>
> Key: ASTERIXDB-1867
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-1867
> Project: Apache AsterixDB
> Issue Type: Bug
> Reporter: Xikui Wang
> Assignee: Taewoo Kim
>
> When executing SequentialFirstRuleCheckFixpointRuleControllerTest, the
> SequentialFirstRuleCheckFixpointRuleController has a null context which
> causes NPE at:
> org/apache/hyracks/algebricks/core/rewriter/base/AbstractRuleController.java:69
> {noformat}
> Error Message:
> Running
> org.apache.hyracks.algebricks.compiler.rewriter.rulecontrollers.SequentialFirstRuleCheckFixpointRuleControllerTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.109 sec <<<
> FAILURE! - in
> org.apache.hyracks.algebricks.compiler.rewriter.rulecontrollers.SequentialFirstRuleCheckFixpointRuleControllerTest
> testRewriteWithRuleCollection(org.apache.hyracks.algebricks.compiler.rewriter.rulecontrollers.SequentialFirstRuleCheckFixpointRuleControllerTest)
> Time elapsed: 0.73 sec <<< ERROR!
> java.lang.NullPointerException: null
> at
> org.apache.hyracks.algebricks.core.rewriter.base.AbstractRuleController.getPlanString(AbstractRuleController.java:70)
> at
> org.apache.hyracks.algebricks.core.rewriter.base.AbstractRuleController.rewriteOperatorRef(AbstractRuleController.java:90)
> at
> org.apache.hyracks.algebricks.compiler.rewriter.rulecontrollers.SequentialFirstRuleCheckFixpointRuleController.rewriteWithRuleCollection(SequentialFirstRuleCheckFixpointRuleController.java:76)
> at
> org.apache.hyracks.algebricks.compiler.rewriter.rulecontrollers.SequentialFirstRuleCheckFixpointRuleControllerTest.testRewriteWithRuleCollection(SequentialFirstRuleCheckFixpointRuleControllerTest.java:73)
> Results :
> Tests in error:
>
> SequentialFirstRuleCheckFixpointRuleControllerTest.testRewriteWithRuleCollection:73
> ยป NullPointer
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)