python-javaobj icon indicating copy to clipboard operation
python-javaobj copied to clipboard

Extended fork of python-javaobj from http://code.google.com/p/python-javaobj/

Results 8 python-javaobj issues
Sort by recently updated
recently updated
newest added

public static String serialize(Object obj) throws IOException { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); ObjectOutputStream objectOutputStream; objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); objectOutputStream.writeObject(obj); //String string = byteArrayOutputStream.toString(); String string = byteArrayOutputStream.toString("ISO-8859-1"); objectOutputStream.close(); byteArrayOutputStream.close();...

Type hints are currently missing or wrong in some methods.

enhancement

``` python >>> val '\xac\xed\x00\x05sr\x00-net.centersight.model.datapoint.DatapointBean\x00\x00\x00\x00\x00\x00\x00\x01\x02\x00\x11L\x00\x06accesst\x00\x13Ljava/lang/Integer;L\x00\x07addresst\x00\x12Ljava/lang/String;L\x00\x08categoryq\x00~\x00\x01L\x00\x0fcounterTimeBaseq\x00~\x00\x01L\x00\x08dataTypeq\x00~\x00\x01L\x00\rdatapointTypeq\x00~\x00\x01L\x00\x0cdisplayLevelq\x00~\x00\x01L\x00\nidentifiert\x00\x10Ljava/lang/Long;L\x00\tisCountert\x00\x13Ljava/lang/Boolean;L\x00\nlastUpdatet\x00\x10Ljava/util/Date;L\x00\x0clastValueStrq\x00~\x00\x02L\x00\rprevLastValuet\x004Lnet/centersight/model/datapoint/DatapointValueBean;L\x00\x10prevLastValueStrq\x00~\x00\x02L\x00\x0bstorageTypeq\x00~\x00\x01L\x00\x10transformDisplayq\x00~\x00\x02L\x00\x0btransformInq\x00~\x00\x02L\x00\x04unitq\x00~\x00\x02xr\x00\x1enet.centersight.model.NodeBean\x00\x00\x00\x00\x00\x00\x00\x01\x02\x00\x12I\x00\x05levelI\x00\x08nodeTypeI\x00\tsortIndexL\x00\ralarmSeverityq\x00~\x00\x01L\x00\x10customNodeTypeIdq\x00~\x00\x03L\x00\x0bdescriptionq\x00~\x00\x02L\x00\x02idq\x00~\x00\x03L\x00\x0blastUpdatedq\x00~\x00\x05L\x00\rlastUpdatedByq\x00~\x00\x02L\x00\nlinkedNodet\x00 Lnet/centersight/model/NodeBean;L\x00\x0bmapLatitudet\x00\x12Ljava/lang/Double;L\x00\x0cmapLongitudeq\x00~\x00\tL\x00\x07mapZoomq\x00~\x00\x01L\x00\x04nameq\x00~\x00\x02L\x00\x08parentIdq\x00~\x00\x03L\x00\x04pathq\x00~\x00\x02L\x00\x08subNodest\x00\x10Ljava/util/List;L\x00\x08timeZonet\x00\x14Ljava/util/TimeZone;xp\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00pppsr\x00\x0ejava.lang.Long;\x8b\xe4\x90\xcc\x8f#\xdf\x02\x00\x01J\x00\x05valuexr\x00\x10java.lang.Number\x86\xac\x95\x1d\x0b\x94\xe0\x8b\x02\x00\x00xp\x00\x00\x00\x00\x007Oxsr\x00\x12java.sql.Timestamp&\x18\xd5\xc8\x01S\xbfe\x02\x00\x01I\x00\x05nanosxr\x00\x0ejava.util.Datehj\x81\x01KYt\x19\x03\x00\x00xpw\x08\x00\x00\x01I\xcd`\xfdpx!\xf9\x82\x80t\x00\x06_ROOT_ppppt\x00\rMESSAGE_ERRORsq\x00~\x00\r\x00\x00\x00\x00\x00+\xb3(t\x00\x1b625/2863909/2863912/3624824ppppppsr\x00\x11java.lang.Integer\x12\xe2\xa0\xa4\xf7\x81\x878\x02\x00\x01I\x00\x05valuexq\x00~\x00\x0e\x00\x00\x00\x04sq\x00~\x00\x17\x00\x00\x00\nppsr\x00\x11java.lang.Boolean\xcd r\x80\xd5\x9c\xfa\xee\x02\x00\x01Z\x00\x05valuexp\x00ppppppt\x00\rMESSAGE_ERRORp' >>> val_deserilized=javaobj.loads(val) No handlers could be found for logger "javaobj" Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.6/dist-packages/javaobj.py", line...

I use python-javaobj to deserialization java serialzied data, there is always a RuntimeError:Unknown OpCode in the stream: 0x8 i use ``` pobj = javaobj.loads(serialzied_data) ``` The file can be download...

Not sure it this is any help, but I added support for pickling of Java objects to JPype. I was looking for solutions to issues during that effort and ran...

Some projects use netty for network communication and use netty default [ObjectEncoder](https://github.com/netty/netty/blob/4.1/codec/src/main/java/io/netty/handler/codec/serialization/ObjectEncoder.java) & [ObjectDecoder](https://github.com/netty/netty/blob/4.1/codec/src/main/java/io/netty/handler/codec/serialization/ObjectDecoder.java) which is use [CompactObjectOutputStream](https://github.com/netty/netty/blob/4.1/codec/src/main/java/io/netty/handler/codec/serialization/CompactObjectOutputStream.java) & [CompactObjectInputStream](https://github.com/netty/netty/blob/4.1/codec/src/main/java/io/netty/handler/codec/serialization/CompactObjectInputStream.java) which is based on Java ObjectOutputStream & ObjectInputStream but not...

enhancement

Hello! I'm trying to parse a file serializing an `ArrayList` of custom functions -- and I cannot even get the basics going... Below is my entire script. Without the default...

When trying to load a ghidra data type archive using the V2 implementation (V1 returns a clearly-wrong garbled string), the following error appears: ``` ValueError: Unknown type code: 0x50 ```...