SAP Knowledge Base Article - Preview

2486352 - Datahub throws exception when replicating product with trace log level

Symptom

Datahub throws exception when replicating product from ERP to hybris with trace log level. Result in replication failed.

2017-06-08 12:17:53,763 [ERROR] [c.h.d.a.CompositionRuleHandlerLogger] Could not compose
java.lang.ClassCastException: java.util.Optional cannot be cast to java.util.Map
at com.hybris.datahub.model.LocalizedBaseDataItem.setField(LocalizedBaseDataItem.java:128) ~[datahub-api-6.3.0.5-RC2.jar:6.3.0.5-RC2]
at com.hybris.datahub.saperpproduct.composition.LocalizedCompositionHandler.compose(LocalizedCompositionHandler.java:67) ~[saperpproduct-raw-6.3.0.1-RC1.jar:na]
at sun.reflect.GeneratedMethodAccessor343.invoke(Unknown Source) ~[na:na]
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:333) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.aop.framework.ReflectsiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) [spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at com.hybris.datahub.aop.CompositionRuleHandlerLogger.aroundComposeAdvice(CompositionRuleHandlerLogger.java:41) ~[datahub-service-6.3.0.5-RC2.jar:6.3.0.5-RC2]
at sun.reflect.GeneratedMethodAccessor337.invoke(Unknown Source) ~[na:na]
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.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:629) [spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:618) [spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) [spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) [spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) [spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at com.sun.proxy.$Proxy126.compose(Unknown Source) [na:na]
at com.hybris.datahub.composition.impl.CompositionChainRunnerStrategy.lambda$applyCompositionRuleHandlers$2(CompositionChainRunnerStrategy.java:153) [datahub-service-6.3.0.5-RC2.jar:6.3.0.5-RC2]
at com.hybris.datahub.composition.impl.CompositionChainRunnerStrategy$$Lambda$204/869450245.accept(Unknown Source) [datahub-service-6.3.0.5-RC2.jar:6.3.0.5-RC2]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) [na:1.8.0_51]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) [na:1.8.0_51]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) [na:1.8.0_51]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) [na:1.8.0_51]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) [na:1.8.0_51]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) [na:1.8.0_51]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) [na:1.8.0_51]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [na:1.8.0_51]
at java.util.stream.ReferencePipeline.forEachOrdered(ReferencePipeline.java:423) [na:1.8.0_51]
at com.hybris.datahub.composition.impl.CompositionChainRunnerStrategy.applyCompositionRuleHandlers(CompositionChainRunnerStrategy.java:153) [datahub-service-6.3.0.5-RC2.jar:6.3.0.5-RC2]
at com.hybris.datahub.composition.impl.CompositionChainRunnerStrategy.populateItemAttributes(CompositionChainRunnerStrategy.java:143) [datahub-service-6.3.0.5-RC2.jar:6.3.0.5-RC2]
at com.hybris.datahub.composition.impl.CompositionChainRunnerStrategy.runChain(CompositionChainRunnerStrategy.java:74) [datahub-service-6.3.0.5-RC2.jar:6.3.0.5-RC2]
at com.hybris.datahub.akka.actor.grouping.impl.CanonicalItemComposer.compose(CanonicalItemComposer.java:52) [datahub-service-6.3.0.5-RC2.jar:6.3.0.5-RC2]
at com.hybris.datahub.akka.actor.grouping.impl.CanonicalItemComposer$$Lambda$160/1473445411.apply(Unknown Source) [datahub-service-6.3.0.5-RC2.jar:6.3.0.5-RC2]
at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:26) [akka-actor_2.11-2.4.8.jar:na]
at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:21) [akka-actor_2.11-2.4.8.jar:na]
at scala.PartialFunction$class.applyOrElse(PartialFunction.scala:123) [scala-library-2.11.5.jar:na]
at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:21) [akka-actor_2.11-2.4.8.jar:na]
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:170) [scala-library-2.11.5.jar:na]
at akka.actor.Actor$class.aroundReceive(Actor.scala:484) [akka-actor_2.11-2.4.8.jar:na]
at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:47) [akka-actor_2.11-2.4.8.jar:na]
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526) [akka-actor_2.11-2.4.8.jar:na]
at akka.actor.ActorCell.invoke(ActorCell.scala:495) [akka-actor_2.11-2.4.8.jar:na]
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257) [akka-actor_2.11-2.4.8.jar:na]
at akka.dispatch.Mailbox.run(Mailbox.scala:224) [akka-actor_2.11-2.4.8.jar:na]
at akka.dispatch.Mailbox.exec(Mailbox.scala:234) [akka-actor_2.11-2.4.8.jar:na]
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [scala-library-2.11.5.jar:na]
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [scala-library-2.11.5.jar:na]
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [scala-library-2.11.5.jar:na]
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) [scala-library-2.11.5.jar:na]
2017-06-08 12:17:53,900 [DEBUG] [c.h.d.c.i.CompositionChainRunnerStrategy] One of the composition handlers has CanonicalItem{id='null', integrationKey='null', status=ERROR, dataPool='DataHubPoolEntity{id=0, name=GLOBAL}', fields='{division=null, unit=CT, GTIN=12345678905, productID=EPHBR03, blocked=null, isConfigurable=null, baseProductID=null, name=null, blockedFrom=00000000, creationSystem=WEFCLNT504, creationDate=20140307}'} failed.


Read more...

Environment

  • SAP hybris commerce suite 6.3.0.5
  • Datahub-webapp-6.3.0.5-RC2

Product

SAP ERP 6.0 ; SAP Hybris Commerce 6.3

Keywords

datahub,logger,trace,ClassCastException , KBA , CEC-COM-HUB , SAP Commerce Data Hub , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.