wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jra...@apache.org
Subject svn commit: r1027191 - in /incubator/wink/trunk: wink-guice-server/src/main/java/org/apache/wink/guice/server/internal/lifecycle/ wink-providers/wink-jettison-provider/src/main/java/org/apache/wink/providers/jettison/ wink-providers/wink-json-provider/...
Date Mon, 25 Oct 2010 16:48:22 GMT
Author: jramos
Date: Mon Oct 25 16:48:21 2010
New Revision: 1027191

URL: http://svn.apache.org/viewvc?rev=1027191&view=rev
Log:
[Wink-323] More minor logging updates

Modified:
    incubator/wink/trunk/wink-guice-server/src/main/java/org/apache/wink/guice/server/internal/lifecycle/WinkGuiceModule.java
    incubator/wink/trunk/wink-providers/wink-jettison-provider/src/main/java/org/apache/wink/providers/jettison/JettisonJAXBElementProvider.java
    incubator/wink/trunk/wink-providers/wink-jettison-provider/src/main/java/org/apache/wink/providers/jettison/JettisonJAXBProvider.java
    incubator/wink/trunk/wink-providers/wink-json-provider/src/main/java/org/apache/wink/providers/json/JsonArrayProvider.java
    incubator/wink/trunk/wink-providers/wink-json-provider/src/main/java/org/apache/wink/providers/json/JsonProvider.java

Modified: incubator/wink/trunk/wink-guice-server/src/main/java/org/apache/wink/guice/server/internal/lifecycle/WinkGuiceModule.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-guice-server/src/main/java/org/apache/wink/guice/server/internal/lifecycle/WinkGuiceModule.java?rev=1027191&r1=1027190&r2=1027191&view=diff
==============================================================================
--- incubator/wink/trunk/wink-guice-server/src/main/java/org/apache/wink/guice/server/internal/lifecycle/WinkGuiceModule.java
(original)
+++ incubator/wink/trunk/wink-guice-server/src/main/java/org/apache/wink/guice/server/internal/lifecycle/WinkGuiceModule.java
Mon Oct 25 16:48:21 2010
@@ -73,13 +73,13 @@ public class WinkGuiceModule extends Abs
             } catch (IOException e) {
                 if (logger.isErrorEnabled()) {
                     logger.error(Messages.getMessage("injectionFailureSingleton", instance
-                        .getClass().getName()));
+                        .getClass().getName()), e);
                 }
                 throw new ObjectCreationException(e);
             } catch (PrivilegedActionException e) {
                 if (logger.isErrorEnabled()) {
                     logger.error(Messages.getMessage("injectionFailureSingleton", instance
-                        .getClass().getName()));
+                        .getClass().getName()), e);
                 }
                 throw new ObjectCreationException(e);
             }

Modified: incubator/wink/trunk/wink-providers/wink-jettison-provider/src/main/java/org/apache/wink/providers/jettison/JettisonJAXBElementProvider.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-providers/wink-jettison-provider/src/main/java/org/apache/wink/providers/jettison/JettisonJAXBElementProvider.java?rev=1027191&r1=1027190&r2=1027191&view=diff
==============================================================================
--- incubator/wink/trunk/wink-providers/wink-jettison-provider/src/main/java/org/apache/wink/providers/jettison/JettisonJAXBElementProvider.java
(original)
+++ incubator/wink/trunk/wink-providers/wink-jettison-provider/src/main/java/org/apache/wink/providers/jettison/JettisonJAXBElementProvider.java
Mon Oct 25 16:48:21 2010
@@ -151,12 +151,12 @@ public class JettisonJAXBElementProvider
             unmarshaledResource = unmarshaller.unmarshal(xsr, classToFill);
         } catch (JAXBException e) {
             if (logger.isErrorEnabled()) {
-                logger.error(Messages.getMessage("jaxbFailToUnmarshal", type.getName()));
//$NON-NLS-1$
+                logger.error(Messages.getMessage("jaxbFailToUnmarshal", type.getName()),
e); //$NON-NLS-1$
             }
             throw new WebApplicationException(e, Response.Status.BAD_REQUEST);
         } catch (XMLStreamException e) {
             if (logger.isErrorEnabled()) {
-                logger.error(Messages.getMessage("jaxbFailToUnmarshal", type.getName()));
//$NON-NLS-1$
+                logger.error(Messages.getMessage("jaxbFailToUnmarshal", type.getName()),
e); //$NON-NLS-1$
             }
             throw new WebApplicationException(e, Response.Status.BAD_REQUEST);
         }
@@ -204,7 +204,7 @@ public class JettisonJAXBElementProvider
                             .createXMLStreamWriter(writer);
                 } catch (XMLStreamException e) {
                     if (logger.isErrorEnabled()) {
-                        logger.error(Messages.getMessage("jaxbFailToMarshal", t.getName()));
//$NON-NLS-1$
+                        logger.error(Messages.getMessage("jaxbFailToMarshal", t.getName()),
e); //$NON-NLS-1$
                     }
                     throw new WebApplicationException(e, Response.Status.INTERNAL_SERVER_ERROR);
                 }

Modified: incubator/wink/trunk/wink-providers/wink-jettison-provider/src/main/java/org/apache/wink/providers/jettison/JettisonJAXBProvider.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-providers/wink-jettison-provider/src/main/java/org/apache/wink/providers/jettison/JettisonJAXBProvider.java?rev=1027191&r1=1027190&r2=1027191&view=diff
==============================================================================
--- incubator/wink/trunk/wink-providers/wink-jettison-provider/src/main/java/org/apache/wink/providers/jettison/JettisonJAXBProvider.java
(original)
+++ incubator/wink/trunk/wink-providers/wink-jettison-provider/src/main/java/org/apache/wink/providers/jettison/JettisonJAXBProvider.java
Mon Oct 25 16:48:21 2010
@@ -164,12 +164,12 @@ public class JettisonJAXBProvider extend
             }
         } catch (JAXBException e) {
             if (logger.isErrorEnabled()) {
-                logger.error(Messages.getMessage("jaxbFailToUnmarshal", type.getName()));
//$NON-NLS-1$
+                logger.error(Messages.getMessage("jaxbFailToUnmarshal", type.getName()),
e); //$NON-NLS-1$
             }
             throw new WebApplicationException(e, Response.Status.BAD_REQUEST);
         } catch (XMLStreamException e) {
             if (logger.isErrorEnabled()) {
-                logger.error(Messages.getMessage("jaxbFailToUnmarshal", type.getName()));
//$NON-NLS-1$
+                logger.error(Messages.getMessage("jaxbFailToUnmarshal", type.getName()),
e); //$NON-NLS-1$
             }
             throw new WebApplicationException(e, Response.Status.BAD_REQUEST);
         }
@@ -214,7 +214,7 @@ public class JettisonJAXBProvider extend
             marshaller.marshal(entityToMarshal, xsw);
         } catch (JAXBException e) {
             if (logger.isErrorEnabled()) {
-                logger.error(Messages.getMessage("jaxbFailToMarshal", type.getName())); //$NON-NLS-1$
+                logger.error(Messages.getMessage("jaxbFailToMarshal", type.getName()), e);
//$NON-NLS-1$
             }
             throw new WebApplicationException(e);
         }

Modified: incubator/wink/trunk/wink-providers/wink-json-provider/src/main/java/org/apache/wink/providers/json/JsonArrayProvider.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-providers/wink-json-provider/src/main/java/org/apache/wink/providers/json/JsonArrayProvider.java?rev=1027191&r1=1027190&r2=1027191&view=diff
==============================================================================
--- incubator/wink/trunk/wink-providers/wink-json-provider/src/main/java/org/apache/wink/providers/json/JsonArrayProvider.java
(original)
+++ incubator/wink/trunk/wink-providers/wink-json-provider/src/main/java/org/apache/wink/providers/json/JsonArrayProvider.java
Mon Oct 25 16:48:21 2010
@@ -89,7 +89,7 @@ public class JsonArrayProvider implement
         try {
             jsonString = t.toString(2);
         } catch (JSONException e) {
-            logger.error(Messages.getMessage("jsonFailWriteJSONArray")); //$NON-NLS-1$
+            logger.error(Messages.getMessage("jsonFailWriteJSONArray"), e); //$NON-NLS-1$
             throw new WebApplicationException(e, Response.Status.INTERNAL_SERVER_ERROR);
         }
 
@@ -131,7 +131,7 @@ public class JsonArrayProvider implement
             return new JSONArray(new JSONTokener(ProviderUtils
                 .createReader(entityStream, mediaType)));
         } catch (JSONException e) {
-            logger.error(Messages.getMessage("jsonFailReadJSONArray")); //$NON-NLS-1$
+            logger.error(Messages.getMessage("jsonFailReadJSONArray"), e); //$NON-NLS-1$
             throw new WebApplicationException(e, Response.Status.BAD_REQUEST);
         }
     }

Modified: incubator/wink/trunk/wink-providers/wink-json-provider/src/main/java/org/apache/wink/providers/json/JsonProvider.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-providers/wink-json-provider/src/main/java/org/apache/wink/providers/json/JsonProvider.java?rev=1027191&r1=1027190&r2=1027191&view=diff
==============================================================================
--- incubator/wink/trunk/wink-providers/wink-json-provider/src/main/java/org/apache/wink/providers/json/JsonProvider.java
(original)
+++ incubator/wink/trunk/wink-providers/wink-json-provider/src/main/java/org/apache/wink/providers/json/JsonProvider.java
Mon Oct 25 16:48:21 2010
@@ -87,7 +87,7 @@ public class JsonProvider implements Mes
         try {
             jsonString = t.toString(2);
         } catch (JSONException e) {
-            logger.error(Messages.getMessage("jsonFailWriteJSONObject")); //$NON-NLS-1$
+            logger.error(Messages.getMessage("jsonFailWriteJSONObject"), e); //$NON-NLS-1$
             throw new WebApplicationException(e, Response.Status.INTERNAL_SERVER_ERROR);
         }
 
@@ -131,7 +131,7 @@ public class JsonProvider implements Mes
             return new JSONObject(new JSONTokener(ProviderUtils.createReader(entityStream,
                                                                              mediaType)));
         } catch (JSONException e) {
-            logger.error(Messages.getMessage("jsonFailReadJSONObject")); //$NON-NLS-1$
+            logger.error(Messages.getMessage("jsonFailReadJSONObject"), e); //$NON-NLS-1$
             throw new WebApplicationException(e, Response.Status.BAD_REQUEST);
         }
     }



Mime
View raw message