[GitHub] [camel-quarkus] hakuseki commented on issue #1116: Dynamic endpoint cannot be resolved properly (toD)
hakuseki commented on issue #1116: URL: https://github.com/apache/camel-quarkus/issues/1116#issuecomment-617696811 Expected result would be: ``` 0 0 * false 0 publication_date:[2020-04-21T00:00:00Z TO 2020-04-21T23:59:59Z] 100 xml 2020-04-21T00:00:00Z http://firds.esma.europa.eu/firds/DLTINS_20200421_01of02.zip DLTINS DLTINS_20200421_01of02.zip 34659 34659 34659 1664650793854173187 2020-04-22T05:51:47.884Z 2020-04-21T00:00:00Z http://firds.esma.europa.eu/firds/DLTINS_20200421_02of02.zip DLTINS DLTINS_20200421_02of02.zip 34660 34660 34660 1664650793854173188 2020-04-22T05:51:47.884Z ``` This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-quarkus] hakuseki commented on issue #1116: Dynamic endpoint cannot be resolved properly (toD)
hakuseki commented on issue #1116: URL: https://github.com/apache/camel-quarkus/issues/1116#issuecomment-617695517 removed all jdbc/flyway stuff for convenience This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-quarkus] hakuseki commented on issue #1116: Dynamic endpoint cannot be resolved properly (toD)
hakuseki commented on issue #1116: URL: https://github.com/apache/camel-quarkus/issues/1116#issuecomment-617693930 https://github.com/hakuseki/CamelQuarkusDynamicHttp This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-quarkus] hakuseki commented on issue #1116: Dynamic endpoint cannot be resolved properly (toD)
hakuseki commented on issue #1116: URL: https://github.com/apache/camel-quarkus/issues/1116#issuecomment-617690304 I have now created a empty project from code.quarkus.io and then added my dependencies and the Download route. Running it gives me the same NPE: ``` 2020-04-22 12:17:44,446 WARN [org.apa.cam.com.tim.TimerConsumer] (Camel (camel-5) thread #1 - timer://FIRDSDownloader) Error processing exchange. Exchange[52702C36318CF94-]. Caused by: [java.lang.NullPointerException - null]: java.lang.NullPointerException at org.apache.camel.catalog.impl.AbstractCamelCatalog.componentJSonSchema(AbstractCamelCatalog.java:71) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.lambda$componentJSonSchema$2(DefaultRuntimeCamelCatalog.java:75) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.cache(DefaultRuntimeCamelCatalog.java:126) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.componentJSonSchema(DefaultRuntimeCamelCatalog.java:75) at org.apache.camel.catalog.impl.AbstractCamelCatalog.componentModel(AbstractCamelCatalog.java:84) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.lambda$componentModel$3(DefaultRuntimeCamelCatalog.java:80) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.cache(DefaultRuntimeCamelCatalog.java:126) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.componentModel(DefaultRuntimeCamelCatalog.java:80) at org.apache.camel.catalog.impl.AbstractCamelCatalog.endpointProperties(AbstractCamelCatalog.java:382) at org.apache.camel.http.base.HttpSendDynamicAware.prepare(HttpSendDynamicAware.java:58) at org.apache.camel.processor.SendDynamicProcessor.process(SendDynamicProcessor.java:124) at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:396) at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:153) at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:60) at org.apache.camel.processor.Pipeline.process(Pipeline.java:147) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:286) at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:198) at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:78) at java.base/java.util.TimerThread.mainLoop(Timer.java:556) at java.base/java.util.TimerThread.run(Timer.java:506) ``` This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-quarkus] hakuseki commented on issue #1116: Dynamic endpoint cannot be resolved properly (toD)
hakuseki commented on issue #1116: URL: https://github.com/apache/camel-quarkus/issues/1116#issuecomment-617295800 Looks like "mine" but I'm curious if I have some dependencies missing or any other structural errors in my code… This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-quarkus] hakuseki commented on issue #1116: Dynamic endpoint cannot be resolved properly (toD)
hakuseki commented on issue #1116: URL: https://github.com/apache/camel-quarkus/issues/1116#issuecomment-617293048 Thx So what you are saying is that you can run my route and get a reply from the URL without any NPE? The URL endpoint is working, tried to use a static URL on a `.to()` and I got a response back. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-quarkus] hakuseki commented on issue #1116: Dynamic endpoint cannot be resolved properly (toD)
hakuseki commented on issue #1116: URL: https://github.com/apache/camel-quarkus/issues/1116#issuecomment-617270212 Something about the `RuntimeCamelCatalog` which is empty This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-quarkus] hakuseki commented on issue #1116: Dynamic endpoint cannot be resolved properly (toD)
hakuseki commented on issue #1116: URL: https://github.com/apache/camel-quarkus/issues/1116#issuecomment-617262973 `from(timer("FIRDSDownloader").repeatCount(1)) .setHeader("CamelHttpMethod", constant("GET")) // .toD("registers.esma.europa.eu/solr/esma_registers_firds_files/select?q=*=publication_date:%5B${date:now-72h:-MM-dd}T00:00:00Z%20TO%20${date:now-24h:-MM-dd}T23:59:59Z%5D=xml=false=0=100=false") .toD(https("registers.esma.europa.eu/solr/esma_registers_firds_files/select?q=*=publication_date:%5B${date:now-72h:-MM-dd}T00:00:00Z%20TO%20${date:now-24h:-MM-dd}T23:59:59Z%5D=xml=false=0=100=false")) .log("${body}") .end(); ` This produces this NPE: 2020-04-21 17:45:45,592 WARN [org.apa.cam.com.tim.TimerConsumer] (Camel (camel-13) thread #65 - timer://FIRDSDownloader) Error processing exchange. Exchange[B32CD34ABD896B2-]. Caused by: [java.lang.NullPointerException - null]: java.lang.NullPointerException at org.apache.camel.catalog.impl.AbstractCamelCatalog.componentJSonSchema(AbstractCamelCatalog.java:71) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.lambda$componentJSonSchema$2(DefaultRuntimeCamelCatalog.java:75) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.cache(DefaultRuntimeCamelCatalog.java:126) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.componentJSonSchema(DefaultRuntimeCamelCatalog.java:75) at org.apache.camel.catalog.impl.AbstractCamelCatalog.componentModel(AbstractCamelCatalog.java:84) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.lambda$componentModel$3(DefaultRuntimeCamelCatalog.java:80) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.cache(DefaultRuntimeCamelCatalog.java:126) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.componentModel(DefaultRuntimeCamelCatalog.java:80) at org.apache.camel.catalog.impl.AbstractCamelCatalog.endpointProperties(AbstractCamelCatalog.java:382) at org.apache.camel.http.base.HttpSendDynamicAware.prepare(HttpSendDynamicAware.java:58) at org.apache.camel.processor.SendDynamicProcessor.process(SendDynamicProcessor.java:124) at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:396) at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:153) at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:60) at org.apache.camel.processor.Pipeline.process(Pipeline.java:147) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:286) at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:198) at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:78) at java.base/java.util.TimerThread.mainLoop(Timer.java:556) at java.base/java.util.TimerThread.run(Timer.java:506) This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-quarkus] hakuseki commented on issue #1116: Dynamic endpoint cannot be resolved properly (toD)
hakuseki commented on issue #1116: URL: https://github.com/apache/camel-quarkus/issues/1116#issuecomment-617198530 Ahh, I see. The NPE is in `DefaultRuntimeCamelCatalog.java` `public ComponentModel componentModel(String name) { return (ComponentModel)this.cache("component-model-" + name, name, (x$0) -> { return super.componentModel(x$0); }); }` This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [camel-quarkus] hakuseki commented on issue #1116: Dynamic endpoint cannot be resolved properly (toD)
hakuseki commented on issue #1116: URL: https://github.com/apache/camel-quarkus/issues/1116#issuecomment-617195130 inner issue fixed but then I get a NPE in `2020-04-21 15:52:29,888 WARN [org.apa.cam.com.tim.TimerConsumer] (Camel (camel-2) thread #10 - timer://FIRDSDownloader) Error processing exchange. Exchange[93CF35C1B474473-]. Caused by: [java.lang.NullPointerException - null]: java.lang.NullPointerException at org.apache.camel.catalog.impl.AbstractCamelCatalog.componentJSonSchema(AbstractCamelCatalog.java:71) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.lambda$componentJSonSchema$2(DefaultRuntimeCamelCatalog.java:75) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.cache(DefaultRuntimeCamelCatalog.java:126) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.componentJSonSchema(DefaultRuntimeCamelCatalog.java:75) at org.apache.camel.catalog.impl.AbstractCamelCatalog.componentModel(AbstractCamelCatalog.java:84) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.lambda$componentModel$3(DefaultRuntimeCamelCatalog.java:80) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.cache(DefaultRuntimeCamelCatalog.java:126) at org.apache.camel.catalog.impl.DefaultRuntimeCamelCatalog.componentModel(DefaultRuntimeCamelCatalog.java:80) at org.apache.camel.catalog.impl.AbstractCamelCatalog.endpointProperties(AbstractCamelCatalog.java:382) at org.apache.camel.http.base.HttpSendDynamicAware.prepare(HttpSendDynamicAware.java:58) at org.apache.camel.processor.SendDynamicProcessor.process(SendDynamicProcessor.java:124) at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:396) at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:153) at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:60) at org.apache.camel.processor.Pipeline.process(Pipeline.java:147) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:286) at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:198) at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:78) at java.base/java.util.TimerThread.mainLoop(Timer.java:556) at java.base/java.util.TimerThread.run(Timer.java:506) ` Keep on debugging… This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org