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 [hidden email] |
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 > [hidden email] > > > |
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 >> [hidden email] >> >> >> > > > |
In reply to this post by CaseT
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 <[hidden email]> 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 > [hidden email] > > > |
In reply to this post by BJ Freeman
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 [hidden email] -----Original Message----- From: BJ Freeman [mailto:[hidden email]] Sent: Thursday, December 06, 2007 10:30 PM To: [hidden email] 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 >> >> >> 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 >> [hidden email] >> >> >> > > > |
In reply to this post by Scott Gray
Scott,
I just downloaded the updates and the problem disappeared! Thanks!! Case Torres [hidden email] -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: Thursday, December 06, 2007 11:05 PM To: [hidden email]; [hidden email] 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 <[hidden email]> 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 > [hidden email] > > > |
In reply to this post by CaseT
Ok, so perhaps I spoke to soon.
Now the screen is rendered but, when I "Add to Order" I receive the following error message at the top of the screen: The Following Errors Occurred: The following required parameter is missing: [appendOrderItem.prodCatalogId] There is indeed a catalog and in the "Order Items" section of the screen I can click on the "Catalog" link and I'm taken to the catalog. Any other ideas? Thanks, Case Torres [hidden email] -----Original Message----- From: Case Torres [mailto:[hidden email]] Sent: Friday, December 07, 2007 11:55 AM To: '[hidden email]' Subject: RE: error message when click on "Edit Items" Scott, I just downloaded the updates and the problem disappeared! Thanks!! Case Torres [hidden email] -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: Thursday, December 06, 2007 11:05 PM To: [hidden email]; [hidden email] 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 <[hidden email]> 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 > [hidden email] > > > |
In reply to this post by Scott Gray
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 [hidden email] -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: Thursday, December 06, 2007 11:05 PM To: [hidden email]; [hidden email] 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 <[hidden email]> 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 > [hidden email] > > > |
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 > [hidden email] > > > -----Original Message----- > From: Scott Gray [mailto:[hidden email]] > Sent: Thursday, December 06, 2007 11:05 PM > To: [hidden email]; [hidden email] > 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 <[hidden email]> 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 >> [hidden email] >> >> >> > > > > |
In reply to this post by CaseT
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 |
In reply to this post by BJ Freeman
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 [hidden email] -----Original Message----- From: BJ Freeman [mailto:[hidden email]] Sent: Friday, December 07, 2007 2:15 PM To: [hidden email] 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 > [hidden email] > > > -----Original Message----- > From: Scott Gray [mailto:[hidden email]] > Sent: Thursday, December 06, 2007 11:05 PM > To: [hidden email]; [hidden email] > 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 > 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 <[hidden email]> 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 >> [hidden email] >> >> >> > > > > |
In reply to this post by Bilgin Ibryam
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 [hidden email] -----Original Message----- From: Bilgin Ibryam [mailto:[hidden email]] Sent: Friday, December 07, 2007 2:57 PM To: [hidden email] 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. |
In reply to this post by CaseT
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 > [hidden email] > > > -----Original Message----- > From: BJ Freeman [mailto:[hidden email]] > Sent: Friday, December 07, 2007 2:15 PM > To: [hidden email] > 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 >> [hidden email] >> >> >> -----Original Message----- >> From: Scott Gray [mailto:[hidden email]] >> Sent: Thursday, December 06, 2007 11:05 PM >> To: [hidden email]; [hidden email] >> 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 <[hidden email]> 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 >>> [hidden email] >>> >>> >>> >> >> >> > > > > |
In reply to this post by CaseT
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 |
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
|
Free forum by Nabble | Edit this page |