Page 1 of 1

Exception in Workflow, while adding product to Wishlist

Posted: Sun Jun 07, 2015 10:23 am
by sumit784
Hi,
I have recently build my new catalog with 2000+ product. Out of these I am showing around 100 products on homepage. Now, here I have few questions :-

1) The default number for products shown are 15. How / where can I change to display all 100 products on homepage.

2) For few products, while adding to wishlist, I am getting an exception. I debugged and found in the backed that it gives exception during workflow.
It is giving exception log as "SkuImpl.getFulfillmentType()". I checked it in my database, but for all the products this field is null. I am able to ADD few products to my wishlist but not others, whereas the entry in database in SKU table is same for all of them.
Is there any specific issue or pointer, that I can look for in workflow ?

Thanks in advance.

- Sumit

Re: Exception in Workflow, while adding product to Wishlist

Posted: Wed Jun 17, 2015 2:02 pm
by phillipuniverse
1) The default number for products shown are 15. How / where can I change to display all 100 products on homepage.


Modify the web.defaultPageSize and/or web.maxPageSize system properties. These are currently set in site/src/main/resources/runtime-properties/common.properties.

2) For few products, while adding to wishlist, I am getting an exception. I debugged and found in the backed that it gives exception during workflow.
It is giving exception log as "SkuImpl.getFulfillmentType()". I checked it in my database, but for all the products this field is null. I am able to ADD few products to my wishlist but not others, whereas the entry in database in SKU table is same for all of them.
Is there any specific issue or pointer, that I can look for in workflow ?


Can you post the stack trace?

Re: Exception in Workflow, while adding product to Wishlist

Posted: Wed Jun 17, 2015 2:20 pm
by sumit784
Hi Philip,
Thanks for replying. This is what I can grab from server.log. The log just keep

[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/].[mysite]] (http-localhost/127.0.0.1:8080-8) JBWEB000236: Servlet.service() for servlet mysitethrew exception: java.lang.StackOverflowError
at java.lang.Long.equals(Long.java:794) [rt.jar:1.7.0_60-ea]
at org.broadleafcommerce.core.catalog.domain.SkuImpl.hasDefaultSku(SkuImpl.java:403) [broadleaf-framework-3.1.8-GA.jar:]
at org.broadleafcommerce.core.catalog.domain.SkuImpl.getFulfillmentType(SkuImpl.java:936) [broadleaf-framework-3.1.8-GA.jar:]
at org.broadleafcommerce.core.catalog.domain.SkuImpl.getFulfillmentType(SkuImpl.java:936) [broadleaf-framework-3.1.8-GA.jar:]
at org.broadleafcommerce.core.catalog.domain.SkuImpl.getFulfillmentType(SkuImpl.java:936) [broadleaf-framework-3.1.8-GA.jar:]
at org.broadleafcommerce.core.catalog.domain.SkuImpl.getFulfillmentType(SkuImpl.java:936) [broadleaf-framework-3.1.8-GA.jar:]
at org.broadleafcommerce.core.catalog.domain.SkuImpl.getFulfillmentType(SkuImpl.java:936) [broadleaf-framework-3.1.8-GA.jar:]
at org.broadleafcommerce.core.catalog.domain.SkuImpl.getFulfillmentType(SkuImpl.java:936) [broadleaf-framework-3.1.8-GA.jar:]
at org.broadleafcommerce.core.catalog.domain.SkuImpl.getFulfillmentType(SkuImpl.java:936) [broadleaf-framework-3.1.8-GA.jar:]
at org.broadleafcommerce.core.catalog.domain.SkuImpl.getFulfillmentType(SkuImpl.java:936) [broadleaf-framework-3.1.8-GA.jar:]
at org.broadleafcommerce.core.catalog.domain.SkuImpl.getFulfillmentType(SkuImpl.java:936) [broadleaf-framework-3.1.8-GA.jar:]
at org.broadleafcommerce.core.catalog.domain.SkuImpl.getFulfillmentType(SkuImpl.java:936) [broadleaf-framework-3.1.8-GA.jar:]
.
.
.
.
.
..
.

This same message keeps going. But, interesting thing is, This is NOT happening for all product, instead, just for few products.

Any help is appreciated.

Re: Exception in Workflow, while adding product to Wishlist

Posted: Wed Jun 17, 2015 2:22 pm
by sumit784
Another thing is , for few products added in my wishlist, I am getting the following error while page load :-

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "product.media['primary'].url" (account/partials/grocerylistItemsTable:18)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:965)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

The product already has an image associated with it. What is possibly wrong here.

Re: Exception in Workflow, while adding product to Wishlist

Posted: Mon Jun 29, 2015 1:40 pm
by phillipuniverse
CHange product.media['primary'].url to product.media['primary']?.url