Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testcontainers is causing ClassNotFoundException for javax.annotations.CheckForNull #668

Closed
whitingjr opened this issue Sep 21, 2023 · 0 comments · Fixed by #669
Closed
Labels
type/bug Something isn't working

Comments

@whitingjr
Copy link
Collaborator

Describe the bug

Testcontainers is causing this CNFE

javax.annotations.CheckForNull
loadClass:641, BuiltinClassLoader (jdk.internal.loader)
loadClass:188, ClassLoaders$AppClassLoader (jdk.internal.loader)
loadClass:525, ClassLoader (java.lang)
loadClass:516, QuarkusClassLoader (io.quarkus.bootstrap.classloading)
loadClass:466, QuarkusClassLoader (io.quarkus.bootstrap.classloading)
forName0:-1, Class (java.lang)
forName:467, Class (java.lang)
makeNamedType:114, CoreReflectionFactory (sun.reflect.generics.factory)
visitClassTypeSignature:125, Reifier (sun.reflect.generics.visitor)
accept:49, ClassTypeSignature (sun.reflect.generics.tree)
parseSig:441, AnnotationParser (sun.reflect.annotation)
parseAnnotation2:241, AnnotationParser (sun.reflect.annotation)
parseAnnotations2:121, AnnotationParser (sun.reflect.annotation)
parseAnnotations:73, AnnotationParser (sun.reflect.annotation)
declaredAnnotations:625, Executable (java.lang.reflect)
declaredAnnotations:623, Executable (java.lang.reflect)
getDeclaredAnnotations:611, Executable (java.lang.reflect)
getDeclaredAnnotations:747, Method (java.lang.reflect)
_constructMethod:893, AnnotatedClass (org.testcontainers.shaded.com.fasterxml.jackson.databind.introspect)
_addMemberMethods:739, AnnotatedClass (org.testcontainers.shaded.com.fasterxml.jackson.databind.introspect)
resolveMemberMethods:544, AnnotatedClass (org.testcontainers.shaded.com.fasterxml.jackson.databind.introspect)
memberMethods:340, AnnotatedClass (org.testcontainers.shaded.com.fasterxml.jackson.databind.introspect)
_addMethods:512, POJOPropertiesCollector (org.testcontainers.shaded.com.fasterxml.jackson.databind.introspect)
collectAll:303, POJOPropertiesCollector (org.testcontainers.shaded.com.fasterxml.jackson.databind.introspect)
getPropertyMap:267, POJOPropertiesCollector (org.testcontainers.shaded.com.fasterxml.jackson.databind.introspect)
getProperties:159, POJOPropertiesCollector (org.testcontainers.shaded.com.fasterxml.jackson.databind.introspect)
_properties:144, BasicBeanDescription (org.testcontainers.shaded.com.fasterxml.jackson.databind.introspect)
findProperties:219, BasicBeanDescription (org.testcontainers.shaded.com.fasterxml.jackson.databind.introspect)
_findCreatorsFromProperties:330, BasicDeserializerFactory (org.testcontainers.shaded.com.fasterxml.jackson.databind.deser)
_constructDefaultValueInstantiator:314, BasicDeserializerFactory (org.testcontainers.shaded.com.fasterxml.jackson.databind.deser)
findValueInstantiator:253, BasicDeserializerFactory (org.testcontainers.shaded.com.fasterxml.jackson.databind.deser)
buildBeanDeserializer:219, BeanDeserializerFactory (org.testcontainers.shaded.com.fasterxml.jackson.databind.deser)
createBeanDeserializer:141, BeanDeserializerFactory (org.testcontainers.shaded.com.fasterxml.jackson.databind.deser)
_createDeserializer2:403, DeserializerCache (org.testcontainers.shaded.com.fasterxml.jackson.databind.deser)
_createDeserializer:349, DeserializerCache (org.testcontainers.shaded.com.fasterxml.jackson.databind.deser)
_createAndCache2:264, DeserializerCache (org.testcontainers.shaded.com.fasterxml.jackson.databind.deser)
_createAndCacheValueDeserializer:244, DeserializerCache (org.testcontainers.shaded.com.fasterxml.jackson.databind.deser)
findValueDeserializer:142, DeserializerCache (org.testcontainers.shaded.com.fasterxml.jackson.databind.deser)
findContextualValueDeserializer:443, DeserializationContext (org.testcontainers.shaded.com.fasterxml.jackson.databind)
createContextual:206, CollectionDeserializer (org.testcontainers.shaded.com.fasterxml.jackson.databind.deser.std)
createContextual:26, CollectionDeserializer (org.testcontainers.shaded.com.fasterxml.jackson.databind.deser.std)
handleSecondaryContextualization:681, DeserializationContext (org.testcontainers.shaded.com.fasterxml.jackson.databind)
findRootValueDeserializer:481, DeserializationContext (org.testcontainers.shaded.com.fasterxml.jackson.databind)
_findRootDeserializer:3899, ObjectMapper (org.testcontainers.shaded.com.fasterxml.jackson.databind)
_readMapAndClose:3794, ObjectMapper (org.testcontainers.shaded.com.fasterxml.jackson.databind)
readValue:2915, ObjectMapper (org.testcontainers.shaded.com.fasterxml.jackson.databind)
get:75, DefaultInvocationBuilder (org.testcontainers.shaded.com.github.dockerjava.core)
execute:44, ListContainersCmdExec (org.testcontainers.shaded.com.github.dockerjava.core.exec)
execute:15, ListContainersCmdExec (org.testcontainers.shaded.com.github.dockerjava.core.exec)
exec:21, AbstrSyncDockerCmdExec (org.testcontainers.shaded.com.github.dockerjava.core.exec)
exec:35, AbstrDockerCmd (org.testcontainers.shaded.com.github.dockerjava.core.command)
prune:45, JVMHookResourceReaper (org.testcontainers.utility)
lambda$performCleanup$0:25, JVMHookResourceReaper (org.testcontainers.utility)
accept:-1, JVMHookResourceReaper$$Lambda$3962/0x00007f314d8cd918 (org.testcontainers.utility)
forEach:1511, ArrayList (java.util)
performCleanup:25, JVMHookResourceReaper (org.testcontainers.utility)
run:-1, ResourceReaper$$Lambda$1848/0x00007f314c8a67b8 (org.testcontainers.utility)
run:833, Thread (java.lang)

To Reproduce

Attach a debugger with a breakpoint on ClassNotFoundException for the class javax.annotations.CheckForNull

Version

master, 274e0e5b

Java

17

OS

F38

@whitingjr whitingjr added the type/bug Something isn't working label Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant