现在没问题了。是我写的一个函数的问题。还是数据类型的问题。数据库的不管什么类型到了简表里面就是BigDecimal了,我把函数参数换成Object类型就好了。不过现在报表数据显示正常了,但是会抛个一场 第一行 14列什么的。
脚本解析错误[E:/Tomcat 6.0/webapps/gd/tjfx/ckjcttj/gyqk.xml]:
Parse error at line 1, column 14. Encountered: and
Parse error at line 1, column 14. Encountered: and
at bsh.Parser.generateParseException(Parser.java:6267)
at bsh.Parser.jj_consume_token(Parser.java:6215)
at bsh.Parser.ConditionalExpression(Parser.java:1192)
at bsh.Parser.Expression(Parser.java:1096)
at bsh.Parser.StatementExpression(Parser.java:3076)
at bsh.Parser.Statement(Parser.java:2924)
at bsh.Parser.BlockStatement(Parser.java:3031)
at bsh.Parser.Line(Parser.java:151)
at bsh.Interpreter.Line(Interpreter.java:1357)
at bsh.Interpreter.eval(Interpreter.java:795)
at bsh.Interpreter.eval(Interpreter.java:777)
at bsh.Interpreter.eval(Interpreter.java:1030)
at bsh.Interpreter.eval(Interpreter.java:1020)
at jatools.engine.script.ReportContext.eval(ReportContext.java:273)
at jatools.engine.script.ReportContext.evalTemplate(ReportContext.java:224)
at jatools.data.reader.sql.SqlReader.readStart(SqlReader.java:205)
at jatools.data.reader.sql.SqlReader.getDataset(SqlReader.java:490)
at jatools.data.reader.sql.SqlReader.doRead(SqlReader.java:481)
at jatools.data.reader.AbstractDatasetReader.read(AbstractDatasetReader.java:88)
at jatools.dom.src.DatasetNodeSource.create(DatasetNodeSource.java:130)
at jatools.dom.NodeFactory.createChildNodes(NodeFactory.java:45)
at jatools.dom.ElementBase.getChildElements(ElementBase.java:500)
at jatools.dom.DatasetBasedNode.getLength(DatasetBasedNode.java:396)
at jatools.dom.DatasetBasedNode.getFirstChild(DatasetBasedNode.java:239)
at org.jaxen.dom.DocumentNavigator$1.getFirstNode(DocumentNavigator.java:166)
at org.jaxen.dom.DocumentNavigator$NodeIterator.<init>(DocumentNavigator.java:789)
at org.jaxen.dom.DocumentNavigator$1.<init>(DocumentNavigator.java:168)
at org.jaxen.dom.DocumentNavigator.getChildAxisIterator(DocumentNavigator.java:163)
at org.jaxen.expr.iter.IterableChildAxis.iterator(IterableChildAxis.java:82)
at org.jaxen.expr.DefaultNameStep.evaluate(DefaultNameStep.java:204)
at org.jaxen.expr.DefaultLocationPath.evaluate(DefaultLocationPath.java:154)
at org.jaxen.expr.DefaultAbsoluteLocationPath.evaluate(DefaultAbsoluteLocationPath.java:117)
at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:108)
at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:705)
at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:227)
at jatools.engine.printer.AbstractPrinter.createCursor(AbstractPrinter.java:250)
at jatools.engine.printer.AbstractContainerPrinter.print(AbstractContainerPrinter.java:217)
at jatools.engine.printer.table.TablePrinter.print(TablePrinter.java:67)
at jatools.engine.printer.AbstractContainerPrinter.printChildren(AbstractContainerPrinter.java:150)
at jatools.engine.printer.AbstractContainerPrinter.next(AbstractContainerPrinter.java:298)
at jatools.engine.printer.AbstractContainerPrinter.print(AbstractContainerPrinter.java:233)
at jatools.engine.printer.AbstractContainerPrinter.printChildren(AbstractContainerPrinter.java:150)
at jatools.engine.printer.AbstractContainerPrinter.next(AbstractContainerPrinter.java:298)
at jatools.engine.printer.AbstractContainerPrinter.print(AbstractContainerPrinter.java:233)
at jatools.engine.printer.ReportPrinter.print(ReportPrinter.java:266)