Re: [mdr-users] java.io.IOException

Martin Matula <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <[email protected]>
Yes, could be - depending on how old your build was. We were making 
significant changes to the FileCache class and primary index.
Regards,
Martin

Jaroslav Drazan wrote:

> Hi,
> I downloaded the newest build (I had had some from the end of April) 
> and it seems it work correctly.
> Have you repaired this bug?
>
> Regards
> Jarda
>
>> Hello,
>> when I use our application with MDR for about 5 minut, following 
>> exception is thrown:
>>
>> java.io.IOException: Neplatný popisovač
>>     at java.io.RandomAccessFile.seek(Native Method)
>>     at 
>> org.netbeans.mdr.persistence.btreeimpl.btreestorage.FileCache.getPage(FileCache.java:484) 
>>
>>     at 
>> org.netbeans.mdr.persistence.btreeimpl.btreestorage.FileCache.getPage(FileCache.java:391) 
>>
>>     at 
>> org.netbeans.mdr.persistence.btreeimpl.btreestorage.PrimaryIndex$ValInfo.<init>(PrimaryIndex.java:58) 
>>
>>     at 
>> org.netbeans.mdr.persistence.btreeimpl.btreestorage.PrimaryIndex.getIfExists(PrimaryIndex.java:90) 
>>
>>     at 
>> org.netbeans.mdr.persistence.btreeimpl.btreestorage.BtreeDatabase.getRecord(BtreeDatabase.java:967) 
>>
>>     at 
>> org.netbeans.mdr.persistence.btreeimpl.btreestorage.BtreeDatabase.getIfExists(BtreeDatabase.java:725) 
>>
>>     at 
>> org.netbeans.mdr.persistence.btreeimpl.btreestorage.BtreeDatabase.get(BtreeDatabase.java:746) 
>>
>>     at 
>> org.netbeans.mdr.persistence.btreeimpl.btreestorage.BtreeMDRSource.getPage(BtreeMDRSource.java:68) 
>>
>>     at 
>> org.netbeans.mdr.persistence.btreeimpl.btreeindex.Btree.getLocation(Btree.java:386) 
>>
>>     at 
>> org.netbeans.mdr.persistence.btreeimpl.btreeindex.BtreeListByKey$BtreeListByKeyIterator.<init>(BtreeListByKey.java:140) 
>>
>>     at 
>> org.netbeans.mdr.persistence.btreeimpl.btreeindex.BtreeListByKey.listIterator(BtreeListByKey.java:101) 
>>
>>     at java.util.AbstractList.listIterator(AbstractList.java:349)
>>     at 
>> java.util.AbstractSequentialList.iterator(AbstractSequentialList.java:250) 
>>
>>     at java.util.AbstractCollection.contains(AbstractCollection.java:94)
>>     at 
>> org.netbeans.mdr.storagemodel.IndexImmutSet.contains(IndexImmutSet.java:81) 
>>
>>     at 
>> org.netbeans.mdr.handlers.IndexSetWrapper.contains(IndexSetWrapper.java:84) 
>>
>>     
>> It's cased by the this code (I use UML 1.4 repository with DI):
>> Collection clients = dependency.getClient();
>> Collection suppliers = dependency.getSupplier();
>>
>>  if((clients!= null && clients.contains(aChangedRefObject)) || 
>> (suppliers != null && suppliers.contains(aChangedRefObject))) ...
>>
>> aChangedRefObject can be instanceof ModelElement or DiagramElement.
>>
>> This Exception occurs in Windows as well as in Linux (we use Java 1.5 
>> and federative MDR BTree storage).
>>
>> Any idea what can be wrong?
>>
>> Best regards
>> Jarda
>> ____________________________________________________________
>> http://www.seznam.cz - e-mailovĂĄ schrĂĄnka 2000 MB
>
>
> ____________________________________________________________
> http://www.seznam.cz - e-mailovĂĄ schrĂĄnka 2000 MB
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.