Bug 1049662 - Firing a MVEL rule, whose salience is java.lang.Long.MAX_VALUE, in Guvnor
Summary: Firing a MVEL rule, whose salience is java.lang.Long.MAX_VALUE, in Guvnor
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRM (Guvnor)
Version: BRMS 5.3.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Toni Rikkola
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-08 00:49 UTC by Hisao Furuichi
Modified: 2018-12-04 16:51 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-17 16:17:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
exported repository which contains reproducer (61.55 KB, text/xml)
2014-01-08 00:49 UTC, Hisao Furuichi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker GUVNOR-2075 0 Major Open Test scenarios: Firing a MVEL rule, whose salience is java.lang.Long.MAX_VALUE, in Guvnor 2016-03-10 07:49:42 UTC

Description Hisao Furuichi 2014-01-08 00:49:20 UTC
Created attachment 846879 [details]
exported repository which contains reproducer

Description of problem:
Problem to fire a MVEL rule, whose salience is 9223372036854775807, in Guvnor. The value 9223372036854775807 is java.lang.Long.MAX_VALUE. If I run a test program in JBDS, I can run without any Exception.

Version-Release number of selected component (if applicable):
BRMS 5.3.1 with Rollup Patch#3

Steps to Reproduce:
1: import attached repository into guvnor
2: run a Test Scenarios named "salience"

Actual results:
java.lang.NullPointerException is thrown

Expected results:
Run a test without Exception

Additional info:
If I change a dialect of the rule from "mvel" to "java", I can run the test without any Exception.

Comment 2 Mario Fusco 2014-01-15 15:07:47 UTC
Salience is an int value so assigning to it a long one is not legal.

Comment 3 Hisao Furuichi 2014-01-17 05:09:37 UTC
Hi, Mario.
I understand that long value is not allowed to use. Now I want to request a either way to avoid a run time error.

- When building a package in Guvnor, throw Exception for the salience value
- Validation for rule points out a warning about the limitation for the salience value

Could you consider this option please? If I need to open another ticket, please let me know.

Comment 4 Edson Tirelli 2014-01-17 16:17:22 UTC
Hisao, I think the best way to improve this is to validate the value in the UI. Lets do that for the next version: 6.0. Can you please open/clone this ticket for 6.0?

I am closing this one.


Note You need to log in before you can comment on or make changes to this bug.