geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r653561 - /geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/GBeanData.java
Date Mon, 05 May 2008 19:16:11 GMT
Author: jdillon
Date: Mon May  5 12:16:11 2008
New Revision: 653561

URL: http://svn.apache.org/viewvc?rev=653561&view=rev
Log:
Log the gbeanInfo too when a serialization error orrurs

Modified:
    geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/GBeanData.java

Modified: geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/GBeanData.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/GBeanData.java?rev=653561&r1=653560&r2=653561&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/GBeanData.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/GBeanData.java
Mon May  5 12:16:11 2008
@@ -233,8 +233,8 @@
                 out.writeObject(name);
                 out.writeObject(value);
             } catch (NotSerializableException e) {
-                // When we find something that is not serialzable, include the type information
as well as the name/abstractName for debugging
-                throw (IOException) new IOException("Unable to write attribute: " + name
+ " in gbean: " + abstractName + " type: " + value.getClass()).initCause(e);
+                // When we find something that is not serialzable, include the type and gbean
details as well as the name/abstractName for debugging
+                throw (IOException) new IOException("Unable to write attribute: " + name
+ " in gbean: " + abstractName + " type: " + value.getClass() + " gbean-info: " + gbeanInfo).initCause(e);
             } catch (IOException e) {
                 throw (IOException) new IOException("Unable to write attribute: " + name
+ " in gbean: " + abstractName).initCause(e);
             } catch (NoClassDefFoundError e) {



Mime
View raw message