Java 7 does not find libsoftokn3.so

Bug #821936 reported by Stephan Wienczny
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
openjdk-7 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Exception in thread "AWT-EventQueue-0" java.security.ProviderException: Library /usr/lib/x86_64-linux-gnu/libsoftokn3.so does not exist
        at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:292)
        at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:103)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
        at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:224)
        at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)
        at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)
        at sun.security.jca.ProviderList.getProvider(ProviderList.java:232)
        at sun.security.jca.ProviderList.getIndex(ProviderList.java:262)
        at sun.security.jca.ProviderList.getProviderConfig(ProviderList.java:246)
        at sun.security.jca.ProviderList.getProvider(ProviderList.java:252)
        at java.security.Security.getProvider(Security.java:474)
        at jd.http.XTrustProvider.install(XTrustProvider.java:70)
        at jd.http.Browser.init(Browser.java:1330)
        at jd.JDInit.initBrowser(Unknown Source)
        at jd.JDInit.init(Unknown Source)
        at jd.Main.go(Unknown Source)
        at jd.Main.access$0(Unknown Source)
        at jd.Main$3.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
        at java.awt.EventQueue.access$000(EventQueue.java:101)
        at java.awt.EventQueue$3.run(EventQueue.java:666)
        at java.awt.EventQueue$3.run(EventQueue.java:664)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

This missing file is located at /usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so and a symlink solves this issue

Revision history for this message
Philipp Dreimann (philipp-dreimann-deactivatedaccount) wrote :

happens on x86 as well.

Changed in openjdk-7 (Ubuntu):
status: New → Confirmed
Revision history for this message
kurapix (warren.levin) wrote :

It is still present in the latest "Precise Pangolin (12.04)" distribution.

Why is the fix still not integrated?

The fix:
ln -s /usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so /usr/lib/x86_64-linux-gnu/libsoftokn3.so

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.