Page 1 of 1

NotSerializableException: com.stimulsoft.report.StiReport

Posted: Fri Jun 09, 2017 12:01 pm
by Jia Sheng
Hello,

We use Stimulsoft Reports.Java 2016.1, It does not work fine when we need to session sharing.error like:
error
error
test.png (62.59 KiB) Viewed 6917 times

Now we Requires a jar that supports the StiReport object serialization,like:
test2.png
test2.png (22.34 KiB) Viewed 6917 times

thanks

Re: NotSerializableException: com.stimulsoft.report.StiRepor

Posted: Fri Jun 09, 2017 12:50 pm
by Vadim
Hello.
Please describe in details what do you want?

Re: NotSerializableException: com.stimulsoft.report.StiRepor

Posted: Mon Jun 12, 2017 1:31 am
by Jia Sheng
Hello,

I want the class of 'com.stimulsoft.report.StiReport' to support serialization. com.stimulsoft.report.StiReport implement Serializable.

Re: NotSerializableException: com.stimulsoft.report.StiRepor

Posted: Mon Jun 12, 2017 7:33 am
by Vadim
Hello.
Class StiReport implements IStiSerializableRef.
You can use class StiSerializeManager for serialize/deserialize reports & templates, for example
StiSerializeManager.deserializeReport();
StiSerializeManager.serializeReport();
StiSerializeManager.serializeReportToJson();

Re: NotSerializableException: com.stimulsoft.report.StiRepor

Posted: Tue Jun 13, 2017 2:35 am
by Jia Sheng
Hello,
Now we use the webviewer control on the jsp page.
webviewer
webviewer
report.png (20.77 KiB) Viewed 6905 times
The webviewer control accepts only the type 'com.stimulsoft.report.StiReport' of the object.
We can only put this type of object in the session. 'pageContext.setAttribute("report", report);'
Our environment requires that the object that places the session must implement Serializable.

I still do not know how to do it? please help me.
Thanks

Re: NotSerializableException: com.stimulsoft.report.StiRepor

Posted: Tue Jun 13, 2017 9:38 am
by Vadim
Hello.
You can do next way:

Code: Select all

<stiwebviewer:webviewer report="<%=report%>" options="${options}"/>

Re: NotSerializableException: com.stimulsoft.report.StiRepor

Posted: Wed Jun 14, 2017 2:30 am
by Jia Sheng
Vadim wrote:Hello.
You can do next way:

Code: Select all

<stiwebviewer:webviewer report="<%=report%>" options="${options}"/>
Hello,

This program we have tested before, found that it does not work.We guess this question whether or not because your code put the report into the session. We need is no session, do not put anything into the session.

Thanks

Re: NotSerializableException: com.stimulsoft.report.StiRepor

Posted: Thu Jun 15, 2017 9:43 am
by Vadim
Hello.
We add implements Serializable, you can use it from next version.