com.mulesoft.weave.engine.ast.dynamic.UnexpectedOperationTypesException: Type mismatch for 'Value Selector' operator found :string, :name required :datetime, :name or required :localdatetime, :name or required :object, :name or required :time, :name or required :array, :name or required :date, :name or required :localtime, :name or required :period, :name

Stack Overflow | Alex | 2 months ago
  1. 0

    Mulesoft: Default value for not existing deep nodes

    Stack Overflow | 2 months ago | Alex
    com.mulesoft.weave.engine.ast.dynamic.UnexpectedOperationTypesException: Type mismatch for 'Value Selector' operator found :string, :name required :datetime, :name or required :localdatetime, :name or required :object, :name or required :time, :name or required :array, :name or required :date, :name or required :localtime, :name or required :period, :name

    Root Cause Analysis

    1. com.mulesoft.weave.engine.ast.dynamic.UnexpectedOperationTypesException

      Type mismatch for 'Value Selector' operator found :string, :name required :datetime, :name or required :localdatetime, :name or required :object, :name or required :time, :name or required :array, :name or required :date, :name or required :localtime, :name or required :period, :name

      at com.mulesoft.weave.engine.ast.OpNode$class.doExecuteAutoCoercion()
    2. com.mulesoft.weave
      ObjectNode$$anonfun$4.apply
      1. com.mulesoft.weave.engine.ast.OpNode$class.doExecuteAutoCoercion(OpNode.scala:79)
      2. com.mulesoft.weave.engine.ast.BinaryOpNode.doExecuteAutoCoercion(BinaryOpNode.scala:8)
      3. com.mulesoft.weave.engine.ast.OpNode$class.doExecute(OpNode.scala:33)
      4. com.mulesoft.weave.engine.ast.BinaryOpNode.doExecute(BinaryOpNode.scala:8)
      5. com.mulesoft.weave.engine.ast.ValueNode$class.execute(AstNode.scala:38)
      6. com.mulesoft.weave.engine.ast.BinaryOpNode.execute(BinaryOpNode.scala:8)
      7. com.mulesoft.weave.engine.ast.selectors.NullSafeNode.doExecute(NullSafeNode.scala:16)
      8. com.mulesoft.weave.engine.ast.ValueNode$class.execute(AstNode.scala:38)
      9. com.mulesoft.weave.engine.ast.selectors.NullSafeNode.execute(NullSafeNode.scala:10)
      10. com.mulesoft.weave.engine.ast.conditional.DefaultNode.doExecute(DefaultNode.scala:13)
      11. com.mulesoft.weave.engine.ast.ValueNode$class.execute(AstNode.scala:38)
      12. com.mulesoft.weave.engine.ast.conditional.DefaultNode.execute(DefaultNode.scala:10)
      13. com.mulesoft.weave.engine.ast.structure.KeyValuePairNode.doExecute(KeyValuePairNode.scala:12)
      14. com.mulesoft.weave.engine.ast.ValueNode$class.execute(AstNode.scala:38)
      15. com.mulesoft.weave.engine.ast.structure.KeyValuePairNode.execute(KeyValuePairNode.scala:10)
      16. com.mulesoft.weave.engine.ast.structure.ObjectNode$$anonfun$4.apply(DynamicObjectNode.scala:39)
      17. com.mulesoft.weave.engine.ast.structure.ObjectNode$$anonfun$4.apply(DynamicObjectNode.scala:38)
      17 frames
    3. Scala
      AbstractTraversable.map
      1. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
      2. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
      3. scala.collection.Iterator$class.foreach(Iterator.scala:742)
      4. scala.collection.AbstractIterator.foreach(Iterator.scala:1194)
      5. scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      6. scala.collection.AbstractIterable.foreach(Iterable.scala:54)
      7. scala.collection.TraversableLike$class.map(TraversableLike.scala:245)
      8. scala.collection.AbstractTraversable.map(Traversable.scala:104)
      8 frames
    4. com.mulesoft.weave
      DebugWeaveExecutorStrategy$$anonfun$execute$1.apply
      1. com.mulesoft.weave.engine.ast.structure.ObjectNode.doExecute(DynamicObjectNode.scala:38)
      2. com.mulesoft.weave.engine.ast.ValueNode$class.execute(AstNode.scala:38)
      3. com.mulesoft.weave.engine.ast.structure.ObjectNode.execute(DynamicObjectNode.scala:28)
      4. com.mulesoft.weave.engine.ast.ValueNode$class.write(AstNode.scala:28)
      5. com.mulesoft.weave.engine.ast.structure.ObjectNode.write(DynamicObjectNode.scala:28)
      6. com.mulesoft.weave.engine.Engine.write(Engine.scala:165)
      7. com.mulesoft.weave.engine.Engine.execute(Engine.scala:88)
      8. com.mulesoft.weave.engine.Engine.execute(Engine.scala:103)
      9. com.mulesoft.weave.mule.debug.DebugWeaveExecutorStrategy$$anonfun$execute$1.apply(DebugWeaveExecutorStrategy.scala:30)
      10. com.mulesoft.weave.mule.debug.DebugWeaveExecutorStrategy$$anonfun$execute$1.apply(DebugWeaveExecutorStrategy.scala:28)
      10 frames
    5. Scala
      Option.map
      1. scala.Option.map(Option.scala:146)
      1 frame
    6. com.mulesoft.weave
      WeaveMessageProcessor.process
      1. com.mulesoft.weave.mule.debug.DebugWeaveExecutorStrategy.execute(DebugWeaveExecutorStrategy.scala:28)
      2. com.mulesoft.weave.mule.WeaveMessageProcessor.execute(WeaveMessageProcessor.scala:117)
      3. com.mulesoft.weave.mule.WeaveMessageProcessor.process(WeaveMessageProcessor.scala:65)
      3 frames
    7. Mule Core
      WorkerContext.run
      1. org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27)
      2. org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108)
      3. org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44)
      4. org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88)
      5. org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59)
      6. org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27)
      7. org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44)
      8. org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:98)
      9. org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59)
      10. org.mule.interceptor.AbstractEnvelopeInterceptor.processBlocking(AbstractEnvelopeInterceptor.java:58)
      11. org.mule.processor.AbstractRequestResponseMessageProcessor.process(AbstractRequestResponseMessageProcessor.java:47)
      12. org.mule.processor.AsyncInterceptingMessageProcessor.processNextTimed(AsyncInterceptingMessageProcessor.java:123)
      13. org.mule.processor.AsyncInterceptingMessageProcessor$AsyncMessageProcessorWorker$1.process(AsyncInterceptingMessageProcessor.java:208)
      14. org.mule.processor.AsyncInterceptingMessageProcessor$AsyncMessageProcessorWorker$1.process(AsyncInterceptingMessageProcessor.java:201)
      15. org.mule.execution.ExecuteCallbackInterceptor.execute(ExecuteCallbackInterceptor.java:16)
      16. org.mule.execution.CommitTransactionInterceptor.execute(CommitTransactionInterceptor.java:35)
      17. org.mule.execution.CommitTransactionInterceptor.execute(CommitTransactionInterceptor.java:22)
      18. org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:30)
      19. org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:14)
      20. org.mule.execution.BeginAndResolveTransactionInterceptor.execute(BeginAndResolveTransactionInterceptor.java:67)
      21. org.mule.execution.ResolvePreviousTransactionInterceptor.execute(ResolvePreviousTransactionInterceptor.java:44)
      22. org.mule.execution.SuspendXaTransactionInterceptor.execute(SuspendXaTransactionInterceptor.java:50)
      23. org.mule.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:40)
      24. org.mule.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:41)
      25. org.mule.execution.ExternalTransactionInterceptor.execute(ExternalTransactionInterceptor.java:48)
      26. org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:28)
      27. org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:13)
      28. org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:110)
      29. org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:30)
      30. org.mule.processor.AsyncInterceptingMessageProcessor$AsyncMessageProcessorWorker.doRun(AsyncInterceptingMessageProcessor.java:200)
      31. org.mule.work.AbstractMuleEventWork.run(AbstractMuleEventWork.java:53)
      32. org.mule.work.WorkerContext.run(WorkerContext.java:286)
      32 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames