[JBoss JIRA] Created: (JBPM-783) isPropagated calculation for event is not correct
by Olga Ivanova (JIRA)
isPropagated calculation for event is not correct
-------------------------------------------------
Key: JBPM-783
URL: http://jira.jboss.com/jira/browse/JBPM-783
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM 3.2 alpha 1
Reporter: Olga Ivanova
Assigned To: Tom Baeyens
As it is stated in comment inside org.jbpm.graph.def.GraphElement.fireAndPropagateEvent method
// calculate if the event was fired on this element or if it was a propagated event
boolean isPropagated = (this.equals(executionContext.getEventSource()));
I believe code does not correspond to the intent and should look following:
boolean isPropagated = !(this.equals(executionContext.getEventSource()));
i.e if event source is same element that this, event is not propagated, if they are different - event is propagated.
--
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
19 years
[JBoss JIRA] Created: (JBAS-3992) Race condition in JBossManagedConnectionFactory
by Derek Lewis (JIRA)
Race condition in JBossManagedConnectionFactory
-----------------------------------------------
Key: JBAS-3992
URL: http://jira.jboss.com/jira/browse/JBAS-3992
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: JCA service
Affects Versions: JBossAS-4.0.4.GA
Environment: I'm running JBoss 4.0.4.GA on jaba 1.5.0_07-b03.
I haven't tried a newer JBoss, however the code I've determined is causing the
problem looks the same on 5.0.0.Beta1.
Reporter: Derek Lewis
Assigned To: Weston Price
The problem happens when calling flush() on JBossManagedConnectionPool via the jmx-console.
If a call to getConnection() is made by the application at the same time, there is a potential for getConnection() to throw a ResourceException saying "The pool has been shutdown".
Thread 1: calls flush()
Thread 2: calls getConnection()
In Thread 1, in JBossManagedConnectionPool.flush(), after the pools are iterated through and shut down (this is synchronized on subPools).
Assume that a context switch happens here, and Thread 2 runs now, with Thread 1 paused, before calling subPools.clear().
When thread 2 gets to where it calls getSubPool(...), this is not synchronized, so subPools.get(key) returns a pool which is not null though it has been shutdown), and returns it.
getConnection() is then called on this pool, causing the exception to be thrown.
Thread 1 then proceeds to clear the pool, so that the shutdown subpools are not returned. (But it's too late for this one case)
--
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
19 years
[JBoss JIRA] Created: (JBMESSAGING-624) Running on DB2
by Tomaz Cerar (JIRA)
Running on DB2
--------------
Key: JBMESSAGING-624
URL: http://jira.jboss.com/jira/browse/JBMESSAGING-624
Project: JBoss Messaging
Issue Type: Patch
Components: Messaging Core Persistence
Affects Versions: 1.0.1.GA
Environment: jboss messaging 1.0.1GA, windows xp, DB2 8.2 iSeries
Reporter: Tomaz Cerar
Assigned To: Ovidiu Feodorov
To make jboss messaging 1.0.1GA work with DB2 there must be attribute UsingBinaryStream in class JDBCPersistenceManager made configurable from service file.
in JDBCPersistenceManager you add methods:
/**
* Managed attribute.
*/
public boolean isUsingBinaryStream()throws Exception {
return usingBinaryStream;
}
/**
* Managed attribute.
*/
public void setUsingBinaryStream(boolean usingBinaryStream)throws Exception {
this.usingBinaryStream = usingBinaryStream;
}
and in JDBCPersistenceManager-xmbean.xml
you have to add:
<attribute access="read-write" getMethod="isUsingBinaryStream" setMethod="setUsingBinaryStream">
<description>Should JDBC read as binary stream be used?</description>
<name>UsingBinaryStream</name>
<type>boolean</type>
</attribute>
db2-persistence-service.xml
--
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
19 years