how to fixed the IllegalArgumentException of rest-api for /cart/checkout/payment

Broadleaf Commerce Discussion Forum

Moderator: jocanas

wangjingquang
Newbie
Newbie
Posts: 1
Joined: Mon Aug 08, 2016 8:47 pm

how to fixed the IllegalArgumentException of rest-api for /cart/checkout/payment

Postby wangjingquang » Tue Aug 09, 2016 11:21 pm

i meet a trouble of rest-api for /cart/checkout/payment (how can i fixed it ? thanks for your any help!):

[0810 10:56:21 949 ERROR] [http-bio-8882-exec-1] web.api.BroadleafSpringRestExceptionMapper - An error occured invoking a REST service
java.lang.IllegalArgumentException: id to load is required for loading
at org.hibernate.event.spi.LoadEvent.<init>(LoadEvent.java:87)
at org.hibernate.event.spi.LoadEvent.<init>(LoadEvent.java:59)
at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2421)
at org.hibernate.internal.SessionImpl.get(SessionImpl.java:974)
at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:807)
at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:781)
at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:344)
at com.sun.proxy.$Proxy135.find(Unknown Source)
at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:291)
at com.sun.proxy.$Proxy135.find(Unknown Source)
at org.broadleafcommerce.core.order.dao.OrderDaoImpl.readOrderById(OrderDaoImpl.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy154.readOrderById(Unknown Source)
at org.broadleafcommerce.core.order.service.OrderServiceImpl.findOrderById(OrderServiceImpl.java:196)

the issue occurs at
package org.broadleafcommerce.core.web.api.wrapper;
OrderPaymentWrapper.java line 146: Order order = orderService.findOrderById(this.orderId);
this.orderId is null.


thanks for any help!

Return to “Broadleaf Commerce”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest