Coder Social home page Coder Social logo

pherialize's People

Contributors

kayahr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pherialize's Issues

Outdated maven repository

Could you please update your maven repository? There is no 1.2.2 version with unicode support.

Thank You very much for your work.

Maven update

Will the maven repo be updated to include 1.2.2 anytime?

Date serialization anyone?

Hi!
I was wondering if anyone had successfully implemented Date serialization and subsequent deserialization onto PHP DateTime.
Thank you in advance!

This is my stacktrace:

de.ailis.pherialize.exceptions.SerializeException: Unable to serialize sun.util.calendar.Gregorian$Date
    at de.ailis.pherialize.Serializer.serializeObject(Serializer.java:185)
    at de.ailis.pherialize.Serializer.serializeObject(Serializer.java:93)
    at de.ailis.pherialize.Serializer.serializeSerializable(Serializer.java:524)
    at de.ailis.pherialize.Serializer.serializeObject(Serializer.java:180)
    at de.ailis.pherialize.Serializer.serializeObject(Serializer.java:93)
    at de.ailis.pherialize.Serializer.serializeSerializable(Serializer.java:524)
    at de.ailis.pherialize.Serializer.serializeObject(Serializer.java:180)
    at de.ailis.pherialize.Serializer.serializeObject(Serializer.java:93)
    at de.ailis.pherialize.Serializer.serialize(Serializer.java:75)
    at de.ailis.pherialize.Pherialize.serialize(Pherialize.java:61)
    ...

Unable to unserialize unknown type . limit on amount of data? new strategy?

Good Afternoon,

I am attempting to use pherialize to unserialize a serialized php array of database records.

It can do up to 20 records with no problem, but after 20 records, I receive the following error:

Exception in thread "main" 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.Pherialize.unserialize(Pherialize.java:83)

at Main.main(Main.java:40)

The code I am trying to execute is:

//Use XML-RPC to get serialized php array of database records

MixedArray list;

result = (String) server.execute("webserviceCallPlaceholder.call", params);

list = Pherialize.unserialize(result).toArray();

Is there maybe a limitation to the amount of data that can be unserialized? are there any strategies you would recommend to get around the problem?

Unable to unserialize unknown type :

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)

Unable to unserialize unknown type 3

my content is a:2:{s:4:"text";s:392:"阴道炎疾病伴随着许多女性,这个病症为我们女性带来无尽烦恼,大家都知道得了阴道炎,外阴常常会瘙痒,阴道分泌物较多让我们饱受其苦。之前我有咨询过医生,医生建议:预防为主治疗为辅,实际就是告诉我们预防很重要,那预防阴道炎有那先方法呢?在此与大家分享女性阴道炎预防方法";s:3:"img";s:0:"";} I test your project , throw follow exception :
Exception in thread "main" de.ailis.pherialize.exceptions.UnserializeException: Unable to unserialize unknown type 3
at de.ailis.pherialize.Unserializer.unserializeObject(Unserializer.java:128)
at de.ailis.pherialize.Unserializer.unserializeArray(Unserializer.java:263)
at de.ailis.pherialize.Unserializer.unserializeObject(Unserializer.java:121)
at de.ailis.pherialize.Pherialize.unserialize(Pherialize.java:128)
at de.ailis.pherialize.test.Test.main(Test.java:34)

the chinese string length incorrect

here is my code:
String result = Pherialize.serialize("中文字长度");
here is the execute result:
"s:5:"中文字长度";"
and in php 5.6.9 the serialize result is:
s:15:"中文字长度";

unable to unserialize unknown type g

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.