[JBoss JIRA] Created: (EJBTHREE-2050) Ensure ids for newly created SFSB contexts will hash locally in Infinispan
by Brian Stansberry (JIRA)
Ensure ids for newly created SFSB contexts will hash locally in Infinispan
--------------------------------------------------------------------------
Key: EJBTHREE-2050
URL: https://jira.jboss.org/jira/browse/EJBTHREE-2050
Project: EJB 3.0
Issue Type: Sub-task
Components: cache, Clustering
Reporter: Brian Stansberry
Assignee: Paul Ferraro
If Infinispan DIST is used, at least one of the cache locations for an SFSB should be the node that created it. This way in the normal case where there are 2 copies, a single unicast to the backup node is sufficient to replicate. If the cache key (the SFSBContext id) hashes to 2 remote nodes, then every cache write will require 2 unicasts.
The problem here is unlike web sessions, the id for an SFSB context is not generated by the caching layer; it's generated by StatefulBeanContext itself. So the web session strategy of having a background thread occasionally populate a pool of ids that are known to map locally (using the consistent hash algorithm Mircea Marcus is going to expose for ISPN-232) won't work.
--
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
14 years
[JBoss JIRA] Created: (JASSIST-92) ExprEditor: edit "throw new Exception"-Statements
by Hans-Joerg Adel (JIRA)
ExprEditor: edit "throw new Exception"-Statements
-------------------------------------------------
Key: JASSIST-92
URL: https://jira.jboss.org/jira/browse/JASSIST-92
Project: Javassist
Issue Type: Feature Request
Affects Versions: 3.11.0.GA
Environment: WIndows Vista Java 1.6
Reporter: Hans-Joerg Adel
Assignee: Shigeru Chiba
Priority: Minor
Hi!
At the moment I am using the ExprEditor. I miss an edit-Method to access throw statements like the follwing ones:
throw new RuntimeException();
try {
foobar(x);
} catch (IllegalArgumentException e) {
doSomething();
throw e; // this statement
}
I think of something like this:
public void edit(ThrowExpr t) {
t.getType(); // returns the CtClass of the thrown Exception
}
Cheers
Ruwen and Hans-Joerg
--
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
14 years
[JBoss JIRA] Created: (JBRULES-2224) multi-restriction pattern throws UnsupportedOpEx
by Wolfgang Laun (JIRA)
multi-restriction pattern throws UnsupportedOpEx
------------------------------------------------
Key: JBRULES-2224
URL: https://jira.jboss.org/jira/browse/JBRULES-2224
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-compiler (expert)
Affects Versions: 5.0.1.FINAL
Reporter: Wolfgang Laun
Assignee: Mark Proctor
rule "same"
when
$m : ShGraphType( $x25No : x25No, $trans : trans )
GoType( x25No == $x25No || == ($x25No % 2000), trans != $trans ) #!!!#
$e : ShType( x25No == $x25No )
$v : View( elemSet contains $m )
then
Field x25No is an int.
The marked pattern is not flagged in Eclipse, passes the compiler without an error, but crashes at runtime during fact insertion with:
Exception in thread "main" java.lang.UnsupportedOperationException: does not support method call isAllowed(Object object, InternalWorkingMemory workingMemoiry)
at org.drools.rule.ReturnValueRestriction.isAllowedCachedRight(ReturnValueRestriction.java:252)
at org.drools.rule.OrCompositeRestriction.isAllowedCachedRight(OrCompositeRestriction.java:51)
at org.drools.rule.MultiRestrictionFieldConstraint.isAllowedCachedRight(MultiRestrictionFieldConstraint.java:115)
at org.drools.common.DoubleBetaConstraints.isAllowedCachedRight(DoubleBetaConstraints.java:181)
at org.drools.reteoo.JoinNode.assertObject(JoinNode.java:172)
at org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:360)
at org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:344)
at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:184)
at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:146)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1094)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1045)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:830)
at org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:219)
at rss.checker.engine.impl.DroolsEngine.insert(DroolsEngine.java:61)
--
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
14 years