Page 1 of 1

Unable To find non-default Sku matching giving option

Posted: Tue Mar 12, 2013 6:58 am
by mota_nginya
I am seeing this error way too frequent in my logs. I need to investigate what is causing it but has any one seen this before and if so what did you find out?

Code: Select all

[ERROR] 06:06:47 DefaultErrorHandler - An error occurred during the workflow
org.broadleafcommerce.core.order.service.exception.RequiredAttributeNotProvidedException: Unable to find non-default sku matching given options and cannot sell default sku
        at org.broadleafcommerce.core.order.service.workflow.add.ValidateAddRequestActivity.determineSku(ValidateAddRequestActivity.java:112)
        at org.broadleafcommerce.core.order.service.workflow.add.ValidateAddRequestActivity.execute(ValidateAddRequestActivity.java:77)
        at org.broadleafcommerce.core.workflow.SequenceProcessor.doActivities(SequenceProcessor.java:62)
        at org.broadleafcommerce.core.order.service.OrderServiceImpl.addItem(OrderServiceImpl.java:501)
        at sun.reflect.GeneratedMethodAccessor395.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
        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.invoke(TransactionInterceptor.java:110)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy97.addItem(Unknown Source)
        at org.broadleafcommerce.core.web.controller.cart.BroadleafCartController.add(BroadleafCartController.java:93)
        at com.sakotek.controller.cart.CartController.addJson(CartController.java:66)
        at sun.reflect.GeneratedMethodAccessor398.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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:100)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:604)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:565)
        at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
        at org.broadleafcommerce.cms.web.URLHandlerFilter.doFilterInternal(URLHandlerFilter.java:74)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
        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.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
:

Re: Unable To find non-default Sku matching giving option

Posted: Tue Mar 12, 2013 12:55 pm
by phillipuniverse
Looks like you have some required product options configured for a particular product but you are not selling the default Sku. This would occur if you have additional Skus configured for a product (from Product Options) but the product option values that were passed in did not relate to any of those additional Skus.

Re: Unable To find non-default Sku matching giving option

Posted: Mon Jan 20, 2014 3:49 pm
by urfan.alimov
Hello,

I would like to hide product options that has no corresponding available skus.

i.e: I will not sell Black colored shirts of Heat Clinic Hand-Drawn (Men's) anymore. And i dont want them to appear in the product details page in site.

How can i achieve this?

Thanks & Regards,

Re: Unable To find non-default Sku matching giving option

Posted: Mon Jan 20, 2014 4:58 pm
by phillipuniverse
You'll need to modify ProductOptionsProcessor and likely modify product.html