Skip to Content
1
Oct 18, 2016 at 08:58 AM

Error while setting up datahub

158 Views

Hi ,

I am working on setting up Hybris 6.1.0.3 datahub , however i am facing the below issue ,

 2016-10-18 12:10:55,927 [INFO] [o.s.w.c.ContextLoader] Root WebApplicationContext: initialization completed in 45924 ms
 2016-10-18 12:10:55,931 [INFO] [c.h.d.s.DataHubServletContextListener] starting contextInitialized
 2016-10-18 12:10:55,993 [ERROR] [c.h.d.s.i.DefaultDataHubEventListenerRegistry] com.hybris.datahub.essentialdata.DataHubEssentialDataListener threw an exception on DataHubInitializationCompletedEvent.  Continuing to notify other listeners.  org.springframework.orm.jpa.JpaObjectRetrievalFailureException: Unable to find com.hybris.datahub.runtime.domain.jpa.entities.DataHubPoolEntity with id 9401; nested exception is javax.persistence.EntityNotFoundException: Unable to find com.hybris.datahub.runtime.domain.jpa.entities.DataHubPoolEntity with id 9401
 2016-10-18 12:10:56,006 [ERROR] [o.s.a.i.SimpleAsyncUncaughtExceptionHandler] Unexpected error occurred invoking async method 'public void com.hybris.datahub.service.impl.DefaultEventPublicationService.publishEvent(com.hybris.datahub.api.event.DataHubEvent)'.
 org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly
         at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:526) ~[spring-orm-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:757) ~[spring-tx-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:726) ~[spring-tx-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:150) ~[spring-tx-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         at com.hybris.datahub.service.impl.DefaultDataHubEventListenerRegistry.notifyListeners(DefaultDataHubEventListenerRegistry.java:64) ~[datahub-service-6.1.0.3-RC1.jar:6.1.0.3-RC1]
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_51]
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_51]
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_51]
         at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51]
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) ~[spring-tx-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) ~[spring-tx-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) ~[spring-tx-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         at com.sun.proxy.$Proxy131.notifyListeners(Unknown Source) ~[na:na]
         at com.hybris.datahub.service.impl.DefaultEventPublicationService.publishEvent(DefaultEventPublicationService.java:38) ~[datahub-service-6.1.0.3-RC1.jar:6.1.0.3-RC1]
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_51]
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_51]
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_51]
         at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51]
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         at org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:110) ~[spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_51]
         at com.hybris.datahub.service.ExceptionHandlingAsyncTaskExecutor$2.run(ExceptionHandlingAsyncTaskExecutor.java:80) [datahub-service-6.1.0.3-RC1.jar:6.1.0.3-RC1]
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_51]
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_51]
         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_51]
 Caused by: javax.persistence.RollbackException: Transaction marked as rollbackOnly
         at org.hibernate.jpa.internal.TransactionImpl.commit(TransactionImpl.java:74) ~[hibernate-entitymanager-4.3.6.Final.jar:4.3.6.Final]
         at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:517) ~[spring-orm-4.1.5.RELEASE.jar:4.1.5.RELEASE]
         ... 31 common frames omitted
 Oct 18, 2016 12:10:57 PM org.apache.catalina.startup.HostConfig deployDescriptor
 INFO: Deployment of configuration descriptor D:\2nd\Tomcat\apache-tomcat-7.0.72\conf\Catalina\localhost\datahub-webapp.xml has finished in 48,793 ms


Thanks ,

Arun