Skip to Content
0
Former Member
Jul 30, 2018 at 05:02 PM

Order Replication from hybris 6.6 to ERP error

126 Views

After submitting order on Hybris storefront, order is sent from hybris into the datahub and it failed in publication phase giving the following error:

Order status as shown in backoffice is Checked valid.

 2018-07-30 16:15:01,968 [ERROR] [DataHubActorSystem-akka.actor.default-dispatcher-77] [c.h.d.s.p.i.DefaultCanonicalToTargetItemConverterService] Failed to create a target item from CanonicalItem{id='40591', integrationKey='0000000920', status=SUCCESS, dataPool='DataHubPoolEntity{id=9306, name=SAPORDER_OUTBOUND_POOL}', batchId=0000000920|HYBRIS|SALESORDER_CREATE, traceId=04b23ec5-8ad9-368a-a4e2-1732095d5fff, uuid=339cd5ea-f45d-470d-8405-016f41da9457, documentId=0000000920, fields='{precedingDocumentId=null, orderId=0000000920, paymentMode=null, receiverName=null, channel=null, creationDate=2018-07-29 13:41:22.26, salesOrganization=null, division=null, cancellationReasonDescription=null, maxNumberOfConfigInstances=0, deliveryMode=standard-gross, purchaseOrderNumber=null, baseStoreUid=ecsstore, currencyIsoCode=EGP, distributionChannel=null, rejectionReason=null, cancellationCode=null}'}
 com.hybris.datahub.service.spel.TransformationExpressionException: Could not transform by expression @sapLogicalSystemInfoLookup.getAttributeValue(receiverName,'senderName')
     at com.hybris.datahub.service.spel.impl.CompilableSpelExpressionProcessor.transform(CompilableSpelExpressionProcessor.java:93) ~[datahub-service-6.6.0.0-RC4.jar:6.6.0.0-RC4]
     at com.hybris.datahub.service.publication.impl.DefaultCanonicalToTargetItemConverterService.populateAttributeFromCanonicalItem(DefaultCanonicalToTargetItemConverterService.java:101) ~[datahub-service-6.6.0.0-RC4.jar:6.6.0.0-RC4]
     at com.hybris.datahub.service.publication.impl.DefaultCanonicalToTargetItemConverterService.lambda$populateTargetItem$0(DefaultCanonicalToTargetItemConverterService.java:89) ~[datahub-service-6.6.0.0-RC4.jar:6.6.0.0-RC4]
     at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) ~[na:1.8.0_161]
     at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[na:1.8.0_161]
     at java.util.HashMap$KeySpliterator.forEachRemaining(Unknown Source) ~[na:1.8.0_161]
     at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[na:1.8.0_161]
     at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[na:1.8.0_161]
     at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source) ~[na:1.8.0_161]
     at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source) ~[na:1.8.0_161]
     at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[na:1.8.0_161]
     at java.util.stream.ReferencePipeline.forEach(Unknown Source) ~[na:1.8.0_161]
     at com.hybris.datahub.service.publication.impl.DefaultCanonicalToTargetItemConverterService.populateTargetItem(DefaultCanonicalToTargetItemConverterService.java:89) ~[datahub-service-6.6.0.0-RC4.jar:6.6.0.0-RC4]
     at com.hybris.datahub.service.publication.impl.DefaultCanonicalToTargetItemConverterService.convert(DefaultCanonicalToTargetItemConverterService.java:60) ~[datahub-service-6.6.0.0-RC4.jar:6.6.0.0-RC4]
     at sun.reflect.GeneratedMethodAccessor369.invoke(Unknown Source) ~[na:na]
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_161]
     at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_161]
     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) [spring-aop-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) [spring-aop-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) [spring-tx-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282) [spring-tx-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) [spring-tx-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) [spring-aop-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at com.sun.proxy.$Proxy174.convert(Unknown Source) [na:na]
     at com.hybris.datahub.akka.actor.TargetItemCreator.createTargetItem(TargetItemCreator.java:57) [datahub-service-6.6.0.0-RC4.jar:6.6.0.0-RC4]
     at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:26) ~[akka-actor_2.11-2.4.14.jar:na]
     at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:21) ~[akka-actor_2.11-2.4.14.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.14.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.14.jar:na]
     at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:47) ~[akka-actor_2.11-2.4.14.jar:na]
     at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526) ~[akka-actor_2.11-2.4.14.jar:na]
     at akka.actor.ActorCell.invoke(ActorCell.scala:495) ~[akka-actor_2.11-2.4.14.jar:na]
     at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257) ~[akka-actor_2.11-2.4.14.jar:na]
     at akka.dispatch.Mailbox.run(Mailbox.scala:224) ~[akka-actor_2.11-2.4.14.jar:na]
     at akka.dispatch.Mailbox.exec(Mailbox.scala:234) ~[akka-actor_2.11-2.4.14.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]
 Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1058E: A problem occurred when trying to resolve bean 'sapLogicalSystemInfoLookup':'Could not resolve bean reference against BeanFactory'
     at org.springframework.expression.spel.ast.BeanReference.getValueInternal(BeanReference.java:59) ~[spring-expression-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at org.springframework.expression.spel.ast.CompoundExpression.getValueRef(CompoundExpression.java:51) ~[spring-expression-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:87) ~[spring-expression-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:120) ~[spring-expression-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:262) ~[spring-expression-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at com.hybris.datahub.service.spel.impl.CompilableSpelExpressionProcessor.transform(CompilableSpelExpressionProcessor.java:88) ~[datahub-service-6.6.0.0-RC4.jar:6.6.0.0-RC4]
     ... 42 common frames omitted
 Caused by: org.springframework.expression.AccessException: Could not resolve bean reference against BeanFactory
     at org.springframework.context.expression.BeanFactoryResolver.resolve(BeanFactoryResolver.java:48) ~[spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at org.springframework.expression.spel.ast.BeanReference.getValueInternal(BeanReference.java:55) ~[spring-expression-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     ... 47 common frames omitted
 Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sapLogicalSystemInfoLookup' available
     at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1207) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     at org.springframework.context.expression.BeanFactoryResolver.resolve(BeanFactoryResolver.java:45) ~[spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE]
     ... 48 common frames omitted


Any Ideas what is the problem?