private void throwResourceException(SQLException paramSQLException) throws ResourceException { ResourceException localResourceException = new ResourceException(ResourceBundle.getBundle("com/sun/connector/jaxr/LocalStrings").getString("SQLException:_") + paramSQLException.getMessage()); localResourceException.setLinkedException(paramSQLException); throw localResourceException; }
private void throwResourceException(JAXRException paramJAXRException) throws ResourceException { this.log.fine("throwing REx in in JAXRManagedConnection constructor"); paramJAXRException.printStackTrace(); ResourceException localResourceException = new ResourceException(ResourceBundle.getBundle("com/sun/connector/jaxr/LocalStrings").getString("JAXRException:_") + paramJAXRException.getMessage()); localResourceException.setLinkedException(paramJAXRException); throw localResourceException; }
public boolean execute(InteractionSpec interactionSpec, Record actualRequest, Record actualResponse) throws ResourceException { if(!canHandle(interactionSpec, actualRequest, actualResponse)) return false; try { Class wsifMessageClass = getClassNamed(actualRequest.getClass(), "org.apache.wsif.base.WSIFDefaultMessage"); Class[] sopParams = new Class[2]; sopParams[0] = String.class; sopParams[1] = Object.class; Method sop = wsifMessageClass.getMethod("setObjectPart", sopParams); if (sop != null) { Object[] sopArgs = new Object[2]; sopArgs[0] = responsePartName; sopArgs[1] = responsePart; sop.invoke(actualResponse, sopArgs); return true; } } catch(Exception exc) { ResourceException resExc = new ResourceException("execute() failed"); resExc.setLinkedException(exc); throw resExc; } return false; }
public boolean execute(InteractionSpec interactionSpec, Record actualRequest, Record actualResponse) throws ResourceException { if(!canHandle(interactionSpec, actualRequest, actualResponse)) return false; try { Class wsifMessageClass = getClassNamed(actualRequest.getClass(), "org.apache.wsif.base.WSIFDefaultMessage"); Class[] sopParams = new Class[2]; sopParams[0] = String.class; sopParams[1] = Object.class; Method sop = wsifMessageClass.getMethod("setObjectPart", sopParams); if (sop != null) { Object[] sopArgs = new Object[2]; sopArgs[0] = responsePartName; sopArgs[1] = responsePart; sop.invoke(actualResponse, sopArgs); return true; } } catch(Exception exc) { ResourceException resExc = new ResourceException("execute() failed"); resExc.setLinkedException(exc); throw resExc; } return false; }
public boolean execute(InteractionSpec interactionSpec, Record actualRequest, Record actualResponse) throws ResourceException { if(!canHandle(interactionSpec, actualRequest, actualResponse)) return false; try { Class wsifMessageClass = getClassNamed(actualRequest.getClass(), "org.apache.wsif.base.WSIFDefaultMessage"); Class[] sopParams = new Class[2]; sopParams[0] = String.class; sopParams[1] = Object.class; Method sop = wsifMessageClass.getMethod("setObjectPart", sopParams); if (sop != null) { Object[] sopArgs = new Object[2]; sopArgs[0] = responsePartName; sopArgs[1] = responsePart; sop.invoke(actualResponse, sopArgs); return true; } } catch(Exception exc) { ResourceException resExc = new ResourceException("execute() failed"); resExc.setLinkedException(exc); throw resExc; } return false; }
resExc.setLinkedException(exc); throw resExc;
((ResourceException)localObject).setLinkedException(localException); throw ((ResourceException)localObject);
resExc.setLinkedException(exc); throw resExc;
resExc.setLinkedException(exc); throw resExc;
resExc.setLinkedException(exc); throw resExc;
resExc.setLinkedException(exc); throw resExc;
resExc.setLinkedException(exc); throw resExc;
resExc.setLinkedException(exc); throw resExc;
resExc.setLinkedException(exc); throw resExc;
resExc.setLinkedException(exc); throw resExc;
resExc.setLinkedException(exc); throw resExc;
resExc.setLinkedException(exc); throw resExc;
resExc.setLinkedException(exc); throw resExc;
/** * Create/startup the repository. */ @SuppressWarnings("deprecation") private void createRepository() throws ResourceException { if (repository == null) { try { JCARepositoryManager mgr = JCARepositoryManager.getInstance(); repository = mgr.createRepository(parameters); log("Created repository (" + repository + ")"); } catch (RepositoryException e) { log("Failed to create repository", e); ResourceException exception = new ResourceException( "Failed to create repository: " + e.getMessage()); exception.setLinkedException(e); throw exception; } } }
/** * Create/startup the repository. */ @SuppressWarnings("deprecation") private void createRepository() throws ResourceException { if (repository == null) { try { JCARepositoryManager mgr = JCARepositoryManager.getInstance(); repository = mgr.createRepository(parameters); log("Created repository (" + repository + ")"); } catch (RepositoryException e) { log("Failed to create repository", e); ResourceException exception = new ResourceException( "Failed to create repository: " + e.getMessage()); exception.setLinkedException(e); throw exception; } } }