Jump to content
Changes to the Jaspersoft community edition download ×

Typecastig problem


santhi

Recommended Posts

Hi All,

 

 

i am getting the following exception...

 

i have field like f${current} of return type com.vsoftcorp.ledger.model.AccountingEntry

 

using this field i am trying to get the instance of another class like as follows:

((com.vsoftcorp.ledger.model.AccountingEntry)$F{current}).getPostEntryTarget(com.vsoftcorp.ledger.model.LedgerAccount.class)

 

Here in the above expressiong i am expecting LedgerAccount class as return type.

 

but i am getting the following exception..

 

 

Thanks in Advance.

Santhi

 

 

 

________________________________________________

 

ÂCompiling to file... C:vsoftReportsWorkspaceGLledger-reports-latestsrcmainresourcesGLR008_02.jasper -> C:vsoftReportsWorkspaceGLledger-reports-latestsrcmainresourcesGLR008_02.java

Errors compiling C:vsoftReportsWorkspaceGLledger-reports-latestsrcmainresourcesGLR008_02.jasper!

net.sf.jasperreports.engine.JRException:ÂErrorsÂwereÂencounteredÂwhenÂcompilingÂreportÂexpressionsÂclassÂfile: C:vsoftReportsWorkspaceGLledger-reports-latestsrcmainresourcesGLR008_02_1169554164105_543162.java:206:ÂcannotÂfindÂsymbol symbolÂÂ:ÂclassÂAccountingEntry location:ÂpackageÂcom.vsoftcorp.ledger.model ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂvalueÂ=Â(com.vsoftcorp.ledger.model.LedgerAccount)(((com.vsoftcorp.ledger.model.AccountingEntry)((com.vsoftcorp.ledger.model.AccountingEntry)field_current.getValue())).getPostEntryTarget(com.vsoftcorp.ledger.model.LedgerAccount.class)); ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ^ ÂÂÂÂatÂnet.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:193) ÂÂÂÂatÂnet.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:105) ÂÂÂÂatÂnet.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127) ÂÂÂÂatÂnet.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:109) ÂÂÂÂatÂit.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:510) ÂÂÂÂatÂjava.lang.Thread.run(UnknownÂSource)

_____________________________________________________

Link to comment
Share on other sites

  • Replies 0
  • 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...