cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r751972 - /cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperHelper.java
Date Tue, 10 Mar 2009 03:45:59 GMT
Author: ningjiang
Date: Tue Mar 10 03:45:57 2009
New Revision: 751972

URL: http://svn.apache.org/viewvc?rev=751972&view=rev
Log:
CXF-2076 don't try to create ASM compiler for XMLBeans

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperHelper.java

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperHelper.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperHelper.java?rev=751972&r1=751971&r2=751972&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperHelper.java
(original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperHelper.java
Tue Mar 10 03:45:57 2009
@@ -258,12 +258,15 @@
                                                       Method jaxbMethods[],
                                                       Field fields[],
                                                       Object objectFactory) {
-        WrapperHelper wh = compileWrapperHelper(wrapperType,
-                                                setMethods,
-                                                getMethods,
-                                                jaxbMethods,
-                                                fields,
-                                                objectFactory);
+        WrapperHelper wh = null;        
+        if (!wrapperType.isInterface()) {
+            wh = compileWrapperHelper(wrapperType,
+                                                    setMethods,
+                                                    getMethods,
+                                                    jaxbMethods,
+                                                    fields,
+                                                    objectFactory);
+        }        
         if (wh == null) {
             wh = new ReflectWrapperHelper(wrapperType,
                                           setMethods,
@@ -286,6 +289,7 @@
                                                               jaxbMethods, fields, objectFactory);
         } catch (ClassNotFoundException e) {
             //ASM not found, just use reflection based stuff
+            e.printStackTrace();
         }
         return null;
     }    
@@ -356,7 +360,7 @@
                 }
                 return value;
             } catch (Exception ex) {
-                throw new Fault(ex);
+                throw new Fault(ex.getCause());
             }
         }
         
@@ -384,7 +388,7 @@
                 
                 return ret;
             } catch (Exception ex) {
-                throw new Fault(ex);
+                throw new Fault(ex.getCause());
             }
         }
     }



Mime
View raw message