[jboss-cvs] jbossmq/src/main/org/jboss/mq ...

Dimitris Andreadis dimitris.andreadis at jboss.com
Thu Jul 20 13:10:16 EDT 2006


  User: dimitris
  Date: 06/07/20 13:10:16

  Modified:    src/main/org/jboss/mq  SpyObjectMessage.java
  Log:
  JBAS-3296 - report in the exception message the reason the payload of an ObjectMessage cannot be serialized, link the original exception
  
  Revision  Changes    Path
  1.20      +4 -2      jbossmq/src/main/org/jboss/mq/SpyObjectMessage.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SpyObjectMessage.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbossmq/src/main/org/jboss/mq/SpyObjectMessage.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -b -r1.19 -r1.20
  --- SpyObjectMessage.java	30 Oct 2005 00:06:13 -0000	1.19
  +++ SpyObjectMessage.java	20 Jul 2006 17:10:16 -0000	1.20
  @@ -45,7 +45,7 @@
    *
    * @author Norbert Lataille (Norbert.Lataille at m4x.org)
    * @author <a href="mailto:adrian at jboss.org">Adrian Brock</a>
  - * @version $Revision: 1.19 $
  + * @version $Revision: 1.20 $
    */
   public class SpyObjectMessage extends SpyMessage implements ObjectMessage, Externalizable
   {
  @@ -101,7 +101,9 @@
         }
         catch (IOException e)
         {
  -         throw new MessageFormatException("Object cannot be serialized");
  +         MessageFormatException mfe = new MessageFormatException("Object cannot be serialized: " + e.getMessage());
  +         mfe.setLinkedException(e);
  +         throw mfe;
         }
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list