This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "entity bean problem" Watch "entity bean problem" New topic
Author

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
weblogic.jdbcbase.jts.Statement.setString(Statement.java:471)
Å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
 
Similar Threads
PreparedStatement.toString()
Getting error while saving image as blob in oracle
stale connection exception
Retreving PDF File from Database using Java
Storing blob > 4kb in oracle db through jdbc