NotSerializableException: com.stimulsoft.report.StiReport

Stimulsoft Reports.JAVA discussion
Post Reply
Jia Sheng
Posts: 49
Joined: Thu Jul 04, 2013 7:59 am

NotSerializableException: com.stimulsoft.report.StiReport

Post 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 5388 times

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

thanks
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: NotSerializableException: com.stimulsoft.report.StiRepor

Post by Vadim »

Hello.
Please describe in details what do you want?
Jia Sheng
Posts: 49
Joined: Thu Jul 04, 2013 7:59 am

Re: NotSerializableException: com.stimulsoft.report.StiRepor

Post by Jia Sheng »

Hello,

I want the class of 'com.stimulsoft.report.StiReport' to support serialization. com.stimulsoft.report.StiReport implement Serializable.
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: NotSerializableException: com.stimulsoft.report.StiRepor

Post 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();
Jia Sheng
Posts: 49
Joined: Thu Jul 04, 2013 7:59 am

Re: NotSerializableException: com.stimulsoft.report.StiRepor

Post by Jia Sheng »

Hello,
Now we use the webviewer control on the jsp page.
webviewer
webviewer
report.png (20.77 KiB) Viewed 5376 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
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: NotSerializableException: com.stimulsoft.report.StiRepor

Post by Vadim »

Hello.
You can do next way:

Code: Select all

<stiwebviewer:webviewer report="<%=report%>" options="${options}"/>
Jia Sheng
Posts: 49
Joined: Thu Jul 04, 2013 7:59 am

Re: NotSerializableException: com.stimulsoft.report.StiRepor

Post 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
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: NotSerializableException: com.stimulsoft.report.StiRepor

Post by Vadim »

Hello.
We add implements Serializable, you can use it from next version.
Post Reply