on 2007 Jul 24 12:13 AM
I am using the JSF report page viewer component <v:reportPageViewer>.
It works fine when displaying the report page for the first time. But I fails when any action performed on the report such as clicking 'Next' with InvalidClassException JPEReportSource:No Valid Constructor(error message below).
I have the javax.faces.STATE_SAVING_METHOD as 'server' .
Please help me resolve this bug.
Thanks,
Kale.
The stack trace of the exception is
SEVERE: Exiting deserializeView - Could not deserialize state: com.crystaldecisions.reports.reportengineinterface.JPEReportSource; no valid constructor
java.io.InvalidClassException: com.crystaldecisions.reports.reportengineinterface.JPEReportSource; no valid constructor
at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:379)
You're saving JSF state to the server. Would you be persisting the state to disk?
JPEReportSource implements java.io.Externalizable, but does not appear to have a no-argument constructor. This is what's throwing the exception - error on trying to recreate the report source object on next invocation.
If you have JSF stored to memory only, does the error still happen? I don't think serialization of the reportsource to disk is supported.
Sincerely,
Ted Ueda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply Ted.
Is there an option to set the JSF to store in Memory or disk ?.
I tried setting the Save state to both Client and Server.
The serialization is being used by the supplied JSF Viewer internally. If JPEReportSource can't be serialized, I am not sure how did they ever have it working without this specific exception.
Ted,
I am using the same example (jrc_jsf_report_viewer.zip).
It fails with the same exception.
java.io.InvalidClassException: com.crystaldecisions.reports.reportengineinterface.JPEReportSource; no valid constructor
Does it have something to do with JSF version ?.
I am using Myfaces 1.1.5. What version are you using ?.
Thanks,
Kale.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.