fineReport传递中文的时候报异常,商品吗无法显示

WARNING: 页面写出中[Name : code.cpt] [Parameter : {__BYPAGESIZE__ : false[java.lang.String], __CLEANUP_RECURSION_COUNTER : 1[java.lang.String], __LOCALE__ : zh_CN[java.util.Locale], __STREAMCLOSED__ : [java.lang.String], CC : 1257[java.lang.String], LOGINUSER : mo.pss.domain.Employee@d945a5[mo.pss.domain.Employee], POPENAMES : [systemDictionaryType, purchaseReturn_delete, client_save, productType, depot_save, product_bill, purchaseBill_input, systemDictionaryDetail_delete, role, sellReturn_input, supplier, department_save, stockAllot_auding, purchaseBill_jsonBill, backup_resume, purchaseReturn_input, systemDictionaryType_input, sellBill_delete, sellBill_deleteAuded, productStock, product_save, sellReturnFund_payBack, productType_delete, purchaseBillFund_payBack, stockAllot, backup_input, sellReturn_auding, purchaseReturn_deleteAuded, client_input, sellReturnFund, employee_delete, productStock_allot, stockAllot_save, purchaseBill_auding, client_showCity, supplier_showCity, depot, purchaseBill_chooseBill, sellBill, backup, resource_save, sellReturn, sellBillItem_chart2, product, systemDictionaryType_save, resource_delete, backup_delete, sellBillFund, purchaseBillFund_pay, purchaseBill_save, sellReturn_delete, purchaseBillFund, sellBillItem_query, sellReturn_save, client, role_save, employee_input, sellBill_input, employee_download, purchaseBill_delete, productType_save, depot_delete, purchaseReturn_save, supplier_delete, productType_tree, sellBillItem_findBillItems, sellReturnFund_pay, systemDictionaryDetail_save, sellBillItem, purchaseBillItem, stockAllot_delete, sellBill_jsonBill, product_input, sellReturn_deleteAuded, purchaseBill, supplier_save, productStock_getProductStockNum, systemDictionaryDetail, purchaseReturn_auding, employee_check, purchaseBillFund_payInput, sysPopedom_save, productStock_jsonStock, purchaseBillItem_query, supplier_input, purchaseReturn, role_delete, product_delete, resource_input, backup_save, sellBill_auding, department, purchaseBillItem_findBillItems, purchaseReturnFund, stockAllot_deleteAuded, sellReturnFund_payInput, department_delete, role_input, client_delete, sellBill_save, department_input, employee, employee_save, sysPopedom, purchaseBill_deleteAuded, resource, depot_input, employee_updateStatus, productType_listChild, stockAllot_input, sellBillItem_chart, sellBill_chooseBill, systemDictionaryType_delete][java.util.HashSet], PRODUCTNAME : $("input[code=productName]").val()[java.lang.String], REPORTLET : code.cpt[java.lang.String], REPORTNAME : code.cpt[java.lang.String]}][Type : page]  :
Data to encode cannot be empty
com.fr.report.cell.painter.barcode.BarcodeException: Data to encode cannot be empty
        at com.fr.report.cell.painter.barcode.BarcodeImpl.<init>(Unknown Source)
        at com.fr.report.cell.painter.barcode.line.code39.Code39Barcode.<init>(Unknown Source)
        at com.fr.report.cell.painter.barcode.line.code39.Code39Barcode.<init>(Unknown Source)
        at com.fr.report.cell.painter.barcode.core.BarcodeFactory.createCode39(Unknown Source)
        at com.fr.report.cell.painter.barcode.core.BarCodeUtils.getBarcodeImpl(Unknown Source)
        at com.fr.report.cell.painter.barcode.core.BarCodeUtils.getBarcodeImpl(Unknown Source)
        at com.fr.report.cell.painter.BarcodePainter.paint(Unknown Source)
        at com.fr.base.Style.paintContent(Unknown Source)
        at com.fr.report.cell.cellattr.core.CellUtils.value2Image(Unknown Source)
        at com.fr.report.core.PaintUtils.paintTag(Unknown Source)
        at com.fr.web.core.utils.ReportHTMLWriterUtils.value2PaintableTag(Unknown Source)
        at com.fr.web.core.utils.ReportHTMLWriterUtils.value2PaintableTag(Unknown Source)
        at com.fr.web.output.html.chwriter.CellHtmlWriter.displayVerticalText(Unknown Source)
        at com.fr.web.output.html.chwriter.CellHtmlWriter.drawContent(Unknown Source)
        at com.fr.web.output.html.chwriter.CellHtmlWriter.dealContent(Unknown Source)
        at com.fr.web.output.html.chwriter.CellHtmlWriter.cell2Tag(Unknown Source)
        at com.fr.web.output.html.chwriter.TreeCellWriter.cell2Tag(Unknown Source)
        at com.fr.web.core.HTMLWriter.writeCellElement(Unknown Source)
        at com.fr.web.core.HTMLWriter.writeTr(Unknown Source)
        at com.fr.web.core.HTMLWriter.writeClip2Html(Unknown Source)
        at com.fr.web.core.HTMLWriter.clipReport2Html(Unknown Source)
        at com.fr.web.core.HTMLWriter.clipReport2Html(Unknown Source)
        at com.fr.web.core.HTMLWriter.writeReportToHtml(Unknown Source)
        at com.fr.web.output.html.HTMLOutlet.writeContentWhenNotFrozen(Unknown Source)
        at com.fr.web.output.html.HTMLOutlet.clippedPageOutput(Unknown Source)
        at com.fr.web.output.html.HTMLOutlet.clippedPageOutput(Unknown Source)
        at com.fr.page.ClippedECPage.output(Unknown Source)
        at com.fr.web.output.html.HTMLOutlet.writeReportPageContent(Unknown Source)
        at com.fr.web.output.html.HTMLOutlet.out(Unknown Source)
        at com.fr.web.core.A.pB.A(Unknown Source)
        at com.fr.web.core.A.pB.A(Unknown Source)
        at com.fr.web.core.A.pB.A(Unknown Source)
        at com.fr.web.core.A.pB.A(Unknown Source)
        at com.fr.web.core.A.EB.actionCMD(Unknown Source)
        at com.fr.web.core.WebActionsDispatcher.dealForActionCMD(Unknown Source)
        at com.fr.web.core.WebActionsDispatcher.dealForActionDefaultCmd(Unknown Source)
        at com.fr.web.core.A.nB.process(Unknown Source)
        at com.fr.web.core.ReportDispatcher.dealWithOp(Unknown Source)
        at com.fr.web.core.ReportDispatcher.dealWeblet(Unknown Source)
        at com.fr.web.core.ReportDispatcher.dealWithRequest(Unknown Source)
        at com.fr.web.BaseServlet.doGet(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)

浏览器中url为:http://localhost:8889/purchase_sell/ReportServer?reportlet=code.cpt&__bypagesize__=false&productName=裤
模板的sql查询为  SELECT productNum FROM `product` where name LIKE '%${productName}%'  and brand_id LIKE '${brand_id}%' and batchNum LIKE '%${batchNum}%',在FineReport里预览的时候查询productName的时候是没有问题的,在浏览器中的时候就会报上面的异常,不查询productName的时候就没有问题


求大神解决



FineReportkevin010 发布于 2015-3-29 16:02
回答问题
悬赏:0 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共14回答
最佳回答
0
deafire发布于2015-3-29 17:30(编辑于 2023-9-6 09:34)
555
  • kevin010 kevin010(提问者)

    全部试过了,都不行,还是报上面的错
    回复
    2015-03-30 10:18 
最佳回答
0
阿迪发布于2015-3-30 09:49(编辑于 2023-9-6 09:34)
555
最佳回答
0
kevin010发布于2015-3-30 10:18(编辑于 2023-9-6 09:34)
555
最佳回答
0
deafire发布于2015-3-30 10:37(编辑于 2023-9-6 09:34)
555
  • kevin010 kevin010(提问者)

    模板的sql查询为  SELECT productNum FROM `product` where name LIKE \'%${productName}%\'  and brand_id LIKE \'${brand_id}%\' and batchNum LIKE \'%${batchNum}%\',在FineReport里预览的时候查询productName的时候是没有问题的,在浏览器访问就有问题
    回复
    2015-03-30 19:54 
最佳回答
0
小白兔兽性大发发布于2015-3-30 15:04(编辑于 2023-9-6 09:34)
555
最佳回答
0
kevin010发布于2015-3-30 19:53(编辑于 2023-9-6 09:34)
555
  • 小白兔兽性大发 小白兔兽性大发

    导出个内置数据集的模板发出来看看, 或者直接把设置了Code39条形码的那一列数据发出来, 应该就是那一列出的问题.
    回复
    2015-03-31 09:15 
最佳回答
0
kevin010发布于2015-3-30 19:54(编辑于 2023-9-6 09:34)
555
最佳回答
0
小白兔兽性大发发布于2015-3-31 09:15(编辑于 2023-9-6 09:34)
555
  • kevin010 kevin010(提问者)
    我上传了模板和数据库表,看看还需要什么,谢谢
    回复
    2015-03-31 14:51 
最佳回答
0
kevin010发布于2015-3-31 14:51(编辑于 2023-9-6 09:34)
555
最佳回答
0
小白兔兽性大发发布于2015-3-31 17:31(编辑于 2023-9-6 09:34)
555
  • 0关注人数
  • 2929浏览人数
  • 最后回答于:2015-10-23 09:14
    活动推荐 更多
    热门课程 更多
    返回顶部