0

我使用了sql语句:

select * from tablename where column like ?%

sql_properties文件中。

我的堆栈跟踪中的列索引无效。

这是对的吗?

<Sep 1, 2013 4:20:59 AM PDT> <Error> <com.tms.kmcec.dao.jdbc.JDBCGlossaryFeedbackDao> <BEA-000000> <getGlossary: error java.sql.SQLException: Invalid column index> 
<Sep 1, 2013 4:20:59 AM PDT> <Error> <com.tms.kmcec.business.object.contentviewer.impl.ContentViewerBusinessObjectImpl> <BEA-000000> <getGlossary: 
BaseEJBException[cause = null errors = null]
    at com.tms.kmcec.dao.jdbc.JDBCGlossaryFeedbackDao.getGlossary(JDBCGlossaryFeedbackDao.java:164)
    at com.tms.kmcec.business.object.glossary.impl.GlossaryBusinessObjectImpl.getGlossary(GlossaryBusinessObjectImpl.java:81)
    at com.tms.kmcec.ejb.GlossarySessionBean.getGlossary(GlossarySessionBean.java:102)
    at com.tms.kmcec.ejb.GlossarySessionBean_mmq58g_ELOImpl.getGlossary(GlossarySessionBean_mmq58g_ELOImpl.java:62)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Truncated. see log file for complete stacktrace
> 
4

0 回答 0