Skip to content
This repository has been archived by the owner on Jul 25, 2020. It is now read-only.

Unable to unserialize unknown type : #5

Open
gmercey opened this issue Dec 4, 2013 · 2 comments
Open

Unable to unserialize unknown type : #5

gmercey opened this issue Dec 4, 2013 · 2 comments

Comments

@gmercey
Copy link

gmercey commented Dec 4, 2013

Hi,

Here my serialize string. I don't have any problem unserialize it with PHP, but impossible to do it with JAVA :

a:6:{s:5:"width";i:500;s:6:"height";i:368;s:14:"hwstring_small";s:23:"height='94' width='128'";s:4:"file";s:35:"tumblr_inline_mrtxtyrsTn1qz4rgp.jpg";s:5:"sizes";a:2:{s:9:"thumbnail";a:4:{s:4:"file";s:43:"tumblr_inline_mrtxtyrsTn1qz4rgp-150x150.jpg";s:5:"width";i:150;s:6:"height";i:150;s:9:"mime-type";s:10:"image/jpeg";}s:6:"medium";a:4:{s:4:"file";s:43:"tumblr_inline_mrtxtyrsTn1qz4rgp-300x220.jpg";s:5:"width";i:300;s:6:"height";i:220;s:9:"mime-type";s:10:"image/jpeg";}}s:10:"image_meta";a:10:{s:8:"aperture";i:0;s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";i:0;s:9:"copyright";s:104:"TM & © 2013 Twentieth Century Fox Film Corporation. All Rights Reserved. Not for sale or duplication.";s:12:"focal_length";i:0;s:3:"iso";i:0;s:13:"shutter_speed";i:0;s:5:"title";s:0:"";}}

Unable to unserialize unknown type :
de.ailis.pherialize.exceptions.UnserializeException: Unable to unserialize unknown type :
at de.ailis.pherialize.Unserializer.unserializeObject(Unserializer.java:109)
at de.ailis.pherialize.Unserializer.unserializeArray(Unserializer.java:243)
at de.ailis.pherialize.Unserializer.unserializeObject(Unserializer.java:102)
at de.ailis.pherialize.Unserializer.unserializeArray(Unserializer.java:245)
at de.ailis.pherialize.Unserializer.unserializeObject(Unserializer.java:102)
at de.ailis.pherialize.Pherialize.unserialize(Pherialize.java:83)

@gmercey
Copy link
Author

gmercey commented Dec 4, 2013

It seems that the Unserializer try to convert a double, but there's no double in the serialize string.

@350050183
Copy link

It is because of not support key=>value format.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants