cancel
Showing results for 
Search instead for 
Did you mean: 

CR with JSF, InvalidClassException

Former Member
0 Kudos

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)

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

I have to say I don't get that exception on my deployment.

Would you be using sample code provided here?

Search for jrc_jsf_report_viewer.zip

Sincerely,

Ted Ueda

Former Member
0 Kudos

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.

Former Member
0 Kudos

I'm using the Sun JSF reference implementation.

I don't think the JSF viewer is tested with MyFaces.

Sincerely,

Ted Ueda