db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: Strange new error
Date Wed, 01 Mar 2006 17:34:02 GMT
Hi Erik,

The reason I thought the error to be strange is that the assertion  
seems to be reversed. Instead of assertIsUnmodifiable, I'd think the  
assertion would be assertIsModifiable, since we're trying to modify  
the query.

I'll do some more testing and see if I can reliably reproduce the error.

Craig

On Mar 1, 2006, at 1:25 AM, erik@jpox.org wrote:

> Yes, sometimes. This exception is used for internal sanity test. Is  
> this a new
> test case?
>
> Quoting Craig L Russell <Craig.Russell@Sun.COM>:
>
>> Anyone seen this before?
>>
>>      [java] 1) testPositive(org.apache.jdo.tck.query.api.ChangeQuery)
>> javax.jdo.JDOUserException: This query is in an unmodifiable state.
>> It's structure cannot be changed
>>      [java]      at org.jpox.store.query.Query.assertIsUnmodifiable
>> (Query.java:702)
>>      [java]      at org.jpox.store.query.Query.setResult 
>> (Query.java:599)
>>      [java]      at
>> org.apache.jdo.tck.query.api.ChangeQuery.testPositive
>> (ChangeQuery.java:64)
>>      [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0
>> (Native Method)
>>      [java]      at sun.reflect.NativeMethodAccessorImpl.invoke
>> (NativeMethodAccessorImpl.java:39)
>>      [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke
>> (DelegatingMethodAccessorImpl.java:25)
>>      [java]      at org.apache.jdo.tck.JDO_Test.runBare 
>> (JDO_Test.java:
>> 204)
>>      [java]      at org.apache.jdo.tck.util.BatchTestRunner.start
>> (BatchTestRunner.java:120)
>>      [java]      at org.apache.jdo.tck.util.BatchTestRunner.main
>> (BatchTestRunner.java:95)
>>
>> Craig
>>
>> Craig Russell
>> Architect, Sun Java Enterprise System http://java.sun.com/products/ 
>> jdo
>> 408 276-5638 mailto:Craig.Russell@sun.com
>> P.S. A good JDO? O, Gasp!
>>
>>
>
>
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message