santhi Posted January 23, 2007 Share Posted January 23, 2007 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.javaErrors 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now