camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhira...@apache.org
Subject git commit: CAMEL-7399: camel-salesforce - Fixed alias caching for updated XStream
Date Mon, 28 Apr 2014 22:19:42 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.13.x 34740e78f -> 4fceb6a18


CAMEL-7399: camel-salesforce - Fixed alias caching for updated XStream


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

Branch: refs/heads/camel-2.13.x
Commit: 4fceb6a18cf57a5694a4d99be395b060e8bf3ea3
Parents: 34740e7
Author: Dhiraj Bokde <dbokde@redhat.com>
Authored: Mon Apr 28 15:19:38 2014 -0700
Committer: Dhiraj Bokde <dbokde@redhat.com>
Committed: Mon Apr 28 15:19:38 2014 -0700

----------------------------------------------------------------------
 .../component/salesforce/internal/processor/XmlRestProcessor.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/4fceb6a1/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/XmlRestProcessor.java
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/XmlRestProcessor.java
b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/XmlRestProcessor.java
index 80bb488..a10de93 100644
--- a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/XmlRestProcessor.java
+++ b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/XmlRestProcessor.java
@@ -205,6 +205,8 @@ public class XmlRestProcessor extends AbstractRestProcessor {
                                 mapper.flushCache();
                             }
                         } catch (CannotResolveClassException ignore) {
+                            // recent XStream versions add a ClassNotFoundException to cache
+                            mapper.flushCache();
                         }
                         localXStream.alias(responseAlias, responseClass);
                     }


Mime
View raw message