Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0025450 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | have not tried | 2014-01-09 00:26 | 2014-01-17 15:49 | |||
Reporter | jonalegriaesarte | View Status | public | |||||
Assigned To | shankarb | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR14Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 9453922898b4 | ||||
Projection | none | ETA | none | Target Version | 3.0PR14Q2 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | pi | SCM revision | ||||||
Merge Request Status | ||||||||
Review Assigned To | AugustoMauch | |||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 25759 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0025450: In ProcessBundle class the cast from java.util.TreeMap to java.util.HashMap is causing an exception | |||||||
Description | In ProcessBundle class the cast from java.util.TreeMap to java.util.HashMap is causing an exception | |||||||
Steps To Reproduce | 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) | |||||||
Proposed Solution | --- 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; | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
|
![]() |
|
(0063362) hgbot (developer) 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 (administrator) 2014-01-13 15:28 |
Code reviewed and verified in pi@9453922898b4 |
(0063491) hudsonbot (viewer) 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 |
![]() |
|||
Date Modified | Username | Field | Change |
2014-01-09 00:26 | jonalegriaesarte | New Issue | |
2014-01-09 00:26 | jonalegriaesarte | Assigned To | => AugustoMauch |
2014-01-09 00:26 | jonalegriaesarte | Modules | => Core |
2014-01-09 00:26 | jonalegriaesarte | OBNetwork customer | => Yes |
2014-01-09 00:26 | jonalegriaesarte | Support ticket | => 25759 |
2014-01-09 00:26 | jonalegriaesarte | Triggers an Emergency Pack | => No |
2014-01-09 00:26 | jonalegriaesarte | File Added: 25450.diff | |
2014-01-09 05:18 | shankarb | Assigned To | AugustoMauch => shankarb |
2014-01-12 09:20 | shankarb | Review Assigned To | => AugustoMauch |
2014-01-12 09:20 | shankarb | Steps to Reproduce Updated | View Revisions |
2014-01-12 09:20 | shankarb | Issue Monitored: AugustoMauch | |
2014-01-12 09:23 | hgbot | Checkin | |
2014-01-12 09:23 | hgbot | Note Added: 0063362 | |
2014-01-12 09:23 | hgbot | Status | new => resolved |
2014-01-12 09:23 | hgbot | Resolution | open => fixed |
2014-01-12 09:23 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/9453922898b4165be788643a2d4738ef8fde1ff2 [^] |
2014-01-13 15:28 | AugustoMauch | Note Added: 0063386 | |
2014-01-13 15:28 | AugustoMauch | Status | resolved => closed |
2014-01-13 15:28 | AugustoMauch | Fixed in Version | => 3.0MP32 |
2014-01-17 15:49 | hudsonbot | Checkin | |
2014-01-17 15:49 | hudsonbot | Note Added: 0063491 |
Copyright © 2000 - 2009 MantisBT Group |