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

Dimitris Andreadis dimitris.andreadis at jboss.com
Thu Jul 20 13:07:15 EDT 2006


  User: dimitris
  Date: 06/07/20 13:07:15

  Modified:    src/main/org/jboss/mq  Tag: Branch_3_2 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
  No                   revision
  
  
  No                   revision
  
  
  1.13.2.4  +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.13.2.3
  retrieving revision 1.13.2.4
  diff -u -b -r1.13.2.3 -r1.13.2.4
  --- SpyObjectMessage.java	17 Nov 2005 01:05:53 -0000	1.13.2.3
  +++ SpyObjectMessage.java	20 Jul 2006 17:07:15 -0000	1.13.2.4
  @@ -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.13.2.3 $
  + * @version $Revision: 1.13.2.4 $
    */
   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