Jump to content

Error compiling report with Scriptlet


ktrinad

Recommended Posts

By: Ben - bglazier

Error compiling report with Scriptlet

2006-07-12 13:48

Hi,

 

I cant't get Jasper server to compile my report that used scriptlets, although I have no problem compiling and executing in iReport. I was getting the same errors when compiling in iReport until I changed variable expression to something like: ($P{REPORT_SCRIPTLET}).workingDaysInMonth()

When I tried the longer version of (it.businesslogic.ireport.IReportScriptlet)$P{REPORT_SCRIPTLET}).workingDaysInMonth()

it did not compile in iReport. What am I doing wrong?

 

iReport 1.24

JasperServer 0.9.2

 

Here is the error I get:

 

 

org.springframework.webflow.ActionExecutionException: Exception thrown executing [AnnotatedAction@1439bd9 targetAction = com.jaspersoft.jasperserver.war.action.ViewReportAction@1acd9bf, attributes = map[[empty]]] in state 'verifyData' of flow 'viewReportFlow'; nested exception is com.jaspersoft.jasperserver.api.JSExceptionWrapper: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. customer_salesScriptlet cannot be resolved to a type value = (java.lang.Integer)((((customer_salesScriptlet)parameter_REPORT_SCRIPTLET.getValue())).workingDaysInMonth()); <---------------------> 2. customer_salesScriptlet cannot be resolved to a type value = (java.lang.Integer)((((customer_salesScriptlet)parameter_REPORT_SCRIPTLET.getValue())).workingDaysSoFar()); <---------------------> 3. customer_salesScriptlet cannot be resolved to a type value = (java.lang.Integer)((((customer_salesScriptlet)parameter_REPORT_SCRIPTLET.getValue())).workingDaysInMonth()); <---------------------> 4. customer_salesScriptlet cannot be resolved to a type value = (java.lang.Integer)((((customer_salesScriptlet)parameter_REPORT_SCRIPTLET.getValue())).workingDaysSoFar()); <---------------------> 5. customer_salesScriptlet cannot be resolved to a type value = (java.lang.Integer)((((customer_salesScriptlet)parameter_REPORT_SCRIPTLET.getValue())).workingDaysInMonth()); <---------------------> 6. customer_salesScriptlet cannot be resolved to a type value = (java.lang.Integer)((((customer_salesScriptlet)parameter_REPORT_SCRIPTLET.getValue())).workingDaysSoFar()); <---------------------> 6 errors

 

 

By: Ben - bglazier

RE: Error compiling report with Scriptlet

2006-07-12 14:57

Ok,

 

I think i just got a bit further, I forgot to add the .class file along with my .java file when creating the .jar. Are theses the only 2 files needed in the scriptlet jar file?

 

Anyway this is the error I now get:

 

org.springframework.webflow.ActionExecutionException: Exception thrown executing [AnnotatedAction@1439bd9 targetAction = com.jaspersoft.jasperserver.war.action.ViewReportAction@1acd9bf, attributes = map[[empty]]] in state 'verifyData' of flow 'viewReportFlow'; nested exception is com.jaspersoft.jasperserver.api.JSExceptionWrapper: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. The type it.businesslogic.ireport.IReportScriptlet cannot be resolved. It is indirectly referenced from required .class files /* ^ 1 errors

 

 

By: Lucian Chirita - lucianc

RE: Error compiling report with Scriptlet

2006-07-13 02:25

Apparently your scriptlet class depends on it.businesslogic.ireport.IReportScriptlet (probably extends it).

 

Therefore, you need to make this class available in some way. You could, for example, include the iReport jar in your web application.

 

HTH,

Lucian

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...