Java Code Examples for com.oracle.webservices.internal.api.databinding.JavaCallInfo#getException()
The following examples show how to use
com.oracle.webservices.internal.api.databinding.JavaCallInfo#getException() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DatabindingImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
@Override public Packet serializeResponse(JavaCallInfo call) { Method method = call.getMethod(); Message message = null; if (method != null) { TieHandler th = tieHandlers.get(method); if (th != null) { return th.serializeResponse(call); } } if (call.getException() instanceof DispatchException) { message = ((DispatchException) call.getException()).fault; } Packet p = (Packet) packetFactory.createContext(message); p.setState(Packet.State.ServerResponse); return p; }
Example 2
Source File: DatabindingImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
@Override public Packet serializeResponse(JavaCallInfo call) { Method method = call.getMethod(); Message message = null; if (method != null) { TieHandler th = tieHandlers.get(method); if (th != null) { return th.serializeResponse(call); } } if (call.getException() instanceof DispatchException) { message = ((DispatchException) call.getException()).fault; } Packet p = (Packet) packetFactory.createContext(message); p.setState(Packet.State.ServerResponse); return p; }
Example 3
Source File: DatabindingImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
@Override public Packet serializeResponse(JavaCallInfo call) { Method method = call.getMethod(); Message message = null; if (method != null) { TieHandler th = tieHandlers.get(method); if (th != null) { return th.serializeResponse(call); } } if (call.getException() instanceof DispatchException) { message = ((DispatchException) call.getException()).fault; } Packet p = (Packet) packetFactory.createContext(message); p.setState(Packet.State.ServerResponse); return p; }
Example 4
Source File: DatabindingImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
@Override public Packet serializeResponse(JavaCallInfo call) { Method method = call.getMethod(); Message message = null; if (method != null) { TieHandler th = tieHandlers.get(method); if (th != null) { return th.serializeResponse(call); } } if (call.getException() instanceof DispatchException) { message = ((DispatchException) call.getException()).fault; } Packet p = (Packet) packetFactory.createContext(message); p.setState(Packet.State.ServerResponse); return p; }
Example 5
Source File: DatabindingImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@Override public Packet serializeResponse(JavaCallInfo call) { Method method = call.getMethod(); Message message = null; if (method != null) { TieHandler th = tieHandlers.get(method); if (th != null) { return th.serializeResponse(call); } } if (call.getException() instanceof DispatchException) { message = ((DispatchException) call.getException()).fault; } Packet p = (Packet) packetFactory.createContext(message); p.setState(Packet.State.ServerResponse); return p; }
Example 6
Source File: DatabindingImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
@Override public Packet serializeResponse(JavaCallInfo call) { Method method = call.getMethod(); Message message = null; if (method != null) { TieHandler th = tieHandlers.get(method); if (th != null) { return th.serializeResponse(call); } } if (call.getException() instanceof DispatchException) { message = ((DispatchException) call.getException()).fault; } Packet p = (Packet) packetFactory.createContext(message); p.setState(Packet.State.ServerResponse); return p; }
Example 7
Source File: DatabindingImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
@Override public Packet serializeResponse(JavaCallInfo call) { Method method = call.getMethod(); Message message = null; if (method != null) { TieHandler th = tieHandlers.get(method); if (th != null) { return th.serializeResponse(call); } } if (call.getException() instanceof DispatchException) { message = ((DispatchException) call.getException()).fault; } Packet p = (Packet) packetFactory.createContext(message); p.setState(Packet.State.ServerResponse); return p; }
Example 8
Source File: DatabindingImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
@Override public Packet serializeResponse(JavaCallInfo call) { Method method = call.getMethod(); Message message = null; if (method != null) { TieHandler th = tieHandlers.get(method); if (th != null) { return th.serializeResponse(call); } } if (call.getException() instanceof DispatchException) { message = ((DispatchException) call.getException()).fault; } Packet p = (Packet) packetFactory.createContext(message); p.setState(Packet.State.ServerResponse); return p; }
Example 9
Source File: TieHandler.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public Message createResponse(JavaCallInfo call) { Message responseMessage; if (call.getException() == null) { responseMessage = isOneWay ? null : createResponseMessage(call.getParameters(), call.getReturnValue()); } else { Throwable e = call.getException(); Throwable serviceException = getServiceException(e); if (e instanceof InvocationTargetException || serviceException != null) { // Throwable cause = e.getCause(); //if (!(cause instanceof RuntimeException) && cause instanceof Exception) { if (serviceException != null) { // Service specific exception LOGGER.log(Level.FINE, serviceException.getMessage(), serviceException); responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, javaMethodModel.getCheckedException(serviceException.getClass()), serviceException); } else { Throwable cause = e.getCause(); if (cause instanceof ProtocolException) { // Application code may be throwing it intentionally LOGGER.log(Level.FINE, cause.getMessage(), cause); } else { // Probably some bug in application code LOGGER.log(Level.SEVERE, cause.getMessage(), cause); } responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, cause); } } else if (e instanceof DispatchException) { responseMessage = ((DispatchException)e).fault; } else { LOGGER.log(Level.SEVERE, e.getMessage(), e); responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, e); } } // return req.createServerResponse(responseMessage, req.endpoint.getPort(), javaMethodModel.getOwner(), req.endpoint.getBinding()); return responseMessage; }
Example 10
Source File: TieHandler.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public Message createResponse(JavaCallInfo call) { Message responseMessage; if (call.getException() == null) { responseMessage = isOneWay ? null : createResponseMessage(call.getParameters(), call.getReturnValue()); } else { Throwable e = call.getException(); Throwable serviceException = getServiceException(e); if (e instanceof InvocationTargetException || serviceException != null) { // Throwable cause = e.getCause(); //if (!(cause instanceof RuntimeException) && cause instanceof Exception) { if (serviceException != null) { // Service specific exception LOGGER.log(Level.FINE, serviceException.getMessage(), serviceException); responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, javaMethodModel.getCheckedException(serviceException.getClass()), serviceException); } else { Throwable cause = e.getCause(); if (cause instanceof ProtocolException) { // Application code may be throwing it intentionally LOGGER.log(Level.FINE, cause.getMessage(), cause); } else { // Probably some bug in application code LOGGER.log(Level.SEVERE, cause.getMessage(), cause); } responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, cause); } } else if (e instanceof DispatchException) { responseMessage = ((DispatchException)e).fault; } else { LOGGER.log(Level.SEVERE, e.getMessage(), e); responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, e); } } // return req.createServerResponse(responseMessage, req.endpoint.getPort(), javaMethodModel.getOwner(), req.endpoint.getBinding()); return responseMessage; }
Example 11
Source File: TieHandler.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public Message createResponse(JavaCallInfo call) { Message responseMessage; if (call.getException() == null) { responseMessage = isOneWay ? null : createResponseMessage(call.getParameters(), call.getReturnValue()); } else { Throwable e = call.getException(); Throwable serviceException = getServiceException(e); if (e instanceof InvocationTargetException || serviceException != null) { // Throwable cause = e.getCause(); //if (!(cause instanceof RuntimeException) && cause instanceof Exception) { if (serviceException != null) { // Service specific exception LOGGER.log(Level.FINE, serviceException.getMessage(), serviceException); responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, javaMethodModel.getCheckedException(serviceException.getClass()), serviceException); } else { Throwable cause = e.getCause(); if (cause instanceof ProtocolException) { // Application code may be throwing it intentionally LOGGER.log(Level.FINE, cause.getMessage(), cause); } else { // Probably some bug in application code LOGGER.log(Level.SEVERE, cause.getMessage(), cause); } responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, cause); } } else if (e instanceof DispatchException) { responseMessage = ((DispatchException)e).fault; } else { LOGGER.log(Level.SEVERE, e.getMessage(), e); responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, e); } } // return req.createServerResponse(responseMessage, req.endpoint.getPort(), javaMethodModel.getOwner(), req.endpoint.getBinding()); return responseMessage; }
Example 12
Source File: TieHandler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public Message createResponse(JavaCallInfo call) { Message responseMessage; if (call.getException() == null) { responseMessage = isOneWay ? null : createResponseMessage(call.getParameters(), call.getReturnValue()); } else { Throwable e = call.getException(); Throwable serviceException = getServiceException(e); if (e instanceof InvocationTargetException || serviceException != null) { // Throwable cause = e.getCause(); //if (!(cause instanceof RuntimeException) && cause instanceof Exception) { if (serviceException != null) { // Service specific exception LOGGER.log(Level.FINE, serviceException.getMessage(), serviceException); responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, javaMethodModel.getCheckedException(serviceException.getClass()), serviceException); } else { Throwable cause = e.getCause(); if (cause instanceof ProtocolException) { // Application code may be throwing it intentionally LOGGER.log(Level.FINE, cause.getMessage(), cause); } else { // Probably some bug in application code LOGGER.log(Level.SEVERE, cause.getMessage(), cause); } responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, cause); } } else if (e instanceof DispatchException) { responseMessage = ((DispatchException)e).fault; } else { LOGGER.log(Level.SEVERE, e.getMessage(), e); responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, e); } } // return req.createServerResponse(responseMessage, req.endpoint.getPort(), javaMethodModel.getOwner(), req.endpoint.getBinding()); return responseMessage; }
Example 13
Source File: TieHandler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public Message createResponse(JavaCallInfo call) { Message responseMessage; if (call.getException() == null) { responseMessage = isOneWay ? null : createResponseMessage(call.getParameters(), call.getReturnValue()); } else { Throwable e = call.getException(); Throwable serviceException = getServiceException(e); if (e instanceof InvocationTargetException || serviceException != null) { // Throwable cause = e.getCause(); //if (!(cause instanceof RuntimeException) && cause instanceof Exception) { if (serviceException != null) { // Service specific exception LOGGER.log(Level.FINE, serviceException.getMessage(), serviceException); responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, javaMethodModel.getCheckedException(serviceException.getClass()), serviceException); } else { Throwable cause = e.getCause(); if (cause instanceof ProtocolException) { // Application code may be throwing it intentionally LOGGER.log(Level.FINE, cause.getMessage(), cause); } else { // Probably some bug in application code LOGGER.log(Level.SEVERE, cause.getMessage(), cause); } responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, cause); } } else if (e instanceof DispatchException) { responseMessage = ((DispatchException)e).fault; } else { LOGGER.log(Level.SEVERE, e.getMessage(), e); responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, e); } } // return req.createServerResponse(responseMessage, req.endpoint.getPort(), javaMethodModel.getOwner(), req.endpoint.getBinding()); return responseMessage; }
Example 14
Source File: TieHandler.java From hottub with GNU General Public License v2.0 | 5 votes |
public Message createResponse(JavaCallInfo call) { Message responseMessage; if (call.getException() == null) { responseMessage = isOneWay ? null : createResponseMessage(call.getParameters(), call.getReturnValue()); } else { Throwable e = call.getException(); Throwable serviceException = getServiceException(e); if (e instanceof InvocationTargetException || serviceException != null) { // Throwable cause = e.getCause(); //if (!(cause instanceof RuntimeException) && cause instanceof Exception) { if (serviceException != null) { // Service specific exception LOGGER.log(Level.FINE, serviceException.getMessage(), serviceException); responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, javaMethodModel.getCheckedException(serviceException.getClass()), serviceException); } else { Throwable cause = e.getCause(); if (cause instanceof ProtocolException) { // Application code may be throwing it intentionally LOGGER.log(Level.FINE, cause.getMessage(), cause); } else { // Probably some bug in application code LOGGER.log(Level.SEVERE, cause.getMessage(), cause); } responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, cause); } } else if (e instanceof DispatchException) { responseMessage = ((DispatchException)e).fault; } else { LOGGER.log(Level.SEVERE, e.getMessage(), e); responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, e); } } // return req.createServerResponse(responseMessage, req.endpoint.getPort(), javaMethodModel.getOwner(), req.endpoint.getBinding()); return responseMessage; }
Example 15
Source File: TieHandler.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public Message createResponse(JavaCallInfo call) { Message responseMessage; if (call.getException() == null) { responseMessage = isOneWay ? null : createResponseMessage(call.getParameters(), call.getReturnValue()); } else { Throwable e = call.getException(); Throwable serviceException = getServiceException(e); if (e instanceof InvocationTargetException || serviceException != null) { // Throwable cause = e.getCause(); //if (!(cause instanceof RuntimeException) && cause instanceof Exception) { if (serviceException != null) { // Service specific exception LOGGER.log(Level.FINE, serviceException.getMessage(), serviceException); responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, javaMethodModel.getCheckedException(serviceException.getClass()), serviceException); } else { Throwable cause = e.getCause(); if (cause instanceof ProtocolException) { // Application code may be throwing it intentionally LOGGER.log(Level.FINE, cause.getMessage(), cause); } else { // Probably some bug in application code LOGGER.log(Level.SEVERE, cause.getMessage(), cause); } responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, cause); } } else if (e instanceof DispatchException) { responseMessage = ((DispatchException)e).fault; } else { LOGGER.log(Level.SEVERE, e.getMessage(), e); responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, e); } } // return req.createServerResponse(responseMessage, req.endpoint.getPort(), javaMethodModel.getOwner(), req.endpoint.getBinding()); return responseMessage; }
Example 16
Source File: TieHandler.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Message createResponse(JavaCallInfo call) { Message responseMessage; if (call.getException() == null) { responseMessage = isOneWay ? null : createResponseMessage(call.getParameters(), call.getReturnValue()); } else { Throwable e = call.getException(); Throwable serviceException = getServiceException(e); if (e instanceof InvocationTargetException || serviceException != null) { // Throwable cause = e.getCause(); //if (!(cause instanceof RuntimeException) && cause instanceof Exception) { if (serviceException != null) { // Service specific exception LOGGER.log(Level.FINE, serviceException.getMessage(), serviceException); responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, javaMethodModel.getCheckedException(serviceException.getClass()), serviceException); } else { Throwable cause = e.getCause(); if (cause instanceof ProtocolException) { // Application code may be throwing it intentionally LOGGER.log(Level.FINE, cause.getMessage(), cause); } else { // Probably some bug in application code LOGGER.log(Level.SEVERE, cause.getMessage(), cause); } responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, cause); } } else if (e instanceof DispatchException) { responseMessage = ((DispatchException)e).fault; } else { LOGGER.log(Level.SEVERE, e.getMessage(), e); responseMessage = SOAPFaultBuilder.createSOAPFaultMessage(soapVersion, null, e); } } // return req.createServerResponse(responseMessage, req.endpoint.getPort(), javaMethodModel.getOwner(), req.endpoint.getBinding()); return responseMessage; }