Before I submit a ticket on github. In recent days the API REST calls in CatalogEndpoint broke down with:
Code: Select all
[ERROR] 21:27:32 BroadleafRestExceptionMapper - An exception was caught by the JAX-RS framework:
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.broadleafcommerce.core.catalog.domain.ProductImpl.productOptions, could not initialize proxy - no Session
at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:566)
at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:186)
Maybe I should add the example REST call as well:
For example:
Code: Select all
curl http://localhost:8080/api/v1/catalog/product/100
Seems that Lazy loading broke down. This is on the 3.0.0-SNAPSHOT Demo Site, checked out an hour ago.
Any idea?