portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1102796 - /portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/rest/JaxrsServiceValve.java
Date Fri, 13 May 2011 15:44:51 GMT
Author: ate
Date: Fri May 13 15:44:50 2011
New Revision: 1102796

URL: http://svn.apache.org/viewvc?rev=1102796&view=rev
Log:
JS2-1183: Fix ThreadLocal reset after (request) usage 
Note: original code was failing but hidden because the exceptions were swallowed...

Modified:
    portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/rest/JaxrsServiceValve.java

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/rest/JaxrsServiceValve.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/rest/JaxrsServiceValve.java?rev=1102796&r1=1102795&r2=1102796&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/rest/JaxrsServiceValve.java
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/rest/JaxrsServiceValve.java
Fri May 13 15:44:50 2011
@@ -63,7 +63,7 @@ public class JaxrsServiceValve extends A
         {
             try
             {
-                MethodUtils.invokeStaticMethod(busFactoryClass, "setThreadDefaultBus",  new
Object [] { null });
+                MethodUtils.invokeStaticMethod(busFactoryClass, "setThreadDefaultBus",  new
Object [] { null }, new Class[] {bus.getClass()});
             }
             catch (Exception ignore)
             {
@@ -106,7 +106,7 @@ public class JaxrsServiceValve extends A
         {
             try
             {
-                MethodUtils.invokeStaticMethod(busFactoryClass, "setThreadDefaultBus",  new
Object [] { null });
+                MethodUtils.invokeStaticMethod(busFactoryClass, "setThreadDefaultBus",  new
Object [] { null }, new Class[] {bus.getClass()});
             }
             catch (Exception ignore)
             {



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message