java.lang.IllegalArgumentException: Can't specify parent if no parent field has been configured

Stack Overflow | fr33g | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Elasticsearch parent field can't be specified

    Stack Overflow | 5 months ago | fr33g
    java.lang.IllegalArgumentException: Can't specify parent if no parent field has been configured

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Can't specify parent if no parent field has been configured

      at org.elasticsearch.action.index.IndexRequest.process()
    2. ElasticSearch
      ActionRequestBuilder.get
      1. org.elasticsearch.action.index.IndexRequest.process(IndexRequest.java:617)
      2. org.elasticsearch.action.index.TransportIndexAction.resolveRequest(TransportIndexAction.java:131)
      3. org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase.checkBlocks(TransportReplicationAction.java:411)
      4. org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase.doRun(TransportReplicationAction.java:367)
      5. org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
      6. org.elasticsearch.action.support.replication.TransportReplicationAction.doExecute(TransportReplicationAction.java:120)
      7. org.elasticsearch.action.index.TransportIndexAction.innerExecute(TransportIndexAction.java:135)
      8. org.elasticsearch.action.index.TransportIndexAction.doExecute(TransportIndexAction.java:119)
      9. org.elasticsearch.action.index.TransportIndexAction.doExecute(TransportIndexAction.java:66)
      10. org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:70)
      11. org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:58)
      12. org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:347)
      13. org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85)
      14. org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59)
      15. org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:67)
      15 frames
    3. FitNesse
      ElasticsearchServer.insert
      1. util.ElasticsearchServer.insert(ElasticsearchServer.java:83)
      1 frame
    4. models
      Entity.saveEntity
      1. models.Article.saveEntityElasticsearch(Article.java:349)
      2. models.Entity.saveEntity(Entity.java:26)
      2 frames
    5. controllers
      ImportController.importGermanLaws
      1. controllers.ImportController.saveArticleContainers2AndArticles2(ImportController.java:119)
      2. controllers.ImportController.saveArticleContainers2AndArticles2(ImportController.java:116)
      3. controllers.ImportController.importGermanLaws(ImportController.java:100)
      3 frames
    6. Unknown
      Routes$$anonfun$routes$1$$anonfun$applyOrElse$47$$anonfun$apply$47.apply
      1. Routes$$anonfun$routes$1$$anonfun$applyOrElse$47$$anonfun$apply$47.apply(routes_routing.scala:1060)
      2. Routes$$anonfun$routes$1$$anonfun$applyOrElse$47$$anonfun$apply$47.apply(routes_routing.scala:1060)
      2 frames
    7. Play
      JavaAction$$anonfun$11.apply
      1. play.core.Router$HandlerInvokerFactory$$anon$4.resultCall(Router.scala:264)
      2. play.core.Router$HandlerInvokerFactory$JavaActionInvokerFactory$$anon$15$$anon$1.invocation(Router.scala:255)
      3. play.core.j.JavaAction$$anon$1.call(JavaAction.scala:55)
      4. play.GlobalSettings$1.call(GlobalSettings.java:67)
      5. play.core.j.JavaAction$$anonfun$11.apply(JavaAction.scala:82)
      6. play.core.j.JavaAction$$anonfun$11.apply(JavaAction.scala:82)
      6 frames
    8. Scala
      Future$PromiseCompletingRunnable.run
      1. scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
      2. scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
      2 frames
    9. Play
      HttpExecutionContext$$anon$2.run
      1. play.core.j.HttpExecutionContext$$anon$2.run(HttpExecutionContext.scala:40)
      1 frame
    10. Play Iteratees
      Execution$trampoline$.execute
      1. play.api.libs.iteratee.Execution$trampoline$.execute(Execution.scala:46)
      1 frame
    11. Play
      HttpExecutionContext.execute
      1. play.core.j.HttpExecutionContext.execute(HttpExecutionContext.scala:32)
      1 frame
    12. Scala
      Future$.apply
      1. scala.concurrent.impl.Future$.apply(Future.scala:31)
      2. scala.concurrent.Future$.apply(Future.scala:485)
      2 frames
    13. Play
      Action$$anonfun$apply$1$$anonfun$apply$4.apply
      1. play.core.j.JavaAction$class.apply(JavaAction.scala:82)
      2. play.core.Router$HandlerInvokerFactory$JavaActionInvokerFactory$$anon$15$$anon$1.apply(Router.scala:252)
      3. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:130)
      4. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:130)
      5. play.utils.Threads$.withContextClassLoader(Threads.scala:21)
      6. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:129)
      7. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:128)
      7 frames
    14. Scala
      Option.map
      1. scala.Option.map(Option.scala:145)
      1 frame
    15. Play
      Action$$anonfun$apply$1.apply
      1. play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:128)
      2. play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:121)
      2 frames
    16. Play Iteratees
      Iteratee$$anonfun$flatMap$1$$anonfun$apply$14.apply
      1. play.api.libs.iteratee.Iteratee$$anonfun$mapM$1.apply(Iteratee.scala:483)
      2. play.api.libs.iteratee.Iteratee$$anonfun$mapM$1.apply(Iteratee.scala:483)
      3. play.api.libs.iteratee.Iteratee$$anonfun$flatMapM$1.apply(Iteratee.scala:519)
      4. play.api.libs.iteratee.Iteratee$$anonfun$flatMapM$1.apply(Iteratee.scala:519)
      5. play.api.libs.iteratee.Iteratee$$anonfun$flatMap$1$$anonfun$apply$14.apply(Iteratee.scala:496)
      6. play.api.libs.iteratee.Iteratee$$anonfun$flatMap$1$$anonfun$apply$14.apply(Iteratee.scala:496)
      6 frames
    17. Scala
      Future$PromiseCompletingRunnable.run
      1. scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
      2. scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
      2 frames
    18. Akka Actor
      ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec
      1. akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:41)
      2. akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
      2 frames
    19. Scala
      ForkJoinWorkerThread.run
      1. scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
      2. scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
      3. scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
      4. scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
      4 frames