Thanks. That did it.

Now to my next error:
---- exception report ----------------------------------------------------------
Exception: org.ofbiz.service.GenericServiceException
Message: Service [storeOrder] target threw an unexpected exception (null)
---- cause ---------------------------------------------------------------------
Exception: java.lang.NullPointerException
Message: null
---- stack trace ---------------------------------------------------------------
java.lang.NullPointerException
javolution.util.FastCollection.addAll(Unknown Source)
org.ofbiz.order.order.OrderServices.createOrder(OrderServices.java:345)


Vince Clark 
[email protected]
(303) 493-6723 

----- Original Message -----
From: "Adrian Crum" <[email protected]>
To: [email protected]
Sent: Sunday, June 21, 2009 6:50:15 PM GMT -07:00 US/Canada Mountain
Subject: Re: error calling storeOrder service


You need to create a GenericValue. I think the operation is called make-value.

-Adrian

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

> From: Vince Clark <[email protected]>
> Subject: Re: error calling storeOrder service
> To: [email protected]
> Date: Sunday, June 21, 2009, 5:43 PM
> I understand the error. But I didn't
> write this class. I'm just trying to use it by calling it as
> a service.
> 
> All the maps I'm creating are being done from a simple
> method, which as far as I can tell do not allow you to
> differentiate between maps and fast maps. Is a map created
> in a simple method always a fast map?
> 
> Vince Clark 
> [email protected]
> 
> (303) 493-6723 
> 
> ----- Original Message -----
> From: "Adrian Crum" <[email protected]>
> To: [email protected]
> Sent: Sunday, June 21, 2009 6:25:57 PM GMT -07:00 US/Canada
> Mountain
> Subject: Re: error calling storeOrder service
> 
> 
> 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