NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

A truncation error was encountered trying to shrink CLOB

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
finlowba



Joined: 31 Jan 2009
Posts: 1

PostPosted: Sat Jan 31, 2009 5:20 pm    Post subject: A truncation error was encountered trying to shrink CLOB Reply with quote

Hi I am receiving the following error message when I attempt to persist a long section of text. I am using the following annotations in my entity class.

Code:
@Basic @Lob
private String fileText;


Caused by: org.apache.derby.client.am.SqlException: A truncation error was encountered trying to shrink CLOB '%PDF-1.4%âãÏÓ207 0 obj<< /Linearized 1 /O 209 /H [ 1307 1044&' to length 64000.
at org.apache.derby.client.am.Statement.completeExecute(Unknown Source)
at org.apache.derby.client.net.NetStatementReply.parseEXCSQLSTTreply(Unknown Source)
at org.apache.derby.client.net.NetStatementReply.readExecute(Unknown Source)
at org.apache.derby.client.net.StatementReply.readExecute(Unknown Source)
at org.apache.derby.client.net.NetPreparedStatement.readExecute_(Unknown Source)
at org.apache.derby.client.am.PreparedStatement.readExecute(Unknown Source)
at org.apache.derby.client.am.PreparedStatement.flowExecute(Unknown Source)
at org.apache.derby.client.am.PreparedStatement.executeUpdateX(Unknown Source)

Is there any way to increase the size of a CLOB and if there is how do I go about doing so?

I am using the derby database, netbeans and toplink.

Thanks for any help.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo