Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Fatal error when run jetty server with Conscrypt on Raspberry pi

Dear Jetty users, 
 
In our project we want to run Jetty HTTPS secured on Raspberry pi. By default
HTTPS configuration, HTTPS runs very slow on the Raspberry, so that the solution
as you suggested to use the Conscrypt library for ssl. After a lot of work to
get the build successfully on Raspberry.  I installed the shared resulted shared
library (.so file) which was the only missing file required by the jetty server)
in order to enable Jetty from loading it. However, the Jetty Server console
throws the  exception below. What can be the problem? I am thinking on
incomplete build, or maybe i should also install the new Jar files resulted from
the build process together with the .so file (the native library). I would
appreciate any suggestions and help  
 

FATAL ERROR in native method: RegisterNatives failed for
'org/conscrypt/NativeCrypto'; aborting...

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)

- locked <0x6a5c69a8> (a java.util.Vector)

- locked <0x6a789790> (a java.util.Vector)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)

at java.lang.Runtime.loadLibrary0(Runtime.java:870)

- locked <0x6a5c5e78> (a java.lang.Runtime)

at java.lang.System.loadLibrary(System.java:1122)

at org.conscrypt.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:54)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at org.conscrypt.NativeLibraryLoader$1.run(NativeLibraryLoader.java:272)

at java.security.AccessController.doPrivileged(Native Method)

at
org.conscrypt.NativeLibraryLoader.loadLibraryByHelper(NativeLibraryLoader.java:264)

at org.conscrypt.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:252)

at org.conscrypt.NativeLibraryLoader.load(NativeLibraryLoader.java:197)

at
org.conscrypt.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:169)

at org.conscrypt.NativeCryptoJni.init(NativeCryptoJni.java:49)

at org.conscrypt.NativeCrypto.<clinit>(NativeCrypto.java:53)

at org.conscrypt.OpenSSLContextImpl$TLSv12.<init>(OpenSSLContextImpl.java:156)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:422)

at java.security.Provider$Service.newInstance(Provider.java:1595)

at sun.security.jca.GetInstance.getInstance(GetInstance.java:236)

at sun.security.jca.GetInstance.getInstance(GetInstance.java:206)

at javax.net.ssl.SSLContext.getInstance(SSLContext.java:199)

at org.eclipse.jetty.util.ssl.SslContextFactory.load(SslContextFactory.java:307)

at
org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:222)

- locked <0x6a923230> (a org.eclipse.jetty.util.ssl.SslContextFactory)

at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

- locked <0x6a943bf0> (a java.lang.Object)

at
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)

at
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113)

at
org.eclipse.jetty.server.SslConnectionFactory.doStart(SslConnectionFactory.java:72)

at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

- locked <0x65cd7718> (a java.lang.Object)

at
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)

at
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113)

at
org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:276)

at
org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:81)

at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:238)

at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

- locked <0x6a91d218> (a java.lang.Object)

at org.eclipse.jetty.server.Server.doStart(Server.java:428)

at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

- locked <0x6a867c58> (a java.lang.Object)

at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1584)

at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1508)

at java.security.AccessController.doPrivileged(Native Method)

at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1507)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at org.eclipse.jetty.start.Main.invokeMain(Main.java:221)

at org.eclipse.jetty.start.Main.start(Main.java:506)

at org.eclipse.jetty.start.Main.main(Main.java:78)

 
 
Best Regards,
Abdallah

Back to the top