You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2019/10/14 09:02:06 UTC

[GitHub] [camel-quarkus] lburgazzoli edited a comment on issue #249: Make xml and jaxb disabled by default and opt-in when depending on ca…

lburgazzoli edited a comment on issue #249: Make xml and jaxb disabled by default and opt-in when depending on ca…
URL: https://github.com/apache/camel-quarkus/pull/249#issuecomment-541556551
 
 
   @gnodet tried to buidl this PR agains quarkus 0.24.0 and got some errrors building native image (camel core tests):
   
   ```
   [camel-quarkus-integration-test-core-0.2.1-SNAPSHOT-runner:28]     analysis:  22,963.87 ms
   Error: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved type during parsing: org.apache.camel.support.processor.validation.PredicateValidatingProcessor. To diagnose the issue you can use the --allow-incomplete-classpath option. The missing type is then reported at run time when it is accessed the first time.
   Detailed message:
   Trace: 
   	at parsing org.apache.camel.reifier.ValidateReifier.createProcessor(ValidateReifier.java:34)
   Call path from entry point to org.apache.camel.reifier.ValidateReifier.createProcessor(RouteContext): 
   	at org.apache.camel.reifier.ValidateReifier.createProcessor(ValidateReifier.java:33)
   	at org.apache.camel.reifier.ValidateReifier.createProcessor(ValidateReifier.java:25)
   	at org.apache.camel.reifier.ProcessorReifier.makeProcessorImpl(ProcessorReifier.java:574)
   	at org.apache.camel.reifier.ProcessorReifier.makeProcessor(ProcessorReifier.java:540)
   	at org.apache.camel.reifier.ProcessorReifier.addRoutes(ProcessorReifier.java:250)
   	at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:377)
   	at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:108)
   	at org.apache.camel.quarkus.core.FastModel.start(FastModel.java:80)
   	at org.apache.camel.impl.DefaultModel.startRoute(DefaultModel.java:320)
   	at org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.java:313)
   	at org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.java:292)
   	at org.apache.camel.quarkus.core.FastCamelContext.startRouteDefinitions(FastCamelContext.java:134)
   	at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:2590)
   	at org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2(AbstractCamelContext.java:2438)
   	at org.apache.camel.impl.engine.AbstractCamelContext$$Lambda$721/1246765214.run(Unknown Source)
   	at org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClassLoader(AbstractCamelContext.java:2455)
   	at org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2436)
   	at org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:99)
   	at org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:71)
   	at org.apache.camel.support.LazyStartProducer.process(LazyStartProducer.java:50)
   	at org.apache.camel.processor.Resequencer.processExchange(Resequencer.java:302)
   	at org.apache.camel.processor.Resequencer$BatchSender.sendExchanges(Resequencer.java:530)
   	at org.apache.camel.processor.Resequencer$BatchSender.run(Resequencer.java:455)
   	at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:460)
   	at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:193)
   	at com.oracle.svm.core.code.IsolateEnterStub.PosixJavaThreads_pthreadStartRoutine_e1f4a8c0039f8337338252cd8734f63a79b5e3df(generated:0)
   ```
   
   When I add `--allow-incomplete-classpath` to the compiler options, I then get:
   
   ```
   Warning: class initialization of class org.apache.camel.model.ModelHelper failed with exception java.lang.NoClassDefFoundError: org/apache/camel/util/xml/XmlLineNumberParser$XmlTextTransformer. This class will be initialized at run time because option --allow-incomplete-classpath is used for image building. Use the option --initialize-at-run-time=org.apache.camel.model.ModelHelper to explicitly request delayed initialization of this class
   ```
   
   And a subsequent failure caused by:
   
   ```
   com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while parsing com.oracle.svm.reflect.ClassLoader_resolveClass_1e2b9a844a6faacbb35b21800611da766acbc0f6.invoke(java.lang.Object, java.lang.Object[])
   ```
   
   Which in my experience is because of some substitutions on jaxb are not applied.
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services