public void writeWrongViewType() { final String message = Logs.REMOTING.remoteMessageBadViewType(getEJBIdentifier()); try (MessageOutputStream os = messageTracker.openMessageUninterruptibly()) { if (version >= 3) { os.writeByte(Protocol.BAD_VIEW_TYPE); os.writeShort(invId); os.writeUTF(message); } else { os.writeByte(Protocol.APPLICATION_EXCEPTION); os.writeShort(invId); final Marshaller marshaller = marshallerFactory.createMarshaller(configuration); marshaller.start(new NoFlushByteOutput(Marshalling.createByteOutput(os))); marshaller.writeObject(Logs.REMOTING.invalidViewTypeForInvocation(message)); marshaller.writeByte(0); marshaller.finish(); } } catch (IOException e) { // nothing to do at this point; the client doesn't want the response Logs.REMOTING.trace("EJB response write failed", e); } finally { invocations.removeKey(invId); } }
receiverInvocationContext.requestFailed(Logs.REMOTING.invalidViewTypeForInvocation(message), getRetryExecutor()); } catch (IOException e) { receiverInvocationContext.requestFailed(new EJBException("Failed to read 'Bad EJB view type' response", e), getRetryExecutor());
throw Logs.REMOTING.invalidViewTypeForInvocation(message);
public void writeWrongViewType() { final String message = Logs.REMOTING.remoteMessageBadViewType(getEJBIdentifier()); try (MessageOutputStream os = messageTracker.openMessageUninterruptibly()) { if (version >= 3) { os.writeByte(Protocol.BAD_VIEW_TYPE); os.writeShort(invId); os.writeUTF(message); } else { os.writeByte(Protocol.APPLICATION_EXCEPTION); os.writeShort(invId); final Marshaller marshaller = marshallerFactory.createMarshaller(configuration); marshaller.start(new NoFlushByteOutput(Marshalling.createByteOutput(os))); marshaller.writeObject(Logs.REMOTING.invalidViewTypeForInvocation(message)); marshaller.writeByte(0); marshaller.finish(); } } catch (IOException e) { // nothing to do at this point; the client doesn't want the response Logs.REMOTING.trace("EJB response write failed", e); } finally { invocations.removeKey(invId); } }
public void writeWrongViewType() { final String message = Logs.REMOTING.remoteMessageBadViewType(getEJBIdentifier()); try (MessageOutputStream os = messageTracker.openMessageUninterruptibly()) { if (version >= 3) { os.writeByte(Protocol.BAD_VIEW_TYPE); os.writeShort(invId); os.writeUTF(message); } else { os.writeByte(Protocol.APPLICATION_EXCEPTION); os.writeShort(invId); final Marshaller marshaller = marshallerFactory.createMarshaller(configuration); marshaller.start(new NoFlushByteOutput(Marshalling.createByteOutput(os))); marshaller.writeObject(Logs.REMOTING.invalidViewTypeForInvocation(message)); marshaller.writeByte(0); marshaller.finish(); } } catch (IOException e) { // nothing to do at this point; the client doesn't want the response Logs.REMOTING.trace("EJB response write failed", e); } finally { invocations.removeKey(invId); } }
receiverInvocationContext.requestFailed(Logs.REMOTING.invalidViewTypeForInvocation(message), getRetryExecutor()); } catch (IOException e) { receiverInvocationContext.requestFailed(new EJBException("Failed to read 'Bad EJB view type' response", e), getRetryExecutor());
receiverInvocationContext.requestFailed(Logs.REMOTING.invalidViewTypeForInvocation(message), getRetryExecutor()); } catch (IOException e) { receiverInvocationContext.requestFailed(new EJBException("Failed to read 'Bad EJB view type' response", e), getRetryExecutor());
throw Logs.REMOTING.invalidViewTypeForInvocation(message);
throw Logs.REMOTING.invalidViewTypeForInvocation(message);