You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2013/07/01 07:44:26 UTC

git commit: Fixed the broken build on the CI-Server.

Updated Branches:
  refs/heads/master a7674c74d -> 71c42850a


Fixed the broken build on the CI-Server.

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/71c42850
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/71c42850
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/71c42850

Branch: refs/heads/master
Commit: 71c42850a902ceb9feb1a1ce5a23e109e937e82b
Parents: a7674c7
Author: Babak Vahdat <bv...@apache.org>
Authored: Mon Jul 1 07:44:21 2013 +0200
Committer: Babak Vahdat <bv...@apache.org>
Committed: Mon Jul 1 07:44:21 2013 +0200

----------------------------------------------------------------------
 .../component/salesforce/internal/client/AbstractClientBase.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/71c42850/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/client/AbstractClientBase.java
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/client/AbstractClientBase.java b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/client/AbstractClientBase.java
index 4379fcc..a115a31 100644
--- a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/client/AbstractClientBase.java
+++ b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/client/AbstractClientBase.java
@@ -150,8 +150,7 @@ public abstract class AbstractClientBase implements SalesforceSession.Salesforce
                 if (responseStatus < HttpStatus.OK_200 || responseStatus >= HttpStatus.MULTIPLE_CHOICES_300) {
                     final String msg = String.format("Error {%s:%s} executing {%s:%s}",
                             responseStatus, reason, request.getMethod(), request.getRequestURI());
-                    final SalesforceException exception = new SalesforceException(msg, createRestException(request));
-                    exception.setStatusCode(responseStatus);
+                    final SalesforceException exception = new SalesforceException(msg, responseStatus, createRestException(request));
                     callback.onResponse(null, exception);
                 } else {
                     // TODO not memory efficient for large response messages,