[JBoss JIRA] Created: (JBAS-4103) testsuite testcases' reports overwritten
by Aleksandar Kostadinov (JIRA)
testsuite testcases' reports overwritten
----------------------------------------
Key: JBAS-4103
URL: http://jira.jboss.com/jira/browse/JBAS-4103
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Test Suite
Reporter: Aleksandar Kostadinov
When JBoss AS testsuite runs there is xml report produces for every testcase. If the same testcase is run twice without being renamed it overwrites the result from the previous run. This could lead to silent failures as if the first run fails and the second not, the final report will not show any problem.
There appear to be some testcases doing so. We've noticed only org.jboss.test.jmx.test.RMIAdaptorAuthorizationUnitTestCase to fail the first time and not the second one, but we'd better avoid the possibility of this happening in the future.
Affected seem to be many if not all current versions (4.0.4GA, 4.0.5GA, 4.0 branch, 4.2 branch, 5, etc.). See forum for a reference.
There will always be the possibility different targets to include same testcases so we should probably rename tests run by all but tests-standard-unit target.
--
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, 3 months
[JBoss JIRA] Created: (JBAS-3855) JBosses org.jboss.invocation.InvocationStatistics are not serializable and therfore cant be queried by twiddle.sh
by Ramon Grunder (JIRA)
JBosses org.jboss.invocation.InvocationStatistics are not serializable and therfore cant be queried by twiddle.sh
-----------------------------------------------------------------------------------------------------------------
Key: JBAS-3855
URL: http://jira.jboss.com/jira/browse/JBAS-3855
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: JMX
Affects Versions: JBossAS-4.0.4.GA
Reporter: Ramon Grunder
Assigned To: Scott M Stark
here is a sample call including the stack trace which describes the error:
$ twiddle.sh -s jnp://localhost:1099 get jboss.j2ee:service=EJB,jndiName=ejb/Dummy InvokeStats
13:51:56,120 ERROR [Twiddle] Exec failed
java.io.NotSerializableException: org.jboss.invocation.InvocationStatistics
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
...
--
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, 3 months
[JBoss JIRA] Created: (JBPM-854) Condition in transition not retrieved from database JBPM_TRANSITIONS#DECISION_
by Arjan van Bentem (JIRA)
Condition in transition not retrieved from database JBPM_TRANSITIONS#DECISION_
------------------------------------------------------------------------------
Key: JBPM-854
URL: http://jira.jboss.com/jira/browse/JBPM-854
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM jPDL 3.2 beta 2
Environment: All
Reporter: Arjan van Bentem
Assigned To: Tom Baeyens
Though table JBPM_DECISIONCONDITION is replaced by column DECISION_ in table JBPM_TRANSITIONS, the Java code will still query that old table to load processes that were deployed using a previous version. For an empty query result Hibernate will return an empty List (at least for the Hypersonic database), while the code only checks for the List to be null. This fails, and results in conditions not being taken from JBPM_TRANSITIONS.
Fix: replace line 105 of Decision.java (version 1.3)
http://fisheye.jboss.com/browse/JBPM/jbpm.3/jpdl/jar/src/main/java/org/jb...
48 List decisionConditions = null;
:
105 } else if (decisionConditions!=null) {
106 // backwards compatible mode based on separate DecisionCondition
with
105 } else if (decisionConditions!=null && !decisionConditions.isEmpty()) {
To test one could replace org.jbpm.graph.node.JpdlDbTest#testDecision() to use correct EL expression, and then signal the process to invoke the troublesome code:
http://fisheye.jboss.com/browse/JBPM/jbpm.3/jpdl/jar/src/test/java/org/jb...
public void testDecision(){
ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
"<process-definition>" +
" <start-state>" +
" <transition to='d' />" +
" </start-state>" +
" <decision name='d'>" +
" <transition name='one' to='a'>" +
" <condition>#{a == 1}</condition>" +
" </transition>" +
" <transition name='two' to='b'>" +
" <condition>#{a == 2}</condition>" +
" </transition>" +
" <transition name='three' to='c'>" +
" <condition>#{a == 3}</condition>" +
" </transition>" +
" </decision>" +
" <state name='a' />" +
" <state name='b' />" +
" <state name='c' />" +
"</process-definition>");
processDefinition = saveAndReload(processDefinition);
Decision decision = (Decision) processDefinition.getNode("d");
assertEquals("#{a == 1}", decision.getLeavingTransition("one").getCondition());
assertEquals("#{a == 2}", decision.getLeavingTransition("two").getCondition());
assertEquals("#{a == 3}", decision.getLeavingTransition("three").getCondition());
// Assure org.jbpm.graph.node.Decision#execute gets the conditions from
// table JBPM_TRANSITIONS rather than the obsolete JBPM_DECISIONCONDITION:
ProcessInstance processInstance = new ProcessInstance(processDefinition);
processInstance.getContextInstance().setVariable("a", new Integer(2));
processInstance.signal();
assertEquals(processDefinition.getNode("b"), processInstance.getRootToken().getNode());
}
--
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, 3 months
[JBoss JIRA] Created: (JBPM-853) Attribute 'expression' not taken from Condition element
by Arjan van Bentem (JIRA)
Attribute 'expression' not taken from Condition element
-------------------------------------------------------
Key: JBPM-853
URL: http://jira.jboss.com/jira/browse/JBPM-853
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM jPDL 3.2 beta 2
Environment: All
Reporter: Arjan van Bentem
Assigned To: Tom Baeyens
The <condition> element allows for either specifying an attribute 'expression', or for giving the expression as the text of the element itself. So, both
<condition>#{true}</condition>
and
<condition expression="#{true}"/>
should work. However, the latter expression is ignored (and does not get stored in the database but results in a zero-length (non-null) value in column DECISION_ in JBPM_TRANSITIONS instead). This is caused by org.dom4j.Element#getTextTrim() returning en empty String rather than null.
Fix: replace line 745 of JpdlXmlReader (version 1.7)
http://fisheye.jboss.com/browse/JBPM/jbpm.3/jpdl/jar/src/main/java/org/jb...
739 String condition = transitionElement.attributeValue("condition");
740 if (condition==null) {
741 Element conditionElement = transitionElement.element("condition");
742 if (conditionElement!=null) {
743 condition = conditionElement.getTextTrim();
744 // for backwards compatibility
745 if (condition==null) {
746 condition = conditionElement.attributeValue("expression");
747 }
748 }
749 }
with
745 if (condition==null || condition.length()==0) {
In the DecisionConditionsTest Unit test one could change one (and ONLY one) of the conditions to use the attribute rather than the element text. Like on line 42 of DecisionConditionsTest (version 1.1) replace
http://fisheye.jboss.com/browse/JBPM/jbpm.3/jpdl/jar/src/test/java/org/jb...
41 " <transition name='lead' to='put it in the lead db'>" +
42 " <condition>#{budget > 100}</condition>" +
43 " </transition>" +
with
42 " <condition expression='#{budget > 100}'/>" +
Thanks to cdart_rrr for pointing this out in the forums.
--
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, 3 months