Jump to content

new.java.lang.Integer(1).. error..


srikanth1229

Recommended Posts

Hi when i am trying to call the subreport from title. it's getting this error. please help me....

 

Error filling print... net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : 
    Source text : new java.lang.Integer(1)
net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : 
    Source text : new java.lang.Integer(1) 
    at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:667) 
    at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:346) 
    at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:346) 
    at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:305) 
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillTitle(JRVerticalFiller.java:313) 
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:247) 
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:113) 
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:899) 
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:802) 
    at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63) 
    at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:421) 
    at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:251) 
    at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:896) 
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) 
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986) 
Caused by: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : 
    Source text : new java.lang.Integer(1) 
    at net.sf.jasperreports.engine.fill.JREvaluator.evaluateEstimated(JREvaluator.java:257) 
    at net.sf.jasperreports.engine.fill.JRCalculator.evaluateEstimated(JRCalculator.java:565) 
    at net.sf.jasperreports.engine.fill.JRCalculator.estimateVariables(JRCalculator.java:169) 
    at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:788) 
    at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1413) 
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:111) 
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:899) 
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:802) 
    at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:564) 
    at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:63) 
    at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.run(JRThreadSubreportRunner.java:209) 
    at java.lang.Thread.run(Thread.java:595) 
Caused by: java.lang.RuntimeException: No Context associated with current Thread 
    at org.mozilla.javascript.Context.getContext(Context.java:2206) 
    at org.mozilla.javascript.SecurityController.createLoader(SecurityController.java:136) 
    at org.mozilla.javascript.optimizer.Codegen.defineClass(Codegen.java:143) 
    at org.mozilla.javascript.optimizer.Codegen.createScriptObject(Codegen.java:102) 
    at org.mozilla.javascript.Context.compileImpl(Context.java:2293) 
    at org.mozilla.javascript.Context.compileString(Context.java:1240) 
    at org.mozilla.javascript.Context.compileString(Context.java:1229) 
    at net.sf.jasperreports.compilers.JavaScriptEvaluator.getCompiledExpression(JavaScriptEvaluator.java:319) 
    at net.sf.jasperreports.compilers.JavaScriptEvaluator.evaluateExpression(JavaScriptEvaluator.java:298) 
    at net.sf.jasperreports.compilers.JavaScriptEvaluator.evaluateEstimated(JavaScriptEvaluator.java:280) 
    at net.sf.jasperreports.engine.fill.JREvaluator.evaluateEstimated(JREvaluator.java:246) 
    ... 11 more 
Print not filled. Try to use an EmptyDataSource...

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

UPDATE:  Well, I completely rebuilt these reports and it worked.  The only thing I know I did differently here was a cut and paste of the JRXML from two other files that were nearly identical to these: Proposal data as opposed to Invoice data.  I had just done a search and replace of those words in the jrxml.  The odd thing is that the source files have the same issue so I can't see how the cut/paste had any effect.  Gotta go try the others now.  What a waste of time.  (Thank goodness for the rockin' sounds of the Gaslight Anthem)

 

I'm having the same problem and though I posted before I'm attaching my jrxml files.  ...Invoice is the subreport and Master is, obviously, master.  Both reports run fine individually.

My subreport is in the detail band along with few fields.  I am using v3.6 on Ubuntu 9.04. 

I have plenty of other reports with subreports doing fine.  I've completely redone the queries to see if that was the problem.  I'm going to try redoing the entire reports here now but if someone has

thoughts they would be greatly appreciated.

Thanks,

Jerry

 



Post Edited by jvway at 10/14/2009 22:05
Link to comment
Share on other sites

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