Skip to Content
0
Former Member
May 11, 2016 at 01:59 AM

Hybris 6.0 - Data Hub issue - Failed to create Target Items for Publication

590 Views

Data Hub issue.

Version Info Hybris 6.0 and Data Hub version is - datahub-webapp-6.0.0.0-RC12 (standalone on same machine in "c" drive under "dhub" folder.

Failed to create Target Items for Publication when I push product (non configurable) from SAP to Hybris through Data Hub. However when I push customer it works fine and comes to Hybris through Data Hub. Local.properties of Data Hub and Hybris are reviewed twice re

Below is the error I get for Product Push.

2016-05-10 15:08:42,802 [DEBUG] [c.h.d.s.i.DefaultTargetItemService] Creating Target Items for type SalesVariant from 1 Canonical Items in Pool GLOBAL [INFO] [05/10/2016 15:08:42.802] [DataHubActorSystem-akka.actor.default-dispatcher-49] [akka://DataHubActorSystem/user/$6c/target-type-items-creator1] Creating target items for type SalesVariant and 1 canonical items in Pool GLOBAL 2016-05-10 15:08:42,802 [DEBUG] [c.h.d.s.i.DefaultTargetItemService] Creating Target Items for type SalesProduct from 1 Canonical Items in Pool GLOBAL [INFO] [05/10/2016 15:08:42.802] [DataHubActorSystem-akka.actor.default-dispatcher-39] [akka://DataHubActorSystem/user/$6c/target-type-items-creator2] Creating target items for type SalesProduct and 1 canonical items in Pool GLOBAL 2016-05-10 15:08:42,807 [ERROR] [c.h.d.s.i.PublicationActionHandler] Error publishing action: 172 com.hybris.datahub.publication.TargetItemCreationException: Failed to create Target Items for Publication at com.hybris.datahub.service.impl.AkkaEnabledPublicationActionHandler.createPublicationTargetItems(AkkaEnabledPublicationActionHandler.java:78) ~[datahub-service-akka-6.0.0.0-RC12.jar:6.0.0.0 -RC12] at com.hybris.datahub.service.impl.PublicationActionHandler.createOnePageOfItemsToPublish(PublicationActionHandler.java:393) [datahub-service-6.0.0.0-RC12.jar:6.0.0.0-RC12] at com.hybris.datahub.service.impl.PublicationActionHandler.createItemsToPublishByCanonicalType(PublicationActionHandler.java:278) [datahub-service-6.0.0.0-RC12.jar:6.0.0.0-RC12] at com.hybris.datahub.service.impl.PublicationActionHandler.lambda$createTargetItemsForPublications$64(PublicationActionHandler.java:243) [datahub-service-6.0.0.0-RC12.jar:6.0.0.0-RC12] at java.util.ArrayList.forEach(Unknown Source) ~[na:1.8.0_66] at com.hybris.datahub.service.impl.PublicationActionHandler.createTargetItemsForPublications(PublicationActionHandler.java:242) [datahub-service-6.0.0.0-RC12.jar:6.0.0.0-RC12] at com.hybris.datahub.service.impl.PublicationActionHandler.createTargetItemsInMultipleTransactions(PublicationActionHandler.java:214) [datahub-service-6.0.0.0-RC12.jar:6.0.0.0-RC12] at com.hybris.datahub.service.impl.PublicationActionHandler.handlePublicationAction(PublicationActionHandler.java:120) [datahub-service-6.0.0.0-RC12.jar:6.0.0.0-RC12] at com.hybris.datahub.service.impl.PublicationActionHandler.handleAction(PublicationActionHandler.java:107) [datahub-service-6.0.0.0-RC12.jar:6.0.0.0-RC12] at com.hybris.datahub.service.impl.PublicationActionHandler.handleAction(PublicationActionHandler.java:80) [datahub-service-6.0.0.0-RC12.jar:6.0.0.0-RC12] at com.hybris.datahub.service.impl.DefaultPoolActionQueueConsumer.lambda$null$108(DefaultPoolActionQueueConsumer.java:54) [datahub-service-6.0.0.0-RC12.jar:6.0.0.0-RC12] at java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source) ~[na:1.8.0_66] at com.hybris.datahub.service.ExceptionHandlingAsyncTaskExecutor$2.run(ExceptionHandlingAsyncTaskExecutor.java:80) ~[datahub-service-6.0.0.0-RC12.jar:6.0.0.0-RC12] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:1.8.0_66] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:1.8.0_66] at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_66] com.hybris.datahub.publication.TargetItemCreationException: Creation of target items failed at com.hybris.datahub.akka.actor.PageItemsCreationCoordinator.replyWithFailure(PageItemsCreationCoordinator.java:266) ~[datahub-service-akka-6.0.0.0-RC12.jar:6.0.0.0-RC12] at com.hybris.datahub.akka.actor.PageItemsCreationCoordinator.lambda$supervisorStrategy$9(PageItemsCreationCoordinator.java:257) ~[datahub-service-akka-6.0.0.0-RC12.jar:6.0.0.0-RC12] at akka.japi.pf.CaseStatement.apply(CaseStatements.scala:18) ~[akka-actor_2.11-2.4.0.jar:na] at scala.PartialFunction$class.applyOrElse(PartialFunction.scala:123) ~[scala-library-2.11.5.jar:na] at akka.japi.pf.CaseStatement.applyOrElse(CaseStatements.scala:13) ~[akka-actor_2.11-2.4.0.jar:na] at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:170) ~[scala-library-2.11.5.jar:na] at akka.actor.SupervisorStrategy.handleFailure(FaultHandling.scala:295) ~[akka-actor_2.11-2.4.0.jar:na] at akka.actor.dungeon.FaultHandling$class.handleFailure(FaultHandling.scala:262) ~[akka-actor_2.11-2.4.0.jar:na] at akka.actor.ActorCell.handleFailure(ActorCell.scala:373) ~[akka-actor_2.11-2.4.0.jar:na] at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:458) ~[akka-actor_2.11-2.4.0.jar:na] at akka.actor.ActorCell.systemInvoke(ActorCell.scala:482) ~[akka-actor_2.11-2.4.0.jar:na] at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:282) ~[akka-actor_2.11-2.4.0.jar:na] at akka.dispatch.Mailbox.run(Mailbox.scala:223) ~[akka-actor_2.11-2.4.0.jar:na] at akka.dispatch.Mailbox.exec(Mailbox.scala:234) ~[akka-actor_2.11-2.4.0.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] [INFO] [05/10/2016 15:08:42.805] [DataHubActorSystem-akka.actor.default-dispatcher-49] [akka://DataHubActorSystem/user/$6c] Creation of target items failed. Notifying parent 2016-05-10 15:08:42,805 [ERROR] [c.h.d.s.i.AkkaEnabledPublicationActionHandler] Failed to create Target Items page [ERROR] [05/10/2016 15:08:42.805] [DataHubActorSystem-akka.actor.default-dispatcher-49] [akka://DataHubActorSystem/user/$6c/target-type-items-creator1] null java.lang.NullPointerException at com.hybris.datahub.saperpproduct.publication.ProductVariantPublicationHandler.isApplicable(ProductVariantPublicationHandler.java:74) at sun.reflect.GeneratedMethodAccessor389.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy140.isApplicable(Unknown Source) at com.hybris.datahub.grouping.impl.PublicationGroupingChainRunnerStrategy.lambda$applyGroupings$140(PublicationGroupingChainRunnerStrategy.java:52) at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Unknown Source) at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Unknown Source) at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Unknown Source) at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Unknown Source) at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Unknown Source) at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Unknown Source) at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Unknown Source) at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Unknown Source) at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Unknown Source) at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Unknown Source) at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) at java.util.stream.AbstractPipeline.copyInto(Unknown Source) at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) at java.util.stream.AbstractPipeline.evaluate(Unknown Source) at java.util.stream.ReferencePipeline.collect(Unknown Source) at com.hybris.datahub.grouping.impl.PublicationGroupingChainRunnerStrategy.applyGroupings(PublicationGroupingChainRunnerStrategy.java:56) at com.hybris.datahub.service.impl.DefaultTargetItemService.prepareItemsForPublication(DefaultTargetItemService.java:136) at com.hybris.datahub.publication.impl.TargetTypeItemsCreator.handleCreateTargetItems(TargetTypeItemsCreator.java:91) at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:26) at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:21) at scala.PartialFunction$class.applyOrElse(PartialFunction.scala:123) at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:21) at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:170) at akka.actor.Actor$class.aroundReceive(Actor.scala:480) at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:47) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:525) at akka.actor.ActorCell.invoke(ActorCell.scala:494) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257) at akka.dispatch.Mailbox.run(Mailbox.scala:224) at akka.dispatch.Mailbox.exec(Mailbox.scala:234) at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)