Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025450Openbravo ERPA. Platformpublic2014-01-09 00:262014-01-17 15:49
jonalegriaesarte 
shankarb 
normalmajorhave not tried
closedfixed 
5
pi 
3.0PR14Q23.0PR14Q2 
AugustoMauch
Core
No
0025450: In ProcessBundle class the cast from java.util.TreeMap to java.util.HashMap is causing an exception
In ProcessBundle class the cast from java.util.TreeMap to java.util.HashMap is causing an exception
In code it is very easy to check. The exception caused is:

java.lang.ClassCastException: java.util.TreeMap cannot be cast to java.util.HashMap
at org.openbravo.scheduling.ProcessBundle.request(ProcessBundle.java:381)
at org.openbravo.scheduling.OBScheduler.initialize(OBScheduler.java:262)
at org.openbravo.base.OBSchedulerInitializerListener.contextInitialized(OBSchedulerInitializerListener.java:117)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
--- a/src/org/openbravo/scheduling/ProcessBundle.java
+++ b/src/org/openbravo/scheduling/ProcessBundle.java
@@ -378,7 +378,7 @@
bundle.setParams(new HashMap<String, Object>());
} else {
final XStream xstream = new XStream(new JettisonMappedXmlDriver());
- bundle.setParams((HashMap<String, Object>) xstream.fromXML(paramString));
+ bundle.setParams((Map<String, Object>) xstream.fromXML(paramString));
}
return bundle;
No tags attached.
diff 25450.diff (571) 2014-01-09 00:26
https://issues.openbravo.com/file_download.php?file_id=6619&type=bug
Issue History
2014-01-09 00:26jonalegriaesarteNew Issue
2014-01-09 00:26jonalegriaesarteAssigned To => AugustoMauch
2014-01-09 00:26jonalegriaesarteModules => Core
2014-01-09 00:26jonalegriaesarteTriggers an Emergency Pack => No
2014-01-09 00:26jonalegriaesarteFile Added: 25450.diff
2014-01-09 05:18shankarbAssigned ToAugustoMauch => shankarb
2014-01-12 09:20shankarbReview Assigned To => AugustoMauch
2014-01-12 09:20shankarbSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=5329#r5329
2014-01-12 09:20shankarbIssue Monitored: AugustoMauch
2014-01-12 09:23hgbotCheckin
2014-01-12 09:23hgbotNote Added: 0063362
2014-01-12 09:23hgbotStatusnew => resolved
2014-01-12 09:23hgbotResolutionopen => fixed
2014-01-12 09:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9453922898b4165be788643a2d4738ef8fde1ff2 [^]
2014-01-13 15:28AugustoMauchNote Added: 0063386
2014-01-13 15:28AugustoMauchStatusresolved => closed
2014-01-13 15:28AugustoMauchFixed in Version => 3.0MP32
2014-01-17 15:49hudsonbotCheckin
2014-01-17 15:49hudsonbotNote Added: 0063491

Notes
(0063362)
hgbot   
2014-01-12 09:23   
Repository: erp/devel/pi
Changeset: 9453922898b4165be788643a2d4738ef8fde1ff2
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Sun Jan 12 13:50:17 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/9453922898b4165be788643a2d4738ef8fde1ff2 [^]

Fixes Issue 0025450: classCastException in ProcessBundle class

In ProcessBundle class the cast from java.util.TreeMap to java.util.HashMap is causing an exception.
Changed type cast to Map from HashMap.

---
M src/org/openbravo/scheduling/ProcessBundle.java
---
(0063386)
AugustoMauch   
2014-01-13 15:28   
Code reviewed and verified in pi@9453922898b4
(0063491)
hudsonbot   
2014-01-17 15:49   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9669102eb541 [^]
Maturity status: Test