Skip to main content

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

Abdullah,

From the jetty side of things, your stack trace has got to the appropriate place where it is now trying to load the SSL provider.  Bad news is that from that point, we don't really know very much about native libraries... even less so on the raspberry pi.  Luckily for us, we have packaged version of conscrypt available for our supported platforms.

However, the good news is that the conscrypt community has always been very receptive to our enquiries and issues.   So I'm sure if you asked them about the problem you'd get some help.  You may even get in contact with others that have run conscrypt on a raspberry pi.

Good luck and do tell us the outcome either way. 

cheers


On 30 November 2017 at 13:54, Salama Abdallah <abdallah.salama@xxxxxxxxxxxxxxxx> wrote:
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

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



--

Back to the top