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 2020/10/27 13:16:18 UTC

[GitHub] [camel-quarkus] jamesnetherton opened a new issue #1961: json-validator native build fails with Camel 3.7.0-SNAPSHOT

jamesnetherton opened a new issue #1961:
URL: https://github.com/apache/camel-quarkus/issues/1961


   Camel has upgraded `json-schema-validator` to 1.0.44 which seems to contain some changes that break native support.
   
   Looks like there's now support for an [optional library](https://github.com/networknt/json-schema-validator/blob/master/pom.xml#L91-L96) for [ECMA 262](https://github.com/networknt/json-schema-validator/blob/master/doc/ecma-262.md) validation. Which is probably the root cause of the CNFE.
   
   ```
   Error: Class initialization of com.networknt.schema.PatternValidator$PatternValidatorEcma262 failed. Use the option --initialize-at-run-time=com.networknt.schema.PatternValidator$PatternValidatorEcma262 to explicitly request delayed initialization of this class.
   Original exception that caused the problem: java.lang.NoClassDefFoundError: org/jcodings/Encoding
   	at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
   	at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1042)
   	at jdk.unsupported/sun.misc.Unsafe.ensureClassInitialized(Unsafe.java:698)
   	at com.oracle.svm.hosted.classinitialization.ConfigurableClassInitialization.ensureClassInitialized(ConfigurableClassInitialization.java:177)
   	at com.oracle.svm.hosted.classinitialization.ConfigurableClassInitialization.computeInitKindAndMaybeInitializeClass(ConfigurableClassInitialization.java:594)
   	at com.oracle.svm.hosted.classinitialization.ConfigurableClassInitialization.computeInitKindAndMaybeInitializeClass(ConfigurableClassInitialization.java:130)
   	at com.oracle.svm.hosted.classinitialization.ConfigurableClassInitialization.maybeInitializeHosted(ConfigurableClassInitialization.java:168)
   	at com.oracle.svm.hosted.SVMHost.registerType(SVMHost.java:236)
   	at com.oracle.graal.pointsto.meta.AnalysisUniverse.createType(AnalysisUniverse.java:271)
   	at com.oracle.graal.pointsto.meta.AnalysisUniverse.lookupAllowUnresolved(AnalysisUniverse.java:209)
   	at com.oracle.graal.pointsto.infrastructure.WrappedConstantPool.lookupType(WrappedConstantPool.java:164)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.lookupType(BytecodeParser.java:4264)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.genNewInstance(BytecodeParser.java:4545)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBytecode(BytecodeParser.java:5343)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:3413)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBlock(BytecodeParser.java:3220)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.build(BytecodeParser.java:1090)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.buildRootMethod(BytecodeParser.java:984)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.java.GraphBuilderPhase$Instance.run(GraphBuilderPhase.java:84)
   	at com.oracle.svm.hosted.phases.SharedGraphBuilderPhase.run(SharedGraphBuilderPhase.java:74)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.phases.Phase.run(Phase.java:49)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:214)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.phases.Phase.apply(Phase.java:42)
   	at jdk.internal.vm.compiler/org.graalvm.compiler.phases.Phase.apply(Phase.java:38)
   	at com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.parse(MethodTypeFlowBuilder.java:223)
   	at com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.apply(MethodTypeFlowBuilder.java:357)
   	at com.oracle.graal.pointsto.flow.MethodTypeFlow.doParse(MethodTypeFlow.java:313)
   	at com.oracle.graal.pointsto.flow.MethodTypeFlow.ensureParsed(MethodTypeFlow.java:302)
   	at com.oracle.graal.pointsto.flow.MethodTypeFlow.addContext(MethodTypeFlow.java:103)
   	at com.oracle.graal.pointsto.DefaultAnalysisPolicy$DefaultSpecialInvokeTypeFlow.onObservedUpdate(DefaultAnalysisPolicy.java:368)
   	at com.oracle.graal.pointsto.flow.TypeFlow.notifyObservers(TypeFlow.java:470)
   	at com.oracle.graal.pointsto.flow.TypeFlow.update(TypeFlow.java:542)
   	at com.oracle.graal.pointsto.flow.SourceTypeFlowBase.update(SourceTypeFlowBase.java:144)
   	at com.oracle.graal.pointsto.BigBang$2.run(BigBang.java:552)
   	at com.oracle.graal.pointsto.util.CompletionExecutor.lambda$execute$0(CompletionExecutor.java:173)
   	at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426)
   	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
   	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
   	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
   	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
   	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
   Caused by: java.lang.ClassNotFoundException: org.jcodings.Encoding
   	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
   	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
   	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
   	... 41 more
   Error: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved method during parsing: com.networknt.schema.PatternValidator$PatternValidatorEcma262.<init>(java.lang.String, com.fasterxml.jackson.databind.JsonNode, com.networknt.schema.JsonSchema, com.networknt.schema.ValidationContext). To diagnose the issue you can use the --allow-incomplete-classpath option. The missing method is then reported at run time when it is accessed the first time.
   Trace: 
   	at parsing com.networknt.schema.PatternValidator.<init>(PatternValidator.java:41)
   Call path from entry point to com.networknt.schema.PatternValidator.<init>(String, JsonNode, JsonSchema, ValidationContext): 
   	at com.networknt.schema.PatternValidator.<init>(PatternValidator.java:39)
   	at com.oracle.svm.reflect.PatternValidator_constructor_153192f40a452a183245b0da2c316d1e8679009d_53.newInstance(Unknown Source)
   	at java.lang.reflect.Constructor.newInstance(Constructor.java:490)
   	at java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:779)
   	at java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:721)
   	at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
   	at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
   	at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:331)
   	at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
   
   	at com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:129)
   	at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:762)
   	... 8 more
   ```


----------------------------------------------------------------
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



[GitHub] [camel-quarkus] aldettinger commented on issue #1961: json-validator native build fails with Camel 3.7.0-SNAPSHOT

Posted by GitBox <gi...@apache.org>.
aldettinger commented on issue #1961:
URL: https://github.com/apache/camel-quarkus/issues/1961#issuecomment-717509737


   Yeah, I'll look into that to see how far we are from adopting this patch release.


----------------------------------------------------------------
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



[GitHub] [camel-quarkus] oscerd commented on issue #1961: json-validator native build fails with Camel 3.7.0-SNAPSHOT

Posted by GitBox <gi...@apache.org>.
oscerd commented on issue #1961:
URL: https://github.com/apache/camel-quarkus/issues/1961#issuecomment-717237177


   If this is a problem we can revert upstream, because it was just a patch release, but we'll face the same problem in the future


----------------------------------------------------------------
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



[GitHub] [camel-quarkus] aldettinger closed issue #1961: json-validator native build fails with Camel 3.7.0-SNAPSHOT

Posted by GitBox <gi...@apache.org>.
aldettinger closed issue #1961:
URL: https://github.com/apache/camel-quarkus/issues/1961


   


----------------------------------------------------------------
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



[GitHub] [camel-quarkus] jamesnetherton commented on issue #1961: json-validator native build fails with Camel 3.7.0-SNAPSHOT

Posted by GitBox <gi...@apache.org>.
jamesnetherton commented on issue #1961:
URL: https://github.com/apache/camel-quarkus/issues/1961#issuecomment-717235590


   /CC @aldettinger 


----------------------------------------------------------------
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