if (e.toString().indexOf(UNKNOWN_SERVER_ERROR_TEXT) > -1) { error += " This may be caused by Java's being unable to resolve the Zookeeper Quorum Member's" + " hostname correctly. You may want to try to adding" +
if (e.toString().indexOf(UNKNOWN_SERVER_ERROR_TEXT) > -1) { error += " This may be caused by Java's being unable to resolve the Zookeeper Quorum Member's" + " hostname correctly. You may want to try to adding"
if (e.toString().indexOf(UNKNOWN_SERVER_ERROR_TEXT) > -1) { error += " This may be caused by Java's being unable to resolve the Zookeeper Quorum Member's" + " hostname correctly. You may want to try to adding" +
} catch (PrivilegedActionException pae) { IllegalStateException ise = new IllegalStateException(pae.toString()); ExternalUtil.annotate(ise, pae); throw ise;
if (e.toString().indexOf(UNKNOWN_SERVER_ERROR_TEXT) > -1) { error += " This may be caused by Java's being unable to resolve the Zookeeper Quorum Member's" + " hostname correctly. You may want to try to adding"
public Connection open(final String name, final int mode, final boolean timeouts) throws IOException { try { return (Connection) AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws IOException { if (debugConnectionInvocations || needPrivilegedCalls) { return openSecureProxy(name, mode, timeouts, needPrivilegedCalls); } else { return openSecure(name, mode, timeouts); } } }, acc); } catch (PrivilegedActionException e) { if (e.getCause() instanceof IOException) { throw (IOException) e.getCause(); } throw new IOException(e.toString()); } }
@Override public byte[] getChallengeResponse(final byte[] challenge) throws SaslException { try { return Subject.doAs(subject, new PrivilegedExceptionAction<byte[]>() { @Override public byte[] run() throws Exception { return saslClient.evaluateChallenge(challenge); } }); } catch (PrivilegedActionException e) { throw new SaslException(e.toString(), e); } }
/** * set the classloader to use internally * * @param classloader */ public synchronized void setClassLoader(ClassLoader classloader) { try { this.classbyteloader = (ClassByteClassLoader)AccessController.doPrivileged( new PrivilegedExceptionAction() { public Object run() throws Exception { return new ClassByteClassLoader(this.getClass().getClassLoader()); } }); } catch (PrivilegedActionException e) { log.debug(e.toString(), e); throw new RuntimeException("Can't create a ClassLoader", e); } }
@Override public byte[] getChallengeResponse(final byte[] challenge) throws SaslException { try { return Subject.doAs(subject, new PrivilegedExceptionAction<byte[]>() { @Override public byte[] run() throws Exception { return saslClient.evaluateChallenge(challenge); } }); } catch (PrivilegedActionException e) { throw new SaslException(e.toString(), e); } }
if (e.toString().indexOf(UNKNOWN_SERVER_ERROR_TEXT) > -1) { error += " This may be caused by Java's being unable to resolve the Zookeeper Quorum Member's" + " hostname correctly. You may want to try to adding"
/** * Gets URL with nbfs protocol for passes fo * @param fo * @return url with nbfs protocol * @throws FileStateInvalidException if FileObject somehow corrupted */ static URL getURL(FileObject fo) throws FileStateInvalidException { final String fsPart = encodeFsPart(fo); final String foPart = encodeFoPart(fo); final String host = "nbhost";//NOI18N final String file = combine(fsPart, foPart); // #13038: the URL constructor accepting a handler is a security-sensitive // operation. Sometimes a user class loaded internally (customized bean...), // which has no privileges, needs to make and use an nbfs: URL, since this // may be the URL used by e.g. ClassLoader.getResource for resources. try { return (URL) AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws Exception { // #30397: the fsPart name cannot be null return new URL(FileURL.PROTOCOL, host, -1, file, FileURL.HANDLER); // NOI18N } }); } catch (PrivilegedActionException pae) { // MalformedURLException is declared but should not happen. IllegalStateException ise = new IllegalStateException(pae.toString()); ExternalUtil.annotate(ise, pae); throw ise; } }
/** * Gets URL with nbfs protocol for passes fo * @param fo * @return url with nbfs protocol * @throws FileStateInvalidException if FileObject somehow corrupted */ static URL getURL(FileObject fo) throws FileStateInvalidException { final String fsPart = encodeFsPart(fo); final String foPart = encodeFoPart(fo); final String host = "nbhost";//NOI18N final String file = combine(fsPart, foPart); // #13038: the URL constructor accepting a handler is a security-sensitive // operation. Sometimes a user class loaded internally (customized bean...), // which has no privileges, needs to make and use an nbfs: URL, since this // may be the URL used by e.g. ClassLoader.getResource for resources. try { return (URL) AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws Exception { // #30397: the fsPart name cannot be null return new URL(FileURL.PROTOCOL, host, -1, file, FileURL.HANDLER); // NOI18N } }); } catch (PrivilegedActionException pae) { // MalformedURLException is declared but should not happen. IllegalStateException ise = new IllegalStateException(pae.toString()); ExternalUtil.annotate(ise, pae); throw ise; } }
if (e.toString().indexOf(UNKNOWN_SERVER_ERROR_TEXT) > -1) { error += " This may be caused by Java's being unable to resolve the Zookeeper Quorum Member's" + " hostname correctly. You may want to try to adding" +
if (e.toString().indexOf(UNKNOWN_SERVER_ERROR_TEXT) > -1) { error += " This may be caused by Java's being unable to resolve the Zookeeper Quorum Member's" + " hostname correctly. You may want to try to adding" +
log.debug(e.toString(), e); throw new RuntimeException("Can't create a ClassLoader", e);
log.trace("Service login not successful due to {}", e); } else { log.error("Service login not successful due to {}", e.toString(), e);