[jboss-user] [jBPM] - Re: java.io.OptionalDataException when do ObjectInputStream.readObject()

TC ONG do-not-reply at jboss.com
Wed Apr 10 04:37:03 EDT 2013


TC ONG [https://community.jboss.org/people/devilkazuya99] created the discussion

"Re: java.io.OptionalDataException when do ObjectInputStream.readObject()"

To view the discussion, visit: https://community.jboss.org/message/807371#807371

--------------------------------------------------------------
Yes! It works 200%. Thanks.

Updated code:

                    Content content = localTaskService.getContent(documentContentId);
                    System.out.println(content.getId() + " => " + content.toString());
                    if (content != null){
                         Object obj = ContentMarshallerHelper.unmarshall(content.getContent(), null);
                         System.out.println("Object = " + obj.getClass());
                         System.out.println("Object.2String() = " + obj.toString());
                  }
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/807371#807371]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130410/80d57ad4/attachment.html 


More information about the jboss-user mailing list