PS: can also be worth checking java.net.URL#setURLStreamHandlerFactory (if
pax-url, spring boot etc are there)

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le jeu. 20 janv. 2022 à 18:35, Romain Manni-Bucau <[email protected]> a
écrit :

> Tested with 1.2.13 on a vanilla application and didn't get this issue,
> would be great to have the root of the stack (maybe breakpointing in
> lookupViaProperty)
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://rmannibucau.metawerx.net/> | Old Blog
> <http://rmannibucau.wordpress.com> | Github
> <https://github.com/rmannibucau> | LinkedIn
> <https://www.linkedin.com/in/rmannibucau> | Book
> <https://www.packtpub.com/application-development/java-ee-8-high-performance>
>
>
> Le jeu. 20 janv. 2022 à 16:11, Arne Limburg <[email protected]>
> a écrit :
>
>> Hi Romain,
>>
>>
>>
>> of course the stack is bigger 😉 , and it repeats as it is a
>> StackOverflowError. See two repetitions below.
>>
>> Meanwhile I tried with java 11 and have the problem, too. So indeed it
>> may be a combination of the libs. I’ll try to strip it down and provide a
>> working sample with all the libs in it.
>>
>>
>>
>> Cheers,
>>
>> Arne
>>
>>
>>
>> Error: A JNI error has occurred, please check your installation and try
>> again
>>
>> Exception in thread "main" java.lang.StackOverflowError
>>
>>     at java.base/java.security.AccessController.doPrivileged(Native
>> Method)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313)
>>
>>     at
>> java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:695)
>>
>>     at
>> java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
>>
>>     at
>> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
>>
>>     at
>> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
>>
>>     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
>>
>>     at java.base/java.net.URL.lookupViaProperty(URL.java:1261)
>>
>>     at java.base/java.net.URL.getURLStreamHandler(URL.java:1416)
>>
>>     at java.base/java.net.URL.<init>(URL.java:451)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath$JarLoader.<init>(URLClassPath.java:719)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476)
>>
>>     at java.base/java.security.AccessController.doPrivileged(Native
>> Method)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313)
>>
>>     at
>> java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:695)
>>
>>     at
>> java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
>>
>>     at
>> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
>>
>>     at
>> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
>>
>>     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
>>
>>     at java.base/java.net.URL.lookupViaProperty(URL.java:1261)
>>
>>     at java.base/java.net.URL.getURLStreamHandler(URL.java:1416)
>>
>>     at java.base/java.net.URL.<init>(URL.java:451)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath$JarLoader.<init>(URLClassPath.java:719)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476)
>>
>>     at java.base/java.security.AccessController.doPrivileged(Native
>> Method)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313)
>>
>>     at
>> java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:695)
>>
>>     at
>> java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621)
>>
>>     at
>> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579)
>>
>>     at
>> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
>>
>>     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
>>
>>     at java.base/java.net.URL.lookupViaProperty(URL.java:1261)
>>
>>     at java.base/java.net.URL.getURLStreamHandler(URL.java:1416)
>>
>>     at java.base/java.net.URL.<init>(URL.java:451)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath$JarLoader.<init>(URLClassPath.java:719)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:493)
>>
>>     at
>> java.base/jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:476)
>>
>>     at java.base/java.security.AccessController.doPrivileged(Native
>> Method)
>>
>>
>>
>>
>>
>>
>>
>> *OPEN* KNOWLEDGE GmbH
>> Poststraße 1, 26122 Oldenburg
>> Mobil: +49 151 - 108 22 942
>> Tel: +49 441 - 4082-154
>> Fax: +49 441 - 4082-111
>> [email protected]
>> www.openknowledge.de
>> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.openknowledge.de%2F&data=04%7C01%7C%7C3004d8758be44c8678c008d93bcc1e23%7C48837bc476f9481d8a76bd7b60b43dec%7C0%7C0%7C637606570139932909%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=9vRVYZVZ%2Feqk%2BvFxU5COofNvgs8U0AxtxRqwVEwqXHA%3D&reserved=0>
>>
>> Registergericht: Amtsgericht Oldenburg, HRB 4670
>> Geschäftsführer: Lars Röwekamp, Jens Schumann
>>
>>
>> *Treffen Sie uns auf kommenden Konferenzen und Workshops:*Zu unseren
>> Events
>> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.openknowledge.de%2Fevent%2F&data=04%7C01%7C%7C3004d8758be44c8678c008d93bcc1e23%7C48837bc476f9481d8a76bd7b60b43dec%7C0%7C0%7C637606570139932909%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=8tjmukdm1NxhXQMkn4VnESiBI216kXvh%2Fjb7%2FFYI0kE%3D&reserved=0>
>>
>> *Von: *Romain Manni-Bucau <[email protected]>
>> *Datum: *Donnerstag, 20. Januar 2022 um 13:43
>> *An: *[email protected] <[email protected]>
>> *Betreff: *Re: JNI Error using meecrowave:bundle
>>
>> Hi Arne,
>>
>>
>>
>> Isnt the stack bigger? I used java 11 but not this particular version,
>> can also be a lib side effect.
>>
>>
>>
>> For the runner the log config is a plain jvm one (log4j2 or jul if you
>> exclude log4j2 deps), nothing specific except defaults available in the
>> config.
>>
>>
>>
>> If you share a sample i can maybe be more precise.
>>
>> Le jeu. 20 janv. 2022 à 09:35, Arne Limburg <
>> [email protected]> a écrit :
>>
>> Hi,
>>
>>
>>
>> I’ve created a meecrowave bundle with the maven plugin.
>>
>> Unzipping the bundle and starting it on linux with meecrowave.sh start
>> fails with a JNI error:
>>
>> Error: A JNI error has occurred, please check your installation and try
>> again
>>
>> Exception in thread "main" java.lang.StackOverflowError
>>
>>                 at
>> java.base/java.security.AccessController.doPrivileged(Native Method)
>>
>>                 at
>> java.base/jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:475)
>>
>>                 at
>> java.base/jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:444)
>>
>>                 at
>> java.base/jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:313)
>>
>>                 at
>> java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:695)
>>
>>
>>
>> Java-version is AdoptOpenJDK-11.0.8.
>>
>> Is there a know issue with that version? Or anything else I can do?
>>
>> Using the runner works with that Java-version, however I don’t know how
>> to configure logging with the runner. Do we have any pointer how to do that?
>>
>>
>>
>> Cheer,
>>
>> Arne
>>
>>
>>
>> *OPEN* KNOWLEDGE GmbH
>> Poststraße 1, 26122 Oldenburg
>> Mobil: +49 151 - 108 22 942
>> Tel: +49 441 - 4082-154
>> Fax: +49 441 - 4082-111
>> [email protected]
>> www.openknowledge.de
>> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.openknowledge.de%2F&data=04%7C01%7C%7C3004d8758be44c8678c008d93bcc1e23%7C48837bc476f9481d8a76bd7b60b43dec%7C0%7C0%7C637606570139932909%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=9vRVYZVZ%2Feqk%2BvFxU5COofNvgs8U0AxtxRqwVEwqXHA%3D&reserved=0>
>>
>> Registergericht: Amtsgericht Oldenburg, HRB 4670
>> Geschäftsführer: Lars Röwekamp, Jens Schumann
>>
>>
>> * Treffen Sie uns auf kommenden Konferenzen und Workshops: *Zu unseren
>> Events
>> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.openknowledge.de%2Fevent%2F&data=04%7C01%7C%7C3004d8758be44c8678c008d93bcc1e23%7C48837bc476f9481d8a76bd7b60b43dec%7C0%7C0%7C637606570139932909%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=8tjmukdm1NxhXQMkn4VnESiBI216kXvh%2Fjb7%2FFYI0kE%3D&reserved=0>
>>
>>

Reply via email to