cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r758201 - in /cxf/branches/2.1.x-fixes: ./ rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
Date Wed, 25 Mar 2009 10:23:23 GMT
Author: sergeyb
Date: Wed Mar 25 10:23:18 2009
New Revision: 758201

URL: http://svn.apache.org/viewvc?rev=758201&view=rev
Log:
Merged revisions 758195 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r758195 | sergeyb | 2009-03-25 10:01:41 +0000 (Wed, 25 Mar 2009) | 1 line
  
  Minor update to ProviderFactory to avoid a stack trace in OSGI
........

Modified:
    cxf/branches/2.1.x-fixes/   (props changed)
    cxf/branches/2.1.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java

Propchange: cxf/branches/2.1.x-fixes/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Wed Mar 25 10:23:18 2009
@@ -1 +1 @@
-/cxf/trunk:753380,753397,753421,754585,755365,757499,757859,757899,757935,757951
+/cxf/trunk:753380,753397,753421,754585,755365,757499,757859,757899,757935,757951,758195

Propchange: cxf/branches/2.1.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.1.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.1.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java?rev=758201&r1=758200&r2=758201&view=diff
==============================================================================
--- cxf/branches/2.1.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
(original)
+++ cxf/branches/2.1.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
Wed Mar 25 10:23:18 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