|
楼主 |
发表于 2021-10-20 16:45:26
|
显示全部楼层
[ERROR] 2021-10-20 16:43:02,936 com.justep.report.controller.DataController - 报
表数据获取失败
D:\app\Administrator\product\11.2.0\client_2\BIN\ocijdbc10.dll: Can't load IA 32
-bit .dll on a AMD 64-bit platform
com.justep.report.exception.ReportServerException: 报表数据获取失败
at com.justep.report.controller.DataController.execute(Unknown Source)
at com.justep.report.controller.GenericControllerChain.execute(Unknown S
ource)
at com.justep.report.controller.InitController.execute(Unknown Source)
at com.justep.report.controller.GenericControllerChain.execute(Unknown S
ource)
at com.justep.report.Servlet.a(Unknown Source)
at com.justep.report.Servlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:48
9)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.justep.report.exception.ReportServerException: D:\app\Administrat
or\product\11.2.0\client_2\BIN\ocijdbc10.dll: Can't load IA 32-bit .dll on a AMD
64-bit platform
at com.justep.report.controller.DataController.a(Unknown Source)
at com.justep.report.controller.DataController.a(Unknown Source)
... 20 more
Caused by: java.lang.Exception
... 22 more
后台代码如下:
public static Table rcjjtj(String ksrq,String jsrq,String ghdw,String hm){
String sql = "SELECT LPR,BATCH_CODE,MATERIEL_NAME,SUPPLIER_NAME,BILLNO,MINE_NAME,TO_CHAR(GROSS_TIME,'YYYY-MM-DD HH24:MI') GROSS_TIME,GROSS,TARE,NET,COEFFECENT,BALANCE,TARE_USER_NAME FROM V_RC_WEIGHING WHERE IS_COAL=1 ";
if (isNotNullOrEmpty(ksrq))
sql += " AND TO_CHAR(GROSS_TIME,'YYYY-MM-DD') >= '" + ksrq + "'";
if (isNotNullOrEmpty(jsrq))
sql += " AND TO_CHAR(GROSS_TIME,'YYYY-MM-DD') <= '" + jsrq + "'";
if (isNotNullOrEmpty(ghdw))
sql += " AND SUPPLIER_NAME LIKE '%" + ghdw + "%'";
if (isNotNullOrEmpty(hm))
sql += " AND MATERIEL_NAME LIKE '%" + hm + "%'";
sql += " ORDER BY GROSS_TIME DESC";
return selectBySql(sql);
}
/**
* 根据sql语句查询信息
*
* @param sql
* sql语句
* @return 返回查询到的信息
*/
public static Table selectBySql(String sql) {
HashMap<String, String> map = new HashMap<String, String>();
map.put("ORACLE", sql);
return SQL.select(map, null, "/rlgl/rcjj_new/data");
} |
|