jQuery in Action, 3rd edition
The moose likes EJB and other Java EE Technologies and the fly likes entity bean problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "entity bean problem" Watch "entity bean problem" New topic

entity bean problem

sreejith panampilly
Ranch Hand

Joined: Jun 15, 2006
Posts: 49
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
Ådne Brunborg
Ranch Hand

Joined: Aug 05, 2005
Posts: 208
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.

Entia non sunt multiplicanda praeter necessitatem
I agree. Here's the link: http://aspose.com/file-tools
subject: entity bean problem
It's not a secret anymore!