You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Kristian Waagan <Kr...@Sun.COM> on 2009/05/18 09:19:20 UTC

Re: Long text/CLOB – SQLException: Java exception: '-1: java.lang.ArrayIndexOutOfBoundsException'

hbf wrote:
> Dear Knut,
>
> Thanks a lot for your quick reply. It's a known issue then.
>   

Hello Kaspar,

Can you tell us which isolation level you are using when you see this error?
I'm wondering if the bug is restricted to read uncommitted, or if it can 
be seen with other isolation levels as well under heavier loads (or 
higher concurrency).


Thank you,
-- 
Kristian
> Thanks again,
> Kaspar
>
>
> Knut Anders Hatlen wrote:
>   
>> hbf <fi...@inf.ethz.ch> writes:
>>
>>     
>>> Dear list,
>>>
>>> I need to store a long text in a field of my entity and have run into a
>>> problem: When my app was under load it threw the exception pasted below.
>>> I
>>> use the following mapping, which uses CLOB as indicated at
>>> http://opensource.atlassian.com/projects/hibernate/browse/HHH-1501
>>> because
>>> Derby's TEXT only stores 32K.
>>>
>>>       
>> [...]
>>
>>     
>>> From the exception (see SQLChar.getString below) it seems that this is
>>> related to the 'log' property with CLOB NOT NULL. 
>>>
>>> Does anybody have an idea how to solve this or what exactly the problem
>>> is?
>>>       
>> Hi Kaspar,
>>
>> I cannot answer how to solve it, but it looks like you've been hit by
>> this bug: https://issues.apache.org/jira/browse/DERBY-3811
>>
>> -- 
>> Knut Anders
>>
>>
>>     
>
>   


Re: Long text/CLOB – SQLException: Java exception: '-1: java.lang.ArrayIndexOutOfBoundsException'

Posted by hbf <fi...@inf.ethz.ch>.
Hi Kristian,

I am using read uncommitted. I disabled the feature that uses this column
for the time being. Once I have time to test, I can try with other levels. 

Kaspar


Kristian Waagan-4 wrote:
> 
> hbf wrote:
>> Dear Knut,
>>
>> Thanks a lot for your quick reply. It's a known issue then.
>>   
> 
> Hello Kaspar,
> 
> Can you tell us which isolation level you are using when you see this
> error?
> I'm wondering if the bug is restricted to read uncommitted, or if it can 
> be seen with other isolation levels as well under heavier loads (or 
> higher concurrency).
> 
> 
> Thank you,
> -- 
> Kristian
>> Thanks again,
>> Kaspar
>>
>>
>> Knut Anders Hatlen wrote:
>>   
>>> hbf <fi...@inf.ethz.ch> writes:
>>>
>>>     
>>>> Dear list,
>>>>
>>>> I need to store a long text in a field of my entity and have run into a
>>>> problem: When my app was under load it threw the exception pasted
>>>> below.
>>>> I
>>>> use the following mapping, which uses CLOB as indicated at
>>>> http://opensource.atlassian.com/projects/hibernate/browse/HHH-1501
>>>> because
>>>> Derby's TEXT only stores 32K.
>>>>
>>>>       
>>> [...]
>>>
>>>     
>>>> From the exception (see SQLChar.getString below) it seems that this is
>>>> related to the 'log' property with CLOB NOT NULL. 
>>>>
>>>> Does anybody have an idea how to solve this or what exactly the problem
>>>> is?
>>>>       
>>> Hi Kaspar,
>>>
>>> I cannot answer how to solve it, but it looks like you've been hit by
>>> this bug: https://issues.apache.org/jira/browse/DERBY-3811
>>>
>>> -- 
>>> Knut Anders
>>>
>>>
>>>     
>>
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Long-text-CLOB-%E2%80%93%C2%A0SQLException%3A-Java-exception%3A-%27-1%3A-java.lang.ArrayIndexOutOfBoundsException%27-tp23587108p23593893.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.