Error when adding products to catagories

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

Error when adding products to catagories

Branden Strickland
I'm running my DB on mysql.
Loaded sample data.
I've set up a new facility, catalog, and 2 catagories.

I can't add products to either catigories.  I get this error.

The Following Errors Occurred:

Error calling event: org.ofbiz.webapp.event.EventHandlerException: Service
invocation error (Could not commit transaction for service [createProduct]
call: Roll back error, could not commit transaction, was rolled back instead
because of: Error in simple-method [
[file:/home/bstrickland/svnWS/ofbizdemo/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)
I looked at the DemensionServices.xml and couldn't tie anything together.


Also (un related)

In the business setup document, it suggests you create 4 catagories, and
this confused me as well.  Is there a purpose for:
Browse Root Category
Top-level browse category
Promotions Category
"all Products" ategory as default search.

Thanks gentlemen!
Reply | Threaded
Open this post in threaded view
|

Re: Error when adding products to catagories

David E Jones

It's probably because in your delegator definition you have no  
datasource mapping for the org.ofbiz.olap entity group name.

-David


On Feb 28, 2008, at 4:32 PM, Branden Strickland wrote:

> I'm running my DB on mysql.
> Loaded sample data.
> I've set up a new facility, catalog, and 2 catagories.
>
> I can't add products to either catigories.  I get this error.
>
> The Following Errors Occurred:
>
> Error calling event: org.ofbiz.webapp.event.EventHandlerException:  
> Service
> invocation error (Could not commit transaction for service  
> [createProduct]
> call: Roll back error, could not commit transaction, was rolled back  
> instead
> because of: Error in simple-method [
> [file:/home/bstrickland/svnWS/ofbizdemo/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)
> I looked at the DemensionServices.xml and couldn't tie anything  
> together.
>
>
> Also (un related)
>
> In the business setup document, it suggests you create 4 catagories,  
> and
> this confused me as well.  Is there a purpose for:
> Browse Root Category
> Top-level browse category
> Promotions Category
> "all Products" ategory as default search.
>
> Thanks gentlemen!

Reply | Threaded
Open this post in threaded view
|

Re: Error when adding products to catagories

BJ Freeman
this brings up a question if a main application should break because a
specialpurpose apps is missing.

David E Jones sent the following on 2/28/2008 9:31 PM:

>
> It's probably because in your delegator definition you have no
> datasource mapping for the org.ofbiz.olap entity group name.
>
> -David
>
>
> On Feb 28, 2008, at 4:32 PM, Branden Strickland wrote:
>
>> I'm running my DB on mysql.
>> Loaded sample data.
>> I've set up a new facility, catalog, and 2 catagories.
>>
>> I can't add products to either catigories.  I get this error.
>>
>> The Following Errors Occurred:
>>
>> Error calling event: org.ofbiz.webapp.event.EventHandlerException:
>> Service
>> invocation error (Could not commit transaction for service
>> [createProduct]
>> call: Roll back error, could not commit transaction, was rolled back
>> instead
>> because of: Error in simple-method [
>> [file:/home/bstrickland/svnWS/ofbizdemo/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)
>> I looked at the DemensionServices.xml and couldn't tie anything together.
>>
>>
>> Also (un related)
>>
>> In the business setup document, it suggests you create 4 catagories, and
>> this confused me as well.  Is there a purpose for:
>> Browse Root Category
>> Top-level browse category
>> Promotions Category
>> "all Products" ategory as default search.
>>
>> Thanks gentlemen!
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Error when adding products to catagories

Vince Clark
BJ - This is a great question. We had a similar problem where we couldn't complete an order because we didn't have the ebay component in specialpurpose. It is my feeling that specialpurpose components should be optional, and not break core functionality if they are missing.

For example, when we deploy POS terminals we don't want anything in specialpurpose except the POS component. We don't need bi, ebay, etc. We want our POS terminals lean.

----- Original Message -----
From: "BJ Freeman" <[hidden email]>
To: [hidden email]
Sent: Friday, February 29, 2008 3:58:03 AM (GMT-0700) America/Denver
Subject: Re: Error when adding products to catagories

this brings up a question if a main application should break because a
specialpurpose apps is missing.

David E Jones sent the following on 2/28/2008 9:31 PM:

>
> It's probably because in your delegator definition you have no
> datasource mapping for the org.ofbiz.olap entity group name.
>
> -David
>
>
> On Feb 28, 2008, at 4:32 PM, Branden Strickland wrote:
>
>> I'm running my DB on mysql.
>> Loaded sample data.
>> I've set up a new facility, catalog, and 2 catagories.
>>
>> I can't add products to either catigories. I get this error.
>>
>> The Following Errors Occurred:
>>
>> Error calling event: org.ofbiz.webapp.event.EventHandlerException:
>> Service
>> invocation error (Could not commit transaction for service
>> [createProduct]
>> call: Roll back error, could not commit transaction, was rolled back
>> instead
>> because of: Error in simple-method [
>> [file:/home/bstrickland/svnWS/ofbizdemo/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)
>> I looked at the DemensionServices.xml and couldn't tie anything together.
>>
>>
>> Also (un related)
>>
>> In the business setup document, it suggests you create 4 catagories, and
>> this confused me as well. Is there a purpose for:
>> Browse Root Category
>> Top-level browse category
>> Promotions Category
>> "all Products" ategory as default search.
>>
>> Thanks gentlemen!
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Error when adding products to catagories

Branden Strickland
Delegator definition.  Gotcha.  Now, although I'm leaning how to peice
things together with ofbiz, I'm still a bit green around the ears when It
comes to technical names for documents.  Is the Delaegator definition in the
file referenced in the error I posted in the first email?  Or is it in the
entityengine or entitygroup?

I'd love to take a quick look to see if i can fix it......That is....If I
can find it! :P

Thanks gents!  I'll start poking around anyway!

Branden -

On Fri, Feb 29, 2008 at 8:42 AM, Vince M. Clark <[hidden email]>
wrote:

> BJ - This is a great question. We had a similar problem where we couldn't
> complete an order because we didn't have the ebay component in
> specialpurpose. It is my feeling that specialpurpose components should be
> optional, and not break core functionality if they are missing.
>
> For example, when we deploy POS terminals we don't want anything in
> specialpurpose except the POS component. We don't need bi, ebay, etc. We
> want our POS terminals lean.
>
> ----- Original Message -----
> From: "BJ Freeman" <[hidden email]>
> To: [hidden email]
> Sent: Friday, February 29, 2008 3:58:03 AM (GMT-0700) America/Denver
> Subject: Re: Error when adding products to catagories
>
> this brings up a question if a main application should break because a
> specialpurpose apps is missing.
>
> David E Jones sent the following on 2/28/2008 9:31 PM:
> >
> > It's probably because in your delegator definition you have no
> > datasource mapping for the org.ofbiz.olap entity group name.
> >
> > -David
> >
> >
> > On Feb 28, 2008, at 4:32 PM, Branden Strickland wrote:
> >
> >> I'm running my DB on mysql.
> >> Loaded sample data.
> >> I've set up a new facility, catalog, and 2 catagories.
> >>
> >> I can't add products to either catigories. I get this error.
> >>
> >> The Following Errors Occurred:
> >>
> >> Error calling event: org.ofbiz.webapp.event.EventHandlerException:
> >> Service
> >> invocation error (Could not commit transaction for service
> >> [createProduct]
> >> call: Roll back error, could not commit transaction, was rolled back
> >> instead
> >> because of: Error in simple-method [
> >>
> [file:/home/bstrickland/svnWS/ofbizdemo/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)
> >> I looked at the DemensionServices.xml and couldn't tie anything
> together.
> >>
> >>
> >> Also (un related)
> >>
> >> In the business setup document, it suggests you create 4 catagories,
> and
> >> this confused me as well. Is there a purpose for:
> >> Browse Root Category
> >> Top-level browse category
> >> Promotions Category
> >> "all Products" ategory as default search.
> >>
> >> Thanks gentlemen!
> >
> >
> >
> >
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Error when adding products to catagories

David E Jones
In reply to this post by Vince Clark

Actually these won't break if the component is "missing", just if it  
is misconfigured. If you remove the component, ie remove it from the  
component-load file, then it should be fine.

-David


On Feb 29, 2008, at 6:42 AM, Vince M. Clark wrote:

> BJ - This is a great question. We had a similar problem where we  
> couldn't complete an order because we didn't have the ebay component  
> in specialpurpose. It is my feeling that specialpurpose components  
> should be optional, and not break core functionality if they are  
> missing.
>
> For example, when we deploy POS terminals we don't want anything in  
> specialpurpose except the POS component. We don't need bi, ebay,  
> etc. We want our POS terminals lean.
>
> ----- Original Message -----
> From: "BJ Freeman" <[hidden email]>
> To: [hidden email]
> Sent: Friday, February 29, 2008 3:58:03 AM (GMT-0700) America/Denver
> Subject: Re: Error when adding products to catagories
>
> this brings up a question if a main application should break because a
> specialpurpose apps is missing.
>
> David E Jones sent the following on 2/28/2008 9:31 PM:
>>
>> It's probably because in your delegator definition you have no
>> datasource mapping for the org.ofbiz.olap entity group name.
>>
>> -David
>>
>>
>> On Feb 28, 2008, at 4:32 PM, Branden Strickland wrote:
>>
>>> I'm running my DB on mysql.
>>> Loaded sample data.
>>> I've set up a new facility, catalog, and 2 catagories.
>>>
>>> I can't add products to either catigories. I get this error.
>>>
>>> The Following Errors Occurred:
>>>
>>> Error calling event: org.ofbiz.webapp.event.EventHandlerException:
>>> Service
>>> invocation error (Could not commit transaction for service
>>> [createProduct]
>>> call: Roll back error, could not commit transaction, was rolled back
>>> instead
>>> because of: Error in simple-method [
>>> [file:/home/bstrickland/svnWS/ofbizdemo/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)
>>> I looked at the DemensionServices.xml and couldn't tie anything  
>>> together.
>>>
>>>
>>> Also (un related)
>>>
>>> In the business setup document, it suggests you create 4  
>>> catagories, and
>>> this confused me as well. Is there a purpose for:
>>> Browse Root Category
>>> Top-level browse category
>>> Promotions Category
>>> "all Products" ategory as default search.
>>>
>>> Thanks gentlemen!
>>
>>
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Error when adding products to catagories

David E Jones
In reply to this post by Branden Strickland

It's in the entityengine.xml file, and there are examples there that  
include this package.

-David


On Feb 29, 2008, at 7:48 AM, Branden Strickland wrote:

> Delegator definition.  Gotcha.  Now, although I'm leaning how to peice
> things together with ofbiz, I'm still a bit green around the ears  
> when It
> comes to technical names for documents.  Is the Delaegator  
> definition in the
> file referenced in the error I posted in the first email?  Or is it  
> in the
> entityengine or entitygroup?
>
> I'd love to take a quick look to see if i can fix it......That  
> is....If I
> can find it! :P
>
> Thanks gents!  I'll start poking around anyway!
>
> Branden -
>
> On Fri, Feb 29, 2008 at 8:42 AM, Vince M. Clark <[hidden email]>
> wrote:
>
>> BJ - This is a great question. We had a similar problem where we  
>> couldn't
>> complete an order because we didn't have the ebay component in
>> specialpurpose. It is my feeling that specialpurpose components  
>> should be
>> optional, and not break core functionality if they are missing.
>>
>> For example, when we deploy POS terminals we don't want anything in
>> specialpurpose except the POS component. We don't need bi, ebay,  
>> etc. We
>> want our POS terminals lean.
>>
>> ----- Original Message -----
>> From: "BJ Freeman" <[hidden email]>
>> To: [hidden email]
>> Sent: Friday, February 29, 2008 3:58:03 AM (GMT-0700) America/Denver
>> Subject: Re: Error when adding products to catagories
>>
>> this brings up a question if a main application should break  
>> because a
>> specialpurpose apps is missing.
>>
>> David E Jones sent the following on 2/28/2008 9:31 PM:
>>>
>>> It's probably because in your delegator definition you have no
>>> datasource mapping for the org.ofbiz.olap entity group name.
>>>
>>> -David
>>>
>>>
>>> On Feb 28, 2008, at 4:32 PM, Branden Strickland wrote:
>>>
>>>> I'm running my DB on mysql.
>>>> Loaded sample data.
>>>> I've set up a new facility, catalog, and 2 catagories.
>>>>
>>>> I can't add products to either catigories. I get this error.
>>>>
>>>> The Following Errors Occurred:
>>>>
>>>> Error calling event: org.ofbiz.webapp.event.EventHandlerException:
>>>> Service
>>>> invocation error (Could not commit transaction for service
>>>> [createProduct]
>>>> call: Roll back error, could not commit transaction, was rolled  
>>>> back
>>>> instead
>>>> because of: Error in simple-method [
>>>>
>> [file:/home/bstrickland/svnWS/ofbizdemo/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)
>>>> I looked at the DemensionServices.xml and couldn't tie anything
>> together.
>>>>
>>>>
>>>> Also (un related)
>>>>
>>>> In the business setup document, it suggests you create 4  
>>>> catagories,
>> and
>>>> this confused me as well. Is there a purpose for:
>>>> Browse Root Category
>>>> Top-level browse category
>>>> Promotions Category
>>>> "all Products" ategory as default search.
>>>>
>>>> Thanks gentlemen!
>>>
>>>
>>>
>>>
>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: Error when adding products to catagories

Branden Strickland
So This is unacceptable?! (see delegator section below)

I'm not 100% sure how all of these work into the equation, but I figured if
they all pointed to the same database then I'd be ok in the end right?   If
this is something I won't need just running a POS, which component should I
turn off in the  component-load.xml file?

Thanks gents!


<connection-factory class="org.ofbiz.entity.connection.DBCPConnectionFactory
"/>

    <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="localmysql"/>
    </delegator>
    <delegator name="default-no-eca" entity-model-reader="main"
entity-group-reader="main" entity-eca-reader="main"
entity-eca-enabled="false" distributed-cache-clear-enabled="false">
        <group-map group-name="org.ofbiz" datasource-name="localmysql"/>
    </delegator>

    <delegator name="test" entity-model-reader="main"
entity-group-reader="main" entity-eca-reader="main">
        <group-map group-name="org.ofbiz" datasource-name="localmysql"/>
    </delegator>
    <delegator name="other" entity-model-reader="main"
entity-group-reader="main" entity-eca-reader="main">
        <group-map group-name="org.ofbiz" datasource-name="localmysql"/>


On Fri, Feb 29, 2008 at 11:47 AM, David E Jones <[hidden email]>
wrote:

>
> It's in the entityengine.xml file, and there are examples there that
> include this package.
>
> -David
>
>
> On Feb 29, 2008, at 7:48 AM, Branden Strickland wrote:
>
> > Delegator definition.  Gotcha.  Now, although I'm leaning how to peice
> > things together with ofbiz, I'm still a bit green around the ears
> > when It
> > comes to technical names for documents.  Is the Delaegator
> > definition in the
> > file referenced in the error I posted in the first email?  Or is it
> > in the
> > entityengine or entitygroup?
> >
> > I'd love to take a quick look to see if i can fix it......That
> > is....If I
> > can find it! :P
> >
> > Thanks gents!  I'll start poking around anyway!
> >
> > Branden -
> >
> > On Fri, Feb 29, 2008 at 8:42 AM, Vince M. Clark <[hidden email]>
> > wrote:
> >
> >> BJ - This is a great question. We had a similar problem where we
> >> couldn't
> >> complete an order because we didn't have the ebay component in
> >> specialpurpose. It is my feeling that specialpurpose components
> >> should be
> >> optional, and not break core functionality if they are missing.
> >>
> >> For example, when we deploy POS terminals we don't want anything in
> >> specialpurpose except the POS component. We don't need bi, ebay,
> >> etc. We
> >> want our POS terminals lean.
> >>
> >> ----- Original Message -----
> >> From: "BJ Freeman" <[hidden email]>
> >> To: [hidden email]
> >> Sent: Friday, February 29, 2008 3:58:03 AM (GMT-0700) America/Denver
> >> Subject: Re: Error when adding products to catagories
> >>
> >> this brings up a question if a main application should break
> >> because a
> >> specialpurpose apps is missing.
> >>
> >> David E Jones sent the following on 2/28/2008 9:31 PM:
> >>>
> >>> It's probably because in your delegator definition you have no
> >>> datasource mapping for the org.ofbiz.olap entity group name.
> >>>
> >>> -David
> >>>
> >>>
> >>> On Feb 28, 2008, at 4:32 PM, Branden Strickland wrote:
> >>>
> >>>> I'm running my DB on mysql.
> >>>> Loaded sample data.
> >>>> I've set up a new facility, catalog, and 2 catagories.
> >>>>
> >>>> I can't add products to either catigories. I get this error.
> >>>>
> >>>> The Following Errors Occurred:
> >>>>
> >>>> Error calling event: org.ofbiz.webapp.event.EventHandlerException:
> >>>> Service
> >>>> invocation error (Could not commit transaction for service
> >>>> [createProduct]
> >>>> call: Roll back error, could not commit transaction, was rolled
> >>>> back
> >>>> instead
> >>>> because of: Error in simple-method [
> >>>>
> >> [file:/home/bstrickland/svnWS/ofbizdemo/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)
> >>>> I looked at the DemensionServices.xml and couldn't tie anything
> >> together.
> >>>>
> >>>>
> >>>> Also (un related)
> >>>>
> >>>> In the business setup document, it suggests you create 4
> >>>> catagories,
> >> and
> >>>> this confused me as well. Is there a purpose for:
> >>>> Browse Root Category
> >>>> Top-level browse category
> >>>> Promotions Category
> >>>> "all Products" ategory as default search.
> >>>>
> >>>> Thanks gentlemen!
> >>>
> >>>
> >>>
> >>>
> >>
> >>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Error when adding products to catagories

Branden Strickland
David,

I hate to keep bothering, and I'm obviously in no rush, but if you have the
time, could you take a quick look at the entityengine.xml that I have pasted
below and let me know if it looks legitimate. ?

I suppose in the mean time, I'll have to to start commenting some components
out of the component-load in the special purpose directory, maybe it's one
of those that isn't configured correctly?

<connection-factory class="org.ofbiz.entity.connection

>
> .DBCPConnectionFactory"/>
>
>     <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="localmysql"/>
>     </delegator>
>     <delegator name="default-no-eca" entity-model-reader="main"
> entity-group-reader="main" entity-eca-reader="main"
> entity-eca-enabled="false" distributed-cache-clear-enabled="false">
>         <group-map group-name="org.ofbiz" datasource-name="localmysql"/>
>     </delegator>
>
>     <delegator name="test" entity-model-reader="main"
> entity-group-reader="main" entity-eca-reader="main">
>         <group-map group-name="org.ofbiz" datasource-name="localmysql"/>
>     </delegator>
>     <delegator name="other" entity-model-reader="main"
> entity-group-reader="main" entity-eca-reader="main">
>         <group-map group-name="org.ofbiz" datasource-name="localmysql"/>


Thanks!


On Fri, Feb 29, 2008 at 5:49 PM, Branden Strickland <
[hidden email]> wrote:

> So This is unacceptable?! (see delegator section below)
>
> I'm not 100% sure how all of these work into the equation, but I figured
> if they all pointed to the same database then I'd be ok in the end right?
> If this is something I won't need just running a POS, which component should
> I turn off in the  component-load.xml file?
>
> Thanks gents!
>
>
>
>
>
>
> On Fri, Feb 29, 2008 at 11:47 AM, David E Jones <[hidden email]>
> wrote:
>
> >
> > It's in the entityengine.xml file, and there are examples there that
> > include this package.
> >
> > -David
> >
> >
> > On Feb 29, 2008, at 7:48 AM, Branden Strickland wrote:
> >
> > > Delegator definition.  Gotcha.  Now, although I'm leaning how to peice
> > > things together with ofbiz, I'm still a bit green around the ears
> > > when It
> > > comes to technical names for documents.  Is the Delaegator
> > > definition in the
> > > file referenced in the error I posted in the first email?  Or is it
> > > in the
> > > entityengine or entitygroup?
> > >
> > > I'd love to take a quick look to see if i can fix it......That
> > > is....If I
> > > can find it! :P
> > >
> > > Thanks gents!  I'll start poking around anyway!
> > >
> > > Branden -
> > >
> > > On Fri, Feb 29, 2008 at 8:42 AM, Vince M. Clark <[hidden email]>
> > > wrote:
> > >
> > >> BJ - This is a great question. We had a similar problem where we
> > >> couldn't
> > >> complete an order because we didn't have the ebay component in
> > >> specialpurpose. It is my feeling that specialpurpose components
> > >> should be
> > >> optional, and not break core functionality if they are missing.
> > >>
> > >> For example, when we deploy POS terminals we don't want anything in
> > >> specialpurpose except the POS component. We don't need bi, ebay,
> > >> etc. We
> > >> want our POS terminals lean.
> > >>
> > >> ----- Original Message -----
> > >> From: "BJ Freeman" <[hidden email]>
> > >> To: [hidden email]
> > >> Sent: Friday, February 29, 2008 3:58:03 AM (GMT-0700) America/Denver
> > >> Subject: Re: Error when adding products to catagories
> > >>
> > >> this brings up a question if a main application should break
> > >> because a
> > >> specialpurpose apps is missing.
> > >>
> > >> David E Jones sent the following on 2/28/2008 9:31 PM:
> > >>>
> > >>> It's probably because in your delegator definition you have no
> > >>> datasource mapping for the org.ofbiz.olap entity group name.
> > >>>
> > >>> -David
> > >>>
> > >>>
> > >>> On Feb 28, 2008, at 4:32 PM, Branden Strickland wrote:
> > >>>
> > >>>> I'm running my DB on mysql.
> > >>>> Loaded sample data.
> > >>>> I've set up a new facility, catalog, and 2 catagories.
> > >>>>
> > >>>> I can't add products to either catigories. I get this error.
> > >>>>
> > >>>> The Following Errors Occurred:
> > >>>>
> > >>>> Error calling event: org.ofbiz.webapp.event.EventHandlerException:
> > >>>> Service
> > >>>> invocation error (Could not commit transaction for service
> > >>>> [createProduct]
> > >>>> call: Roll back error, could not commit transaction, was rolled
> > >>>> back
> > >>>> instead
> > >>>> because of: Error in simple-method [
> > >>>>
> > >> [file:/home/bstrickland/svnWS/ofbizdemo/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)
> > >>>> I looked at the DemensionServices.xml and couldn't tie anything
> > >> together.
> > >>>>
> > >>>>
> > >>>> Also (un related)
> > >>>>
> > >>>> In the business setup document, it suggests you create 4
> > >>>> catagories,
> > >> and
> > >>>> this confused me as well. Is there a purpose for:
> > >>>> Browse Root Category
> > >>>> Top-level browse category
> > >>>> Promotions Category
> > >>>> "all Products" ategory as default search.
> > >>>>
> > >>>> Thanks gentlemen!
> > >>>
> > >>>
> > >>>
> > >>>
> > >>
> > >>
> >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Error when adding products to catagories

Jacopo Cappellato
Try with:

<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="localmysql"/>
   <group-map group-name="org.ofbiz.olap" datasource-name="localmysql"/>
</delegator>

Jacopo


Branden Strickland wrote:

> David,
>
> I hate to keep bothering, and I'm obviously in no rush, but if you have the
> time, could you take a quick look at the entityengine.xml that I have pasted
> below and let me know if it looks legitimate. ?
>
> I suppose in the mean time, I'll have to to start commenting some components
> out of the component-load in the special purpose directory, maybe it's one
> of those that isn't configured correctly?
>
> <connection-factory class="org.ofbiz.entity.connection
>> .DBCPConnectionFactory"/>
>>
>>     <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="localmysql"/>
>>     </delegator>
>>     <delegator name="default-no-eca" entity-model-reader="main"
>> entity-group-reader="main" entity-eca-reader="main"
>> entity-eca-enabled="false" distributed-cache-clear-enabled="false">
>>         <group-map group-name="org.ofbiz" datasource-name="localmysql"/>
>>     </delegator>
>>
>>     <delegator name="test" entity-model-reader="main"
>> entity-group-reader="main" entity-eca-reader="main">
>>         <group-map group-name="org.ofbiz" datasource-name="localmysql"/>
>>     </delegator>
>>     <delegator name="other" entity-model-reader="main"
>> entity-group-reader="main" entity-eca-reader="main">
>>         <group-map group-name="org.ofbiz" datasource-name="localmysql"/>
>
>
> Thanks!
>
>
> On Fri, Feb 29, 2008 at 5:49 PM, Branden Strickland <
> [hidden email]> wrote:
>
>> So This is unacceptable?! (see delegator section below)
>>
>> I'm not 100% sure how all of these work into the equation, but I figured
>> if they all pointed to the same database then I'd be ok in the end right?
>> If this is something I won't need just running a POS, which component should
>> I turn off in the  component-load.xml file?
>>
>> Thanks gents!
>>
>>
>>
>>
>>
>>
>> On Fri, Feb 29, 2008 at 11:47 AM, David E Jones <[hidden email]>
>> wrote:
>>
>>> It's in the entityengine.xml file, and there are examples there that
>>> include this package.
>>>
>>> -David
>>>
>>>
>>> On Feb 29, 2008, at 7:48 AM, Branden Strickland wrote:
>>>
>>>> Delegator definition.  Gotcha.  Now, although I'm leaning how to peice
>>>> things together with ofbiz, I'm still a bit green around the ears
>>>> when It
>>>> comes to technical names for documents.  Is the Delaegator
>>>> definition in the
>>>> file referenced in the error I posted in the first email?  Or is it
>>>> in the
>>>> entityengine or entitygroup?
>>>>
>>>> I'd love to take a quick look to see if i can fix it......That
>>>> is....If I
>>>> can find it! :P
>>>>
>>>> Thanks gents!  I'll start poking around anyway!
>>>>
>>>> Branden -
>>>>
>>>> On Fri, Feb 29, 2008 at 8:42 AM, Vince M. Clark <[hidden email]>
>>>> wrote:
>>>>
>>>>> BJ - This is a great question. We had a similar problem where we
>>>>> couldn't
>>>>> complete an order because we didn't have the ebay component in
>>>>> specialpurpose. It is my feeling that specialpurpose components
>>>>> should be
>>>>> optional, and not break core functionality if they are missing.
>>>>>
>>>>> For example, when we deploy POS terminals we don't want anything in
>>>>> specialpurpose except the POS component. We don't need bi, ebay,
>>>>> etc. We
>>>>> want our POS terminals lean.
>>>>>
>>>>> ----- Original Message -----
>>>>> From: "BJ Freeman" <[hidden email]>
>>>>> To: [hidden email]
>>>>> Sent: Friday, February 29, 2008 3:58:03 AM (GMT-0700) America/Denver
>>>>> Subject: Re: Error when adding products to catagories
>>>>>
>>>>> this brings up a question if a main application should break
>>>>> because a
>>>>> specialpurpose apps is missing.
>>>>>
>>>>> David E Jones sent the following on 2/28/2008 9:31 PM:
>>>>>> It's probably because in your delegator definition you have no
>>>>>> datasource mapping for the org.ofbiz.olap entity group name.
>>>>>>
>>>>>> -David
>>>>>>
>>>>>>
>>>>>> On Feb 28, 2008, at 4:32 PM, Branden Strickland wrote:
>>>>>>
>>>>>>> I'm running my DB on mysql.
>>>>>>> Loaded sample data.
>>>>>>> I've set up a new facility, catalog, and 2 catagories.
>>>>>>>
>>>>>>> I can't add products to either catigories. I get this error.
>>>>>>>
>>>>>>> The Following Errors Occurred:
>>>>>>>
>>>>>>> Error calling event: org.ofbiz.webapp.event.EventHandlerException:
>>>>>>> Service
>>>>>>> invocation error (Could not commit transaction for service
>>>>>>> [createProduct]
>>>>>>> call: Roll back error, could not commit transaction, was rolled
>>>>>>> back
>>>>>>> instead
>>>>>>> because of: Error in simple-method [
>>>>>>>
>>>>> [file:/home/bstrickland/svnWS/ofbizdemo/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)
>>>>>>> I looked at the DemensionServices.xml and couldn't tie anything
>>>>> together.
>>>>>>>
>>>>>>> Also (un related)
>>>>>>>
>>>>>>> In the business setup document, it suggests you create 4
>>>>>>> catagories,
>>>>> and
>>>>>>> this confused me as well. Is there a purpose for:
>>>>>>> Browse Root Category
>>>>>>> Top-level browse category
>>>>>>> Promotions Category
>>>>>>> "all Products" ategory as default search.
>>>>>>>
>>>>>>> Thanks gentlemen!
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Error when adding products to catagories

Branden Strickland
will do!

Just out of curiosity, (so I can log it in my notebook) what is the premise,
and or difference between the org.ofbiz and the org.ofbiz.olap?

Thanks for the quick reply on that!

I'll give it a shot while I anxiously await your reply.

Thanks again!

On Mon, Mar 3, 2008 at 9:57 AM, Jacopo Cappellato <[hidden email]> wrote:

> Try with:
>
> <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="localmysql"/>
>    <group-map group-name="org.ofbiz.olap" datasource-name="localmysql"/>
> </delegator>
>
> Jacopo
>
>
> Branden Strickland wrote:
> > David,
> >
> > I hate to keep bothering, and I'm obviously in no rush, but if you have
> the
> > time, could you take a quick look at the entityengine.xml that I have
> pasted
> > below and let me know if it looks legitimate. ?
> >
> > I suppose in the mean time, I'll have to to start commenting some
> components
> > out of the component-load in the special purpose directory, maybe it's
> one
> > of those that isn't configured correctly?
> >
> > <connection-factory class="org.ofbiz.entity.connection
> >> .DBCPConnectionFactory"/>
> >>
> >>     <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="localmysql"/>
> >>     </delegator>
> >>     <delegator name="default-no-eca" entity-model-reader="main"
> >> entity-group-reader="main" entity-eca-reader="main"
> >> entity-eca-enabled="false" distributed-cache-clear-enabled="false">
> >>         <group-map group-name="org.ofbiz"
> datasource-name="localmysql"/>
> >>     </delegator>
> >>
> >>     <delegator name="test" entity-model-reader="main"
> >> entity-group-reader="main" entity-eca-reader="main">
> >>         <group-map group-name="org.ofbiz"
> datasource-name="localmysql"/>
> >>     </delegator>
> >>     <delegator name="other" entity-model-reader="main"
> >> entity-group-reader="main" entity-eca-reader="main">
> >>         <group-map group-name="org.ofbiz"
> datasource-name="localmysql"/>
> >
> >
> > Thanks!
> >
> >
> > On Fri, Feb 29, 2008 at 5:49 PM, Branden Strickland <
> > [hidden email]> wrote:
> >
> >> So This is unacceptable?! (see delegator section below)
> >>
> >> I'm not 100% sure how all of these work into the equation, but I
> figured
> >> if they all pointed to the same database then I'd be ok in the end
> right?
> >> If this is something I won't need just running a POS, which component
> should
> >> I turn off in the  component-load.xml file?
> >>
> >> Thanks gents!
> >>
> >>
> >>
> >>
> >>
> >>
> >> On Fri, Feb 29, 2008 at 11:47 AM, David E Jones <
> [hidden email]>
> >> wrote:
> >>
> >>> It's in the entityengine.xml file, and there are examples there that
> >>> include this package.
> >>>
> >>> -David
> >>>
> >>>
> >>> On Feb 29, 2008, at 7:48 AM, Branden Strickland wrote:
> >>>
> >>>> Delegator definition.  Gotcha.  Now, although I'm leaning how to
> peice
> >>>> things together with ofbiz, I'm still a bit green around the ears
> >>>> when It
> >>>> comes to technical names for documents.  Is the Delaegator
> >>>> definition in the
> >>>> file referenced in the error I posted in the first email?  Or is it
> >>>> in the
> >>>> entityengine or entitygroup?
> >>>>
> >>>> I'd love to take a quick look to see if i can fix it......That
> >>>> is....If I
> >>>> can find it! :P
> >>>>
> >>>> Thanks gents!  I'll start poking around anyway!
> >>>>
> >>>> Branden -
> >>>>
> >>>> On Fri, Feb 29, 2008 at 8:42 AM, Vince M. Clark <[hidden email]
> >
> >>>> wrote:
> >>>>
> >>>>> BJ - This is a great question. We had a similar problem where we
> >>>>> couldn't
> >>>>> complete an order because we didn't have the ebay component in
> >>>>> specialpurpose. It is my feeling that specialpurpose components
> >>>>> should be
> >>>>> optional, and not break core functionality if they are missing.
> >>>>>
> >>>>> For example, when we deploy POS terminals we don't want anything in
> >>>>> specialpurpose except the POS component. We don't need bi, ebay,
> >>>>> etc. We
> >>>>> want our POS terminals lean.
> >>>>>
> >>>>> ----- Original Message -----
> >>>>> From: "BJ Freeman" <[hidden email]>
> >>>>> To: [hidden email]
> >>>>> Sent: Friday, February 29, 2008 3:58:03 AM (GMT-0700) America/Denver
> >>>>> Subject: Re: Error when adding products to catagories
> >>>>>
> >>>>> this brings up a question if a main application should break
> >>>>> because a
> >>>>> specialpurpose apps is missing.
> >>>>>
> >>>>> David E Jones sent the following on 2/28/2008 9:31 PM:
> >>>>>> It's probably because in your delegator definition you have no
> >>>>>> datasource mapping for the org.ofbiz.olap entity group name.
> >>>>>>
> >>>>>> -David
> >>>>>>
> >>>>>>
> >>>>>> On Feb 28, 2008, at 4:32 PM, Branden Strickland wrote:
> >>>>>>
> >>>>>>> I'm running my DB on mysql.
> >>>>>>> Loaded sample data.
> >>>>>>> I've set up a new facility, catalog, and 2 catagories.
> >>>>>>>
> >>>>>>> I can't add products to either catigories. I get this error.
> >>>>>>>
> >>>>>>> The Following Errors Occurred:
> >>>>>>>
> >>>>>>> Error calling event: org.ofbiz.webapp.event.EventHandlerException:
> >>>>>>> Service
> >>>>>>> invocation error (Could not commit transaction for service
> >>>>>>> [createProduct]
> >>>>>>> call: Roll back error, could not commit transaction, was rolled
> >>>>>>> back
> >>>>>>> instead
> >>>>>>> because of: Error in simple-method [
> >>>>>>>
> >>>>> [file:/home/bstrickland/svnWS/ofbizdemo/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)
> >>>>>>> I looked at the DemensionServices.xml and couldn't tie anything
> >>>>> together.
> >>>>>>>
> >>>>>>> Also (un related)
> >>>>>>>
> >>>>>>> In the business setup document, it suggests you create 4
> >>>>>>> catagories,
> >>>>> and
> >>>>>>> this confused me as well. Is there a purpose for:
> >>>>>>> Browse Root Category
> >>>>>>> Top-level browse category
> >>>>>>> Promotions Category
> >>>>>>> "all Products" ategory as default search.
> >>>>>>>
> >>>>>>> Thanks gentlemen!
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>
> >
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Error when adding products to catagories

Jacopo Cappellato
Branden Strickland wrote:
> will do!
>
> Just out of curiosity, (so I can log it in my notebook) what is the premise,
> and or difference between the org.ofbiz and the org.ofbiz.olap?
>

They represents different groups of entity, that can be assigned to
different datasources (for example different databases):
* org.ofbiz is the group of all the OFBiz entities used by the
transactional system (i.e. actually everything: orders invoices payments
etc...)
* org.ofbiz.olap groups together the entities used by the OFBiz business
intelligence component (just a prototype): star schemas and dimensions
for dimensional analysis and reports; ideally they should be placed in a
separate database

Cheers,

Jacopo

> Thanks for the quick reply on that!
>
> I'll give it a shot while I anxiously await your reply.
>
> Thanks again!
>
> On Mon, Mar 3, 2008 at 9:57 AM, Jacopo Cappellato <[hidden email]> wrote:
>
>> Try with:
>>
>> <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="localmysql"/>
>>    <group-map group-name="org.ofbiz.olap" datasource-name="localmysql"/>
>> </delegator>
>>
>> Jacopo
>>
>>
>> Branden Strickland wrote:
>>> David,
>>>
>>> I hate to keep bothering, and I'm obviously in no rush, but if you have
>> the
>>> time, could you take a quick look at the entityengine.xml that I have
>> pasted
>>> below and let me know if it looks legitimate. ?
>>>
>>> I suppose in the mean time, I'll have to to start commenting some
>> components
>>> out of the component-load in the special purpose directory, maybe it's
>> one
>>> of those that isn't configured correctly?
>>>
>>> <connection-factory class="org.ofbiz.entity.connection
>>>> .DBCPConnectionFactory"/>
>>>>
>>>>     <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="localmysql"/>
>>>>     </delegator>
>>>>     <delegator name="default-no-eca" entity-model-reader="main"
>>>> entity-group-reader="main" entity-eca-reader="main"
>>>> entity-eca-enabled="false" distributed-cache-clear-enabled="false">
>>>>         <group-map group-name="org.ofbiz"
>> datasource-name="localmysql"/>
>>>>     </delegator>
>>>>
>>>>     <delegator name="test" entity-model-reader="main"
>>>> entity-group-reader="main" entity-eca-reader="main">
>>>>         <group-map group-name="org.ofbiz"
>> datasource-name="localmysql"/>
>>>>     </delegator>
>>>>     <delegator name="other" entity-model-reader="main"
>>>> entity-group-reader="main" entity-eca-reader="main">
>>>>         <group-map group-name="org.ofbiz"
>> datasource-name="localmysql"/>
>>>
>>> Thanks!
>>>
>>>
>>> On Fri, Feb 29, 2008 at 5:49 PM, Branden Strickland <
>>> [hidden email]> wrote:
>>>
>>>> So This is unacceptable?! (see delegator section below)
>>>>
>>>> I'm not 100% sure how all of these work into the equation, but I
>> figured
>>>> if they all pointed to the same database then I'd be ok in the end
>> right?
>>>> If this is something I won't need just running a POS, which component
>> should
>>>> I turn off in the  component-load.xml file?
>>>>
>>>> Thanks gents!
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, Feb 29, 2008 at 11:47 AM, David E Jones <
>> [hidden email]>
>>>> wrote:
>>>>
>>>>> It's in the entityengine.xml file, and there are examples there that
>>>>> include this package.
>>>>>
>>>>> -David
>>>>>
>>>>>
>>>>> On Feb 29, 2008, at 7:48 AM, Branden Strickland wrote:
>>>>>
>>>>>> Delegator definition.  Gotcha.  Now, although I'm leaning how to
>> peice
>>>>>> things together with ofbiz, I'm still a bit green around the ears
>>>>>> when It
>>>>>> comes to technical names for documents.  Is the Delaegator
>>>>>> definition in the
>>>>>> file referenced in the error I posted in the first email?  Or is it
>>>>>> in the
>>>>>> entityengine or entitygroup?
>>>>>>
>>>>>> I'd love to take a quick look to see if i can fix it......That
>>>>>> is....If I
>>>>>> can find it! :P
>>>>>>
>>>>>> Thanks gents!  I'll start poking around anyway!
>>>>>>
>>>>>> Branden -
>>>>>>
>>>>>> On Fri, Feb 29, 2008 at 8:42 AM, Vince M. Clark <[hidden email]
>>>>>> wrote:
>>>>>>
>>>>>>> BJ - This is a great question. We had a similar problem where we
>>>>>>> couldn't
>>>>>>> complete an order because we didn't have the ebay component in
>>>>>>> specialpurpose. It is my feeling that specialpurpose components
>>>>>>> should be
>>>>>>> optional, and not break core functionality if they are missing.
>>>>>>>
>>>>>>> For example, when we deploy POS terminals we don't want anything in
>>>>>>> specialpurpose except the POS component. We don't need bi, ebay,
>>>>>>> etc. We
>>>>>>> want our POS terminals lean.
>>>>>>>
>>>>>>> ----- Original Message -----
>>>>>>> From: "BJ Freeman" <[hidden email]>
>>>>>>> To: [hidden email]
>>>>>>> Sent: Friday, February 29, 2008 3:58:03 AM (GMT-0700) America/Denver
>>>>>>> Subject: Re: Error when adding products to catagories
>>>>>>>
>>>>>>> this brings up a question if a main application should break
>>>>>>> because a
>>>>>>> specialpurpose apps is missing.
>>>>>>>
>>>>>>> David E Jones sent the following on 2/28/2008 9:31 PM:
>>>>>>>> It's probably because in your delegator definition you have no
>>>>>>>> datasource mapping for the org.ofbiz.olap entity group name.
>>>>>>>>
>>>>>>>> -David
>>>>>>>>
>>>>>>>>
>>>>>>>> On Feb 28, 2008, at 4:32 PM, Branden Strickland wrote:
>>>>>>>>
>>>>>>>>> I'm running my DB on mysql.
>>>>>>>>> Loaded sample data.
>>>>>>>>> I've set up a new facility, catalog, and 2 catagories.
>>>>>>>>>
>>>>>>>>> I can't add products to either catigories. I get this error.
>>>>>>>>>
>>>>>>>>> The Following Errors Occurred:
>>>>>>>>>
>>>>>>>>> Error calling event: org.ofbiz.webapp.event.EventHandlerException:
>>>>>>>>> Service
>>>>>>>>> invocation error (Could not commit transaction for service
>>>>>>>>> [createProduct]
>>>>>>>>> call: Roll back error, could not commit transaction, was rolled
>>>>>>>>> back
>>>>>>>>> instead
>>>>>>>>> because of: Error in simple-method [
>>>>>>>>>
>>>>>>> [file:/home/bstrickland/svnWS/ofbizdemo/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)
>>>>>>>>> I looked at the DemensionServices.xml and couldn't tie anything
>>>>>>> together.
>>>>>>>>> Also (un related)
>>>>>>>>>
>>>>>>>>> In the business setup document, it suggests you create 4
>>>>>>>>> catagories,
>>>>>>> and
>>>>>>>>> this confused me as well. Is there a purpose for:
>>>>>>>>> Browse Root Category
>>>>>>>>> Top-level browse category
>>>>>>>>> Promotions Category
>>>>>>>>> "all Products" ategory as default search.
>>>>>>>>>
>>>>>>>>> Thanks gentlemen!
>>>>>>>>
>>>>>>>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Error when adding products to catagories

David E Jones
In reply to this post by Branden Strickland

http://ofbiz.apache.org/docs/entity.html
http://ofbiz.apache.org/docs/entityconfig.html

-David


On Mar 3, 2008, at 8:54 AM, Branden Strickland wrote:

> will do!
>
> Just out of curiosity, (so I can log it in my notebook) what is the  
> premise,
> and or difference between the org.ofbiz and the org.ofbiz.olap?
>
> Thanks for the quick reply on that!
>
> I'll give it a shot while I anxiously await your reply.
>
> Thanks again!
>
> On Mon, Mar 3, 2008 at 9:57 AM, Jacopo Cappellato <[hidden email]>  
> wrote:
>
>> Try with:
>>
>> <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="localmysql"/>
>>   <group-map group-name="org.ofbiz.olap" datasource-
>> name="localmysql"/>
>> </delegator>
>>
>> Jacopo
>>
>>
>> Branden Strickland wrote:
>>> David,
>>>
>>> I hate to keep bothering, and I'm obviously in no rush, but if you  
>>> have
>> the
>>> time, could you take a quick look at the entityengine.xml that I  
>>> have
>> pasted
>>> below and let me know if it looks legitimate. ?
>>>
>>> I suppose in the mean time, I'll have to to start commenting some
>> components
>>> out of the component-load in the special purpose directory, maybe  
>>> it's
>> one
>>> of those that isn't configured correctly?
>>>
>>> <connection-factory class="org.ofbiz.entity.connection
>>>> .DBCPConnectionFactory"/>
>>>>
>>>>    <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="localmysql"/>
>>>>    </delegator>
>>>>    <delegator name="default-no-eca" entity-model-reader="main"
>>>> entity-group-reader="main" entity-eca-reader="main"
>>>> entity-eca-enabled="false" distributed-cache-clear-enabled="false">
>>>>        <group-map group-name="org.ofbiz"
>> datasource-name="localmysql"/>
>>>>    </delegator>
>>>>
>>>>    <delegator name="test" entity-model-reader="main"
>>>> entity-group-reader="main" entity-eca-reader="main">
>>>>        <group-map group-name="org.ofbiz"
>> datasource-name="localmysql"/>
>>>>    </delegator>
>>>>    <delegator name="other" entity-model-reader="main"
>>>> entity-group-reader="main" entity-eca-reader="main">
>>>>        <group-map group-name="org.ofbiz"
>> datasource-name="localmysql"/>
>>>
>>>
>>> Thanks!
>>>
>>>
>>> On Fri, Feb 29, 2008 at 5:49 PM, Branden Strickland <
>>> [hidden email]> wrote:
>>>
>>>> So This is unacceptable?! (see delegator section below)
>>>>
>>>> I'm not 100% sure how all of these work into the equation, but I
>> figured
>>>> if they all pointed to the same database then I'd be ok in the end
>> right?
>>>> If this is something I won't need just running a POS, which  
>>>> component
>> should
>>>> I turn off in the  component-load.xml file?
>>>>
>>>> Thanks gents!
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, Feb 29, 2008 at 11:47 AM, David E Jones <
>> [hidden email]>
>>>> wrote:
>>>>
>>>>> It's in the entityengine.xml file, and there are examples there  
>>>>> that
>>>>> include this package.
>>>>>
>>>>> -David
>>>>>
>>>>>
>>>>> On Feb 29, 2008, at 7:48 AM, Branden Strickland wrote:
>>>>>
>>>>>> Delegator definition.  Gotcha.  Now, although I'm leaning how to
>> peice
>>>>>> things together with ofbiz, I'm still a bit green around the ears
>>>>>> when It
>>>>>> comes to technical names for documents.  Is the Delaegator
>>>>>> definition in the
>>>>>> file referenced in the error I posted in the first email?  Or  
>>>>>> is it
>>>>>> in the
>>>>>> entityengine or entitygroup?
>>>>>>
>>>>>> I'd love to take a quick look to see if i can fix it......That
>>>>>> is....If I
>>>>>> can find it! :P
>>>>>>
>>>>>> Thanks gents!  I'll start poking around anyway!
>>>>>>
>>>>>> Branden -
>>>>>>
>>>>>> On Fri, Feb 29, 2008 at 8:42 AM, Vince M. Clark <[hidden email]
>>>
>>>>>> wrote:
>>>>>>
>>>>>>> BJ - This is a great question. We had a similar problem where we
>>>>>>> couldn't
>>>>>>> complete an order because we didn't have the ebay component in
>>>>>>> specialpurpose. It is my feeling that specialpurpose components
>>>>>>> should be
>>>>>>> optional, and not break core functionality if they are missing.
>>>>>>>
>>>>>>> For example, when we deploy POS terminals we don't want  
>>>>>>> anything in
>>>>>>> specialpurpose except the POS component. We don't need bi, ebay,
>>>>>>> etc. We
>>>>>>> want our POS terminals lean.
>>>>>>>
>>>>>>> ----- Original Message -----
>>>>>>> From: "BJ Freeman" <[hidden email]>
>>>>>>> To: [hidden email]
>>>>>>> Sent: Friday, February 29, 2008 3:58:03 AM (GMT-0700) America/
>>>>>>> Denver
>>>>>>> Subject: Re: Error when adding products to catagories
>>>>>>>
>>>>>>> this brings up a question if a main application should break
>>>>>>> because a
>>>>>>> specialpurpose apps is missing.
>>>>>>>
>>>>>>> David E Jones sent the following on 2/28/2008 9:31 PM:
>>>>>>>> It's probably because in your delegator definition you have no
>>>>>>>> datasource mapping for the org.ofbiz.olap entity group name.
>>>>>>>>
>>>>>>>> -David
>>>>>>>>
>>>>>>>>
>>>>>>>> On Feb 28, 2008, at 4:32 PM, Branden Strickland wrote:
>>>>>>>>
>>>>>>>>> I'm running my DB on mysql.
>>>>>>>>> Loaded sample data.
>>>>>>>>> I've set up a new facility, catalog, and 2 catagories.
>>>>>>>>>
>>>>>>>>> I can't add products to either catigories. I get this error.
>>>>>>>>>
>>>>>>>>> The Following Errors Occurred:
>>>>>>>>>
>>>>>>>>> Error calling event:  
>>>>>>>>> org.ofbiz.webapp.event.EventHandlerException:
>>>>>>>>> Service
>>>>>>>>> invocation error (Could not commit transaction for service
>>>>>>>>> [createProduct]
>>>>>>>>> call: Roll back error, could not commit transaction, was  
>>>>>>>>> rolled
>>>>>>>>> back
>>>>>>>>> instead
>>>>>>>>> because of: Error in simple-method [
>>>>>>>>>
>>>>>>> [file:/home/bstrickland/svnWS/ofbizdemo/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)
>>>>>>>>> I looked at the DemensionServices.xml and couldn't tie  
>>>>>>>>> anything
>>>>>>> together.
>>>>>>>>>
>>>>>>>>> Also (un related)
>>>>>>>>>
>>>>>>>>> In the business setup document, it suggests you create 4
>>>>>>>>> catagories,
>>>>>>> and
>>>>>>>>> this confused me as well. Is there a purpose for:
>>>>>>>>> Browse Root Category
>>>>>>>>> Top-level browse category
>>>>>>>>> Promotions Category
>>>>>>>>> "all Products" ategory as default search.
>>>>>>>>>
>>>>>>>>> Thanks gentlemen!
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>
>>>
>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: Error when adding products to catagories

Branden Strickland
In reply to this post by Jacopo Cappellato
I see I see.

Well I added the olap piece and I still get

The Following Errors Occurred:

Error calling event: org.ofbiz.webapp.event.EventHandlerException: Service
invocation error (Could not commit transaction for service [createProduct]
call: Roll back error, could not commit transaction, was rolled back instead
because of: Error in simple-method [
[file:/home/bstrickland/svnWS/ofbizdemo/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)

Only when creating a new product.


I got a few stack traces when I started ofbiz as well, but I think that
probably something residual from adding in the olap piece, only because I
wasn't getting stack traces before.  I'll see if I can sift through them...
Maybe they hold my answer?


Minus the SQL error that ofbiz gives me on the screen where I try to create
the product, there aren't any other logs that I could check is there.  ( I
realize that's a horrible question, and that I should know, if I've been
working with the software at all, but I've never been one for log diving.
Unless the software isn't working quite right......like now :P


Thanks for all the continued help!


On Mon, Mar 3, 2008 at 11:08 AM, Jacopo Cappellato <[hidden email]> wrote:

> Branden Strickland wrote:
> > will do!
> >
> > Just out of curiosity, (so I can log it in my notebook) what is the
> premise,
> > and or difference between the org.ofbiz and the org.ofbiz.olap?
> >
>
> They represents different groups of entity, that can be assigned to
> different datasources (for example different databases):
> * org.ofbiz is the group of all the OFBiz entities used by the
> transactional system (i.e. actually everything: orders invoices payments
> etc...)
> * org.ofbiz.olap groups together the entities used by the OFBiz business
> intelligence component (just a prototype): star schemas and dimensions
> for dimensional analysis and reports; ideally they should be placed in a
> separate database
>
> Cheers,
>
> Jacopo
>
> > Thanks for the quick reply on that!
> >
> > I'll give it a shot while I anxiously await your reply.
> >
> > Thanks again!
> >
> > On Mon, Mar 3, 2008 at 9:57 AM, Jacopo Cappellato <[hidden email]> wrote:
> >
> >> Try with:
> >>
> >> <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="localmysql"/>
> >>    <group-map group-name="org.ofbiz.olap"
> datasource-name="localmysql"/>
> >> </delegator>
> >>
> >> Jacopo
> >>
> >>
> >> Branden Strickland wrote:
> >>> David,
> >>>
> >>> I hate to keep bothering, and I'm obviously in no rush, but if you
> have
> >> the
> >>> time, could you take a quick look at the entityengine.xml that I have
> >> pasted
> >>> below and let me know if it looks legitimate. ?
> >>>
> >>> I suppose in the mean time, I'll have to to start commenting some
> >> components
> >>> out of the component-load in the special purpose directory, maybe it's
> >> one
> >>> of those that isn't configured correctly?
> >>>
> >>> <connection-factory class="org.ofbiz.entity.connection
> >>>> .DBCPConnectionFactory"/>
> >>>>
> >>>>     <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="localmysql"/>
> >>>>     </delegator>
> >>>>     <delegator name="default-no-eca" entity-model-reader="main"
> >>>> entity-group-reader="main" entity-eca-reader="main"
> >>>> entity-eca-enabled="false" distributed-cache-clear-enabled="false">
> >>>>         <group-map group-name="org.ofbiz"
> >> datasource-name="localmysql"/>
> >>>>     </delegator>
> >>>>
> >>>>     <delegator name="test" entity-model-reader="main"
> >>>> entity-group-reader="main" entity-eca-reader="main">
> >>>>         <group-map group-name="org.ofbiz"
> >> datasource-name="localmysql"/>
> >>>>     </delegator>
> >>>>     <delegator name="other" entity-model-reader="main"
> >>>> entity-group-reader="main" entity-eca-reader="main">
> >>>>         <group-map group-name="org.ofbiz"
> >> datasource-name="localmysql"/>
> >>>
> >>> Thanks!
> >>>
> >>>
> >>> On Fri, Feb 29, 2008 at 5:49 PM, Branden Strickland <
> >>> [hidden email]> wrote:
> >>>
> >>>> So This is unacceptable?! (see delegator section below)
> >>>>
> >>>> I'm not 100% sure how all of these work into the equation, but I
> >> figured
> >>>> if they all pointed to the same database then I'd be ok in the end
> >> right?
> >>>> If this is something I won't need just running a POS, which component
> >> should
> >>>> I turn off in the  component-load.xml file?
> >>>>
> >>>> Thanks gents!
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> On Fri, Feb 29, 2008 at 11:47 AM, David E Jones <
> >> [hidden email]>
> >>>> wrote:
> >>>>
> >>>>> It's in the entityengine.xml file, and there are examples there that
> >>>>> include this package.
> >>>>>
> >>>>> -David
> >>>>>
> >>>>>
> >>>>> On Feb 29, 2008, at 7:48 AM, Branden Strickland wrote:
> >>>>>
> >>>>>> Delegator definition.  Gotcha.  Now, although I'm leaning how to
> >> peice
> >>>>>> things together with ofbiz, I'm still a bit green around the ears
> >>>>>> when It
> >>>>>> comes to technical names for documents.  Is the Delaegator
> >>>>>> definition in the
> >>>>>> file referenced in the error I posted in the first email?  Or is it
> >>>>>> in the
> >>>>>> entityengine or entitygroup?
> >>>>>>
> >>>>>> I'd love to take a quick look to see if i can fix it......That
> >>>>>> is....If I
> >>>>>> can find it! :P
> >>>>>>
> >>>>>> Thanks gents!  I'll start poking around anyway!
> >>>>>>
> >>>>>> Branden -
> >>>>>>
> >>>>>> On Fri, Feb 29, 2008 at 8:42 AM, Vince M. Clark <
> [hidden email]
> >>>>>> wrote:
> >>>>>>
> >>>>>>> BJ - This is a great question. We had a similar problem where we
> >>>>>>> couldn't
> >>>>>>> complete an order because we didn't have the ebay component in
> >>>>>>> specialpurpose. It is my feeling that specialpurpose components
> >>>>>>> should be
> >>>>>>> optional, and not break core functionality if they are missing.
> >>>>>>>
> >>>>>>> For example, when we deploy POS terminals we don't want anything
> in
> >>>>>>> specialpurpose except the POS component. We don't need bi, ebay,
> >>>>>>> etc. We
> >>>>>>> want our POS terminals lean.
> >>>>>>>
> >>>>>>> ----- Original Message -----
> >>>>>>> From: "BJ Freeman" <[hidden email]>
> >>>>>>> To: [hidden email]
> >>>>>>> Sent: Friday, February 29, 2008 3:58:03 AM (GMT-0700)
> America/Denver
> >>>>>>> Subject: Re: Error when adding products to catagories
> >>>>>>>
> >>>>>>> this brings up a question if a main application should break
> >>>>>>> because a
> >>>>>>> specialpurpose apps is missing.
> >>>>>>>
> >>>>>>> David E Jones sent the following on 2/28/2008 9:31 PM:
> >>>>>>>> It's probably because in your delegator definition you have no
> >>>>>>>> datasource mapping for the org.ofbiz.olap entity group name.
> >>>>>>>>
> >>>>>>>> -David
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On Feb 28, 2008, at 4:32 PM, Branden Strickland wrote:
> >>>>>>>>
> >>>>>>>>> I'm running my DB on mysql.
> >>>>>>>>> Loaded sample data.
> >>>>>>>>> I've set up a new facility, catalog, and 2 catagories.
> >>>>>>>>>
> >>>>>>>>> I can't add products to either catigories. I get this error.
> >>>>>>>>>
> >>>>>>>>> The Following Errors Occurred:
> >>>>>>>>>
> >>>>>>>>> Error calling event:
> org.ofbiz.webapp.event.EventHandlerException:
> >>>>>>>>> Service
> >>>>>>>>> invocation error (Could not commit transaction for service
> >>>>>>>>> [createProduct]
> >>>>>>>>> call: Roll back error, could not commit transaction, was rolled
> >>>>>>>>> back
> >>>>>>>>> instead
> >>>>>>>>> because of: Error in simple-method [
> >>>>>>>>>
> >>>>>>> [file:/home/bstrickland/svnWS/ofbizdemo/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)
> >>>>>>>>> I looked at the DemensionServices.xml and couldn't tie anything
> >>>>>>> together.
> >>>>>>>>> Also (un related)
> >>>>>>>>>
> >>>>>>>>> In the business setup document, it suggests you create 4
> >>>>>>>>> catagories,
> >>>>>>> and
> >>>>>>>>> this confused me as well. Is there a purpose for:
> >>>>>>>>> Browse Root Category
> >>>>>>>>> Top-level browse category
> >>>>>>>>> Promotions Category
> >>>>>>>>> "all Products" ategory as default search.
> >>>>>>>>>
> >>>>>>>>> Thanks gentlemen!
> >>>>>>>>
> >>>>>>>>
> >>
> >
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Error when adding products to catagories

Branden Strickland
In reply to this post by David E Jones
thanks!  I'll look them over really close.  I think I've seen them before,
but until now didn't seem all that important.

Guess I'll have to change my tune!

On Mon, Mar 3, 2008 at 11:13 AM, David E Jones <[hidden email]>
wrote:

>
> http://ofbiz.apache.org/docs/entity.html
> http://ofbiz.apache.org/docs/entityconfig.html
>
> -David
>
>
> On Mar 3, 2008, at 8:54 AM, Branden Strickland wrote:
>
> > will do!
> >
> > Just out of curiosity, (so I can log it in my notebook) what is the
> > premise,
> > and or difference between the org.ofbiz and the org.ofbiz.olap?
> >
> > Thanks for the quick reply on that!
> >
> > I'll give it a shot while I anxiously await your reply.
> >
> > Thanks again!
> >
> > On Mon, Mar 3, 2008 at 9:57 AM, Jacopo Cappellato <[hidden email]>
> > wrote:
> >
> >> Try with:
> >>
> >> <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="localmysql"/>
> >>   <group-map group-name="org.ofbiz.olap" datasource-
> >> name="localmysql"/>
> >> </delegator>
> >>
> >> Jacopo
> >>
> >>
> >> Branden Strickland wrote:
> >>> David,
> >>>
> >>> I hate to keep bothering, and I'm obviously in no rush, but if you
> >>> have
> >> the
> >>> time, could you take a quick look at the entityengine.xml that I
> >>> have
> >> pasted
> >>> below and let me know if it looks legitimate. ?
> >>>
> >>> I suppose in the mean time, I'll have to to start commenting some
> >> components
> >>> out of the component-load in the special purpose directory, maybe
> >>> it's
> >> one
> >>> of those that isn't configured correctly?
> >>>
> >>> <connection-factory class="org.ofbiz.entity.connection
> >>>> .DBCPConnectionFactory"/>
> >>>>
> >>>>    <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="localmysql"/>
> >>>>    </delegator>
> >>>>    <delegator name="default-no-eca" entity-model-reader="main"
> >>>> entity-group-reader="main" entity-eca-reader="main"
> >>>> entity-eca-enabled="false" distributed-cache-clear-enabled="false">
> >>>>        <group-map group-name="org.ofbiz"
> >> datasource-name="localmysql"/>
> >>>>    </delegator>
> >>>>
> >>>>    <delegator name="test" entity-model-reader="main"
> >>>> entity-group-reader="main" entity-eca-reader="main">
> >>>>        <group-map group-name="org.ofbiz"
> >> datasource-name="localmysql"/>
> >>>>    </delegator>
> >>>>    <delegator name="other" entity-model-reader="main"
> >>>> entity-group-reader="main" entity-eca-reader="main">
> >>>>        <group-map group-name="org.ofbiz"
> >> datasource-name="localmysql"/>
> >>>
> >>>
> >>> Thanks!
> >>>
> >>>
> >>> On Fri, Feb 29, 2008 at 5:49 PM, Branden Strickland <
> >>> [hidden email]> wrote:
> >>>
> >>>> So This is unacceptable?! (see delegator section below)
> >>>>
> >>>> I'm not 100% sure how all of these work into the equation, but I
> >> figured
> >>>> if they all pointed to the same database then I'd be ok in the end
> >> right?
> >>>> If this is something I won't need just running a POS, which
> >>>> component
> >> should
> >>>> I turn off in the  component-load.xml file?
> >>>>
> >>>> Thanks gents!
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> On Fri, Feb 29, 2008 at 11:47 AM, David E Jones <
> >> [hidden email]>
> >>>> wrote:
> >>>>
> >>>>> It's in the entityengine.xml file, and there are examples there
> >>>>> that
> >>>>> include this package.
> >>>>>
> >>>>> -David
> >>>>>
> >>>>>
> >>>>> On Feb 29, 2008, at 7:48 AM, Branden Strickland wrote:
> >>>>>
> >>>>>> Delegator definition.  Gotcha.  Now, although I'm leaning how to
> >> peice
> >>>>>> things together with ofbiz, I'm still a bit green around the ears
> >>>>>> when It
> >>>>>> comes to technical names for documents.  Is the Delaegator
> >>>>>> definition in the
> >>>>>> file referenced in the error I posted in the first email?  Or
> >>>>>> is it
> >>>>>> in the
> >>>>>> entityengine or entitygroup?
> >>>>>>
> >>>>>> I'd love to take a quick look to see if i can fix it......That
> >>>>>> is....If I
> >>>>>> can find it! :P
> >>>>>>
> >>>>>> Thanks gents!  I'll start poking around anyway!
> >>>>>>
> >>>>>> Branden -
> >>>>>>
> >>>>>> On Fri, Feb 29, 2008 at 8:42 AM, Vince M. Clark <
> [hidden email]
> >>>
> >>>>>> wrote:
> >>>>>>
> >>>>>>> BJ - This is a great question. We had a similar problem where we
> >>>>>>> couldn't
> >>>>>>> complete an order because we didn't have the ebay component in
> >>>>>>> specialpurpose. It is my feeling that specialpurpose components
> >>>>>>> should be
> >>>>>>> optional, and not break core functionality if they are missing.
> >>>>>>>
> >>>>>>> For example, when we deploy POS terminals we don't want
> >>>>>>> anything in
> >>>>>>> specialpurpose except the POS component. We don't need bi, ebay,
> >>>>>>> etc. We
> >>>>>>> want our POS terminals lean.
> >>>>>>>
> >>>>>>> ----- Original Message -----
> >>>>>>> From: "BJ Freeman" <[hidden email]>
> >>>>>>> To: [hidden email]
> >>>>>>> Sent: Friday, February 29, 2008 3:58:03 AM (GMT-0700) America/
> >>>>>>> Denver
> >>>>>>> Subject: Re: Error when adding products to catagories
> >>>>>>>
> >>>>>>> this brings up a question if a main application should break
> >>>>>>> because a
> >>>>>>> specialpurpose apps is missing.
> >>>>>>>
> >>>>>>> David E Jones sent the following on 2/28/2008 9:31 PM:
> >>>>>>>> It's probably because in your delegator definition you have no
> >>>>>>>> datasource mapping for the org.ofbiz.olap entity group name.
> >>>>>>>>
> >>>>>>>> -David
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On Feb 28, 2008, at 4:32 PM, Branden Strickland wrote:
> >>>>>>>>
> >>>>>>>>> I'm running my DB on mysql.
> >>>>>>>>> Loaded sample data.
> >>>>>>>>> I've set up a new facility, catalog, and 2 catagories.
> >>>>>>>>>
> >>>>>>>>> I can't add products to either catigories. I get this error.
> >>>>>>>>>
> >>>>>>>>> The Following Errors Occurred:
> >>>>>>>>>
> >>>>>>>>> Error calling event:
> >>>>>>>>> org.ofbiz.webapp.event.EventHandlerException:
> >>>>>>>>> Service
> >>>>>>>>> invocation error (Could not commit transaction for service
> >>>>>>>>> [createProduct]
> >>>>>>>>> call: Roll back error, could not commit transaction, was
> >>>>>>>>> rolled
> >>>>>>>>> back
> >>>>>>>>> instead
> >>>>>>>>> because of: Error in simple-method [
> >>>>>>>>>
> >>>>>>> [file:/home/bstrickland/svnWS/ofbizdemo/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)
> >>>>>>>>> I looked at the DemensionServices.xml and couldn't tie
> >>>>>>>>> anything
> >>>>>>> together.
> >>>>>>>>>
> >>>>>>>>> Also (un related)
> >>>>>>>>>
> >>>>>>>>> In the business setup document, it suggests you create 4
> >>>>>>>>> catagories,
> >>>>>>> and
> >>>>>>>>> this confused me as well. Is there a purpose for:
> >>>>>>>>> Browse Root Category
> >>>>>>>>> Top-level browse category
> >>>>>>>>> Promotions Category
> >>>>>>>>> "all Products" ategory as default search.
> >>>>>>>>>
> >>>>>>>>> Thanks gentlemen!
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>
> >>>
> >>
> >>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Error when adding products to catagories

Branden Strickland
AHHHH Gentlemen, you were right!

Sorry, I added in the olap piece to the wrong section because I was rushing
in my excitement!

Thanks a bunch!  Now I can populate some products!

Out of my shear curiosity, why would something that's just a prototype be
required to input products?  Not that I'm complaining! I can only hope that
I soon understand the software enough to actually aid in development by
assisting with new builds and whatnot.  Not by programming though..... that
would be an ugly...ugly site ;P

Thanks again!

On Mon, Mar 3, 2008 at 11:16 AM, Branden Strickland <
[hidden email]> wrote:

> thanks!  I'll look them over really close.  I think I've seen them before,
> but until now didn't seem all that important.
>
> Guess I'll have to change my tune!
>
> On Mon, Mar 3, 2008 at 11:13 AM, David E Jones <[hidden email]>
> wrote:
>
> >
> > http://ofbiz.apache.org/docs/entity.html
> > http://ofbiz.apache.org/docs/entityconfig.html
> >
> > -David
> >
> >
> > On Mar 3, 2008, at 8:54 AM, Branden Strickland wrote:
> >
> > > will do!
> > >
> > > Just out of curiosity, (so I can log it in my notebook) what is the
> > > premise,
> > > and or difference between the org.ofbiz and the org.ofbiz.olap?
> > >
> > > Thanks for the quick reply on that!
> > >
> > > I'll give it a shot while I anxiously await your reply.
> > >
> > > Thanks again!
> > >
> > > On Mon, Mar 3, 2008 at 9:57 AM, Jacopo Cappellato <[hidden email]>
> > > wrote:
> > >
> > >> Try with:
> > >>
> > >> <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="localmysql"/>
> > >>   <group-map group-name="org.ofbiz.olap" datasource-
> > >> name="localmysql"/>
> > >> </delegator>
> > >>
> > >> Jacopo
> > >>
> > >>
> > >> Branden Strickland wrote:
> > >>> David,
> > >>>
> > >>> I hate to keep bothering, and I'm obviously in no rush, but if you
> > >>> have
> > >> the
> > >>> time, could you take a quick look at the entityengine.xml that I
> > >>> have
> > >> pasted
> > >>> below and let me know if it looks legitimate. ?
> > >>>
> > >>> I suppose in the mean time, I'll have to to start commenting some
> > >> components
> > >>> out of the component-load in the special purpose directory, maybe
> > >>> it's
> > >> one
> > >>> of those that isn't configured correctly?
> > >>>
> > >>> <connection-factory class="org.ofbiz.entity.connection
> > >>>> .DBCPConnectionFactory"/>
> > >>>>
> > >>>>    <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="localmysql"/>
> > >>>>    </delegator>
> > >>>>    <delegator name="default-no-eca" entity-model-reader="main"
> > >>>> entity-group-reader="main" entity-eca-reader="main"
> > >>>> entity-eca-enabled="false" distributed-cache-clear-enabled="false">
> > >>>>        <group-map group-name="org.ofbiz"
> > >> datasource-name="localmysql"/>
> > >>>>    </delegator>
> > >>>>
> > >>>>    <delegator name="test" entity-model-reader="main"
> > >>>> entity-group-reader="main" entity-eca-reader="main">
> > >>>>        <group-map group-name="org.ofbiz"
> > >> datasource-name="localmysql"/>
> > >>>>    </delegator>
> > >>>>    <delegator name="other" entity-model-reader="main"
> > >>>> entity-group-reader="main" entity-eca-reader="main">
> > >>>>        <group-map group-name="org.ofbiz"
> > >> datasource-name="localmysql"/>
> > >>>
> > >>>
> > >>> Thanks!
> > >>>
> > >>>
> > >>> On Fri, Feb 29, 2008 at 5:49 PM, Branden Strickland <
> > >>> [hidden email]> wrote:
> > >>>
> > >>>> So This is unacceptable?! (see delegator section below)
> > >>>>
> > >>>> I'm not 100% sure how all of these work into the equation, but I
> > >> figured
> > >>>> if they all pointed to the same database then I'd be ok in the end
> > >> right?
> > >>>> If this is something I won't need just running a POS, which
> > >>>> component
> > >> should
> > >>>> I turn off in the  component-load.xml file?
> > >>>>
> > >>>> Thanks gents!
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>> On Fri, Feb 29, 2008 at 11:47 AM, David E Jones <
> > >> [hidden email]>
> > >>>> wrote:
> > >>>>
> > >>>>> It's in the entityengine.xml file, and there are examples there
> > >>>>> that
> > >>>>> include this package.
> > >>>>>
> > >>>>> -David
> > >>>>>
> > >>>>>
> > >>>>> On Feb 29, 2008, at 7:48 AM, Branden Strickland wrote:
> > >>>>>
> > >>>>>> Delegator definition.  Gotcha.  Now, although I'm leaning how to
> > >> peice
> > >>>>>> things together with ofbiz, I'm still a bit green around the ears
> > >>>>>> when It
> > >>>>>> comes to technical names for documents.  Is the Delaegator
> > >>>>>> definition in the
> > >>>>>> file referenced in the error I posted in the first email?  Or
> > >>>>>> is it
> > >>>>>> in the
> > >>>>>> entityengine or entitygroup?
> > >>>>>>
> > >>>>>> I'd love to take a quick look to see if i can fix it......That
> > >>>>>> is....If I
> > >>>>>> can find it! :P
> > >>>>>>
> > >>>>>> Thanks gents!  I'll start poking around anyway!
> > >>>>>>
> > >>>>>> Branden -
> > >>>>>>
> > >>>>>> On Fri, Feb 29, 2008 at 8:42 AM, Vince M. Clark <
> > [hidden email]
> > >>>
> > >>>>>> wrote:
> > >>>>>>
> > >>>>>>> BJ - This is a great question. We had a similar problem where we
> > >>>>>>> couldn't
> > >>>>>>> complete an order because we didn't have the ebay component in
> > >>>>>>> specialpurpose. It is my feeling that specialpurpose components
> > >>>>>>> should be
> > >>>>>>> optional, and not break core functionality if they are missing.
> > >>>>>>>
> > >>>>>>> For example, when we deploy POS terminals we don't want
> > >>>>>>> anything in
> > >>>>>>> specialpurpose except the POS component. We don't need bi, ebay,
> > >>>>>>> etc. We
> > >>>>>>> want our POS terminals lean.
> > >>>>>>>
> > >>>>>>> ----- Original Message -----
> > >>>>>>> From: "BJ Freeman" <[hidden email]>
> > >>>>>>> To: [hidden email]
> > >>>>>>> Sent: Friday, February 29, 2008 3:58:03 AM (GMT-0700) America/
> > >>>>>>> Denver
> > >>>>>>> Subject: Re: Error when adding products to catagories
> > >>>>>>>
> > >>>>>>> this brings up a question if a main application should break
> > >>>>>>> because a
> > >>>>>>> specialpurpose apps is missing.
> > >>>>>>>
> > >>>>>>> David E Jones sent the following on 2/28/2008 9:31 PM:
> > >>>>>>>> It's probably because in your delegator definition you have no
> > >>>>>>>> datasource mapping for the org.ofbiz.olap entity group name.
> > >>>>>>>>
> > >>>>>>>> -David
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>> On Feb 28, 2008, at 4:32 PM, Branden Strickland wrote:
> > >>>>>>>>
> > >>>>>>>>> I'm running my DB on mysql.
> > >>>>>>>>> Loaded sample data.
> > >>>>>>>>> I've set up a new facility, catalog, and 2 catagories.
> > >>>>>>>>>
> > >>>>>>>>> I can't add products to either catigories. I get this error.
> > >>>>>>>>>
> > >>>>>>>>> The Following Errors Occurred:
> > >>>>>>>>>
> > >>>>>>>>> Error calling event:
> > >>>>>>>>> org.ofbiz.webapp.event.EventHandlerException:
> > >>>>>>>>> Service
> > >>>>>>>>> invocation error (Could not commit transaction for service
> > >>>>>>>>> [createProduct]
> > >>>>>>>>> call: Roll back error, could not commit transaction, was
> > >>>>>>>>> rolled
> > >>>>>>>>> back
> > >>>>>>>>> instead
> > >>>>>>>>> because of: Error in simple-method [
> > >>>>>>>>>
> > >>>>>>> [file:/home/bstrickland/svnWS/ofbizdemo/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)
> > >>>>>>>>> I looked at the DemensionServices.xml and couldn't tie
> > >>>>>>>>> anything
> > >>>>>>> together.
> > >>>>>>>>>
> > >>>>>>>>> Also (un related)
> > >>>>>>>>>
> > >>>>>>>>> In the business setup document, it suggests you create 4
> > >>>>>>>>> catagories,
> > >>>>>>> and
> > >>>>>>>>> this confused me as well. Is there a purpose for:
> > >>>>>>>>> Browse Root Category
> > >>>>>>>>> Top-level browse category
> > >>>>>>>>> Promotions Category
> > >>>>>>>>> "all Products" ategory as default search.
> > >>>>>>>>>
> > >>>>>>>>> Thanks gentlemen!
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>
> > >>>>>
> > >>>
> > >>
> > >>
> >
> >
>