You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "tkobayas (via GitHub)" <gi...@apache.org> on 2024/05/01 03:05:22 UTC

[I] [new-parser] build failure on kie-dmn-validation [incubator-kie-drools]

tkobayas opened a new issue, #5879:
URL: https://github.com/apache/incubator-kie-drools/issues/5879

   ## Parent issue
   - #5678 
   
   ## Failing rule
   - org/kie/dmn/validation/DMNv1_1/dmn-validation-rules-typeref.drl
   
   ## Notes
   
   ## Rule code snippet
   ```
   rule TYPEREF_NOT_FEEL_NOT_DEF_p1
   when
     $o: Expression( !(this instanceof UnaryTests), typeRef != null, typeRef.prefix == null || getNamespaceURI( typeRef.prefix ) != getURIFEEL(), $typeRef : typeRef )
     (and (not ItemDefinition( name == $typeRef.getLocalPart() ) )
          (not (and Import($importName : name, $importedNS : namespace )
                    $importDef : Definitions( namespace == $importedNS ) from entry-point "DMNImports"
                    ItemDefinition( $typeRef.getLocalPart() == $importName + "." + name ) from $importDef.itemDefinition
               )
          )
     )
   ```
   
   ## Error output
   ```
   [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:java (validation-bootstrap) on project kie-dmn-validation: An exception occured while executing the Java class. null: InvocationTargetException: Unable to create KieModule, Errors Existed: [Message [id=1, kieBase=defaultKieBase, level=ERROR, path=org/kie/dmn/validation/DMNv1_1/dmn-validation-rules-typeref.drl, line=83, column=0
   [ERROR]    text=no viable alternative at input 'getNamespaceURI'], Message [id=2, kieBase=defaultKieBase, level=ERROR, path=org/kie/dmn/validation/DMNv1_1/dmn-validation-rules-typeref.drl, line=83, column=0
   [ERROR]    text=mismatched input '!=' expecting {'not', 'in', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', '#', '!.', 'instanceof', '(', ')', '[', ',', '.', '>', '<', '~', '==', '<=', '>=', '!=', '&&', '||', '++', '--', '+', '-', '*', '/', '&', '|', '^', '%', IDENTIFIER}], Message [id=3, kieBase=defaultKieBase, level=ERROR, path=org/kie/dmn/validation/DMNv1_1/dmn-validation-rules-typeref.drl, line=97, column=0
   [ERROR]    text=no viable alternative at input 'getNamespaceURI'], Message [id=4, kieBase=defaultKieBase, level=ERROR, path=org/kie/dmn/validation/DMNv1_1/dmn-validation-rules-typeref.drl, line=97, column=0
   [ERROR]    text=mismatched input '!=' expecting {'not', 'in', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', '#', '!.', 'instanceof', '(', ')', '[', ',', '.', '>', '<', '~', '==', '<=', '>=', '!=', '&&', '||', '++', '--', '+', '-', '*', '/', '&', '|', '^', '%', IDENTIFIER}], Message [id=5, kieBase=defaultKieBase, level=ERROR, path=org/kie/dmn/validation/DMNv1_1/dmn-validation-rules-typeref.drl, line=111, column=0
   [ERROR]    text=no viable alternative at input 'getNamespaceURI'], Message [id=6, kieBase=defaultKieBase, level=ERROR, path=org/kie/dmn/validation/DMNv1_1/dmn-validation-rules-typeref.drl, line=111, column=0
   [ERROR]    text=mismatched input '!=' expecting {'not', 'in', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', '#', '!.', 'instanceof', '(', ')', '[', ',', '.', '>', '<', '~', '==', '<=', '>=', '!=', '&&', '||', '++', '--', '+', '-', '*', '/', '&', '|', '^', '%', IDENTIFIER}], Message [id=7, kieBase=defaultKieBase, level=ERROR, path=org/kie/dmn/validation/DMNv1_1/dmn-validation-rules-typeref.drl, line=125, column=0
   [ERROR]    text=no viable alternative at input 'getNamespaceURI'], Message [id=8, kieBase=defaultKieBase, level=ERROR, path=org/kie/dmn/validation/DMNv1_1/dmn-validation-rules-typeref.drl, line=125, column=0
   [ERROR]    text=mismatched input '!=' expecting {'not', 'in', 'matches', 'memberOf', 'contains', 'excludes', 'soundslike', 'str', 'after', 'before', 'coincides', 'during', 'includes', 'finishes', 'finishedby', 'meets', 'metby', 'overlaps', 'overlappedby', 'starts', 'startedby', '#', '!.', 'instanceof', '(', ')', '[', ',', '.', '>', '<', '~', '==', '<=', '>=', '!=', '&&', '||', '++', '--', '+', '-', '*', '/', '&', '|', '^', '%', IDENTIFIER}], Message [id=9, kieBase=defaultKieBase, level=ERROR, path=org/kie/dmn/validation/DMNv1_1/dmn-validation-rules-typeref.drl, line=0, column=0
   [ERROR]    text=], Message [id=10, kieBase=defaultKieBase, level=ERROR, path=org/kie/dmn/validation/DMNv1_1/dmn-validation-rules-typeref.drl, line=0, column=0
   [ERROR]    text=Parser returned a null Package]]
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] [new-parser] build failure on kie-dmn-validation [incubator-kie-drools]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas commented on issue #5879:
URL: https://github.com/apache/incubator-kie-drools/issues/5879#issuecomment-2087908284

   `/take`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] [new-parser] build failure on kie-dmn-validation [incubator-kie-drools]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas commented on issue #5879:
URL: https://github.com/apache/incubator-kie-drools/issues/5879#issuecomment-2106931575

   Fixed by https://github.com/apache/incubator-kie-drools/pull/5899 https://github.com/apache/incubator-kie-drools/issues/5904 https://github.com/apache/incubator-kie-drools/pull/5905


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] [new-parser] build failure on kie-dmn-validation [incubator-kie-drools]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas commented on issue #5879:
URL: https://github.com/apache/incubator-kie-drools/issues/5879#issuecomment-2089972806

   Well, it seems that we shouldn't rely on a semantic predicate in this case (`orRistriction` to `operator_key`). 
   
   https://github.com/antlr/antlr4/blob/master/doc/predicates.md#finding-visible-predicates
   
   I posted a SO question : https://stackoverflow.com/questions/78417977/semantic-predicate-false-throws-noviablealtexception-in-adaptivepredict-then
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] [new-parser] build failure on kie-dmn-validation [incubator-kie-drools]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas closed issue #5879: [new-parser] build failure on kie-dmn-validation
URL: https://github.com/apache/incubator-kie-drools/issues/5879


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org