britt fitch created CTAKES-281:
----------------------------------
Summary: JdbcCollectionReader throw SQLException on empty input
row from external param file
Key: CTAKES-281
URL: https://issues.apache.org/jira/browse/CTAKES-281
Project: cTAKES
Issue Type: Bug
Components: ctakes-core
Affects Versions: 3.1.1
Reporter: britt fitch
Assignee: britt fitch
Fix For: 3.1.2
When supplying an external input file for the JdbcCollectionReader if there are
blank lines at the end of the input file defined in the xml descriptor for
variable 'ValueFileResrcName' the reader will throw SQLException attempting to
assign 'null' to input param.
Caused by: java.sql.SQLException: No value specified for parameter 1
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1078)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)
at
com.mysql.jdbc.PreparedStatement.checkAllParametersSet(PreparedStatement.java:2612)
at
com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2587)
at
com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2511)
at
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2260)
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)