You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Ravi Subramanian <rs...@spikesource.com> on 2008/01/28 07:31:40 UTC

POS screen "ITEM MODIFICATION ERROR"

Hi,
I am trying to use the POS in ofbiz. I am using the localderby database
and running it in ubuntu 7.10.

After i start the POS and give username/password as 1/1 and then open
the manager to give some starting amount i am taken to the list of
products. When i click on any of them i get an alert saying "ITEM
MODIFICATION ERROR". After this the POS screen freezes and i am not able
to do anything.

The log shows the following

---- exception report
----------------------------------------------------------
Exception: org.ofbiz.order.shoppingcart.CartItemModifyException
Message: Could not find a valid price for the product with ID [GZ-2644],
not adding to cart.
---- stack trace
---------------------------------------------------------------
org.ofbiz.order.shoppingcart.CartItemModifyException: Could not find a
valid price for the product with ID [GZ-2644], not adding to cart.
org.ofbiz.order.shoppingcart.ShoppingCartItem.updatePrice(ShoppingCartItem.java:1058)
org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:934)
org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:776)
org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:771)
org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:766)
org.ofbiz.order.shoppingcart.ShoppingCart.removeCartItem(ShoppingCart.java:788)
org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:520)
org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:322)
org.ofbiz.order.shoppingcart.ShoppingCart.addOrIncreaseItem(ShoppingCart.java:490)
org.ofbiz.pos.PosTransaction.addItem(PosTransaction.java:356)
org.ofbiz.pos.event.MenuEvents.addItem(MenuEvents.java:182)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:205)
org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
java.lang.Thread.run(Thread.java:619)
--------------------------------------------------------------------------------

Someone help me on this please.

Thanks,
Ravi.


Re: POS screen "ITEM MODIFICATION ERROR"

Posted by Jacques Le Roux <ja...@les7arts.com>.
Ravi,

Yes this is known bug on Linux https://issues.apache.org/jira/browse/OFBIZ-567. You may find interesting informations reading this 
comments in this issue.
We have not found a complete solution for this yet...

Jacques

From: "Ravi Subramanian" <rs...@spikesource.com>
> Hi Bilgin & Jacques,
>
> I am using the latest version of the trunk.
>
> The screen is not freezed actually. The alert window is not getting
> closed when we close it using the mouse. That just goes into the
> background and thus we are not able to use the POS application. Once i
> close the window using alt+f4 it works. But still the ITEM MODIFICATION
> ERROR comes. I m not able to use the application.
>
> I tried using POS after setting UseWindow=false. Once i set that option
> and key in the username for each character that i enter it is taking the
> input twice. For ex, i key in '1' once and it is entered as '11' in the
> input.
>
> Thanks,
> Ravi.
>
> On Mon, 2008-01-28 at 12:26 +0200, Bilgin Ibryam wrote:
>> Hi Ravi,
>>
>> in latest trunk version it works fine w/o any errors.
>> May be you changed the product or product store currencies ?
>>
>> In any case when using POS on Linux you can set UseWindow=false in
>> xpos.properties file. This should solve the problem with freezing
>> screen.
>>
>> Regards,
>> Bilgin
>>
>
> 


Re: POS screen "ITEM MODIFICATION ERROR"

Posted by Ravi Subramanian <rs...@spikesource.com>.
Hi Bilgin & Jacques,

I am using the latest version of the trunk.

The screen is not freezed actually. The alert window is not getting
closed when we close it using the mouse. That just goes into the
background and thus we are not able to use the POS application. Once i
close the window using alt+f4 it works. But still the ITEM MODIFICATION
ERROR comes. I m not able to use the application.
 
I tried using POS after setting UseWindow=false. Once i set that option
and key in the username for each character that i enter it is taking the
input twice. For ex, i key in '1' once and it is entered as '11' in the
input. 

Thanks,
Ravi.

On Mon, 2008-01-28 at 12:26 +0200, Bilgin Ibryam wrote:
> Hi Ravi,
> 
> in latest trunk version it works fine w/o any errors.
> May be you changed the product or product store currencies ?
> 
> In any case when using POS on Linux you can set UseWindow=false in
> xpos.properties file. This should solve the problem with freezing
> screen.
> 
> Regards,
> Bilgin
> 


Re: POS screen "ITEM MODIFICATION ERROR"

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

in latest trunk version it works fine w/o any errors.
May be you changed the product or product store currencies ?

In any case when using POS on Linux you can set UseWindow=false in
xpos.properties file. This should solve the problem with freezing
screen.

Regards,
Bilgin


Re: POS screen "ITEM MODIFICATION ERROR"

Posted by Jacques Le Roux <ja...@les7arts.com>.
I have no problems with last trunk version (615722) with a PostGres DB, which version are you using ?

Jacques
PS : here is the log I get (The TRACE thing is because I use debug version of XUI.jar files)

2008-01-28 11:24:51,562 (Thread-476) [  Log4jLoggerWriter.java:67 :INFO ] [POS @ pos-1 TX:10300] - is Aggregated Item(GZ-2644)
2008-01-28 11:24:51,578 (Thread-476) [  Log4jLoggerWriter.java:67 :INFO ] [POS @ pos-1 TX:10300] - add item(GZ-2644/1.0)
2008-01-28 11:24:51,656 (Thread-476) [ ProductStoreWorker.java:484:INFO ] getSurvey for product GZ-2644
2008-01-28 11:24:51,968 (Thread-476) [TaxAuthorityServices.java:313:WARN ] In TaxAuthority Product Rate no records were found for
condition:((productStoreId = '9100' OR productStoreId IS NULL) AND ((taxAuthPa
rtyId = '_NA_' AND taxAuthGeoId = '_NA_') OR (taxAuthPartyId = 'USA_IRS' AND taxAuthGeoId = 'USA') OR (taxAuthPartyId = 'NY_DTF' AND
taxAuthGeoId = 'NY')) AND (productCategoryId IS NULL OR productCategoryId I
N ( 'TSTCSL', 'PROMOTIONS', 'CATALOG1_SEARCH', 'CATALOG1_QUICKADD1', '101', '100' )) AND (minItemPrice IS NULL OR minItemPrice <=
'38.39999999999999857891452847979962825775146484375') AND (minPurchase IS NULL
 OR minPurchase <= '38.39999999999999857891452847979962825775146484375'))
2008-01-28 11:24:51,968 (Thread-476) [     CheckOutHelper.java:767:INFO ] Added item adjustments to ship group [0 / 0] - []
Mon Jan 28 11:24:51 CET 2008 TRACE: ==> get( table, items ) :
Mon Jan 28 11:24:51 CET 2008 TRACE: header=
Mon Jan 28 11:24:51 CET 2008 TRACE: sku=SKU
Mon Jan 28 11:24:51 CET 2008 TRACE: desc=ITEM
Mon Jan 28 11:24:51 CET 2008 TRACE: qty=QTY
Mon Jan 28 11:24:51 CET 2008 TRACE: price=AMT
Mon Jan 28 11:24:51 CET 2008 TRACE: 0=
Mon Jan 28 11:24:51 CET 2008 TRACE: sku=GZ-2644
Mon Jan 28 11:24:52 CET 2008 TRACE: desc=Round Gizmo
Mon Jan 28 11:24:52 CET 2008 TRACE: qty=1
Mon Jan 28 11:24:52 CET 2008 TRACE: price=38.40
Mon Jan 28 11:24:52 CET 2008 TRACE: index=0
2008-01-28 11:24:52,812 (Thread-476) [  Log4jLoggerWriter.java:67 :INFO ] [POS @ pos-1 TX:10300] - is Aggregated Item(GZ-2644)
Mon Jan 28 11:24:52 CET 2008 TRACE: emptyrow=
Mon Jan 28 11:24:52 CET 2008 TRACE: sku=
Mon Jan 28 11:24:52 CET 2008 TRACE: desc=
Mon Jan 28 11:24:52 CET 2008 TRACE: qty=
Mon Jan 28 11:24:52 CET 2008 TRACE: price=
Mon Jan 28 11:24:52 CET 2008 TRACE: tax=
Mon Jan 28 11:24:52 CET 2008 TRACE: sku=
Mon Jan 28 11:24:52 CET 2008 TRACE: desc=Sales Tax
Mon Jan 28 11:24:52 CET 2008 TRACE: qty=
Mon Jan 28 11:24:52 CET 2008 TRACE: price=0.00
Mon Jan 28 11:24:52 CET 2008 TRACE: index=-1
Mon Jan 28 11:24:52 CET 2008 TRACE: total=
Mon Jan 28 11:24:52 CET 2008 TRACE: sku=
Mon Jan 28 11:24:52 CET 2008 TRACE: desc=Grand Total
Mon Jan 28 11:24:52 CET 2008 TRACE: qty=
Mon Jan 28 11:24:52 CET 2008 TRACE: price=38.40
Mon Jan 28 11:24:52 CET 2008 TRACE: index=-1

From: "Ravi Subramanian" <rs...@spikesource.com>
> Hi,
> I am trying to use the POS in ofbiz. I am using the localderby database
> and running it in ubuntu 7.10.
>
> After i start the POS and give username/password as 1/1 and then open
> the manager to give some starting amount i am taken to the list of
> products. When i click on any of them i get an alert saying "ITEM
> MODIFICATION ERROR". After this the POS screen freezes and i am not able
> to do anything.
>
> The log shows the following
>
> ---- exception report
> ----------------------------------------------------------
> Exception: org.ofbiz.order.shoppingcart.CartItemModifyException
> Message: Could not find a valid price for the product with ID [GZ-2644],
> not adding to cart.
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.order.shoppingcart.CartItemModifyException: Could not find a
> valid price for the product with ID [GZ-2644], not adding to cart.
> org.ofbiz.order.shoppingcart.ShoppingCartItem.updatePrice(ShoppingCartItem.java:1058)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:934)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:776)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:771)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:766)
> org.ofbiz.order.shoppingcart.ShoppingCart.removeCartItem(ShoppingCart.java:788)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:520)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:322)
> org.ofbiz.order.shoppingcart.ShoppingCart.addOrIncreaseItem(ShoppingCart.java:490)
> org.ofbiz.pos.PosTransaction.addItem(PosTransaction.java:356)
> org.ofbiz.pos.event.MenuEvents.addItem(MenuEvents.java:182)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
> org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:205)
> org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:105)
> org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:120)
> net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source)
> java.lang.Thread.run(Thread.java:619)
> --------------------------------------------------------------------------------
>
> Someone help me on this please.
>
> Thanks,
> Ravi.
>