[JBoss JIRA] Created: (JBRULES-1867) RulebasePartitioningTest test failure
by Seegler Ittyavirah (JIRA)
RulebasePartitioningTest test failure
--------------------------------------
Key: JBRULES-1867
URL: https://jira.jboss.org/jira/browse/JBRULES-1867
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-guvnor
Affects Versions: 5.0.0.M2
Reporter: Seegler Ittyavirah
Assignee: Mark Proctor
unit test failure when building MR2 source code
This works if config.setMultithreadEvaluation( true ); line commented out
-------------------------------------------------------------------------------
Test set: org.drools.integrationtests.RulebasePartitioningTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.15 sec <<< FAILURE!
testRulebasePartitions1(org.drools.integrationtests.RulebasePartitioningTest) Time elapsed: 0.14 sec <<< FAILURE!
junit.framework.AssertionFailedError: expected:<3> but was:<0>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:201)
at junit.framework.Assert.assertEquals(Assert.java:207)
at org.drools.integrationtests.RulebasePartitioningTest.testRulebasePartitions1(RulebasePartitioningTest.java:82)
--
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
15 years, 8 months
[JBoss JIRA] Created: (JBRULES-1278) DSL Parser "eval"
by M H (JIRA)
DSL Parser "eval"
-----------------
Key: JBRULES-1278
URL: http://jira.jboss.com/jira/browse/JBRULES-1278
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Drl Parser/Builder
Affects Versions: 4.0.1
Reporter: M H
Assigned To: Mark Proctor
Priority: Blocker
rule "PatternTest"
when
$pli:Item( title matches "^Test\s*")
then
#
end
this one compiles but on Runtime it ends in an Exception when title looks for example like this "BlaBla (Test)".
as workaround i thought about using the next part, but
rule "PatternTest"
when
$pli:Item( eval(title.matches("^Test\s*")) )
then
#
end
it resolves into, also it shouldn't (because title.matches() is Java Code a shouldn't be parsed by the DSL Parser itself):
SyntaxfehlerRule Compilation error : [Rule name=OnlineStreaming Start,
agendaGroup=MAIN, salience=100, no-loop=true]
com/p7s1/swi/phoenix/n24/Rule_OnlineStreaming_Start_0.java (19:923) :
Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 8 months
[JBoss JIRA] Created: (JBRULES-1422) Prefix 'and' and infix 'and' not interchangeable
by Alexandre Gattiker (JIRA)
Prefix 'and' and infix 'and' not interchangeable
------------------------------------------------
Key: JBRULES-1422
URL: http://jira.jboss.com/jira/browse/JBRULES-1422
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Drl Parser/Builder
Affects Versions: 4.0.2
Reporter: Alexandre Gattiker
The documentation on the 'and' Conditional Element seems to imply that these constructs are equivalent:
$p1:Entity($code1:code)
not (and
$p2:Entity(code == $code1)
eval(MyStaticClass.match($p1, $p2))
)
$p1:Entity($code1:code)
not (
$p2:Entity(code == $code1)
and eval(MyStaticClass.match($p1, $p2))
)
Actually, the first version crashes with this message:
unknown:93:7 Unexpected token 'and'[96,2]: unknown:96:2 mismatched token: [@792,3685:3685=')',<12>,96:2]; expecting type THEN
I'm on drools 4.0.2 and mvel14-1.2.8.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 8 months
[JBoss JIRA] Created: (JBAS-4154) Get the server to run under a security manager
by Scott M Stark (JIRA)
Get the server to run under a security manager
----------------------------------------------
Key: JBAS-4154
URL: http://jira.jboss.com/jira/browse/JBAS-4154
Project: JBoss Application Server
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Security
Affects Versions: JBossAS-5.0.0.Beta1
Reporter: Scott M Stark
Assigned To: Scott M Stark
The testsuite tests-security-manager target was failing due to the aop layer not creating classes with correct ProtectionDomains. This is fixed in (JBAOP-368). The next problem is that the server.policy needs to use vfsfile urls for the permission assignments. However, because these are URLs and not URIs, there has to be a URL handler available when the policy is read at bootstrap. Currently a policy entry like:
grant codeBase "vfsfile:${jboss.home.dir}/lib/-" {
permission java.security.AllPermission;
};
fails because the jboss vfsfile URL handler is unknown:
policy: Adding policy entry:
policy: signedBy null
policy: codeBase vfsfile:/tmp/trunk/build/output/jboss-5.0.0.Beta2/lib/-
java.security.policy: error adding Entry:
java.net.MalformedURLException: unknown protocol: vfsfile policy:
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 8 months
[JBoss JIRA] Created: (JBAS-5326) Shutdown during deployment needs tiding up
by Adrian Brock (JIRA)
Shutdown during deployment needs tiding up
------------------------------------------
Key: JBAS-5326
URL: http://jira.jboss.com/jira/browse/JBAS-5326
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: MicroContainer bus
Reporter: Adrian Brock
Assigned To: Adrian Brock
Fix For: JBossAS-5.0.0.CR1
The shutdown while deployment/startup is occuring is a real mess at the moment this needs fixing
such that we get at most one error (there will always be race conditions between
internal service deployment and undeployment that are unexpected - but should be fixed as they are found)
and with better communication between the "layers" no errors.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 8 months
[JBoss JIRA] Created: (JBAS-5328) Better signalling of shutdown
by Adrian Brock (JIRA)
Better signalling of shutdown
-----------------------------
Key: JBAS-5328
URL: http://jira.jboss.com/jira/browse/JBAS-5328
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: MicroContainer bus
Reporter: Adrian Brock
Assigned To: Adrian Brock
Fix For: JBossAS-5.0.0.CR1
Currently within the shutdown we generally just do something like
AtomicBoolean shutdown = new AutomaticBoolean(false);
public void shutdown()
{
while (still deployments)
removeDeployments();
shutdown.set(true);
}
public void deploy()
{
if (shutdown.get())
throw new IllegalStateException("Already shutdown");
}
This needs improving to
1) Have a prepareShutdown() so we can signal that new deployments are not allowed earlier
2) The IllegalStateException should be replaced with a ShutdownException such that the caller
can ignore such errors and deal with the shutdown more gracefully
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 8 months