You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Case Torres <Ca...@casetorrestech.com> on 2007/12/07 01:36:20 UTC

error message when click on "Edit Items"

Hi,

I'm seeking help in troubleshooting this error.

Upon creating an order (consisting of a variant product, not sure this makes
a difference) and then clicking on "Edit Items" in the "Order Items" section
of the screen, I'm getting the following error message:


org.ofbiz.base.util.GeneralException: Error rendering screen
[component://order/widget/ordermgr/OrderViewScreens.xml#OrderItemEdit]:
org.ofbiz.base.util.GeneralException: Error rendering screen
[component://order/widget/ordermgr/OrderViewScreens.xml#CommonOrderViewDecor
ator]: org.ofbiz.base.util.GeneralException: Error rendering screen
[component://order/widget/ordermgr/CommonScreens.xml#main-decorator]:
org.ofbiz.base.util.GeneralException: Error rendering screen
[component://common/widget/CommonScreens.xml#GlobalDecorator]:
java.lang.RuntimeException: Error rendering included template at location
[component://order/webapp/ordermgr/order/appendorderitem.ftl]:
freemarker.core.InvalidReferenceException: Expression
Static["org.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(reques
t) is undefined on line 40, column 66 in
component://order/webapp/ordermgr/order/appendorderitem.ftl. (Error
rendering included template at location
[component://order/webapp/ordermgr/order/appendorderitem.ftl]:
freemarker.core.InvalidReferenceException: Expression
Static["org.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(reques
t) is undefined on line 40, column 66 in
component://order/webapp/ordermgr/order/appendorderitem.ftl.) (Error
rendering screen
[component://common/widget/CommonScreens.xml#GlobalDecorator]:
java.lang.RuntimeException: Error rendering included template at location
[component://order/webapp/ordermgr/order/appendorderitem.ftl]: 

I did make some changes to a couple of .ftl files, specifically 
orderitems.ftl and ordershippinginfo.ftl 
I made copies of each prior to making the changes and changed back to the
original file upon getting the above error message.
However, I'm still receiving the message.
I would like to learn how to troubleshoot these errors. Any pointers would
be greatly appreciated.

>From the output I gather the code is unable to reference the Catalog ID when
trying to render both editorderitems.ftl and appendorderitem.ftl. The
offended code is actually on line 40 in appendorderitem.ftl. How would I
backtrack from here?

Thanks much, Case


Case Torres
case@casetorrestech.com



RE: error message when click on "Edit Items"

Posted by Case Torres <Ca...@casetorrestech.com>.
First, thank you BJ and Scott for responding.

My apologies as I totally forgot to mention, as Scott pointed out, which
ofbiz I'm using.
This is Release 4 revision:601031
I did not load the Demo just seed data

To create the order I followed the steps thru Order Manager->Order Entry.

My product store shows up in the drop-down on the first order entry page
"Sales Order" section and there *is* a catalog associated with my product
store. Clicking "continue" thru to "Finalize Order", and "continue" thru
shipping and payment screens then creating the order by clicking on the
"Create Order" button. 

On what I call the "Final Order Screen" where you can Approve an order,
towards the bottom of the screen is the section titled "Order Items" I
clicked on the button "Edit Items" in the upper right hand corner of this
section and that is when the error appears.

 I know the code can't find the Catalog ID. I'm not sure how to track down
the problem. 
Where is the Catalog ID supposed to be stored and what part of the code is
suppose to store it?

I know that this particular call in appendorderitem.ftl is not returning
what's needed.
Static["org.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(reques
t)

I'm afraid that's all I know. I'd like to learn how to track down these
types of problems but I just don't know how to backtrack to find the
problem.
Thanks much in advance for any advice,


Case Torres
case@casetorrestech.com


-----Original Message-----
From: BJ Freeman [mailto:bjfree@free-man.net] 
Sent: Thursday, December 06, 2007 10:30 PM
To: user@ofbiz.apache.org
Subject: Re: error message when click on "Edit Items"

what sequence did you use to get this error.


BJ Freeman sent the following on 12/6/2007 5:22 PM:
> Some screens will error if you don't get to them in the right sequence.
> the error
> Static["org.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(
> reques
>> t) is undefined on line 40, column 66
> says havig trouble getting a catalogID
> 
> Case Torres sent the following on 12/6/2007 4:36 PM:
>> Hi,
>>
>> I'm seeking help in troubleshooting this error.
>>
>> Upon creating an order (consisting of a variant product, not sure 
>> this makes a difference) and then clicking on "Edit Items" in the 
>> "Order Items" section of the screen, I'm getting the following error
message:
>>
>>
>> org.ofbiz.base.util.GeneralException: Error rendering screen
>> [component://order/widget/ordermgr/OrderViewScreens.xml#OrderItemEdit]:
>> org.ofbiz.base.util.GeneralException: Error rendering screen 
>> [component://order/widget/ordermgr/OrderViewScreens.xml#CommonOrderVi
>> ewDecor
>> ator]: org.ofbiz.base.util.GeneralException: Error rendering screen
>> [component://order/widget/ordermgr/CommonScreens.xml#main-decorator]:
>> org.ofbiz.base.util.GeneralException: Error rendering screen
>> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
>> java.lang.RuntimeException: Error rendering included template at 
>> location
>> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
>> freemarker.core.InvalidReferenceException: Expression 
>> Static["org.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId
>> (reques
>> t) is undefined on line 40, column 66 in 
>> component://order/webapp/ordermgr/order/appendorderitem.ftl. (Error 
>> rendering included template at location
>> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
>> freemarker.core.InvalidReferenceException: Expression 
>> Static["org.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId
>> (reques
>> t) is undefined on line 40, column 66 in
>> component://order/webapp/ordermgr/order/appendorderitem.ftl.) (Error 
>> rendering screen
>> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
>> java.lang.RuntimeException: Error rendering included template at 
>> location
>> [component://order/webapp/ordermgr/order/appendorderitem.ftl]: 
>>
>> I did make some changes to a couple of .ftl files, specifically 
>> orderitems.ftl and ordershippinginfo.ftl I made copies of each prior 
>> to making the changes and changed back to the original file upon 
>> getting the above error message.
>> However, I'm still receiving the message.
>> I would like to learn how to troubleshoot these errors. Any pointers 
>> would be greatly appreciated.
>>
>> >From the output I gather the code is unable to reference the Catalog 
>> >ID when
>> trying to render both editorderitems.ftl and appendorderitem.ftl. The 
>> offended code is actually on line 40 in appendorderitem.ftl. How 
>> would I backtrack from here?
>>
>> Thanks much, Case
>>
>>
>> Case Torres
>> case@casetorrestech.com
>>
>>
>>
> 
> 
> 


Re: error message when click on "Edit Items"

Posted by BJ Freeman <bj...@free-man.net>.
what sequence did you use to get this error.


BJ Freeman sent the following on 12/6/2007 5:22 PM:
> Some screens will error if you don't get to them in the right sequence.
> the error
> Static["org.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(reques
>> t) is undefined on line 40, column 66
> says havig trouble getting a catalogID
> 
> Case Torres sent the following on 12/6/2007 4:36 PM:
>> Hi,
>>
>> I'm seeking help in troubleshooting this error.
>>
>> Upon creating an order (consisting of a variant product, not sure this makes
>> a difference) and then clicking on "Edit Items" in the "Order Items" section
>> of the screen, I'm getting the following error message:
>>
>>
>> org.ofbiz.base.util.GeneralException: Error rendering screen
>> [component://order/widget/ordermgr/OrderViewScreens.xml#OrderItemEdit]:
>> org.ofbiz.base.util.GeneralException: Error rendering screen
>> [component://order/widget/ordermgr/OrderViewScreens.xml#CommonOrderViewDecor
>> ator]: org.ofbiz.base.util.GeneralException: Error rendering screen
>> [component://order/widget/ordermgr/CommonScreens.xml#main-decorator]:
>> org.ofbiz.base.util.GeneralException: Error rendering screen
>> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
>> java.lang.RuntimeException: Error rendering included template at location
>> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
>> freemarker.core.InvalidReferenceException: Expression
>> Static["org.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(reques
>> t) is undefined on line 40, column 66 in
>> component://order/webapp/ordermgr/order/appendorderitem.ftl. (Error
>> rendering included template at location
>> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
>> freemarker.core.InvalidReferenceException: Expression
>> Static["org.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(reques
>> t) is undefined on line 40, column 66 in
>> component://order/webapp/ordermgr/order/appendorderitem.ftl.) (Error
>> rendering screen
>> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
>> java.lang.RuntimeException: Error rendering included template at location
>> [component://order/webapp/ordermgr/order/appendorderitem.ftl]: 
>>
>> I did make some changes to a couple of .ftl files, specifically 
>> orderitems.ftl and ordershippinginfo.ftl 
>> I made copies of each prior to making the changes and changed back to the
>> original file upon getting the above error message.
>> However, I'm still receiving the message.
>> I would like to learn how to troubleshoot these errors. Any pointers would
>> be greatly appreciated.
>>
>> >From the output I gather the code is unable to reference the Catalog ID when
>> trying to render both editorderitems.ftl and appendorderitem.ftl. The
>> offended code is actually on line 40 in appendorderitem.ftl. How would I
>> backtrack from here?
>>
>> Thanks much, Case
>>
>>
>> Case Torres
>> case@casetorrestech.com
>>
>>
>>
> 
> 
> 

Re: error message when click on "Edit Items"

Posted by BJ Freeman <bj...@free-man.net>.
Some screens will error if you don't get to them in the right sequence.
the error
Static["org.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(reques
> t) is undefined on line 40, column 66
says havig trouble getting a catalogID

Case Torres sent the following on 12/6/2007 4:36 PM:
> Hi,
> 
> I'm seeking help in troubleshooting this error.
> 
> Upon creating an order (consisting of a variant product, not sure this makes
> a difference) and then clicking on "Edit Items" in the "Order Items" section
> of the screen, I'm getting the following error message:
> 
> 
> org.ofbiz.base.util.GeneralException: Error rendering screen
> [component://order/widget/ordermgr/OrderViewScreens.xml#OrderItemEdit]:
> org.ofbiz.base.util.GeneralException: Error rendering screen
> [component://order/widget/ordermgr/OrderViewScreens.xml#CommonOrderViewDecor
> ator]: org.ofbiz.base.util.GeneralException: Error rendering screen
> [component://order/widget/ordermgr/CommonScreens.xml#main-decorator]:
> org.ofbiz.base.util.GeneralException: Error rendering screen
> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
> java.lang.RuntimeException: Error rendering included template at location
> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
> freemarker.core.InvalidReferenceException: Expression
> Static["org.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(reques
> t) is undefined on line 40, column 66 in
> component://order/webapp/ordermgr/order/appendorderitem.ftl. (Error
> rendering included template at location
> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
> freemarker.core.InvalidReferenceException: Expression
> Static["org.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(reques
> t) is undefined on line 40, column 66 in
> component://order/webapp/ordermgr/order/appendorderitem.ftl.) (Error
> rendering screen
> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
> java.lang.RuntimeException: Error rendering included template at location
> [component://order/webapp/ordermgr/order/appendorderitem.ftl]: 
> 
> I did make some changes to a couple of .ftl files, specifically 
> orderitems.ftl and ordershippinginfo.ftl 
> I made copies of each prior to making the changes and changed back to the
> original file upon getting the above error message.
> However, I'm still receiving the message.
> I would like to learn how to troubleshoot these errors. Any pointers would
> be greatly appreciated.
> 
>>>From the output I gather the code is unable to reference the Catalog ID when
> trying to render both editorderitems.ftl and appendorderitem.ftl. The
> offended code is actually on line 40 in appendorderitem.ftl. How would I
> backtrack from here?
> 
> Thanks much, Case
> 
> 
> Case Torres
> case@casetorrestech.com
> 
> 
> 

RE: error message when click on "Edit Items"

Posted by Case Torres <Ca...@casetorrestech.com>.
Scott,

I just downloaded the updates and the problem disappeared! Thanks!! 


Case Torres
case@casetorrestech.com


-----Original Message-----
From: Scott Gray [mailto:lektran@gmail.com] 
Sent: Thursday, December 06, 2007 11:05 PM
To: user@ofbiz.apache.org; Case@casetorrestech.com
Subject: Re: error message when click on "Edit Items"

The problem appears to be that you don't have any catalogs set up, but also
the screen shouldn't crash even if that is the case so I've fixed it in rev.
602008.

In future please mention what version of OFBiz your are using, this had
already been fixed in the trunk so it took me longer to figure out why you
were having a problem.

Regards
Scott

On 07/12/2007, Case Torres <Ca...@casetorrestech.com> wrote:
>
> Hi,
>
> I'm seeking help in troubleshooting this error.
>
> Upon creating an order (consisting of a variant product, not sure this 
> makes a difference) and then clicking on "Edit Items" in the "Order 
> Items"
> section
> of the screen, I'm getting the following error message:
>
>
> org.ofbiz.base.util.GeneralException: Error rendering screen
> [component://order/widget/ordermgr/OrderViewScreens.xml#OrderItemEdit]:
> org.ofbiz.base.util.GeneralException: Error rendering screen
>
> [component://order/widget/ordermgr/OrderViewScreens.xml#CommonOrderVie
> wDecor
> ator]: org.ofbiz.base.util.GeneralException: Error rendering screen
> [component://order/widget/ordermgr/CommonScreens.xml#main-decorator]:
> org.ofbiz.base.util.GeneralException: Error rendering screen
> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
> java.lang.RuntimeException: Error rendering included template at 
> location
> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
> freemarker.core.InvalidReferenceException: Expression 
> Static["org.ofbiz.product.catalog.CatalogWorker
> "].getCurrentCatalogId(reques
> t) is undefined on line 40, column 66 in 
> component://order/webapp/ordermgr/order/appendorderitem.ftl. (Error 
> rendering included template at location
> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
> freemarker.core.InvalidReferenceException: Expression 
> Static["org.ofbiz.product.catalog.CatalogWorker
> "].getCurrentCatalogId(reques
> t) is undefined on line 40, column 66 in
> component://order/webapp/ordermgr/order/appendorderitem.ftl.) (Error 
> rendering screen
> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
> java.lang.RuntimeException: Error rendering included template at 
> location
> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
>
> I did make some changes to a couple of .ftl files, specifically 
> orderitems.ftl and ordershippinginfo.ftl I made copies of each prior 
> to making the changes and changed back to the original file upon 
> getting the above error message.
> However, I'm still receiving the message.
> I would like to learn how to troubleshoot these errors. Any pointers 
> would be greatly appreciated.
>
> From the output I gather the code is unable to reference the Catalog 
> ID when trying to render both editorderitems.ftl and 
> appendorderitem.ftl. The offended code is actually on line 40 in 
> appendorderitem.ftl. How would I backtrack from here?
>
> Thanks much, Case
>
>
> Case Torres
> case@casetorrestech.com
>
>
>


Re: No Demo no Edit Items? Was: error message when click on "Edit Items"

Posted by BJ Freeman <bj...@free-man.net>.
just to clarify how you saw the products.
 you click on the left browse catalog
then click on browse category you can see the category
then you can see products.


Case Torres sent the following on 12/7/2007 3:43 PM:
> BJ,
> 
> I have setup the product store and associated a Catalog with it.
> I have a Catalog with Categories and the Categories have products.
> I've looked at the Demo catalog and comparing it to My catalog, nothing
> looks amiss. 
> 
> The ProductStoreCatalog table shows my storeId and catalogId. 
> So I'm miffed :-(
> 
> Thanks, 
> 
> Case Torres
> case@casetorrestech.com
> 
> 
> -----Original Message-----
> From: BJ Freeman [mailto:bjfree@free-man.net] 
> Sent: Friday, December 07, 2007 2:15 PM
> To: user@ofbiz.apache.org
> Subject: Re: No Demo no Edit Items? Was: error message when click on "Edit
> Items"
> 
> have you read how to setup a product store?
> how to add products to a store?
> I believe you are missing a step in the categories.
> https://demo.hotwaxmedia.com/catalog/control/EditProdCatalogCategories?prodC
> atalogId=DemoCatalog
> also do you have a website for the product store.
> 
> Case Torres sent the following on 12/7/2007 1:58 PM:
>> Hi,
>>
>> I have 3 ofbiz applications running on 3 separate machines.
>> 2 are release branches (one without demo data just seed data loaded)
>> 1 latest trunk release.
>>
>> With both the trunk (demo data loaded) and demo loaded branch I can 
>> Add Items to a created order. However even though I have several 
>> Catalogs I'm ordering from the only catalog name showing up in the 
>> hidden field "prodCatalogId" in the "Add To Order" form is "Demo 
>> Catalog". None of my Catalog names ever show up.
>>
>> With my branch no demo data version, when trying to "Add To Order" I 
>> get a
>> missing: [appendOrderItem.prodCatalogId] error message. And indeed the 
>> hidden, prodCatalogId field is empty.
>>
>> Leads me to believe that without the Demo data loaded I can't use "Add 
>> To Order".
>>
>> I am soliciting comments and suggestions.
>>
>> Case Torres
>> case@casetorrestech.com
>>
>>
>> -----Original Message-----
>> From: Scott Gray [mailto:lektran@gmail.com]
>> Sent: Thursday, December 06, 2007 11:05 PM
>> To: user@ofbiz.apache.org; Case@casetorrestech.com
>> Subject: Re: error message when click on "Edit Items"
>>
>> The problem appears to be that you don't have any catalogs set up, but 
>> also the screen shouldn't crash even if that is the case so I've fixed it
> in rev.
>> 602008.
>>
>> In future please mention what version of OFBiz your are using, this 
>> had already been fixed in the trunk so it took me longer to figure out 
>> why you were having a problem.
>>
>> Regards
>> Scott
>>
>> On 07/12/2007, Case Torres <Ca...@casetorrestech.com> wrote:
>>> Hi,
>>>
>>> I'm seeking help in troubleshooting this error.
>>>
>>> Upon creating an order (consisting of a variant product, not sure 
>>> this makes a difference) and then clicking on "Edit Items" in the 
>>> "Order Items"
>>> section
>>> of the screen, I'm getting the following error message:
>>>
>>>
>>> org.ofbiz.base.util.GeneralException: Error rendering screen
>>> [component://order/widget/ordermgr/OrderViewScreens.xml#OrderItemEdit]:
>>> org.ofbiz.base.util.GeneralException: Error rendering screen
>>>
>>> [component://order/widget/ordermgr/OrderViewScreens.xml#CommonOrderVi
>>> e
>>> wDecor
>>> ator]: org.ofbiz.base.util.GeneralException: Error rendering screen
>>> [component://order/widget/ordermgr/CommonScreens.xml#main-decorator]:
>>> org.ofbiz.base.util.GeneralException: Error rendering screen
>>> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
>>> java.lang.RuntimeException: Error rendering included template at 
>>> location
>>> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
>>> freemarker.core.InvalidReferenceException: Expression 
>>> Static["org.ofbiz.product.catalog.CatalogWorker
>>> "].getCurrentCatalogId(reques
>>> t) is undefined on line 40, column 66 in 
>>> component://order/webapp/ordermgr/order/appendorderitem.ftl. (Error 
>>> rendering included template at location
>>> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
>>> freemarker.core.InvalidReferenceException: Expression 
>>> Static["org.ofbiz.product.catalog.CatalogWorker
>>> "].getCurrentCatalogId(reques
>>> t) is undefined on line 40, column 66 in
>>> component://order/webapp/ordermgr/order/appendorderitem.ftl.) (Error 
>>> rendering screen
>>> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
>>> java.lang.RuntimeException: Error rendering included template at 
>>> location
>>> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
>>>
>>> I did make some changes to a couple of .ftl files, specifically 
>>> orderitems.ftl and ordershippinginfo.ftl I made copies of each prior 
>>> to making the changes and changed back to the original file upon 
>>> getting the above error message.
>>> However, I'm still receiving the message.
>>> I would like to learn how to troubleshoot these errors. Any pointers 
>>> would be greatly appreciated.
>>>
>>> From the output I gather the code is unable to reference the Catalog 
>>> ID when trying to render both editorderitems.ftl and 
>>> appendorderitem.ftl. The offended code is actually on line 40 in 
>>> appendorderitem.ftl. How would I backtrack from here?
>>>
>>> Thanks much, Case
>>>
>>>
>>> Case Torres
>>> case@casetorrestech.com
>>>
>>>
>>>
>>
>>
>>
> 
> 
> 
> 


RE: No Demo no Edit Items? Was: error message when click on "Edit Items"

Posted by Case Torres <Ca...@casetorrestech.com>.
BJ,

I have setup the product store and associated a Catalog with it.
I have a Catalog with Categories and the Categories have products.
I've looked at the Demo catalog and comparing it to My catalog, nothing
looks amiss. 

The ProductStoreCatalog table shows my storeId and catalogId. 
So I'm miffed :-(

Thanks, 

Case Torres
case@casetorrestech.com


-----Original Message-----
From: BJ Freeman [mailto:bjfree@free-man.net] 
Sent: Friday, December 07, 2007 2:15 PM
To: user@ofbiz.apache.org
Subject: Re: No Demo no Edit Items? Was: error message when click on "Edit
Items"

have you read how to setup a product store?
how to add products to a store?
I believe you are missing a step in the categories.
https://demo.hotwaxmedia.com/catalog/control/EditProdCatalogCategories?prodC
atalogId=DemoCatalog
also do you have a website for the product store.

Case Torres sent the following on 12/7/2007 1:58 PM:
> Hi,
> 
> I have 3 ofbiz applications running on 3 separate machines.
> 2 are release branches (one without demo data just seed data loaded)
> 1 latest trunk release.
> 
> With both the trunk (demo data loaded) and demo loaded branch I can 
> Add Items to a created order. However even though I have several 
> Catalogs I'm ordering from the only catalog name showing up in the 
> hidden field "prodCatalogId" in the "Add To Order" form is "Demo 
> Catalog". None of my Catalog names ever show up.
> 
> With my branch no demo data version, when trying to "Add To Order" I 
> get a
> missing: [appendOrderItem.prodCatalogId] error message. And indeed the 
> hidden, prodCatalogId field is empty.
> 
> Leads me to believe that without the Demo data loaded I can't use "Add 
> To Order".
> 
> I am soliciting comments and suggestions.
> 
> Case Torres
> case@casetorrestech.com
> 
> 
> -----Original Message-----
> From: Scott Gray [mailto:lektran@gmail.com]
> Sent: Thursday, December 06, 2007 11:05 PM
> To: user@ofbiz.apache.org; Case@casetorrestech.com
> Subject: Re: error message when click on "Edit Items"
> 
> The problem appears to be that you don't have any catalogs set up, but 
> also the screen shouldn't crash even if that is the case so I've fixed it
in rev.
> 602008.
> 
> In future please mention what version of OFBiz your are using, this 
> had already been fixed in the trunk so it took me longer to figure out 
> why you were having a problem.
> 
> Regards
> Scott
> 
> On 07/12/2007, Case Torres <Ca...@casetorrestech.com> wrote:
>> Hi,
>>
>> I'm seeking help in troubleshooting this error.
>>
>> Upon creating an order (consisting of a variant product, not sure 
>> this makes a difference) and then clicking on "Edit Items" in the 
>> "Order Items"
>> section
>> of the screen, I'm getting the following error message:
>>
>>
>> org.ofbiz.base.util.GeneralException: Error rendering screen
>> [component://order/widget/ordermgr/OrderViewScreens.xml#OrderItemEdit]:
>> org.ofbiz.base.util.GeneralException: Error rendering screen
>>
>> [component://order/widget/ordermgr/OrderViewScreens.xml#CommonOrderVi
>> e
>> wDecor
>> ator]: org.ofbiz.base.util.GeneralException: Error rendering screen
>> [component://order/widget/ordermgr/CommonScreens.xml#main-decorator]:
>> org.ofbiz.base.util.GeneralException: Error rendering screen
>> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
>> java.lang.RuntimeException: Error rendering included template at 
>> location
>> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
>> freemarker.core.InvalidReferenceException: Expression 
>> Static["org.ofbiz.product.catalog.CatalogWorker
>> "].getCurrentCatalogId(reques
>> t) is undefined on line 40, column 66 in 
>> component://order/webapp/ordermgr/order/appendorderitem.ftl. (Error 
>> rendering included template at location
>> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
>> freemarker.core.InvalidReferenceException: Expression 
>> Static["org.ofbiz.product.catalog.CatalogWorker
>> "].getCurrentCatalogId(reques
>> t) is undefined on line 40, column 66 in
>> component://order/webapp/ordermgr/order/appendorderitem.ftl.) (Error 
>> rendering screen
>> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
>> java.lang.RuntimeException: Error rendering included template at 
>> location
>> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
>>
>> I did make some changes to a couple of .ftl files, specifically 
>> orderitems.ftl and ordershippinginfo.ftl I made copies of each prior 
>> to making the changes and changed back to the original file upon 
>> getting the above error message.
>> However, I'm still receiving the message.
>> I would like to learn how to troubleshoot these errors. Any pointers 
>> would be greatly appreciated.
>>
>> From the output I gather the code is unable to reference the Catalog 
>> ID when trying to render both editorderitems.ftl and 
>> appendorderitem.ftl. The offended code is actually on line 40 in 
>> appendorderitem.ftl. How would I backtrack from here?
>>
>> Thanks much, Case
>>
>>
>> Case Torres
>> case@casetorrestech.com
>>
>>
>>
> 
> 
> 
> 


Re: No Demo no Edit Items? Was: error message when click on "Edit Items"

Posted by BJ Freeman <bj...@free-man.net>.
have you read how to setup a product store?
how to add products to a store?
I believe you are missing a step in the categories.
https://demo.hotwaxmedia.com/catalog/control/EditProdCatalogCategories?prodCatalogId=DemoCatalog
also do you have a website for the product store.

Case Torres sent the following on 12/7/2007 1:58 PM:
> Hi,
> 
> I have 3 ofbiz applications running on 3 separate machines.
> 2 are release branches (one without demo data just seed data loaded)
> 1 latest trunk release.
> 
> With both the trunk (demo data loaded) and demo loaded branch I can Add
> Items to a created order. However even though I have several Catalogs I'm
> ordering from the only catalog name showing up in the hidden field
> "prodCatalogId" in the "Add To Order" form is "Demo Catalog". None of my
> Catalog names ever show up.
> 
> With my branch no demo data version, when trying to "Add To Order" I get a
> missing: [appendOrderItem.prodCatalogId] error message. And indeed the
> hidden, prodCatalogId field is empty.
> 
> Leads me to believe that without the Demo data loaded I can't use "Add To
> Order".
> 
> I am soliciting comments and suggestions.
> 
> Case Torres
> case@casetorrestech.com
> 
> 
> -----Original Message-----
> From: Scott Gray [mailto:lektran@gmail.com] 
> Sent: Thursday, December 06, 2007 11:05 PM
> To: user@ofbiz.apache.org; Case@casetorrestech.com
> Subject: Re: error message when click on "Edit Items"
> 
> The problem appears to be that you don't have any catalogs set up, but also
> the screen shouldn't crash even if that is the case so I've fixed it in rev.
> 602008.
> 
> In future please mention what version of OFBiz your are using, this had
> already been fixed in the trunk so it took me longer to figure out why you
> were having a problem.
> 
> Regards
> Scott
> 
> On 07/12/2007, Case Torres <Ca...@casetorrestech.com> wrote:
>> Hi,
>>
>> I'm seeking help in troubleshooting this error.
>>
>> Upon creating an order (consisting of a variant product, not sure this 
>> makes a difference) and then clicking on "Edit Items" in the "Order 
>> Items"
>> section
>> of the screen, I'm getting the following error message:
>>
>>
>> org.ofbiz.base.util.GeneralException: Error rendering screen
>> [component://order/widget/ordermgr/OrderViewScreens.xml#OrderItemEdit]:
>> org.ofbiz.base.util.GeneralException: Error rendering screen
>>
>> [component://order/widget/ordermgr/OrderViewScreens.xml#CommonOrderVie
>> wDecor
>> ator]: org.ofbiz.base.util.GeneralException: Error rendering screen
>> [component://order/widget/ordermgr/CommonScreens.xml#main-decorator]:
>> org.ofbiz.base.util.GeneralException: Error rendering screen
>> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
>> java.lang.RuntimeException: Error rendering included template at 
>> location
>> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
>> freemarker.core.InvalidReferenceException: Expression 
>> Static["org.ofbiz.product.catalog.CatalogWorker
>> "].getCurrentCatalogId(reques
>> t) is undefined on line 40, column 66 in 
>> component://order/webapp/ordermgr/order/appendorderitem.ftl. (Error 
>> rendering included template at location
>> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
>> freemarker.core.InvalidReferenceException: Expression 
>> Static["org.ofbiz.product.catalog.CatalogWorker
>> "].getCurrentCatalogId(reques
>> t) is undefined on line 40, column 66 in
>> component://order/webapp/ordermgr/order/appendorderitem.ftl.) (Error 
>> rendering screen
>> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
>> java.lang.RuntimeException: Error rendering included template at 
>> location
>> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
>>
>> I did make some changes to a couple of .ftl files, specifically 
>> orderitems.ftl and ordershippinginfo.ftl I made copies of each prior 
>> to making the changes and changed back to the original file upon 
>> getting the above error message.
>> However, I'm still receiving the message.
>> I would like to learn how to troubleshoot these errors. Any pointers 
>> would be greatly appreciated.
>>
>> From the output I gather the code is unable to reference the Catalog 
>> ID when trying to render both editorderitems.ftl and 
>> appendorderitem.ftl. The offended code is actually on line 40 in 
>> appendorderitem.ftl. How would I backtrack from here?
>>
>> Thanks much, Case
>>
>>
>> Case Torres
>> case@casetorrestech.com
>>
>>
>>
> 
> 
> 
> 


RE: No Demo no Edit Items? Was: error message when click on "Edit Items"

Posted by ctorres <ct...@quantumcomposers.com>.
Bilgin,

Sorry for this late response. I've been on a business trip.

I want to thank you for your response as it was the solution to my
problem!!!

Regards,

Case



Bilgin Ibryam wrote:
> 
> Case,
> 
> I think that you are very close to finding out the problem.
> Just one more clarification here: Order Manager application has also a
> website (like ecommerce) with webSiteId OrderEntry. If you check the order
> manager web.xml you will see the webSiteId attribute.
> 
> CatalogWorker:80 String productStoreId =
> ProductStoreWorker.getProductStoreId(request);
> This is the line where from request we get ServletContext, and then
> ServletContext.getInitParameter("webSiteId"); aka read from web.xml the
> webSiteId param. Then we get the productStore associated with the website.
> That's why website is needed...
> 
> So, you have to create a website, add it to your store (from catalog
> manger) and then, if you are going to use order manager application, add
> your webSiteId to order manager web.xml (Replace existing param-value
> OrderEntry). Restart OFBiz. It *should* work.
> 
> Good Luck
> Bilgin
> 
> 

-- 
View this message in context: http://www.nabble.com/error-message-when-click-on-%22Edit-Items%22-tp14204488p14302509.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


RE: No Demo no Edit Items? Was: error message when click on "Edit Items"

Posted by Bilgin Ibryam <bi...@iguanait.com>.
Case,

I think that you are very close to finding out the problem.
Just one more clarification here: Order Manager application has also a
website (like ecommerce) with webSiteId OrderEntry. If you check the order
manager web.xml you will see the webSiteId attribute.

CatalogWorker:80 String productStoreId =
ProductStoreWorker.getProductStoreId(request);
This is the line where from request we get ServletContext, and then
ServletContext.getInitParameter("webSiteId"); aka read from web.xml the
webSiteId param. Then we get the productStore associated with the website.
That's why website is needed...

So, you have to create a website, add it to your store (from catalog manger)
and then, if you are going to use order manager application, add your
webSiteId to order manager web.xml (Replace existing param-value
OrderEntry). Restart OFBiz. It *should* work.

Good Luck
Bilgin

-- 
View this message in context: http://www.nabble.com/error-message-when-click-on-%22Edit-Items%22-tf4959554.html#a14226396
Sent from the OFBiz - User mailing list archive at Nabble.com.


RE: No Demo no Edit Items? Was: error message when click on "Edit Items"

Posted by Case Torres <Ca...@casetorrestech.com>.
Bilgin,

Thanks for this information. I did find it helpful to explore CatalogWorker
further. Unfortunately, I have not found the problem, yet.
The database does show my productStoreID and prodCatalogId in the
ProductStoreCatalog table. So I'm miffed.

BTW, I'm not using the website store front functionality of ofbiz. I'm going
through Order->Order Entry and creating a Sales Order.
 

Thanks again,

Case Torres
case@casetorrestech.com


-----Original Message-----
From: Bilgin Ibryam [mailto:bibryam@iguanait.com] 
Sent: Friday, December 07, 2007 2:57 PM
To: user@ofbiz.apache.org
Subject: Re: No Demo no Edit Items? Was: error message when click on "Edit
Items"



Hi Case,

If you check CatalogWorker (lines 80 - 180) i am sure that you can find out
how exactly is retrieved the catalogId form DB.

Not sure that this will help you, but you can give a try to the patch in
OFBIZ-82 . This should show all catalogIds  from current store (store is
connected with the webSiteId in web.xml) in a dropdown, so you can choose if
you got more than one...

I hope that helps.
Bilgin
--
View this message in context:
http://www.nabble.com/error-message-when-click-on-%22Edit-Items%22-tf4959554
.html#a14222534
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: No Demo no Edit Items? Was: error message when click on "Edit Items"

Posted by Bilgin Ibryam <bi...@iguanait.com>.

Hi Case,

If you check CatalogWorker (lines 80 - 180) i am sure that you can find out
how exactly is retrieved the catalogId form DB.

Not sure that this will help you, but you can give a try to the patch in
OFBIZ-82 . This should show all catalogIds  from current store (store is
connected with the webSiteId in web.xml) in a dropdown, so you can choose if
you got more than one...

I hope that helps.
Bilgin
-- 
View this message in context: http://www.nabble.com/error-message-when-click-on-%22Edit-Items%22-tf4959554.html#a14222534
Sent from the OFBiz - User mailing list archive at Nabble.com.


No Demo no Edit Items? Was: error message when click on "Edit Items"

Posted by Case Torres <Ca...@casetorrestech.com>.
Hi,

I have 3 ofbiz applications running on 3 separate machines.
2 are release branches (one without demo data just seed data loaded)
1 latest trunk release.

With both the trunk (demo data loaded) and demo loaded branch I can Add
Items to a created order. However even though I have several Catalogs I'm
ordering from the only catalog name showing up in the hidden field
"prodCatalogId" in the "Add To Order" form is "Demo Catalog". None of my
Catalog names ever show up.

With my branch no demo data version, when trying to "Add To Order" I get a
missing: [appendOrderItem.prodCatalogId] error message. And indeed the
hidden, prodCatalogId field is empty.

Leads me to believe that without the Demo data loaded I can't use "Add To
Order".

I am soliciting comments and suggestions.

Case Torres
case@casetorrestech.com


-----Original Message-----
From: Scott Gray [mailto:lektran@gmail.com] 
Sent: Thursday, December 06, 2007 11:05 PM
To: user@ofbiz.apache.org; Case@casetorrestech.com
Subject: Re: error message when click on "Edit Items"

The problem appears to be that you don't have any catalogs set up, but also
the screen shouldn't crash even if that is the case so I've fixed it in rev.
602008.

In future please mention what version of OFBiz your are using, this had
already been fixed in the trunk so it took me longer to figure out why you
were having a problem.

Regards
Scott

On 07/12/2007, Case Torres <Ca...@casetorrestech.com> wrote:
>
> Hi,
>
> I'm seeking help in troubleshooting this error.
>
> Upon creating an order (consisting of a variant product, not sure this 
> makes a difference) and then clicking on "Edit Items" in the "Order 
> Items"
> section
> of the screen, I'm getting the following error message:
>
>
> org.ofbiz.base.util.GeneralException: Error rendering screen
> [component://order/widget/ordermgr/OrderViewScreens.xml#OrderItemEdit]:
> org.ofbiz.base.util.GeneralException: Error rendering screen
>
> [component://order/widget/ordermgr/OrderViewScreens.xml#CommonOrderVie
> wDecor
> ator]: org.ofbiz.base.util.GeneralException: Error rendering screen
> [component://order/widget/ordermgr/CommonScreens.xml#main-decorator]:
> org.ofbiz.base.util.GeneralException: Error rendering screen
> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
> java.lang.RuntimeException: Error rendering included template at 
> location
> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
> freemarker.core.InvalidReferenceException: Expression 
> Static["org.ofbiz.product.catalog.CatalogWorker
> "].getCurrentCatalogId(reques
> t) is undefined on line 40, column 66 in 
> component://order/webapp/ordermgr/order/appendorderitem.ftl. (Error 
> rendering included template at location
> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
> freemarker.core.InvalidReferenceException: Expression 
> Static["org.ofbiz.product.catalog.CatalogWorker
> "].getCurrentCatalogId(reques
> t) is undefined on line 40, column 66 in
> component://order/webapp/ordermgr/order/appendorderitem.ftl.) (Error 
> rendering screen
> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
> java.lang.RuntimeException: Error rendering included template at 
> location
> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
>
> I did make some changes to a couple of .ftl files, specifically 
> orderitems.ftl and ordershippinginfo.ftl I made copies of each prior 
> to making the changes and changed back to the original file upon 
> getting the above error message.
> However, I'm still receiving the message.
> I would like to learn how to troubleshoot these errors. Any pointers 
> would be greatly appreciated.
>
> From the output I gather the code is unable to reference the Catalog 
> ID when trying to render both editorderitems.ftl and 
> appendorderitem.ftl. The offended code is actually on line 40 in 
> appendorderitem.ftl. How would I backtrack from here?
>
> Thanks much, Case
>
>
> Case Torres
> case@casetorrestech.com
>
>
>


Re: error message when click on "Edit Items"

Posted by Scott Gray <le...@gmail.com>.
The problem appears to be that you don't have any catalogs set up, but also
the screen shouldn't crash even if that is the case so I've fixed it in rev.
602008.

In future please mention what version of OFBiz your are using, this had
already been fixed in the trunk so it took me longer to figure out why you
were having a problem.

Regards
Scott

On 07/12/2007, Case Torres <Ca...@casetorrestech.com> wrote:
>
> Hi,
>
> I'm seeking help in troubleshooting this error.
>
> Upon creating an order (consisting of a variant product, not sure this
> makes
> a difference) and then clicking on "Edit Items" in the "Order Items"
> section
> of the screen, I'm getting the following error message:
>
>
> org.ofbiz.base.util.GeneralException: Error rendering screen
> [component://order/widget/ordermgr/OrderViewScreens.xml#OrderItemEdit]:
> org.ofbiz.base.util.GeneralException: Error rendering screen
>
> [component://order/widget/ordermgr/OrderViewScreens.xml#CommonOrderViewDecor
> ator]: org.ofbiz.base.util.GeneralException: Error rendering screen
> [component://order/widget/ordermgr/CommonScreens.xml#main-decorator]:
> org.ofbiz.base.util.GeneralException: Error rendering screen
> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
> java.lang.RuntimeException: Error rendering included template at location
> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
> freemarker.core.InvalidReferenceException: Expression
> Static["org.ofbiz.product.catalog.CatalogWorker
> "].getCurrentCatalogId(reques
> t) is undefined on line 40, column 66 in
> component://order/webapp/ordermgr/order/appendorderitem.ftl. (Error
> rendering included template at location
> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
> freemarker.core.InvalidReferenceException: Expression
> Static["org.ofbiz.product.catalog.CatalogWorker
> "].getCurrentCatalogId(reques
> t) is undefined on line 40, column 66 in
> component://order/webapp/ordermgr/order/appendorderitem.ftl.) (Error
> rendering screen
> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
> java.lang.RuntimeException: Error rendering included template at location
> [component://order/webapp/ordermgr/order/appendorderitem.ftl]:
>
> I did make some changes to a couple of .ftl files, specifically
> orderitems.ftl and ordershippinginfo.ftl
> I made copies of each prior to making the changes and changed back to the
> original file upon getting the above error message.
> However, I'm still receiving the message.
> I would like to learn how to troubleshoot these errors. Any pointers would
> be greatly appreciated.
>
> From the output I gather the code is unable to reference the Catalog ID
> when
> trying to render both editorderitems.ftl and appendorderitem.ftl. The
> offended code is actually on line 40 in appendorderitem.ftl. How would I
> backtrack from here?
>
> Thanks much, Case
>
>
> Case Torres
> case@casetorrestech.com
>
>
>