[jboss-dev-forums] [Design of JBoss Remoting, Unified Invokers] - Encryption in Remoting

anil.saldhana@jboss.com do-not-reply at jboss.com
Tue Aug 15 11:24:47 EDT 2006


Related to http://jira.jboss.com/jira/browse/JBREM-419

I plug in a CipherOutputStream to the JBossObjectOutputStream.  The issue with COS is that it needs an explicit close() to flush all the data across.  But this causes a socket write error as shown:


  |  [SocketServerInvokerThread-127.0.0.1-0] ERROR org.jboss.remoting.transport.socket.ServerThread  - failed to process invocation.
  | java.net.SocketException: Software caused connection abort: socket write error
  | 	at java.net.SocketOutputStream.socketWrite0(Native Method)
  | 	at java.net.SocketOutputStream.socketWrite(Unknown Source)
  | 	at java.net.SocketOutputStream.write(Unknown Source)
  | 	at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
  | 	at java.io.BufferedOutputStream.flush(Unknown Source)
  | 	at java.io.DataOutputStream.flush(Unknown Source)
  | 	at org.jboss.serial.io.JBossObjectOutputStream.flush(JBossObjectOutputStream.java:248)
  | 	at javax.crypto.CipherOutputStream.flush(DashoA12275)
  | 	at java.io.DataOutputStream.flush(Unknown Source)
  | 	at org.jboss.serial.io.JBossObjectOutputStream.flush(JBossObjectOutputStream.java:248)
  | 	at org.jboss.remoting.serialization.impl.jboss.JBossSerializationManager.sendObject(JBossSerializationManager.java:95)
  | 	at org.jboss.remoting.marshal.serializable.SerializableMarshaller.write(SerializableMarshaller.java:84)
  | 	at org.jboss.remoting.marshal.encryption.EncryptingMarshaller.write(EncryptingMarshaller.java:123)
  | 	at org.jboss.remoting.transport.socket.ServerThread.versionedWrite(ServerThread.java:484)
  | 	at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:463)
  | 

Clebert mentioned that there may be an issue with JBossOOS close with the following:

  | public void close() throws IOException {
  |         flush();
  |         dataOutput.close();
  |         dataOutput.close();
  |     }
  | 

A copy/paste error.

* I do not know yet whether the socket write error is something related to JBossOOS close or the other side closed the socket.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965291#3965291

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965291



More information about the jboss-dev-forums mailing list