You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Erik BI (JIRA)" <ji...@apache.org> on 2012/07/02 10:13:42 UTC
[jira] [Created] (SHINDIG-1814) Unserializable cache keys
Erik BI created SHINDIG-1814:
--------------------------------
Summary: Unserializable cache keys
Key: SHINDIG-1814
URL: https://issues.apache.org/jira/browse/SHINDIG-1814
Project: Shindig
Issue Type: Improvement
Components: Java
Affects Versions: 2.5.0-beta2, 2.5.0-beta1
Reporter: Erik BI
Fix For: 2.5.0
Unserializable cache keys:
Right now the Shindig Caches the 'messageBundles' and 'gadgetSpecs' with Uri object as key, but for some cache implementation, for example, DynaCache, it requires the key to be serializable, which Uri is not.
There are two solution for this, one, make Uri serializable; 2. using a 'string' for the key, uri.toString is good enough. Propose to use "string"
The reason for this is that Uri is a complex object that includes a Uri parsers so you would need to be VERY careful to get this right. It would be trivial to use a string key instead.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (SHINDIG-1814) Unserializable cache keys
Posted by "Ryan Baxter (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-1814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan Baxter resolved SHINDIG-1814.
----------------------------------
Resolution: Fixed
Committed revision 1357819.
> Unserializable cache keys
> -------------------------
>
> Key: SHINDIG-1814
> URL: https://issues.apache.org/jira/browse/SHINDIG-1814
> Project: Shindig
> Issue Type: Improvement
> Components: Java
> Affects Versions: 2.5.0-beta2
> Reporter: Erik BI
> Labels: patch
> Fix For: 2.5.0, 2.5.0-beta3
>
> Attachments: UriToString.patch, UriToString.patch
>
>
> Unserializable cache keys:
> Right now the Shindig Caches the 'messageBundles' and 'gadgetSpecs' with Uri object as key, but for some cache implementation, for example, DynaCache, it requires the key to be serializable, which Uri is not.
> There are two solution for this, one, make Uri serializable; 2. using a 'string' for the key, uri.toString is good enough. Propose to use "string"
> The reason for this is that Uri is a complex object that includes a Uri parsers so you would need to be VERY careful to get this right. It would be trivial to use a string key instead.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (SHINDIG-1814) Unserializable cache keys
Posted by "Erik BI (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-1814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erik BI updated SHINDIG-1814:
-----------------------------
Attachment: UriToString.patch
> Unserializable cache keys
> -------------------------
>
> Key: SHINDIG-1814
> URL: https://issues.apache.org/jira/browse/SHINDIG-1814
> Project: Shindig
> Issue Type: Improvement
> Components: Java
> Affects Versions: 2.5.0-beta2
> Reporter: Erik BI
> Labels: patch
> Fix For: 2.5.0
>
> Attachments: UriToString.patch, UriToString.patch
>
>
> Unserializable cache keys:
> Right now the Shindig Caches the 'messageBundles' and 'gadgetSpecs' with Uri object as key, but for some cache implementation, for example, DynaCache, it requires the key to be serializable, which Uri is not.
> There are two solution for this, one, make Uri serializable; 2. using a 'string' for the key, uri.toString is good enough. Propose to use "string"
> The reason for this is that Uri is a complex object that includes a Uri parsers so you would need to be VERY careful to get this right. It would be trivial to use a string key instead.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (SHINDIG-1814) Unserializable cache keys
Posted by "Ryan Baxter (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-1814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan Baxter updated SHINDIG-1814:
---------------------------------
Fix Version/s: 2.5.0-beta3
> Unserializable cache keys
> -------------------------
>
> Key: SHINDIG-1814
> URL: https://issues.apache.org/jira/browse/SHINDIG-1814
> Project: Shindig
> Issue Type: Improvement
> Components: Java
> Affects Versions: 2.5.0-beta2
> Reporter: Erik BI
> Labels: patch
> Fix For: 2.5.0, 2.5.0-beta3
>
> Attachments: UriToString.patch, UriToString.patch
>
>
> Unserializable cache keys:
> Right now the Shindig Caches the 'messageBundles' and 'gadgetSpecs' with Uri object as key, but for some cache implementation, for example, DynaCache, it requires the key to be serializable, which Uri is not.
> There are two solution for this, one, make Uri serializable; 2. using a 'string' for the key, uri.toString is good enough. Propose to use "string"
> The reason for this is that Uri is a complex object that includes a Uri parsers so you would need to be VERY careful to get this right. It would be trivial to use a string key instead.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (SHINDIG-1814) Unserializable cache keys
Posted by "Erik BI (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-1814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erik BI updated SHINDIG-1814:
-----------------------------
Attachment: UriToString.patch
Use String as Cache Key instead of Uri object to support serialization requirement for Cluster environment
> Unserializable cache keys
> -------------------------
>
> Key: SHINDIG-1814
> URL: https://issues.apache.org/jira/browse/SHINDIG-1814
> Project: Shindig
> Issue Type: Improvement
> Components: Java
> Affects Versions: 2.5.0-beta2
> Reporter: Erik BI
> Labels: patch
> Fix For: 2.5.0
>
> Attachments: UriToString.patch
>
>
> Unserializable cache keys:
> Right now the Shindig Caches the 'messageBundles' and 'gadgetSpecs' with Uri object as key, but for some cache implementation, for example, DynaCache, it requires the key to be serializable, which Uri is not.
> There are two solution for this, one, make Uri serializable; 2. using a 'string' for the key, uri.toString is good enough. Propose to use "string"
> The reason for this is that Uri is a complex object that includes a Uri parsers so you would need to be VERY careful to get this right. It would be trivial to use a string key instead.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira