# HG changeset patch # User ascarpino # Date 1378140728 25200 # Node ID 38bed27b2815168ee9f5c7e6244744765868714d # Parent 628fe9d4788592181d51160838fea8ff5778f196 8009438: sun/security/pkcs11/Secmod tests failing on Ubuntu 12.04 Reviewed-by: vinnie diff -r 628fe9d47885 -r 38bed27b2815 jdk/src/share/classes/sun/security/pkcs11/Secmod.java --- a/jdk/src/share/classes/sun/security/pkcs11/Secmod.java Wed Sep 18 14:57:29 2013 -0700 +++ b/jdk/src/share/classes/sun/security/pkcs11/Secmod.java Mon Sep 02 09:52:08 2013 -0700 @@ -756,8 +756,12 @@ if (DEBUG) System.out.println("handles: " + handles.length); for (long handle : handles) { - TrustAttributes trust = new TrustAttributes(token, session, handle); - trustMap.put(trust.getHash(), trust); + try { + TrustAttributes trust = new TrustAttributes(token, session, handle); + trustMap.put(trust.getHash(), trust); + } catch (PKCS11Exception e) { + // skip put on pkcs11 error + } } } finally { token.releaseSession(session);