[JBoss JIRA] Created: (JBRULES-2885) DRL Mvel exception parsing escape sequences with \(
by Joe White (JIRA)
DRL Mvel exception parsing escape sequences with \(
---------------------------------------------------
Key: JBRULES-2885
URL: https://issues.jboss.org/browse/JBRULES-2885
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-compiler
Affects Versions: 5.2.0.M1
Environment: Windows
Java 1.5
Latest version of Drools 5.2.0.M1 including attached mvel version
Reporter: Joe White
Assignee: Mark Proctor
Fix For: 5.2.0.M1
Exception thrown when adding the DRL below. Functions correctly in 5.0.1 and 5.1.1
*******************DRL**********************************
package benefitResolution.oop;
import java.util.Map;
import com.recondotech.droolsTest.TestObject;
dialect "mvel"
rule "Rule with parens"
salience 300
when
$testObj : TestObject($mapData: mapData)
Map(this['STRING_WITH_PARENS'] matches '(?i).*\(ROUTINE\).*') from $mapData
then
System.out.println("PASS");
end
********************************************************
****************Exception******************************
Unable to determine the used declarations.
[Error: illegal escape sequence: (]
[Near : {... ENS'] ~= "(?i).*\(ROUTINE\).* ....}]
^
[Line: 1, Column: 51] : [Rule name='Set Value One Negative']
java.lang.IllegalArgumentException: Could not parse knowledge.
at com.recondotech.droolsTest.DroolsUpdateTest.readKnowledgeBase(DroolsUpdateTest.java:40)
at com.recondotech.droolsTest.DroolsUpdateTest.testUpdate(DroolsUpdateTest.java:21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months
[JBoss JIRA] Created: (JBAS-7166) org.jboss.Shutdown to use org.jboss.naming.NamingProviderURLWriter persist file
by Juergen none (JIRA)
org.jboss.Shutdown to use org.jboss.naming.NamingProviderURLWriter persist file
-------------------------------------------------------------------------------
Key: JBAS-7166
URL: https://jira.jboss.org/jira/browse/JBAS-7166
Project: JBoss Application Server
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Naming
Affects Versions: JBossAS-5.1.0.GA
Environment: 15:59:02,389 INFO [ServerInfo] Java version: 1.6.0_14,Sun Microsystems Inc.
15:59:02,390 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
15:59:02,390 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 14.0-b16,Sun Microsystems Inc.
15:59:02,390 INFO [ServerInfo] OS-System: Linux 2.6.9-22.0.1.ELsmp,amd64
Reporter: Juergen none
Assignee: Scott M Stark
i would like to see org.jboss.Shutdown in bin/shutdown.jar make use of persist file created by org.jboss.naming.NamingProviderURLWriter containing jnp service url
i probably can do something like "java -jar shutdown.jar -s `cat jnp-service.url` -S" but it depends on OS
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months
[JBoss JIRA] Created: (JBRULES-2762) ArrayIndexOutOfBoundsException in org.drools.core.util.AbstractHashTable
by Lubos Pechac (JIRA)
ArrayIndexOutOfBoundsException in org.drools.core.util.AbstractHashTable
------------------------------------------------------------------------
Key: JBRULES-2762
URL: https://jira.jboss.org/browse/JBRULES-2762
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-core (expert)
Affects Versions: 5.1.1.FINAL
Environment: JBoss 5.1 on JDK6, 64bit Windows Server
Reporter: Lubos Pechac
Assignee: Mark Proctor
Exception occures at:
org.drools.core.util.AbstractHashTable$HashTableIterator.next(AbstractHashTable.java:317)
in Drools 5.1.1 when calling insert() on just created StatefulKnowledgeSession.
I found similar issues reported for LeftTupleIndexHashTable, it had to do with initializing row to -1 instead of 0 or something similar. I see that fixed in Left/RightTupleIndexHashTable but it seems to me like it is still present in AbstractHashTable.
The bug occures randomly (inserting the same data), usualy under load. The index is either -1 or too high. I create multiple sessions in threads from one KnowledgeBase, sessions are not shared. The sessions are relatively short living, about 100ms max.
Stack trace I got is:
java.lang.ArrayIndexOutOfBoundsException: 16
at org.drools.core.util.AbstractHashTable$HashTableIterator.next(AbstractHashTable.java:317)
at org.drools.reteoo.EntryPointNode.updateSink(EntryPointNode.java:323)
at org.drools.reteoo.ObjectTypeNode.attach(ObjectTypeNode.java:303)
at org.drools.reteoo.builder.PatternBuilder.attachObjectTypeNode(PatternBuilder.java:257)
at org.drools.reteoo.ClassObjectTypeConf.<init>(ClassObjectTypeConf.java:92)
at org.drools.common.ObjectTypeConfigurationRegistry.getObjectTypeConf(ObjectTypeConfigurationRegistry.java:68)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:981)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:917)
at org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:251)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months