[jira] [Updated] (GEODE-4693) JDBCLoader on region with a pdx-class-name causes exception during deserialization when a get is done

2018-03-08 Thread Anilkumar Gingade (JIRA)

 [ 
https://issues.apache.org/jira/browse/GEODE-4693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anilkumar Gingade updated GEODE-4693:
-
Component/s: docs

> JDBCLoader on region with a pdx-class-name causes exception during 
> deserialization when a get is done
> -
>
> Key: GEODE-4693
> URL: https://issues.apache.org/jira/browse/GEODE-4693
> Project: Geode
>  Issue Type: Bug
>  Components: docs, extensions, regions
>Affects Versions: 1.4.0
>Reporter: Fred Krone
>Assignee: Anilkumar Gingade
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> When Region.get() is performed with JDBCLoader and pdx-class-name, the 
> JDBCLoader always creates a PdxInstance whose fields are all of type object. 
> If the domain class has the fields as some other type, for example string or 
> int, then deserialization will fail.
> Workaround at this time is:
>  # Don't set the pdx-class-name on the jdbc region mapping. This will cause 
> deserialization to never happen since the data will remain a PdxInstance.
>  #  Have all your domain class fields serialized as pdx object fields. This 
> can be hard to do with the ReflectionBasedAutoSerializer so the 
> recommendation is to use PdxSerializable or your own PdxSerializer.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (GEODE-4693) JDBCLoader on region with a pdx-class-name causes exception during deserialization when a get is done

2018-02-27 Thread ASF GitHub Bot (JIRA)

 [ 
https://issues.apache.org/jira/browse/GEODE-4693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated GEODE-4693:
--
Labels: pull-request-available  (was: )

> JDBCLoader on region with a pdx-class-name causes exception during 
> deserialization when a get is done
> -
>
> Key: GEODE-4693
> URL: https://issues.apache.org/jira/browse/GEODE-4693
> Project: Geode
>  Issue Type: Bug
>  Components: extensions, regions
>Affects Versions: 1.4.0
>Reporter: Fred Krone
>Assignee: Anilkumar Gingade
>Priority: Major
>  Labels: pull-request-available
>
> When Region.get() is performed with JDBCLoader and pdx-class-name, the 
> JDBCLoader always creates a PdxInstance whose fields are all of type object. 
> If the domain class has the fields as some other type, for example string or 
> int, then deserialization will fail.
> Workaround at this time is:
>  # Don't set the pdx-class-name on the jdbc region mapping. This will cause 
> deserialization to never happen since the data will remain a PdxInstance.
>  #  Have all your domain class fields serialized as pdx object fields. This 
> can be hard to do with the ReflectionBasedAutoSerializer so the 
> recommendation is to use PdxSerializable or your own PdxSerializer.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (GEODE-4693) JDBCLoader on region with a pdx-class-name causes exception during deserialization when a get is done

2018-02-26 Thread Anilkumar Gingade (JIRA)

 [ 
https://issues.apache.org/jira/browse/GEODE-4693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anilkumar Gingade updated GEODE-4693:
-
Description: 
When Region.get() is performed with JDBCLoader and pdx-class-name, the 
JDBCLoader always creates a PdxInstance whose fields are all of type object. If 
the domain class has the fields as some other type, for example string or int, 
then deserialization will fail.

Workaround at this time is:
 # Don't set the pdx-class-name on the jdbc region mapping. This will cause 
deserialization to never happen since the data will remain a PdxInstance.
 #  Have all your domain class fields serialized as pdx object fields. This can 
be hard to do with the ReflectionBasedAutoSerializer so the recommendation is 
to use PdxSerializable or your own PdxSerializer.

 

  was:
Acceptance Criteria:

_Given_ I have an empty region with a pdx-type mapped to a jdbc connection
 _When_ I get an entry from the region
 _Then_ I it should pull a dataset from the backing db and convert it to the 
pdx-type associated with the region.

 

When reading from region and the region mapping has a pdx class name and no pdx 
type exists for that class or it exists but is missing at least one of the 
fields for the columns on the row.

 

 


> JDBCLoader on region with a pdx-class-name causes exception during 
> deserialization when a get is done
> -
>
> Key: GEODE-4693
> URL: https://issues.apache.org/jira/browse/GEODE-4693
> Project: Geode
>  Issue Type: Bug
>  Components: extensions, regions
>Affects Versions: 1.4.0
>Reporter: Fred Krone
>Priority: Major
>
> When Region.get() is performed with JDBCLoader and pdx-class-name, the 
> JDBCLoader always creates a PdxInstance whose fields are all of type object. 
> If the domain class has the fields as some other type, for example string or 
> int, then deserialization will fail.
> Workaround at this time is:
>  # Don't set the pdx-class-name on the jdbc region mapping. This will cause 
> deserialization to never happen since the data will remain a PdxInstance.
>  #  Have all your domain class fields serialized as pdx object fields. This 
> can be hard to do with the ReflectionBasedAutoSerializer so the 
> recommendation is to use PdxSerializable or your own PdxSerializer.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (GEODE-4693) JDBCLoader on region with a pdx-class-name causes exception during deserialization when a get is done

2018-02-26 Thread Anilkumar Gingade (JIRA)

 [ 
https://issues.apache.org/jira/browse/GEODE-4693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anilkumar Gingade updated GEODE-4693:
-
Summary: JDBCLoader on region with a pdx-class-name causes exception during 
deserialization when a get is done  (was: JDBCLoader on region with a 
pdx-class-name throw exceptions during deserialization)

> JDBCLoader on region with a pdx-class-name causes exception during 
> deserialization when a get is done
> -
>
> Key: GEODE-4693
> URL: https://issues.apache.org/jira/browse/GEODE-4693
> Project: Geode
>  Issue Type: Bug
>  Components: extensions, regions
>Affects Versions: 1.4.0
>Reporter: Fred Krone
>Priority: Major
>
> Acceptance Criteria:
> _Given_ I have an empty region with a pdx-type mapped to a jdbc connection
>  _When_ I get an entry from the region
>  _Then_ I it should pull a dataset from the backing db and convert it to the 
> pdx-type associated with the region.
>  
> When reading from region and the region mapping has a pdx class name and no 
> pdx type exists for that class or it exists but is missing at least one of 
> the fields for the columns on the row.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)