Exception in adding new product.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Exception in adding new product.

gopalbi
Hello friends i need your help,

           When i am using derby database then i am able to create a new product.but when i am using local database as a place of derby database the it throws Exception  in create in new product in catalog.

The Following Errors Occurred:

Error calling event:

org.ofbiz.webapp.event.EventHandlerException: Service invocation error (Could not commit transaction for service [updateProduct] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in simple-method [ [file:/ofbiz_1/specialpurpose/bi/script/org/ofbiz/bi/DimensionServices.xml#prepareProductDimensionData]]: Error running the simple-method: Error in simple-method operation []: java.lang.IllegalArgumentException: Type id-ne not found
null)


Thanks & Regards:
Gopal Bisht
Reply | Threaded
Open this post in threaded view
|

Re: Exception in adding new product.

BJ Freeman
is the db your using in the list of db already tested?
id-ne is defined in
framework\entity\fieldtype
there should be one for the db your using.

gopalbi sent the following on 6/26/2008 3:06 AM:

> Hello friends i need your help,
>
>            When i am using derby database then i am able to create a new
> product.but when i am using local database as a place of derby database the
> it throws Exception  in create in new product in catalog.
>
> The Following Errors Occurred:
>
> Error calling event:
>
> org.ofbiz.webapp.event.EventHandlerException: Service invocation error
> (Could not commit transaction for service [updateProduct] call: Roll back
> error, could not commit transaction, was rolled back instead because of:
> Error in simple-method [
> [file:/ofbiz_1/specialpurpose/bi/script/org/ofbiz/bi/DimensionServices.xml#prepareProductDimensionData]]:
> Error running the simple-method: Error in simple-method operation []:
> java.lang.IllegalArgumentException: Type id-ne not found
> null)
>
>
> Thanks & Regards:
> Gopal Bisht

Reply | Threaded
Open this post in threaded view
|

Re: Exception in adding new product.

Ashish Vijaywargiya
BTW which database you are using on your local machine.

--
Ashish

On Thu, Jun 26, 2008 at 6:39 AM, BJ Freeman <[hidden email]> wrote:

> is the db your using in the list of db already tested?
> id-ne is defined in
> framework\entity\fieldtype
> there should be one for the db your using.
>
> gopalbi sent the following on 6/26/2008 3:06 AM:
> > Hello friends i need your help,
> >
> >            When i am using derby database then i am able to create a new
> > product.but when i am using local database as a place of derby database
> the
> > it throws Exception  in create in new product in catalog.
> >
> > The Following Errors Occurred:
> >
> > Error calling event:
> >
> > org.ofbiz.webapp.event.EventHandlerException: Service invocation error
> > (Could not commit transaction for service [updateProduct] call: Roll back
> > error, could not commit transaction, was rolled back instead because of:
> > Error in simple-method [
> >
> [file:/ofbiz_1/specialpurpose/bi/script/org/ofbiz/bi/DimensionServices.xml#prepareProductDimensionData]]:
> > Error running the simple-method: Error in simple-method operation []:
> > java.lang.IllegalArgumentException: Type id-ne not found
> > null)
> >
> >
> > Thanks & Regards:
> > Gopal Bisht
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Exception in adding new product.

David E Jones
In reply to this post by gopalbi

It is most likely because your delegator configuration in the  
entityengine.xml file is incomplete.

Please look at the most recent version of the file from SVN, and  
notice that (for the default and other delegators) it has two group-
map sub-elements, like this:

     <delegator name="default" entity-model-reader="main" entity-group-
reader="main" entity-eca-reader="main" distributed-cache-clear-
enabled="false">
         <group-map group-name="org.ofbiz" datasource-
name="localderby"/>
         <group-map group-name="org.ofbiz.olap" datasource-
name="localderbyolap"/>
     </delegator>

If you are missing the datasource mapping for the group-name  
"org.ofbiz.olap" you'll run into this problem.

BTW, I hate to say this, but that HAS already been discussed on the  
mailing lists and there are similar responses to this in the archives.

-David


On Jun 26, 2008, at 4:06 AM, gopalbi wrote:

>
> Hello friends i need your help,
>
>           When i am using derby database then i am able to create a  
> new
> product.but when i am using local database as a place of derby  
> database the
> it throws Exception  in create in new product in catalog.
>
> The Following Errors Occurred:
>
> Error calling event:
>
> org.ofbiz.webapp.event.EventHandlerException: Service invocation error
> (Could not commit transaction for service [updateProduct] call: Roll  
> back
> error, could not commit transaction, was rolled back instead because  
> of:
> Error in simple-method [
> [file:/ofbiz_1/specialpurpose/bi/script/org/ofbiz/bi/
> DimensionServices.xml#prepareProductDimensionData]]:
> Error running the simple-method: Error in simple-method operation []:
> java.lang.IllegalArgumentException: Type id-ne not found
> null)
>
>
> Thanks & Regards:
> Gopal Bisht
> --
> View this message in context: http://www.nabble.com/Exception-in-adding-new-product.-tp18130499p18130499.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>