com.linkage.bace.core.reflect.exception.ReflectionError: invoke method 'getTableProcRelate' with arguments []
at com.linkage.bace.core.reflect.method.Invoker.invoke(Invoker.java:59)
at com.linkage.bace.core.db.MCTransaction.execute(MCTransaction.java:104)
at com.linkage.bace.core.m.DBModuler.execute(DBModuler.java:55)
at com.linkage.bace.core.act.MCActioner.executeCallMethod(MCActioner.java:140)
at com.linkage.bace.core.act.MCActioner.execute(MCActioner.java:64)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at com.linkage.bace.core.act.MCRequestProcessor.process(MCRequestProcessor.java:93)
at com.linkage.bace.core.act.MCActionServlet.process(MCActionServlet.java:56)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.linkage.bi.util.SystemInfoFilter.doFilter(SystemInfoFilter.java:395)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1398)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.linkage.bace.core.reflect.method.Invoker.invoke(Invoker.java:57)
... 25 more
Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred while applying a parameter map.
--- Check the DiyQuery.queryProcNameList-InlineParameterMap.
--- Check the statement (query failed).
--- Cause: java.sql.SQLException: [BEA][DB2 JDBC Driver][DB2]ILLEGAL SYMBOL t1; VALID SYMBOLS ARE AME) in and
Caused by: java.sql.SQLException: [BEA][DB2 JDBC Driver][DB2]ILLEGAL SYMBOL t1; VALID SYMBOLS ARE AME) in and
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:185)
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForList(GeneralStatement.java:123)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:610)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:584)
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:101)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:78)
at com.linkage.bace.ibatis.IbatisDAO.queryPojoList(IbatisDAO.java:405)
at com.linkage.bi.powershow.util.QueryTableUtil.getProcName(QueryTableUtil.java:161)
at com.linkage.bi.powershow.query.DiyQueryModule.getTableProcRelate(DiyQueryModule.java:5216)
... 30 more
此类问题主要是因执行的SQL不正确,存在无效字符、语法错误、别名错误等,遇到这样的问题,首先将执行的SQL打印出来进行检查,或者直接关注错误轨迹中标注红色的行后的蓝色标记的位置是不是不正确,我自己刚开始不知道,后来发现在SQL中 in 和 and之间什么都没有,最后找到了原因,传进来的参数为null,拼SQL的时候没有达到拼写的预期效果:in ('1','2','3') and 而出错。