Page 1 of 1

Exception while redirecting to paypal after registeration

Posted: Wed Jan 08, 2014 7:57 am
by luky
Hi,
I am getting the following exception when i try to register a customer and redirect him to the paypal url after successful registration. The registration details are saved to a table in database and page gets redirected and this is where the exception is thrown.

Stacktrace:

Code: Select all

[artifact:mvn] Hibernate: select customerim0_.CUSTOMER_ID as CUSTOMER1_33_9_, customerim0_.ADDRESS as ADDRESS33_9_, customerim0_.CREATED_BY as CREATED3_33_9_, customerim0_.DATE_CREATED as DATE4_33_9_, customerim0_.DATE_UPDATED as DATE5_33_9_, customerim0_.UPDATED_BY as UPDATED6_33_9_, customerim0_.CHALLENGE_ANSWER as CHALLENGE7_33_9_, customerim0_.CHALLENGE_QUESTION_ID as CHALLENGE23_33_9_, customerim0_.city as city33_9_, customerim0_.COMPANY_NAME as COMPANY8_33_9_, customerim0_.CORPORATE_ID as CORPORATE25_33_9_, customerim0_.country as country33_9_, customerim0_.LOCALE_CODE as LOCALE27_33_9_, customerim0_.CUSTOMER_PHONE as CUSTOMER9_33_9_, customerim0_.CUST_TYPE as CUST10_33_9_, customerim0_.DEACTIVATED as DEACTIV11_33_9_, customerim0_.EMAIL_ADDRESS as EMAIL12_33_9_, customerim0_.FIRST_NAME as FIRST13_33_9_, customerim0_.LAST_NAME as LAST14_33_9_, customerim0_.PASSWORD as PASSWORD33_9_, customerim0_.PASSWORD_CHANGE_REQUIRED as PASSWORD16_33_9_, customerim0_.RECEIVE_EMAIL as RECEIVE17_33_9_, customerim0_.IS_REGISTERED as IS18_33_9_, customerim0_.REGISTRATION_STEP as REGISTR19_33_9_, customerim0_.state as state33_9_, customerim0_.TAX_EXEMPTION_CODE as TAX20_33_9_, customerim0_.USER_NAME as USER21_33_9_, customerim0_.ZIPCODE as ZIPCODE33_9_, challengeq1_.QUESTION_ID as QUESTION1_29_0_, challengeq1_.QUESTION as QUESTION29_0_, citycodeim2_.blc_city_id as blc1_190_1_, citycodeim2_.city_name as city2_190_1_, citycodeim2_.country_id as country8_190_1_, citycodeim2_.created_by as created3_190_1_, citycodeim2_.created_date as created4_190_1_, citycodeim2_.is_active as is5_190_1_, citycodeim2_.modified_by as modified6_190_1_, citycodeim2_.modified_date as modified7_190_1_, citycodeim2_.state_id as state9_190_1_, countrycod3_.blc_country_id as blc1_193_2_, countrycod3_.country_name as country2_193_2_, countrycod3_.created_by as created3_193_2_, countrycod3_.created_date as created4_193_2_, countrycod3_.is_active as is5_193_2_, countrycod3_.modified_by as modified6_193_2_, countrycod3_.modified_date as modified7_193_2_, statecodei4_.blc_state_id as blc1_194_3_, statecodei4_.country_id as country8_194_3_, statecodei4_.created_by as created2_194_3_, statecodei4_.created_date as created3_194_3_, statecodei4_.is_active as is4_194_3_, statecodei4_.modified_by as modified5_194_3_, statecodei4_.modified_date as modified6_194_3_, statecodei4_.state_name as state7_194_3_, countrycod5_.blc_country_id as blc1_193_4_, countrycod5_.country_name as country2_193_4_, countrycod5_.created_by as created3_193_4_, countrycod5_.created_date as created4_193_4_, countrycod5_.is_active as is5_193_4_, countrycod5_.modified_by as modified6_193_4_, countrycod5_.modified_date as modified7_193_4_, localeimpl6_.LOCALE_CODE as LOCALE1_77_5_, localeimpl6_.CURRENCY_CODE as CURRENCY5_77_5_, localeimpl6_.DEFAULT_FLAG as DEFAULT2_77_5_, localeimpl6_.FRIENDLY_NAME as FRIENDLY3_77_5_, localeimpl6_.USE_IN_SEARCH_INDEX as USE4_77_5_, broadleafc7_.CURRENCY_CODE as CURRENCY1_32_6_, broadleafc7_.DEFAULT_FLAG as DEFAULT2_32_6_, broadleafc7_.FRIENDLY_NAME as FRIENDLY3_32_6_, statecodei8_.blc_state_id as blc1_194_7_, statecodei8_.country_id as country8_194_7_, statecodei8_.created_by as created2_194_7_, statecodei8_.created_date as created3_194_7_, statecodei8_.is_active as is4_194_7_, statecodei8_.modified_by as modified5_194_7_, statecodei8_.modified_date as modified6_194_7_, statecodei8_.state_name as state7_194_7_, countrycod9_.blc_country_id as blc1_193_8_, countrycod9_.country_name as country2_193_8_, countrycod9_.created_by as created3_193_8_, countrycod9_.created_date as created4_193_8_, countrycod9_.is_active as is5_193_8_, countrycod9_.modified_by as modified6_193_8_, countrycod9_.modified_date as modified7_193_8_ from BLC_CUSTOMER customerim0_ left outer join BLC_CHALLENGE_QUESTION challengeq1_ on customerim0_.CHALLENGE_QUESTION_ID=challengeq1_.QUESTION_ID left outer join blc_city_code citycodeim2_ on customerim0_.city=citycodeim2_.blc_city_id left outer join blc_country_code countrycod3_ on citycodeim2_.country_id=countrycod3_.blc_country_id left outer join blc_state_code statecodei4_ on citycodeim2_.state_id=statecodei4_.blc_state_id inner join blc_country_code countrycod5_ on customerim0_.country=countrycod5_.blc_country_id left outer join BLC_LOCALE localeimpl6_ on customerim0_.LOCALE_CODE=localeimpl6_.LOCALE_CODE left outer join BLC_CURRENCY broadleafc7_ on localeimpl6_.CURRENCY_CODE=broadleafc7_.CURRENCY_CODE left outer join blc_state_code statecodei8_ on customerim0_.state=statecodei8_.blc_state_id left outer join blc_country_code countrycod9_ on statecodei8_.country_id=countrycod9_.blc_country_id where customerim0_.CUSTOMER_ID=?
[artifact:mvn] org.broadleafcommerce.core.payment.service.exception.PaymentException: CompositePaymentServiceImpl75 - Unable to execute payment for order -- id: null
[artifact:mvn]    at org.broadleafcommerce.core.payment.service.CompositePaymentServiceImpl.executePayment(CompositePaymentServiceImpl.java:77)
[artifact:mvn]    at org.broadleafcommerce.core.payment.service.CompositePaymentServiceImpl.executePayment(CompositePaymentServiceImpl.java:82)
[artifact:mvn]    at org.broadleafcommerce.core.payment.service.CompositePaymentServiceImpl.executePaymentForGateway(CompositePaymentServiceImpl.java:105)
[artifact:mvn]    at org.broadleafcommerce.vendor.paypal.service.payment.PayPalCheckoutServiceImpl.initiateExpressCheckout(PayPalCheckoutServiceImpl.java:89)
[artifact:mvn]    at com.siggitt.controller.checkout.UpdateBroadleafPayPalController.paypalCheckout(UpdateBroadleafPayPalController.java:117)
[artifact:mvn]    at com.siggitt.controller.checkout.PayPalController.paypalCheckout(PayPalController.java:21)
[artifact:mvn]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[artifact:mvn]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[artifact:mvn]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[artifact:mvn]    at java.lang.reflect.Method.invoke(Method.java:601)
[artifact:mvn]    at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)
[artifact:mvn]    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
[artifact:mvn]    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
[artifact:mvn]    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)
[artifact:mvn]    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)
[artifact:mvn]    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
[artifact:mvn]    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
[artifact:mvn]    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
[artifact:mvn]    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
[artifact:mvn]    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
[artifact:mvn]    at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
[artifact:mvn]    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
[artifact:mvn]    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
[artifact:mvn]    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:643)
[artifact:mvn]    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
[artifact:mvn]    at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:179)
[artifact:mvn]    at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:241)
[artifact:mvn]    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1302)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
[artifact:mvn]    at org.broadleafcommerce.core.web.order.security.CartStateFilter.doFilter(CartStateFilter.java:57)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.broadleafcommerce.common.web.filter.TranslationFilter.doFilter(TranslationFilter.java:48)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.broadleafcommerce.cms.web.URLHandlerFilter.doFilterInternal(URLHandlerFilter.java:71)
[artifact:mvn]    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:166)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
[artifact:mvn]    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.broadleafcommerce.profile.web.core.security.SessionFixationProtectionFilter.doFilter(SessionFixationProtectionFilter.java:95)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.broadleafcommerce.profile.web.core.security.CustomerStateFilter.doFilter(CustomerStateFilter.java:53)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:144)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
[artifact:mvn]    at org.broadleafcommerce.common.web.BroadleafRequestFilter.doFilterInternal(BroadleafRequestFilter.java:97)
[artifact:mvn]    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:180)
[artifact:mvn]    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:166)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
[artifact:mvn]    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
[artifact:mvn]    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
[artifact:mvn]    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1302)
[artifact:mvn]    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:448)
[artifact:mvn]    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)
[artifact:mvn]    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
[artifact:mvn]    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
[artifact:mvn]    at org.eclipse.jetty.server.handler.ContextHandler.__doHandle(ContextHandler.java:1067)
[artifact:mvn]    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java)
[artifact:mvn]    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:377)
[artifact:mvn]    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
[artifact:mvn]    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1001)
[artifact:mvn]    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)
[artifact:mvn]    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
[artifact:mvn]    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
[artifact:mvn]    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
[artifact:mvn]    at org.eclipse.jetty.server.Server.handle(Server.java:360)
[artifact:mvn]    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
[artifact:mvn]    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890)
[artifact:mvn]    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944)
[artifact:mvn]    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630)
[artifact:mvn]    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
[artifact:mvn]    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
[artifact:mvn]    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:622)
[artifact:mvn]    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
[artifact:mvn]    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
[artifact:mvn]    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
[artifact:mvn]    at java.lang.Thread.run(Thread.java:722)
[artifact:mvn] Caused by: org.broadleafcommerce.core.workflow.WorkflowException: org.broadleafcommerce.core.workflow.WorkflowException: javax.persistence.EntityNotFoundException: Unable to find org.broadleafcommerce.profile.core.domain.CustomerImpl with id 253108
[artifact:mvn]    at org.broadleafcommerce.core.workflow.DefaultErrorHandler.handleError(DefaultErrorHandler.java:57)
[artifact:mvn]    at org.broadleafcommerce.core.workflow.SequenceProcessor.doActivities(SequenceProcessor.java:88)
[artifact:mvn]    at org.broadleafcommerce.core.payment.service.CompositePaymentServiceImpl.executePayment(CompositePaymentServiceImpl.java:62)
[artifact:mvn]    ... 102 more
[artifact:mvn] Caused by: org.broadleafcommerce.core.workflow.WorkflowException: javax.persistence.EntityNotFoundException: Unable to find org.broadleafcommerce.profile.core.domain.CustomerImpl with id 253108
[artifact:mvn]    at org.broadleafcommerce.core.workflow.DefaultErrorHandler.handleError(DefaultErrorHandler.java:57)
[artifact:mvn]    at org.broadleafcommerce.core.workflow.SequenceProcessor.doActivities(SequenceProcessor.java:88)
[artifact:mvn]    at org.broadleafcommerce.core.payment.service.workflow.CompositeActivity.execute(CompositeActivity.java:36)
[artifact:mvn]    at org.broadleafcommerce.core.payment.service.workflow.CompositeActivity.execute(CompositeActivity.java:23)
[artifact:mvn]    at org.broadleafcommerce.core.workflow.SequenceProcessor.doActivities(SequenceProcessor.java:79)
[artifact:mvn]    ... 103 more
[artifact:mvn] Caused by: javax.persistence.EntityNotFoundException: Unable to find org.broadleafcommerce.profile.core.domain.CustomerImpl with id 253108
[artifact:mvn]    at org.hibernate.ejb.Ejb3Configuration$Ejb3EntityNotFoundDelegate.handleEntityNotFound(Ejb3Configuration.java:155)
[artifact:mvn]    at org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:210)
[artifact:mvn]    at org.hibernate.event.internal.DefaultLoadEventListener.returnNarrowedProxy(DefaultLoadEventListener.java:289)
[artifact:mvn]    at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:252)
[artifact:mvn]    at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:148)
[artifact:mvn]    at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1078)
[artifact:mvn]    at org.hibernate.internal.SessionImpl.internalLoad(SessionImpl.java:1005)
[artifact:mvn]    at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:651)
[artifact:mvn]    at org.hibernate.type.EntityType.resolve(EntityType.java:471)
[artifact:mvn]    at org.hibernate.type.EntityType.replace(EntityType.java:328)
[artifact:mvn]    at org.hibernate.type.AbstractType.replace(AbstractType.java:178)
[artifact:mvn]    at org.hibernate.type.TypeHelper.replace(TypeHelper.java:211)
[artifact:mvn]    at org.hibernate.event.internal.DefaultMergeEventListener.copyValues(DefaultMergeEventListener.java:409)
[artifact:mvn]    at org.hibernate.event.internal.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:214)
[artifact:mvn]    at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:154)
[artifact:mvn]    at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:76)
[artifact:mvn]    at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:903)
[artifact:mvn]    at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:887)
[artifact:mvn]    at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:891)
[artifact:mvn]    at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:889)
[artifact:mvn]    at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
[artifact:mvn]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[artifact:mvn]    at java.lang.reflect.Method.invoke(Method.java:601)
[artifact:mvn]    at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:366)
[artifact:mvn]    at $Proxy104.merge(Unknown Source)
[artifact:mvn]    at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
[artifact:mvn]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[artifact:mvn]    at java.lang.reflect.Method.invoke(Method.java:601)
[artifact:mvn]    at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:241)
[artifact:mvn]    at $Proxy104.merge(Unknown Source)
[artifact:mvn]    at org.broadleafcommerce.core.payment.dao.PaymentInfoDaoImpl.save(PaymentInfoDaoImpl.java:47)
[artifact:mvn]    at org.broadleafcommerce.core.payment.service.PaymentInfoServiceImpl.save(PaymentInfoServiceImpl.java:41)
[artifact:mvn]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[artifact:mvn]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[artifact:mvn]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[artifact:mvn]    at java.lang.reflect.Method.invoke(Method.java:601)
[artifact:mvn]    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
[artifact:mvn]    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
[artifact:mvn]    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
[artifact:mvn]    at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
[artifact:mvn]    at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
[artifact:mvn]    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
[artifact:mvn]    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
[artifact:mvn]    at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
[artifact:mvn]    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
[artifact:mvn]    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
[artifact:mvn]    at $Proxy145.save(Unknown Source)
[artifact:mvn]    at org.broadleafcommerce.core.payment.service.PaymentServiceImpl.logResponseItem(PaymentServiceImpl.java:232)
[artifact:mvn]    at org.broadleafcommerce.core.payment.service.PaymentServiceImpl.authorizeAndDebit(PaymentServiceImpl.java:82)
[artifact:mvn]    at org.broadleafcommerce.core.payment.service.workflow.PaymentActivity.execute(PaymentActivity.java:83)
[artifact:mvn]    at org.broadleafcommerce.core.payment.service.workflow.PaymentActivity.execute(PaymentActivity.java:1)
[artifact:mvn]    at org.broadleafcommerce.core.workflow.SequenceProcessor.doActivities(SequenceProcessor.java:79)
[artifact:mvn]    ... 106 more
[artifact:mvn]  Errr***org.broadleafcommerce.core.workflow.WorkflowException: javax.persistence.EntityNotFoundException: Unable to find org.broadleafcommerce.profile.core.domain.CustomerImpl with id 253108
[artifact:mvn] compostpayemtnresponse:--null
[artifact:mvn] 2014-01-08 17:43:24.730:WARN:oejs.ServletHandler:/siggitt/paypal/checkout
[artifact:mvn] java.lang.NullPointerException
[artifact:mvn]    at com.siggitt.controller.checkout.UpdateBroadleafPayPalController.paypalCheckout(UpdateBroadleafPayPalController.java:120)
[artifact:mvn]    at com.siggitt.controller.checkout.PayPalController.paypalCheckout(PayPalController.java:21)
[artifact:mvn]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[artifact:mvn]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[artifact:mvn]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[artifact:mvn]    at java.lang.reflect.Method.invoke(Method.java:601)
[artifact:mvn]    at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)
[artifact:mvn]    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
[artifact:mvn]    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
[artifact:mvn]    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)
[artifact:mvn]    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)
[artifact:mvn]    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
[artifact:mvn]    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
[artifact:mvn]    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
[artifact:mvn]    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
[artifact:mvn]    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
[artifact:mvn]    at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
[artifact:mvn]    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
[artifact:mvn]    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
[artifact:mvn]    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:643)
[artifact:mvn]    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
[artifact:mvn]    at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:179)
[artifact:mvn]    at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:241)
[artifact:mvn]    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1302)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
[artifact:mvn]    at org.broadleafcommerce.core.web.order.security.CartStateFilter.doFilter(CartStateFilter.java:57)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.broadleafcommerce.common.web.filter.TranslationFilter.doFilter(TranslationFilter.java:48)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.broadleafcommerce.cms.web.URLHandlerFilter.doFilterInternal(URLHandlerFilter.java:71)
[artifact:mvn]    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:166)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
[artifact:mvn]    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.broadleafcommerce.profile.web.core.security.SessionFixationProtectionFilter.doFilter(SessionFixationProtectionFilter.java:95)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.broadleafcommerce.profile.web.core.security.CustomerStateFilter.doFilter(CustomerStateFilter.java:53)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:144)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
[artifact:mvn]    at org.broadleafcommerce.common.web.BroadleafRequestFilter.doFilterInternal(BroadleafRequestFilter.java:97)
[artifact:mvn]    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:180)
[artifact:mvn]    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:166)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
[artifact:mvn]    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
[artifact:mvn]    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
[artifact:mvn]    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
[artifact:mvn]    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1302)
[artifact:mvn]    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:448)
[artifact:mvn]    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)
[artifact:mvn]    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
[artifact:mvn]    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
[artifact:mvn]    at org.eclipse.jetty.server.handler.ContextHandler.__doHandle(ContextHandler.java:1067)
[artifact:mvn]    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java)
[artifact:mvn]    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:377)
[artifact:mvn]    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
[artifact:mvn]    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1001)
[artifact:mvn]    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)
[artifact:mvn]    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
[artifact:mvn]    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
[artifact:mvn]    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
[artifact:mvn]    at org.eclipse.jetty.server.Server.handle(Server.java:360)
[artifact:mvn]    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
[artifact:mvn]    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890)
[artifact:mvn]    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944)
[artifact:mvn]    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630)
[artifact:mvn]    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
[artifact:mvn]    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
[artifact:mvn]    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:622)
[artifact:mvn]    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
[artifact:mvn]    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
[artifact:mvn]    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
[artifact:mvn]    at java.lang.Thread.run(Thread.java:722)


Log file:

Code: Select all

2014-01-07 15:01:00,544 INFO   [SequenceProcessor] Automatically rolling back state for any previously registered RollbackHandlers. RollbackHandlers may be registered for workflow activities in appContext.
2014-01-07 15:01:00,544 INFO   [SequenceProcessor] no error handler for this action, run default errorhandler and abort processing 
2014-01-07 15:01:00,544 ERROR  [DefaultErrorHandler] An error occurred during the workflow
javax.persistence.EntityNotFoundException: Unable to find org.broadleafcommerce.profile.core.domain.CustomerImpl with id 253014
   at org.hibernate.ejb.Ejb3Configuration$Ejb3EntityNotFoundDelegate.handleEntityNotFound(Ejb3Configuration.java:155)
   at org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:210)
   at org.hibernate.event.internal.DefaultLoadEventListener.returnNarrowedProxy(DefaultLoadEventListener.java:289)
   at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:252)
   at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:148)
   at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1078)
   at org.hibernate.internal.SessionImpl.internalLoad(SessionImpl.java:1005)
   at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:651)
   at org.hibernate.type.EntityType.resolve(EntityType.java:471)
   at org.hibernate.type.EntityType.replace(EntityType.java:328)
   at org.hibernate.type.AbstractType.replace(AbstractType.java:178)
   at org.hibernate.type.TypeHelper.replace(TypeHelper.java:211)
   at org.hibernate.event.internal.DefaultMergeEventListener.copyValues(DefaultMergeEventListener.java:409)
   at org.hibernate.event.internal.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:214)
   at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:154)
   at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:76)
   at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:903)
   at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:887)
   at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:891)
   at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:889)
   at sun.reflect.GeneratedMethodAccessor145.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:366)
   at $Proxy104.merge(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor145.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:241)
   at $Proxy104.merge(Unknown Source)
   at org.broadleafcommerce.core.payment.dao.PaymentInfoDaoImpl.save(PaymentInfoDaoImpl.java:47)
   at org.broadleafcommerce.core.payment.service.PaymentInfoServiceImpl.save(PaymentInfoServiceImpl.java:41)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
   at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy145.save(Unknown Source)
   at org.broadleafcommerce.core.payment.service.PaymentServiceImpl.logResponseItem(PaymentServiceImpl.java:232)
   at org.broadleafcommerce.core.payment.service.PaymentServiceImpl.authorizeAndDebit(PaymentServiceImpl.java:82)
   at org.broadleafcommerce.core.payment.service.workflow.PaymentActivity.execute(PaymentActivity.java:83)
   at org.broadleafcommerce.core.payment.service.workflow.PaymentActivity.execute(PaymentActivity.java:1)
   at org.broadleafcommerce.core.workflow.SequenceProcessor.doActivities(SequenceProcessor.java:79)
   at org.broadleafcommerce.core.payment.service.workflow.CompositeActivity.execute(CompositeActivity.java:36)
   at org.broadleafcommerce.core.payment.service.workflow.CompositeActivity.execute(CompositeActivity.java:23)
   at org.broadleafcommerce.core.workflow.SequenceProcessor.doActivities(SequenceProcessor.java:79)
   at org.broadleafcommerce.core.payment.service.CompositePaymentServiceImpl.executePayment(CompositePaymentServiceImpl.java:62)
   at org.broadleafcommerce.core.payment.service.CompositePaymentServiceImpl.executePayment(CompositePaymentServiceImpl.java:82)
   at org.broadleafcommerce.core.payment.service.CompositePaymentServiceImpl.executePaymentForGateway(CompositePaymentServiceImpl.java:105)
   at org.broadleafcommerce.vendor.paypal.service.payment.PayPalCheckoutServiceImpl.initiateExpressCheckout(PayPalCheckoutServiceImpl.java:89)
   at com.siggitt.controller.checkout.UpdateBroadleafPayPalController.paypalCheckout(UpdateBroadleafPayPalController.java:115)
   at com.siggitt.controller.checkout.PayPalController.paypalCheckout(PayPalController.java:21)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)
   at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
   at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
   at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)
   at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)
   at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
   at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
   at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
   at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
   at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
   at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
   at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:643)
   at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
   at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:179)
   at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:241)
   at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1302)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
   at org.broadleafcommerce.core.web.order.security.CartStateFilter.doFilter(CartStateFilter.java:57)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.broadleafcommerce.common.web.filter.TranslationFilter.doFilter(TranslationFilter.java:48)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.broadleafcommerce.cms.web.URLHandlerFilter.doFilterInternal(URLHandlerFilter.java:71)
   at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
   at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:166)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
   at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.broadleafcommerce.profile.web.core.security.SessionFixationProtectionFilter.doFilter(SessionFixationProtectionFilter.java:95)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.broadleafcommerce.profile.web.core.security.CustomerStateFilter.doFilter(CustomerStateFilter.java:53)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:144)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
   at org.broadleafcommerce.common.web.BroadleafRequestFilter.doFilterInternal(BroadleafRequestFilter.java:97)
   at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:180)
   at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
   at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:166)
   at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
   at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
   at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
   at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
   at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1302)
   at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:448)
   at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)
   at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
   at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
   at org.eclipse.jetty.server.handler.ContextHandler.__doHandle(ContextHandler.java:1067)
   at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java)
   at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:377)
   at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
   at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1001)
   at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)
   at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
   at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
   at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
   at org.eclipse.jetty.server.Server.handle(Server.java:360)
   at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
   at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890)
   at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944)
   at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630)
   at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
   at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
   at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:622)
   at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
   at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
   at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
   at java.lang.Thread.run(Thread.java:722)

Re: Exception while redirecting to paypal after registeration

Posted: Wed Jan 08, 2014 9:49 am
by phillipuniverse
What version of Broadleaf and Paypal are you using

Re: Exception while redirecting to paypal after registeration

Posted: Wed Jan 08, 2014 11:36 am
by luky
hi phillipuniverse,
My brodleaf version is 3.0.0.GA and the paypal version is 2.0.1-GA..

Here is the code at where the error is thrown,

Code: Select all

public CompositePaymentResponse executePayment(Order order, Map<PaymentInfo, Referenced> payments, PaymentResponse response) throws PaymentException {
        /*
         * TODO add validation that checks the order and payment information for
         * validity.
         */
        try {
           System.out.print("\n\n order<>>>>!!"+order);
           
            PaymentSeed seed = new PaymentSeed(order, payments, response);
            paymentWorkflow.doActivities(seed);

            return seed;
        } catch (WorkflowException e) {
            Throwable cause = null;
            while (e.getCause() != null) {
                if (cause != null && cause.equals(e.getCause())) {
                    break;
                }
                cause = e.getCause();
            }
            if (cause != null && PaymentException.class.isAssignableFrom(cause.getClass())) {
                throw (PaymentException) cause;
            }
            throw new PaymentException("Unable to execute payment for order -- id: " + order.getId(), e);
        }
    }


the code throws exception after reaching the paymentWorkflow.doActivities(seed);
method in CompositePaymentServiceImpl.

Code: Select all

[artifact:mvn] org.broadleafcommerce.core.payment.service.exception.PaymentException: CompositePaymentServiceImpl75 - Unable to execute payment for order -- id: null

Re: Exception while redirecting to paypal after registeration

Posted: Thu Jan 09, 2014 12:45 am
by phillipuniverse
Wait, I don't understand. Why are you redirecting to the paypal URL after successful registration? Submitting a payment to paypal should be the only thing that redirects to that page.

Re: Exception while redirecting to paypal after registeration

Posted: Thu Jan 09, 2014 1:36 am
by luky
We have different plans(free,pro,personal,etc)if the customer selects the required plan he want to pay to access the services of the site..so he gets to pay through paypal and after successfull payment..he can get access to all the services of the site..

Re: Exception while redirecting to paypal after registeration

Posted: Sat Jan 11, 2014 8:00 am
by luky
Thanks philip,
The issue is resolved, the problem was in the @ManyToOne mapping in the new field i created.. I added fetch=FetchType.Lazy and the table and the Entity file was not matching the corresponding fields..so that hibernate could not pick the customer entity with the required fields.:)

Re: Exception while redirecting to paypal after registeration

Posted: Mon Feb 03, 2014 4:54 am
by anaya
Hi Guys,

I have setup an ecommerce site where I incorporate a service to communicate with other ecommerce sites.
The problem I have is with regards to fulfillment groups. I modified my checkout workflow to add an activity that does
all the communication to other e-commerce sites once the user has completed the payment form. My web service returns a shipping group that I need to reflect on Broadleaf. I cannot instantiate new Fulfillment groups. How can I reflect these values in broadleaf?

Re: Exception while redirecting to paypal after registeration

Posted: Mon Feb 03, 2014 12:08 pm
by Theo Schumacher
Hi

i have problems with fulfillment groups as well when adding an activity to add item workflow. I believe fulfillment groups should be created upon adding new items as the new items needs immediately to be attached to a fulfillment group. May be someone from broadleaf can comment on this.

See also my post on changing add item workflow

http://forum.broadleafcommerce.org/viewtopic.php?f=15&t=2453

Re: Exception while redirecting to paypal after registeration

Posted: Wed Feb 05, 2014 11:50 am
by phillipuniverse
@anya - please create a new topic for this as what you posted is unrelated to this Topic.

@Theo - I responded to your other forum topic that you created.