File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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( at
oracle.jdbc.dbaccess.DBError.throwSqlException( at
oracle.jdbc.ttc7.TTCItem.setArrayData( at
oracle.jdbc.dbaccess.DBDataSetImpl.setBytesBindItem( at
oracle.jdbc.driver.OraclePreparedStatement.setItem( at
oracle.jdbc.driver.OraclePreparedStatement.setString( 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:
subject: entity bean problem
jQuery in Action, 3rd edition