Jump to content
We've recently updated our Privacy Statement, available here ×

ClassCastException JRAbstractScriptlet.


Recommended Posts

Hi all,

I have a problem in generating a report that use a scriptlet on jasperserver but all work perfectly on ireport.

below is the environment :

apache-tomcat-5.5.26

iReport-5.6.0

jasperreports-server-cp-5.6.1

jdk1.7.0_80

I have copied the jar of the scriptlet in commonlib folder of tomcat. Also I putted there the jar of jasperreport 5.6.1.

below is the structure of scriptlet java code :

/** BEGIN JAVA CODE */

import net.sf.jasperreports.engine.JRAbstractScriptlet;
import net.sf.jasperreports.engine.JRScriptletException;
 
public class TestScriptlet extends JRAbstractScriptlet {
***

/** END JAVA CODE */

Below is the error log :

Error creating scriptlet class instance : TestScriptlet

com.jaspersoft.jasperserver.api.JSExceptionWrapper: net.sf.jasperreports.engine.JRException: Error creating scriptlet class instance : TestScriptlet at ...
net.sf.jasperreports.engine.JRException: Error creating scriptlet class instance : TestScriptlet...
net.sf.jasperreports.engine.JRException: Error creating scriptlet class instance : TestScriptlet at ...
java.lang.ClassCastException: TestScriptlet cannot be cast to net.sf.jasperreports.engine.JRAbstractScriptlet...
java.lang.ClassCastException: TestScriptlet cannot be cast to net.sf.jasperreports.engine.JRAbstractScriptlet at...
 
 
Please can you tell me what is wrong ?
 
Thanks
 
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...