It's telling you that you can't cast a FastMap instance into a GenericValue 
instance. GenericValue implements Map, and FastMap implements Map, so you could 
cast the Map interface, but not the implementation.

-Adrian

--- On Sun, 6/21/09, Vince Clark <[email protected]> wrote:

> From: Vince Clark <[email protected]>
> Subject: error calling storeOrder service
> To: "user" <[email protected]>
> Date: Sunday, June 21, 2009, 5:11 PM
> Here is the error: 
> ---- exception report
> ---------------------------------------------------------- 
> Exception: org.ofbiz.service.GenericServiceException 
> Message: Service [storeOrder] target threw an unexpected
> exception (javolution.util.FastMap cannot be cast to
> org.ofbiz.entity.GenericValue) 
> ---- cause
> ---------------------------------------------------------------------
> 
> Exception: java.lang.ClassCastException 
> Message: javolution.util.FastMap cannot be cast to
> org.ofbiz.entity.GenericValue 
> ---- stack trace
> ---------------------------------------------------------------
> 
> java.lang.ClassCastException: javolution.util.FastMap
> cannot be cast to org.ofbiz.entity.GenericValue 
> org.ofbiz.order.order.OrderServices.createOrder(OrderServices.java:262)
> 
> 
> I am calling this method thru the storeOrder service. I
> have a simple method that collects order information from a
> legacy system and creates the order in OFBiz. This is my
> first attempt at this particular simple method so I'm very
> open to the possibility that I am not doing something
> correctly in preparing the data for handing off to the java
> class. I can post the code to my simple method if that would
> help. 
> 
> 
> 
> Vince Clark 
> [email protected]
> 
> (303) 493-6723 
> 


      

Reply via email to