public void throwCommunicationsFailure(Throwable cause) throws com.pivotal.gemfirexd.internal.client.am.DisconnectException { //com.pivotal.gemfirexd.internal.client.am.DisconnectException //accumulateReadExceptionAndDisconnect // note when {6} = 0 it indicates the socket was closed. // need to still validate any token values against message publications. accumulateChainBreakingReadExceptionAndThrow( new com.pivotal.gemfirexd.internal.client.am.DisconnectException(this, new ClientMessageId(SQLState.COMMUNICATION_ERROR), cause.getMessage(), cause)); }
public void throwCommunicationsFailure(Throwable cause) throws com.pivotal.gemfirexd.internal.client.am.DisconnectException { //com.pivotal.gemfirexd.internal.client.am.DisconnectException //accumulateReadExceptionAndDisconnect // note when {6} = 0 it indicates the socket was closed. // need to still validate any token values against message publications. accumulateChainBreakingReadExceptionAndThrow( new com.pivotal.gemfirexd.internal.client.am.DisconnectException(this, new ClientMessageId(SQLState.COMMUNICATION_ERROR), cause.getMessage(), cause)); }
void parseSQLDCTOKS() throws DisconnectException, SqlException { if (readFdocaOneByte() == CodePoint.NULLDATA) { return; } // The server should send NULLDATA netAgent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(netAgent_, new ClientMessageId(SQLState.DRDA_COMMAND_NOT_IMPLEMENTED), "parseSQLDCTOKS")); }
private void parseSQLDIAGSTT() throws DisconnectException, SqlException { if (readFdocaOneByte() == CodePoint.NULLDATA) { return; } // The server should send NULLDATA netAgent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(netAgent_, new ClientMessageId(SQLState.DRDA_COMMAND_NOT_IMPLEMENTED), "parseSQLDIAGSTT")); }
private void parseSQLDIAGSTT() throws DisconnectException, SqlException { if (readFdocaOneByte() == CodePoint.NULLDATA) { return; } // The server should send NULLDATA netAgent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(netAgent_, new ClientMessageId(SQLState.DRDA_COMMAND_NOT_IMPLEMENTED), "parseSQLDIAGSTT")); }
void parseSQLDCTOKS() throws DisconnectException, SqlException { if (readFdocaOneByte() == CodePoint.NULLDATA) { return; } // The server should send NULLDATA netAgent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(netAgent_, new ClientMessageId(SQLState.DRDA_COMMAND_NOT_IMPLEMENTED), "parseSQLDCTOKS")); }
private void parseSQLDCXGRP() throws DisconnectException, SqlException { if (readFdocaOneByte() == CodePoint.NULLDATA) { return; } // The server should send NULLDATA netAgent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(netAgent_, new ClientMessageId(SQLState.DRDA_COMMAND_NOT_IMPLEMENTED), "parseSQLDCXGRP")); }
private void parseSQLDIAGCN() throws DisconnectException, SqlException { if (readFdocaOneByte() == CodePoint.NULLDATA) { return; } // The server should send NULLDATA netAgent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(netAgent_, new ClientMessageId(SQLState.DRDA_COMMAND_NOT_IMPLEMENTED), "parseSQLDIAGCN")); }
private void parseSQLDIAGCN() throws DisconnectException, SqlException { if (readFdocaOneByte() == CodePoint.NULLDATA) { return; } // The server should send NULLDATA netAgent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(netAgent_, new ClientMessageId(SQLState.DRDA_COMMAND_NOT_IMPLEMENTED), "parseSQLDIAGCN")); }
private void parseSQLDCXGRP() throws DisconnectException, SqlException { if (readFdocaOneByte() == CodePoint.NULLDATA) { return; } // The server should send NULLDATA netAgent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(netAgent_, new ClientMessageId(SQLState.DRDA_COMMAND_NOT_IMPLEMENTED), "parseSQLDCXGRP")); }
netAgent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(netAgent_, new ClientMessageId(SQLState.NET_INSUFFICIENT_DATA),
netAgent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(netAgent_, new ClientMessageId(SQLState.NET_INSUFFICIENT_DATA),
private String readFdocaString(int length, String encoding) throws DisconnectException, SqlException { if (length == 0) { return null; } // For singleton select, the complete row always comes back, even if multiple query blocks are required, // so there is no need to drive a flowFetch (continue query) request for singleton select. if ((position_ + length) > lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } String s = null; try { s = new String(dataBuffer_, position_, length, encoding); } catch (java.io.UnsupportedEncodingException e) { netAgent_.accumulateChainBreakingReadExceptionAndThrow( new com.pivotal.gemfirexd.internal.client.am.DisconnectException( netAgent_, new ClientMessageId(SQLState.NET_ENCODING_NOT_SUPPORTED), e)); } position_ += length; return s; }
private String readFdocaString(int length, String encoding) throws DisconnectException, SqlException { if (length == 0) { return null; } // For singleton select, the complete row always comes back, even if multiple query blocks are required, // so there is no need to drive a flowFetch (continue query) request for singleton select. if ((position_ + length) > lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } String s = null; try { s = new String(dataBuffer_, position_, length, encoding); } catch (java.io.UnsupportedEncodingException e) { netAgent_.accumulateChainBreakingReadExceptionAndThrow( new com.pivotal.gemfirexd.internal.client.am.DisconnectException( netAgent_, new ClientMessageId(SQLState.NET_ENCODING_NOT_SUPPORTED), e)); } position_ += length; return s; }
netAgent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(netAgent_, new ClientMessageId(SQLState.NET_PREMATURE_EOS_DISCONNECT),
netAgent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(netAgent_, new ClientMessageId(SQLState.NET_PREMATURE_EOS_DISCONNECT),
netAgent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(netAgent_, new ClientMessageId(SQLState.NET_INVALID_FDOCA_ID)));
netAgent_.accumulateChainBreakingReadExceptionAndThrow( new DisconnectException(netAgent_, new ClientMessageId(SQLState.NET_INVALID_FDOCA_ID)));