geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r549825 - in /geronimo/server/trunk/modules: geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/ geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/ geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/ geronimo-...
Date Fri, 22 Jun 2007 14:17:33 GMT
Author: rickmcguire
Date: Fri Jun 22 07:17:31 2007
New Revision: 549825

URL: http://svn.apache.org/viewvc?view=rev&rev=549825
Log:
GERONIMO-3246 Cleanup exception handling so stack traces for first failures are not discarded.


Modified:
    geronimo/server/trunk/modules/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/EndpointInfoBuilder.java
    geronimo/server/trunk/modules/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/JAXWSServiceBuilder.java
    geronimo/server/trunk/modules/geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/JAXWSUtils.java
    geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/JettyContainerImpl.java
    geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/JettyEJBWebServiceContext.java
    geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/connector/JettyConnector.java
    geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/AbstractGBeanReference.java
    geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanAttribute.java
    geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java
    geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanOperation.java
    geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/KernelFactory.java
    geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/ObjectNameUtil.java
    geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/basic/BasicProxyManager.java
    geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/basic/ProxyMethodInterceptor.java
    geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/Configuration.java
    geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/EditableKernelConfigurationManager.java
    geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/SerializedConfigurationMarshaler.java
    geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/xstream/QNameConverter.java

Modified: geronimo/server/trunk/modules/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/EndpointInfoBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/EndpointInfoBuilder.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/EndpointInfoBuilder.java
(original)
+++ geronimo/server/trunk/modules/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/EndpointInfoBuilder.java
Fri Jun 22 07:17:31 2007
@@ -243,7 +243,7 @@
                 return new URI(wsdlLocation.trim());
             } catch (URISyntaxException e) {
                 throw new DeploymentException(
-                        "Invalid wsdl location in annotation: " + wsdlLocation);
+                        "Invalid wsdl location in annotation: " + wsdlLocation, e);
             }
         }
 
@@ -282,7 +282,7 @@
         } catch (MalformedURLException e) {
             throw new DeploymentException(
                     "Could not construct web service location URL from "
-                            + locationURIString);
+                            + locationURIString, e);
         }
     }
     

Modified: geronimo/server/trunk/modules/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/JAXWSServiceBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/JAXWSServiceBuilder.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/JAXWSServiceBuilder.java
(original)
+++ geronimo/server/trunk/modules/geronimo-jaxws-builder/src/main/java/org/apache/geronimo/jaxws/builder/JAXWSServiceBuilder.java
Fri Jun 22 07:17:31 2007
@@ -230,7 +230,7 @@
                 urlList.add(jarFile.toURL());
             } catch (MalformedURLException e) {
                 // this should not happen
-                throw new DeploymentException();
+                throw new DeploymentException(e);
             }
         } else {
             /*
@@ -411,7 +411,7 @@
         try {
             return loader.loadClass(className);
         } catch (ClassNotFoundException ex) {
-            throw new DeploymentException("Unable to load Web Service class: " + className);
+            throw new DeploymentException("Unable to load Web Service class: " + className,
ex);
         }
     }
 }

Modified: geronimo/server/trunk/modules/geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/JAXWSUtils.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/JAXWSUtils.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/JAXWSUtils.java
(original)
+++ geronimo/server/trunk/modules/geronimo-jaxws/src/main/java/org/apache/geronimo/jaxws/JAXWSUtils.java
Fri Jun 22 07:17:31 2007
@@ -203,7 +203,7 @@
                     Class seiClass = clazz.getClassLoader().loadClass(sei.trim());
                     return getNameFromSEI(seiClass);
                 } catch (ClassNotFoundException e) {
-                    throw new RuntimeException("Unable to load SEI class: " + sei);
+                    throw new RuntimeException("Unable to load SEI class: " + sei, e);
                 }
             }
         }        

Modified: geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/JettyContainerImpl.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/JettyContainerImpl.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/JettyContainerImpl.java
(original)
+++ geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/JettyContainerImpl.java
Fri Jun 22 07:17:31 2007
@@ -230,7 +230,7 @@
         try {
             removeContext(webServiceContext);
         } catch (Exception e) {
-            throw new IllegalStateException(e.getMessage());
+            throw new IllegalStateException(e.getMessage(), e);
         }
     }
 

Modified: geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/JettyEJBWebServiceContext.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/JettyEJBWebServiceContext.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/JettyEJBWebServiceContext.java
(original)
+++ geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/JettyEJBWebServiceContext.java
Fri Jun 22 07:17:31 2007
@@ -224,7 +224,7 @@
                     //return new java.net.URI(uri.getScheme(),uri.getHost(),uri.getPath(),uri.);
                     uri = new java.net.URI(request.getScheme(), null, request.getServerName(),
request.getServerPort(), request.getRequestURI(), request.getQueryString(), null);
                 } catch (URISyntaxException e) {
-                    throw new IllegalStateException(e.getMessage());
+                    throw new IllegalStateException(e.getMessage(), e);
                 }
             }
             return uri;
@@ -308,7 +308,7 @@
             try {
                 return response.getOutputStream();
             } catch (IOException e) {
-                throw new IllegalStateException(e.getMessage());
+                throw new IllegalStateException(e.getMessage(), e);
             }
         }
 

Modified: geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/connector/JettyConnector.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/connector/JettyConnector.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/connector/JettyConnector.java
(original)
+++ geronimo/server/trunk/modules/geronimo-jetty6/src/main/java/org/apache/geronimo/jetty6/connector/JettyConnector.java
Fri Jun 22 07:17:31 2007
@@ -169,7 +169,7 @@
         try {
             return new InetSocketAddress(InetAddress.getByName(listener.getHost()), listener.getPort());
         } catch (UnknownHostException e) {
-            throw new IllegalStateException("InetSocketAddress cannot be determined for host="
+ listener.getHost());
+            throw new IllegalStateException("InetSocketAddress cannot be determined for host="
+ listener.getHost(), e);
         }
     }
 

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/AbstractGBeanReference.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/AbstractGBeanReference.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/AbstractGBeanReference.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/AbstractGBeanReference.java
Fri Jun 22 07:17:31 2007
@@ -98,7 +98,7 @@
         try {
             this.referenceType = ClassLoading.loadClass(referenceInfo.getReferenceType(),
gbeanInstance.getType().getClassLoader());
         } catch (ClassNotFoundException e) {
-            throw new InvalidConfigurationException("Could not load Reference Type: " + getDescription());
+            throw new InvalidConfigurationException("Could not load Reference Type: " + getDescription(),
e);
         }
         if (Modifier.isFinal(referenceType.getModifiers())) {
             throw new IllegalArgumentException("Proxy interface cannot be a final class:
" + referenceType.getName());
@@ -106,7 +106,7 @@
         try {
             this.proxyType = ClassLoading.loadClass(referenceInfo.getProxyType(), gbeanInstance.getType().getClassLoader());
         } catch (ClassNotFoundException e) {
-            throw new InvalidConfigurationException("Could not load Proxy Type:" + getDescription());
+            throw new InvalidConfigurationException("Could not load Proxy Type:" + getDescription(),
e);
         }
 
         if (referenceInfo.getSetterName() != null) {
@@ -119,7 +119,7 @@
                     setInvoker = new FastMethodInvoker(setterMethod);
                 }
             } catch (NoSuchMethodException e) {
-                throw new InvalidConfigurationException("Setter method not found " + getDescription());
+                throw new InvalidConfigurationException("Setter method not found " + getDescription(),
e);
             }
         } else {
             setInvoker = null;

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanAttribute.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanAttribute.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanAttribute.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanAttribute.java
Fri Jun 22 07:17:31 2007
@@ -207,7 +207,7 @@
         try {
             this.type = ClassLoading.loadClass(attributeInfo.getType(), gbeanInstance.getClassLoader());
         } catch (ClassNotFoundException e) {
-            throw new InvalidConfigurationException("Could not load attribute class: " +
attributeInfo.getType());
+            throw new InvalidConfigurationException("Could not load attribute class: " +
attributeInfo.getType(), e);
         }
         this.persistent = attributeInfo.isPersistent();
         this.manageable = attributeInfo.isManageable();
@@ -249,7 +249,7 @@
                         getInvoker = new FastMethodInvoker(getterMethod);
                     }
                 } catch (NoSuchMethodException e) {
-                    throw new InvalidConfigurationException("Getter method not found " +
getDescription());
+                    throw new InvalidConfigurationException("Getter method not found " +
getDescription(), e);
                 }
             } else {
                 getInvoker = null;
@@ -267,7 +267,7 @@
                         setInvoker = new FastMethodInvoker(setterMethod);
                     }
                 } catch (NoSuchMethodException e) {
-                    throw new InvalidConfigurationException("Setter method not found " +
getDescription());
+                    throw new InvalidConfigurationException("Setter method not found " +
getDescription(), e);
                 }
             } else {
                 setInvoker = null;

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java
Fri Jun 22 07:17:31 2007
@@ -227,7 +227,7 @@
             type = classLoader.loadClass(gbeanInfo.getClassName());
         } catch (ClassNotFoundException e) {
             throw new InvalidConfigurationException("Could not load GBeanInfo class from
classloader: " + classLoader +
-                    " className=" + gbeanInfo.getClassName());
+                    " className=" + gbeanInfo.getClassName(), e);
         }
 
         name = gbeanInfo.getName();

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanOperation.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanOperation.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanOperation.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanOperation.java
Fri Jun 22 07:17:31 2007
@@ -74,7 +74,7 @@
             } catch (ClassNotFoundException e) {
                 throw new InvalidConfigurationException("Could not load operation parameter
class:" +
                         " name=" + operationInfo.getName() +
-                        " class=" + type);
+                        " class=" + type, e);
             }
         }
 
@@ -102,7 +102,7 @@
                         " name=" + operationInfo.getName() +
                         " methodName=" + operationInfo.getMethodName() +
                         " returnType=" + operationInfo.getReturnType() +
-                        " targetClass=" + gbeanInstance.getType().getName());
+                        " targetClass=" + gbeanInstance.getType().getName(), e);
             }
         }
     }

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/KernelFactory.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/KernelFactory.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/KernelFactory.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/KernelFactory.java
Fri Jun 22 07:17:31 2007
@@ -77,9 +77,9 @@
         try {
             return (KernelFactory) classLoader.loadClass(className).newInstance();
         } catch (ClassCastException e) {
-            throw new KernelFactoryError("Kernel factory class does not implement KernelFactory:
" + className);
+            throw new KernelFactoryError("Kernel factory class does not implement KernelFactory:
" + className, e);
         } catch (ClassNotFoundException e) {
-            throw new KernelFactoryError("Kernel factory class not found: " + className);
+            throw new KernelFactoryError("Kernel factory class not found: " + className,
e);
         } catch (Exception e) {
             throw new KernelFactoryError("Unable to instantiate kernel factory class: " +
className, e);
         }

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/ObjectNameUtil.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/ObjectNameUtil.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/ObjectNameUtil.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/ObjectNameUtil.java
Fri Jun 22 07:17:31 2007
@@ -34,7 +34,7 @@
         try {
             return new ObjectName(name);
         } catch (MalformedObjectNameException e) {
-            throw new IllegalArgumentException("Malformed ObjectName: " + name);
+            throw new IllegalArgumentException("Malformed ObjectName: " + name, e);
         }
     }
 }

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/basic/BasicProxyManager.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/basic/BasicProxyManager.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/basic/BasicProxyManager.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/basic/BasicProxyManager.java
Fri Jun 22 07:17:31 2007
@@ -102,7 +102,7 @@
 
             return createProxyFactory((Class[]) types.toArray(new Class[types.size()]), classLoader).createProxy(target);
         } catch (GBeanNotFoundException e) {
-            throw new IllegalArgumentException("Could not get GBeanInfo for target object:
" + target);
+            throw new IllegalArgumentException("Could not get GBeanInfo for target object:
" + target, e);
         }
     }
 
@@ -115,7 +115,7 @@
             if (types == null) return null;
             return createProxyFactory((Class[]) types.toArray(new Class[types.size()]), classLoader).createProxy(target);
         } catch (GBeanNotFoundException e) {
-            throw new IllegalArgumentException("Could not get GBeanInfo for target object:
" + target);
+            throw new IllegalArgumentException("Could not get GBeanInfo for target object:
" + target, e);
         }
     }
 

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/basic/ProxyMethodInterceptor.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/basic/ProxyMethodInterceptor.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/basic/ProxyMethodInterceptor.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/basic/ProxyMethodInterceptor.java
Fri Jun 22 07:17:31 2007
@@ -195,7 +195,7 @@
         try {
             info = kernel.getGBeanInfo(abstractName);
         } catch (Exception e) {
-            throw new IllegalArgumentException("Could not get GBeanInfo for target object:
" + abstractName);
+            throw new IllegalArgumentException("Could not get GBeanInfo for target object:
" + abstractName, e);
         }
 
         // build attributeName->attributeInfo map

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/Configuration.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/Configuration.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/Configuration.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/Configuration.java
Fri Jun 22 07:17:31 2007
@@ -508,7 +508,7 @@
                 }
                 classPath.add(pattern);
             } catch (Exception e) {
-                throw new IOException("Unable to extend classpath with " + pattern);
+                throw (IOException)new IOException("Unable to extend classpath with " + pattern).initCause(e);
             }
         }
     }

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/EditableKernelConfigurationManager.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/EditableKernelConfigurationManager.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/EditableKernelConfigurationManager.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/EditableKernelConfigurationManager.java
Fri Jun 22 07:17:31 2007
@@ -94,7 +94,7 @@
                 try {
                     kernel.startRecursiveGBean(gbean.getAbstractName());
                 } catch (GBeanNotFoundException e) {
-                    throw new InvalidConfigException("How could we not find a GBean that
we just loaded ('" + gbean.getAbstractName() + "')?");
+                    throw new InvalidConfigException("How could we not find a GBean that
we just loaded ('" + gbean.getAbstractName() + "')?", e);
                 }
             }
 

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/SerializedConfigurationMarshaler.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/SerializedConfigurationMarshaler.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/SerializedConfigurationMarshaler.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/SerializedConfigurationMarshaler.java
Fri Jun 22 07:17:31 2007
@@ -46,7 +46,7 @@
             try {
                 marshaler = ConfigurationUtil.createConfigurationMarshaler("org.apache.geronimo.kernel.config.xstream.XStreamConfigurationMarshaler");
             } catch (Throwable ignored) {
-                throw new IOException("Input does not contain a Java Object Serialization
stream");
+                throw (IOException)new IOException("Input does not contain a Java Object
Serialization stream").initCause(ignored);
             }
             return marshaler.readConfigurationData(pushbackInputStream);
 

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/xstream/QNameConverter.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/xstream/QNameConverter.java?view=diff&rev=549825&r1=549824&r2=549825
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/xstream/QNameConverter.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/xstream/QNameConverter.java
Fri Jun 22 07:17:31 2007
@@ -51,7 +51,7 @@
             Object qname = method.invoke(null, new Object[] { qnameString });
             return qname;
         } catch (Exception e) {
-            throw new ConversionException("Unable to convert value to a qname: " + qnameString);
+            throw new ConversionException("Unable to convert value to a qname: " + qnameString,
e);
         }
     }
 }



Mime
View raw message