Postby chico1198@yahoo.com » Wed Oct 31, 2012 4:55 pm
I've recently been working through your example web project and got it to a state where it is tantalizingly close to a state in which I can deploy it to a test account I have on Amazon. To date I have accomplished the following:
1) Changed database to MySQL
2) Changed application server from Jetty to Tomcat(7) and got https working
3) Cleaned and compiled the application to the 'integrationdev' state (so all tables get populated)
I can now run the application, enter users, change products, create new pages, etc. Basically, everything the site can and should do. And, since I am running it in the 'integrationdev' mode, all of the changes get persisted. Great!
But, when I run the application and/or admin console, both environments seem to suffer from random crashing. (not good...) On the Demo site, it sometimes crashes with this error:
HTTP Status 500 - Don't change the reference to a collection with cascade="all-delete-orphan": org.broadleafcommerce.profile.core.domain.CustomerImpl.customerAttributes; nested exception is org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.broadleafcommerce.profile.core.domain.CustomerImpl.customerAttributes
type Exception report
message Don't change the reference to a collection with cascade="all-delete-orphan": org.broadleafcommerce.profile.core.domain.CustomerImpl.customerAttributes; nested exception is org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.broadleafcommerce.profile.core.domain.CustomerImpl.customerAttributes
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.springframework.orm.hibernate3.HibernateSystemException: Don't change the reference to a collection with cascade="all-delete-orphan": org.broadleafcommerce.profile.core.domain.CustomerImpl.customerAttributes; nested exception is org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.broadleafcommerce.profile.core.domain.CustomerImpl.customerAttributes
org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:690)
org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:104)
org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:516)
org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754)
org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)
org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
$Proxy117.save(Unknown Source)
org.broadleafcommerce.core.order.service.MergeCartServiceImpl.mergeCart(MergeCartServiceImpl.java:102)
org.broadleafcommerce.core.order.service.MergeCartServiceImpl.mergeCart(MergeCartServiceImpl.java:61)
org.broadleafcommerce.core.web.order.security.MergeCartProcessorImpl.execute(MergeCartProcessorImpl.java:60)
org.broadleafcommerce.core.web.order.security.BroadleafAuthenticationSuccessHandler.onAuthenticationSuccess(BroadleafAuthenticationSuccessHandler.java:39)
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.successfulAuthentication(AbstractAuthenticationProcessingFilter.java:323)
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.successfulAuthentication(AbstractAuthenticationProcessingFilter.java:288)
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:213)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
org.broadleafcommerce.common.security.handler.CsrfFilter.doFilter(CsrfFilter.java:83)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:144)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
org.broadleafcommerce.common.web.BroadleafRequestFilter.doFilterInternal(BroadleafRequestFilter.java:146)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:147)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
=====================================================================
In the admin console, it generally just goes back to the admin sign-in page.
Any ideas on what might be causing this?
Regards,
Chris