Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-13825

NPE in camel-k-knative example

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • fuse-next-TP1-GA
    • fuse-next-TP1-GA
    • Camel-K
    • None

      I am getting NPE in both simple-predictor and better-predictor integrations.

      [2] 2020-05-20 07:52:20.612 INFO  [vert.x-eventloop-thread-1] route1 - Latest value for BTC/USDT is: 9779.0
      [2] 2020-05-20 07:52:30.445 INFO  [vert.x-eventloop-thread-1] route1 - Latest value for BTC/USDT is: 9777.06
      [2] 2020-05-20 07:52:30.454 INFO  [Camel (camel-k) thread #3 - seda://evaluate] route2 - Predicted action: buy at 9777.06
      [2] 2020-05-20 07:52:30.473 ERROR [Camel (camel-k) thread #3 - seda://evaluate] DefaultErrorHandler - Failed delivery for (MessageId: ID-simple-predictor-jcqgd-deployment-78fdf946df-5zvw7-1589961140562-0-4 on ExchangeId: ID-simple-predictor-jcqgd-deployment-78fdf946df-5zvw7-1589961140562-0-4). Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException
      [2] 
      [2] Message History (complete message history is disabled)
      [2] ---------------------------------------------------------------------------------------------------------------------------------------
      [2] RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
      [2] [route2            ] [route2            ] [from[seda://evaluate]                                                         ] [        25]
      [2]     ...
      [2] [route3            ] [marshal1          ] [marshal[org.apache.camel.model.dataformat.JsonDataFormat@559cedee]            ] [         0]
      [2] 
      [2] Stacktrace
      [2] ---------------------------------------------------------------------------------------------------------------------------------------
      [2] java.lang.NullPointerException: null
      [2]     at org.joor.Compile$ByteArrayClassLoader.findClass(Compile.java:172) ~[org.jooq.joor-0.9.12.jar:?]
      [2]     at java.lang.ClassLoader.findClass(ClassLoader.java:752) ~[?:?]
      [2]     at java.lang.ClassLoader.loadClass(ClassLoader.java:634) ~[?:?]
      [2]     at java.lang.Package.getPackageInfo(Package.java:420) ~[?:?]
      [2]     at java.lang.Package.getAnnotation(Package.java:441) ~[?:?]
      [2]     at com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector.findAnnotation(JaxbAnnotationIntrospector.java:1291) ~[com.fasterxml.jackson.module.jackson-module-jaxb-annotations-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector.findAccessType(JaxbAnnotationIntrospector.java:571) ~[com.fasterxml.jackson.module.jackson-module-jaxb-annotations-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector.findAutoDetectVisibility(JaxbAnnotationIntrospector.java:522) ~[com.fasterxml.jackson.module.jackson-module-jaxb-annotations-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.findAutoDetectVisibility(AnnotationIntrospectorPair.java:212) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.cfg.MapperConfigBase.getDefaultVisibilityChecker(MapperConfigBase.java:700) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector.<init>(POJOPropertiesCollector.java:142) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.constructPropertyCollector(BasicClassIntrospector.java:212) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.collectProperties(BasicClassIntrospector.java:190) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.forSerialization(BasicClassIntrospector.java:92) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.forSerialization(BasicClassIntrospector.java:16) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.SerializationConfig.introspect(SerializationConfig.java:851) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.ser.BeanSerializerFactory.createSerializer(BeanSerializerFactory.java:135) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.SerializerProvider._createUntypedSerializer(SerializerProvider.java:1388) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.SerializerProvider._createAndCacheUntypedSerializer(SerializerProvider.java:1336) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.SerializerProvider.findValueSerializer(SerializerProvider.java:510) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.SerializerProvider.findTypedValueSerializer(SerializerProvider.java:713) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:308) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.ObjectWriter$Prefetch.serialize(ObjectWriter.java:1433) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.ObjectWriter._configAndWriteValue(ObjectWriter.java:1135) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:960) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at org.apache.camel.component.jackson.JacksonDataFormat.marshal(JacksonDataFormat.java:172) ~[org.apache.camel.camel-jackson-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.support.processor.MarshalProcessor.process(MarshalProcessor.java:64) ~[org.apache.camel.camel-support-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:396) [org.apache.camel.camel-base-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:153) [org.apache.camel.camel-base-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:60) [org.apache.camel.camel-base-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.processor.Pipeline.process(Pipeline.java:147) [org.apache.camel.camel-base-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:286) [org.apache.camel.camel-base-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.component.seda.SedaConsumer.sendToConsumers(SedaConsumer.java:271) [org.apache.camel.camel-seda-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.component.seda.SedaConsumer.doRun(SedaConsumer.java:185) [org.apache.camel.camel-seda-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.component.seda.SedaConsumer.run(SedaConsumer.java:130) [org.apache.camel.camel-seda-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
      [2]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
      [2]     at java.lang.Thread.run(Thread.java:834) [?:?]
      [2] 2020-05-20 07:52:30.487 WARN  [Camel (camel-k) thread #3 - seda://evaluate] SedaConsumer - Error processing exchange. Exchange[]. Caused by: [java.lang.NullPointerException - null]
      [2] java.lang.NullPointerException: null
      [2]     at org.joor.Compile$ByteArrayClassLoader.findClass(Compile.java:172) ~[org.jooq.joor-0.9.12.jar:?]
      [2]     at java.lang.ClassLoader.findClass(ClassLoader.java:752) ~[?:?]
      [2]     at java.lang.ClassLoader.loadClass(ClassLoader.java:634) ~[?:?]
      [2]     at java.lang.Package.getPackageInfo(Package.java:420) ~[?:?]
      [2]     at java.lang.Package.getAnnotation(Package.java:441) ~[?:?]
      [2]     at com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector.findAnnotation(JaxbAnnotationIntrospector.java:1291) ~[com.fasterxml.jackson.module.jackson-module-jaxb-annotations-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector.findAccessType(JaxbAnnotationIntrospector.java:571) ~[com.fasterxml.jackson.module.jackson-module-jaxb-annotations-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector.findAutoDetectVisibility(JaxbAnnotationIntrospector.java:522) ~[com.fasterxml.jackson.module.jackson-module-jaxb-annotations-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.findAutoDetectVisibility(AnnotationIntrospectorPair.java:212) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.cfg.MapperConfigBase.getDefaultVisibilityChecker(MapperConfigBase.java:700) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector.<init>(POJOPropertiesCollector.java:142) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.constructPropertyCollector(BasicClassIntrospector.java:212) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.collectProperties(BasicClassIntrospector.java:190) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.forSerialization(BasicClassIntrospector.java:92) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.forSerialization(BasicClassIntrospector.java:16) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.SerializationConfig.introspect(SerializationConfig.java:851) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.ser.BeanSerializerFactory.createSerializer(BeanSerializerFactory.java:135) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.SerializerProvider._createUntypedSerializer(SerializerProvider.java:1388) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.SerializerProvider._createAndCacheUntypedSerializer(SerializerProvider.java:1336) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.SerializerProvider.findValueSerializer(SerializerProvider.java:510) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.SerializerProvider.findTypedValueSerializer(SerializerProvider.java:713) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:308) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.ObjectWriter$Prefetch.serialize(ObjectWriter.java:1433) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.ObjectWriter._configAndWriteValue(ObjectWriter.java:1135) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:960) ~[com.fasterxml.jackson.core.jackson-databind-2.10.2.jar:2.10.2]
      [2]     at org.apache.camel.component.jackson.JacksonDataFormat.marshal(JacksonDataFormat.java:172) ~[org.apache.camel.camel-jackson-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.support.processor.MarshalProcessor.process(MarshalProcessor.java:64) ~[org.apache.camel.camel-support-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:396) ~[org.apache.camel.camel-base-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:153) ~[org.apache.camel.camel-base-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:60) ~[org.apache.camel.camel-base-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.processor.Pipeline.process(Pipeline.java:147) ~[org.apache.camel.camel-base-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:286) ~[org.apache.camel.camel-base-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.component.seda.SedaConsumer.sendToConsumers(SedaConsumer.java:271) ~[org.apache.camel.camel-seda-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.component.seda.SedaConsumer.doRun(SedaConsumer.java:185) [org.apache.camel.camel-seda-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at org.apache.camel.component.seda.SedaConsumer.run(SedaConsumer.java:130) [org.apache.camel.camel-seda-3.1.0.fuse-jdk11-800011-redhat-00001.jar:3.1.0.fuse-jdk11-800011-redhat-00001]
      [2]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
      [2]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
      [2]     at java.lang.Thread.run(Thread.java:834) [?:?]
      [2] 2020-05-20 07:52:40.362 INFO  [vert.x-eventloop-thread-1] route1 - Latest value for BTC/USDT is: 9777.73
      [2] 2020-05-20 07:52:50.387 INFO  [vert.x-eventloop-thread-1] route1 - Latest value for BTC/USDT is: 9775.91
      

              nicolaferraro Nicola Ferraro (Inactive)
              jbouska@redhat.com Jan Bouska
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: