continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1154111 - in /continuum/trunk/continuum-distributed: continuum-distributed-master/continuum-distributed-master-client/src/main/java/org/apache/continuum/distributed/transport/master/ continuum-distributed-slave/continuum-distributed-slave-...
Date Fri, 05 Aug 2011 07:56:19 GMT
Author: ctan
Date: Fri Aug  5 07:56:19 2011
New Revision: 1154111

URL: http://svn.apache.org/viewvc?rev=1154111&view=rev
Log:
[CONTINUUM-2643] set default Timezone in ConnectionInfo to prevent NPE during xmlrpc calls

Modified:
    continuum/trunk/continuum-distributed/continuum-distributed-master/continuum-distributed-master-client/src/main/java/org/apache/continuum/distributed/transport/master/MasterBuildAgentTransportClient.java
    continuum/trunk/continuum-distributed/continuum-distributed-slave/continuum-distributed-slave-client/src/main/java/org/apache/continuum/distributed/transport/slave/SlaveBuildAgentTransportClient.java

Modified: continuum/trunk/continuum-distributed/continuum-distributed-master/continuum-distributed-master-client/src/main/java/org/apache/continuum/distributed/transport/master/MasterBuildAgentTransportClient.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-distributed/continuum-distributed-master/continuum-distributed-master-client/src/main/java/org/apache/continuum/distributed/transport/master/MasterBuildAgentTransportClient.java?rev=1154111&r1=1154110&r2=1154111&view=diff
==============================================================================
--- continuum/trunk/continuum-distributed/continuum-distributed-master/continuum-distributed-master-client/src/main/java/org/apache/continuum/distributed/transport/master/MasterBuildAgentTransportClient.java
(original)
+++ continuum/trunk/continuum-distributed/continuum-distributed-master/continuum-distributed-master-client/src/main/java/org/apache/continuum/distributed/transport/master/MasterBuildAgentTransportClient.java
Fri Aug  5 07:56:19 2011
@@ -25,6 +25,7 @@ import com.atlassian.xmlrpc.BindingExcep
 
 import java.net.URL;
 import java.util.Map;
+import java.util.TimeZone;
 
 import com.atlassian.xmlrpc.ConnectionInfo;
 import org.slf4j.Logger;
@@ -58,6 +59,7 @@ public class MasterBuildAgentTransportCl
         ConnectionInfo connectionInfo = new ConnectionInfo();
         connectionInfo.setUsername( login );
         connectionInfo.setPassword( password );
+        connectionInfo.setTimeZone( TimeZone.getDefault() );
 
         this.masterServerUrl = serviceUrl.toString();
 

Modified: continuum/trunk/continuum-distributed/continuum-distributed-slave/continuum-distributed-slave-client/src/main/java/org/apache/continuum/distributed/transport/slave/SlaveBuildAgentTransportClient.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-distributed/continuum-distributed-slave/continuum-distributed-slave-client/src/main/java/org/apache/continuum/distributed/transport/slave/SlaveBuildAgentTransportClient.java?rev=1154111&r1=1154110&r2=1154111&view=diff
==============================================================================
--- continuum/trunk/continuum-distributed/continuum-distributed-slave/continuum-distributed-slave-client/src/main/java/org/apache/continuum/distributed/transport/slave/SlaveBuildAgentTransportClient.java
(original)
+++ continuum/trunk/continuum-distributed/continuum-distributed-slave/continuum-distributed-slave-client/src/main/java/org/apache/continuum/distributed/transport/slave/SlaveBuildAgentTransportClient.java
Fri Aug  5 07:56:19 2011
@@ -27,6 +27,7 @@ import java.net.URL;
 import java.util.List;
 import java.util.Map;
 import java.util.Properties;
+import java.util.TimeZone;
 
 import com.atlassian.xmlrpc.ConnectionInfo;
 import org.slf4j.Logger;
@@ -58,6 +59,7 @@ public class SlaveBuildAgentTransportCli
         ConnectionInfo connectionInfo = new ConnectionInfo();
         connectionInfo.setUsername( login );
         connectionInfo.setPassword( password );
+        connectionInfo.setTimeZone( TimeZone.getDefault() );
 
         buildAgentUrl = serviceUrl.toString();
 



Mime
View raw message