JBoss Community

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

created by TC ONG in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community