camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhira...@apache.org
Subject [1/2] git commit: CAMEL-7399: camel-salesforce - Fixed alias caching for updated XStream
Date Tue, 29 Apr 2014 14:39:21 GMT
Repository: camel
Updated Branches:
  refs/heads/master f8b27d919 -> 913c48d92


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/913c48d9
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/913c48d9
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/913c48d9

Branch: refs/heads/master
Commit: 913c48d9288d520a3c67aa30946752b7ba0e25cf
Parents: d7a8334
Author: Dhiraj Bokde <dbokde@redhat.com>
Authored: Mon Apr 28 15:19:38 2014 -0700
Committer: Dhiraj Bokde <dbokde@redhat.com>
Committed: Tue Apr 29 07:36:04 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/camel/blob/913c48d9/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