Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Deserialized Java Objects from socket python #1

Copy link
Copy link
@GoogleCodeExporter

Description

@GoogleCodeExporter
Issue body actions


What is the expected output? What do you see instead?

The output that I expect is deserialize java object that is serialized by Java 
ObjectOutputStream and read from the socket by socket python method. recv

I see this error:
No handlers could be found for logger "javaobj"
Traceback (most recent call last):
  File "/home/aledani85/workspace/tesiinf2/src/cspackage/ClientSock.py", line 28, in <module>
    stringa=javaobj.loads(pippo)
  File "/home/aledani85/Scaricati/javaobj-0.1.0-py2.6.egg/javaobj.py", line 45, in loads
  File "/home/aledani85/Scaricati/javaobj-0.1.0-py2.6.egg/javaobj.py", line 159, in readObject
  File "/home/aledani85/Scaricati/javaobj-0.1.0-py2.6.egg/javaobj.py", line 181, in _read_and_exec_opcode
  File "/home/aledani85/Scaricati/javaobj-0.1.0-py2.6.egg/javaobj.py", line 190, in _readStruct
struct.error: unpack requires a string argument of length 1


What version of the product are you using? On what operating system?
The version used is:0.1.0.The operating system is Ubuntu karmic 8.04

Please provide any additional information below.

is possible using this form deserialize Java objects into python objects? I 
will have to pass along a serialized Java objects form python.This form must 
then serialize the object before bed to send a second Java class which will 
read the object.

Thanks for the help. Congratulations on this very interesting form.

Original issue reported on code.google.com by Padiglio...@gmail.com on 1 Apr 2011 at 4:06

Attachments:

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.