# ignite-281 Fixed npe CacheJdbcPojoStore.

Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/ce153e4d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/ce153e4d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/ce153e4d

Branch: refs/heads/ignite-326
Commit: ce153e4d76122d2c1f060018530e94fe443ff2bf
Parents: 65a852b
Author: anovikov <anovi...@gridgain.com>
Authored: Wed Feb 18 17:37:57 2015 +0700
Committer: anovikov <anovi...@gridgain.com>
Committed: Wed Feb 18 17:37:57 2015 +0700

----------------------------------------------------------------------
 .../ignite/cache/store/jdbc/CacheJdbcPojoStore.java | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ce153e4d/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcPojoStore.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcPojoStore.java
 
b/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcPojoStore.java
index 0c6292d..f2d6cae 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcPojoStore.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcPojoStore.java
@@ -87,8 +87,8 @@ public class CacheJdbcPojoStore extends 
CacheAbstractJdbcStore<Object, Object> {
                         getters.put(field.getJavaName(), cls.getMethod("is" + 
prop));
                     }
                     catch (NoSuchMethodException e) {
-                        throw new CacheException("Failed to find getter in 
pojo class [class name: " + clsName +
-                            ", property: " + field.getJavaName() + "]", e);
+                        throw new CacheException("Failed to find getter in 
POJO class [class name=" + clsName +
+                            ", property=" + field.getJavaName() + "]", e);
                     }
                 }
 
@@ -96,8 +96,8 @@ public class CacheJdbcPojoStore extends 
CacheAbstractJdbcStore<Object, Object> {
                     setters.put(field.getJavaName(), cls.getMethod("set" + 
prop, field.getJavaType()));
                 }
                 catch (NoSuchMethodException e) {
-                    throw new CacheException("Failed to find setter in pojo 
class [class name: " + clsName +
-                        ", property: " + field.getJavaName() + "]", e);
+                    throw new CacheException("Failed to find setter in POJO 
class [class name=" + clsName +
+                        ", property=" + field.getJavaName() + "]", e);
                 }
             }
         }
@@ -167,8 +167,8 @@ public class CacheJdbcPojoStore extends 
CacheAbstractJdbcStore<Object, Object> {
                 Method setter = mc.setters.get(field.getJavaName());
 
                 if (setter == null)
-                    throw new CacheLoaderException("Failed to find setter in 
pojo class [class name:" + typeName +
-                        ", property: " + field.getJavaName() + "]");
+                    throw new CacheLoaderException("Failed to find setter in 
POJO class [class name=" + typeName +
+                        ", property=" + field.getJavaName() + "]");
 
                 Integer colIdx = loadColIdxs.get(field.getDatabaseName());
 
@@ -194,8 +194,8 @@ public class CacheJdbcPojoStore extends 
CacheAbstractJdbcStore<Object, Object> {
             Method getter = mc.getters.get(fieldName);
 
             if (getter == null)
-                throw new CacheLoaderException("Failed to find getter in pojo 
class [class name:" + typeName +
-                    ", property: " + fieldName + "]");
+                throw new CacheLoaderException("Failed to find getter in POJO 
class [class name=" + typeName +
+                    ", property=" + fieldName + "]");
 
             return getter.invoke(obj);
         }

Reply via email to