You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by gopalbi <go...@hytechpro.com> on 2008/06/26 12:06:08 UTC

Exception in adding new product.

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.


Re: Exception in adding new product.

Posted by Ashish Vijaywargiya <vi...@gmail.com>.
BTW which database you are using on your local machine.

--
Ashish

On Thu, Jun 26, 2008 at 6:39 AM, BJ Freeman <bj...@free-man.net> 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
>
>

Re: Exception in adding new product.

Posted by BJ Freeman <bj...@free-man.net>.
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


Re: Exception in adding new product.

Posted by David E Jones <jo...@hotwaxmedia.com>.
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.
>