}
}
lengthBuffer.flip();
final int exceptionLength = lengthBuffer.getInt();//Length is only between EE and Java.
if (exceptionLength == 0) {
throw new EEException(errorCode);
} else {
final ByteBuffer exceptionBuffer = ByteBuffer.allocate(exceptionLength + 4);
exceptionBuffer.putInt(exceptionLength);
while(exceptionBuffer.hasRemaining()) {
int read = m_socketChannel.read(exceptionBuffer);