Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

entity bean problem

 
sreejith panampilly
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using ejb1.1 and weblogic 5.1, when inserting text(more than 1000 characters)size of field in database is varchar2(4000) and i am using Oracle 9i and getting following error message,


Nested exception : java.sql.SQLException: Data size bigger than max size for this type:
1001 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180) at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222) at
oracle.jdbc.ttc7.TTCItem.setArrayData(TTCItem.java:126) at
oracle.jdbc.dbaccess.DBDataSetImpl.setBytesBindItem(DBDataSetImpl.java:1784) at
oracle.jdbc.driver.OraclePreparedStatement.setItem(OraclePreparedStatement.java:875) at
oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement.java:1257) at
weblogic.jdbcbase.jts.Statement.setString(Statement.java:471)
 
Ådne Brunborg
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Haved you checked if there is a relevant datatype setting where you map your entity beans to the database tables? Havent used WebLogic or EJB 1.1, but the message "setBytesBindItem" might indicate this - maybe? Just trying an educated guess here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic