Patches item #551329, was opened at 2002-05-02 11:59
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=551329&group_id=22866

Category: JBossMQ
Group: CVS HEAD
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Levart (plevart)
Assigned to: Nobody/Anonymous (nobody)
Summary: SpyObjectMessage and loading array class

Initial Comment:
org.jboss.mq.SpyObjectMessage has trouble loading 
array class for a base class that hasn't been loaded 
yet. This might be a bug in the SUN's implementation 
of the classloader that is used when the client is 
started from the command line 
(sun.misc.Launcher$AppClassLoader).

Anyway, this patch resolves that problem. Also 
included are the more descriptive messages in the 
exceptions...


Index: 
messaging/src/main/org/jboss/mq/SpyObjectMessage.java
=======================================================
============
RCS 
file: /cvsroot/jboss/jbossmq/src/main/org/jboss/mq/SpyO
bjectMessage.java,v
retrieving revision 1.9
diff -c -r1.9 SpyObjectMessage.java
*** 
messaging/src/main/org/jboss/mq/SpyObjectMessage.java
        9 Apr 2002 12:26:12 -0000       1.9
--- 
messaging/src/main/org/jboss/mq/SpyObjectMessage.java
        2 May 2002 09:49:24 -0000
***************
*** 90,96 ****
                                         super(is);
                                  }
                                  protected Class 
resolveClass(ObjectStreamClass v) throws IOException, 
ClassNotFoundException {
!                                        return 
Thread.currentThread().getContextClassLoader
().loadClass(v.getName());
                                  }
                           }
  
--- 90,96 ----
                                         super(is);
                                  }
                                  protected Class 
resolveClass(ObjectStreamClass v) throws IOException, 
ClassNotFoundException {
!                                        return 
Class.forName(v.getName(), false, Thread.currentThread
().getContextClassLoader());
                                  }
                           }
  
***************
*** 100,108 ****
              }
           }
        } catch ( ClassNotFoundException e ) {
!          throw new MessageFormatException
( "ClassNotFoundException" );
        } catch ( IOException e ) {
!          throw new MessageFormatException
( "IOException" );
        }
        return retVal;
     }
--- 100,108 ----
              }
           }
        } catch ( ClassNotFoundException e ) {
!          throw new MessageFormatException
( "ClassNotFoundException: " + e.getMessage() );
        } catch ( IOException e ) {
!          throw new MessageFormatException
( "IOException: " + e.getMessage() );
        }
        return retVal;
     }


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=551329&group_id=22866

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to