cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r758195 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
Date Wed, 25 Mar 2009 10:01:45 GMT
Author: sergeyb
Date: Wed Mar 25 10:01:41 2009
New Revision: 758195

URL: http://svn.apache.org/viewvc?rev=758195&view=rev
Log:
Minor update to ProviderFactory to avoid a stack trace in OSGI

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java?rev=758195&r1=758194&r2=758195&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
Wed Mar 25 10:01:41 2009
@@ -60,8 +60,13 @@
         try {
             jsonProvider = new JSONProvider();
         } catch (Throwable ex) {
-            ex.printStackTrace();
-            LOG.fine("Problem with instantiating the default JSON provider");
+            String message = "Problem with instantiating the default JSON provider, ";
+            if (ex.getMessage() != null) {
+                message += ex.getMessage();
+            } else {
+                message += "exception class : " + ex.getClass().getName();  
+            }
+            LOG.info(message);
         }
         
         SHARED_FACTORY.setProviders(new JAXBElementProvider(),



Mime
View raw message