You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by AnandM <an...@hytechpro.com> on 2008/06/18 09:38:31 UTC

Service [ofbGcPurchase] threw an unexpected exception/error

Hi every one, when i start POS with "java -jar ofbiz.jar -pos" ,pos started
but it is throwing errror below and not able to run sync.Sometimes this
error description includes one more statement that "User authorization is
required for this service." Due to this reason i am not able to find that
sync is happened or not.

---- exception report
----------------------------------------------------------
Service [ofbGcPurchase] threw an unexpected exception/error
Exception: org.ofbiz.service.GenericServiceException
Message: Service target threw an unexpected exception (null)
---- stack trace
---------------------------------------------------------------
org.ofbiz.service.GenericServiceException: Service target threw an
unexpected exception (null)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:108)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
org.ofbiz.accounting.payment.GiftCertificateServices.giftCertificatePurchase(GiftCertificateServices.java:704)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:96)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
java.lang.Thread.run(Unknown Source)
--------------------------------------------------------------------------------

2008-06-18 13:16:23,015 (default-invoker-Thread-12) [   
TransactionUtil.java:275:ERROR]
---- exception report
----------------------------------------------------------
[TransactionUtil.rollback]
Exception: java.lang.Exception
Message: Stack Trace
---- stack trace
---------------------------------------------------------------
java.lang.Exception: Stack Trace
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:274)
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:256)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:503)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
java.lang.Thread.run(Unknown Source)
-- 
View this message in context: http://www.nabble.com/Service--ofbGcPurchase--threw-an-unexpected-exception-error-tp17961350p17961350.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


RE: Service [ofbGcPurchase] threw an unexpected exception/error

Posted by AnandM <an...@hytechpro.com>.
Thanks Christopher, now i got some insight to this error.Is it possible to
remove or disable buying gift certificates in POS to remove this error
through configuration in some where. thanks in advance


Christopher L wrote:
> 
> IIRC, this is due to your buying gift certificates in the POS, but not
> having a gift card processor set up.  It might not be a bad idea for us to
> not have so many gift cards available in the POS and also not have them
> dominate the center of the screen in the POS.  Everyone seems to run into
> this issue when they start using the POS.
> 
> C
> 
>> Date: Wed, 18 Jun 2008 12:53:12 -0700
>> From: bjfree@free-man.net
>> To: user@ofbiz.apache.org
>> Subject: Re: Service [ofbGcPurchase] threw an unexpected exception/error
>> 
>> java.lang.NullPointerException
>> org.ofbiz.accounting.payment.GiftCertificateServices.giftCertificatePurchase(GiftCertificateServices.java:704)
>> take a look at this error.
>> 
>> AnandM sent the following on 6/18/2008 12:38 AM:
>> > Hi every one, when i start POS with "java -jar ofbiz.jar -pos" ,pos
>> started
>> > but it is throwing errror below and not able to run sync.Sometimes this
>> > error description includes one more statement that "User authorization
>> is
>> > required for this service." Due to this reason i am not able to find
>> that
>> > sync is happened or not.
>> > 
>> > ---- exception report
>> > ----------------------------------------------------------
>> > Service [ofbGcPurchase] threw an unexpected exception/error
>> > Exception: org.ofbiz.service.GenericServiceException
>> > Message: Service target threw an unexpected exception (null)
>> > ---- stack trace
>> > ---------------------------------------------------------------
>> > org.ofbiz.service.GenericServiceException: Service target threw an
>> > unexpected exception (null)
>> >
>> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:108)
>> >
>> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
>> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
>> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>> > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
>> > org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
>> > org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
>> > java.lang.Thread.run(Unknown Source)
>> > java.lang.NullPointerException
>> >
>> org.ofbiz.accounting.payment.GiftCertificateServices.giftCertificatePurchase(GiftCertificateServices.java:704)
>> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> > sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> > java.lang.reflect.Method.invoke(Unknown Source)
>> >
>> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:96)
>> >
>> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
>> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
>> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>> > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
>> > org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
>> > org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
>> > java.lang.Thread.run(Unknown Source)
>> >
>> --------------------------------------------------------------------------------
>> > 
>> > 2008-06-18 13:16:23,015 (default-invoker-Thread-12) [   
>> > TransactionUtil.java:275:ERROR]
>> > ---- exception report
>> > ----------------------------------------------------------
>> > [TransactionUtil.rollback]
>> > Exception: java.lang.Exception
>> > Message: Stack Trace
>> > ---- stack trace
>> > ---------------------------------------------------------------
>> > java.lang.Exception: Stack Trace
>> >
>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:274)
>> >
>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:256)
>> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:503)
>> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>> > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
>> > org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
>> > org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
>> > java.lang.Thread.run(Unknown Source)
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Service--ofbGcPurchase--threw-an-unexpected-exception-error-tp17961350p17997733.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


RE: Service [ofbGcPurchase] threw an unexpected exception/error

Posted by Christopher L <cl...@hotmail.com>.
IIRC, this is due to your buying gift certificates in the POS, but not having a gift card processor set up.  It might not be a bad idea for us to not have so many gift cards available in the POS and also not have them dominate the center of the screen in the POS.  Everyone seems to run into this issue when they start using the POS.

C

> Date: Wed, 18 Jun 2008 12:53:12 -0700
> From: bjfree@free-man.net
> To: user@ofbiz.apache.org
> Subject: Re: Service [ofbGcPurchase] threw an unexpected exception/error
> 
> java.lang.NullPointerException
> org.ofbiz.accounting.payment.GiftCertificateServices.giftCertificatePurchase(GiftCertificateServices.java:704)
> take a look at this error.
> 
> AnandM sent the following on 6/18/2008 12:38 AM:
> > Hi every one, when i start POS with "java -jar ofbiz.jar -pos" ,pos started
> > but it is throwing errror below and not able to run sync.Sometimes this
> > error description includes one more statement that "User authorization is
> > required for this service." Due to this reason i am not able to find that
> > sync is happened or not.
> > 
> > ---- exception report
> > ----------------------------------------------------------
> > Service [ofbGcPurchase] threw an unexpected exception/error
> > Exception: org.ofbiz.service.GenericServiceException
> > Message: Service target threw an unexpected exception (null)
> > ---- stack trace
> > ---------------------------------------------------------------
> > org.ofbiz.service.GenericServiceException: Service target threw an
> > unexpected exception (null)
> > org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:108)
> > org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
> > org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
> > org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
> > java.lang.Thread.run(Unknown Source)
> > java.lang.NullPointerException
> > org.ofbiz.accounting.payment.GiftCertificateServices.giftCertificatePurchase(GiftCertificateServices.java:704)
> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > java.lang.reflect.Method.invoke(Unknown Source)
> > org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:96)
> > org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
> > org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
> > org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
> > java.lang.Thread.run(Unknown Source)
> > --------------------------------------------------------------------------------
> > 
> > 2008-06-18 13:16:23,015 (default-invoker-Thread-12) [   
> > TransactionUtil.java:275:ERROR]
> > ---- exception report
> > ----------------------------------------------------------
> > [TransactionUtil.rollback]
> > Exception: java.lang.Exception
> > Message: Stack Trace
> > ---- stack trace
> > ---------------------------------------------------------------
> > java.lang.Exception: Stack Trace
> > org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:274)
> > org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:256)
> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:503)
> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
> > org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
> > org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
> > java.lang.Thread.run(Unknown Source)
> 

Re: Service [ofbGcPurchase] threw an unexpected exception/error

Posted by BJ Freeman <bj...@free-man.net>.
java.lang.NullPointerException
org.ofbiz.accounting.payment.GiftCertificateServices.giftCertificatePurchase(GiftCertificateServices.java:704)
take a look at this error.

AnandM sent the following on 6/18/2008 12:38 AM:
> Hi every one, when i start POS with "java -jar ofbiz.jar -pos" ,pos started
> but it is throwing errror below and not able to run sync.Sometimes this
> error description includes one more statement that "User authorization is
> required for this service." Due to this reason i am not able to find that
> sync is happened or not.
> 
> ---- exception report
> ----------------------------------------------------------
> Service [ofbGcPurchase] threw an unexpected exception/error
> Exception: org.ofbiz.service.GenericServiceException
> Message: Service target threw an unexpected exception (null)
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: Service target threw an
> unexpected exception (null)
> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:108)
> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
> org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
> org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
> java.lang.Thread.run(Unknown Source)
> java.lang.NullPointerException
> org.ofbiz.accounting.payment.GiftCertificateServices.giftCertificatePurchase(GiftCertificateServices.java:704)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:96)
> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
> org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
> org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
> java.lang.Thread.run(Unknown Source)
> --------------------------------------------------------------------------------
> 
> 2008-06-18 13:16:23,015 (default-invoker-Thread-12) [   
> TransactionUtil.java:275:ERROR]
> ---- exception report
> ----------------------------------------------------------
> [TransactionUtil.rollback]
> Exception: java.lang.Exception
> Message: Stack Trace
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.Exception: Stack Trace
> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:274)
> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:256)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:503)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
> org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69)
> org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:240)
> java.lang.Thread.run(Unknown Source)