Guil; It appears you code has some problems writing to TDB. This isn't an issue we can help much on. The Jena forum may have some tips for you.
Multiple concurrent commits to <urn:x-tb:session> are fully supported by EVN and Ensemble. <urn:x-tb:session> is a graph designed for representing session data in those applications alone. It is not supported for use in other applications. -- Scott On Nov 16, 10:13 pm, "Guilherme Scomparim" <[email protected]> wrote: > Hi Scott, > > Thank you for the quick reply. > > Here are the steps before I got the problem. > 1) The TDB file was created by using the export functionality from a owl > file a week ago. > 2) I then Set up the teamwork changes repository > 3) I have been updating it with my framework that works like EVN where > instead of using SKOS I have an ontology that captures some meta-data and > perform some inferences. > 4) Yesterday I was already getting some errors (null exceptions) when > opening the file, but with some work around, the file would open ok > 5) Today after some more investigation I realised that the error occur > only on files that I changed yesterday. The sequence to simulate the error > is by selecting any class (That I included instances yesterday) in the class > view when the "instance tab" is the focus or is selected. > 6) Later I could not even open properly some of the files. It seams that > the tdb files got corrupted, because if I try to export the models I still > can open I get the same error. > > I am even started from the scratch using my models from the backup before > yesterday changes. But I would like to understand what I done wrong > > The only thing I can think that I done different yesterday is that I did > open all the corrupted models at the same time in different tabs of the > browser, where I performed many scripts that have functions that manipulate > the <urn:x-tb:session> graph and commit changes simultaneously in different > models. Do you think this could be the problem? > > I hope this helps, Thanks again > Guil > > -----Original Message----- > From: Scott Henninger > Sent: Thursday, November 17, 2011 1:08 PM > To: TopBraid Suite Users > Subject: [topbraid-users] Re: Error when opening some classes in TDB files > > Darn, the opening sentence should be "Can you provide some information > on how the TDB files and file connector were created?", where the file > connector is the .tdb file. > > -- Scott > > On Nov 16, 8:06 pm, Scott Henninger <[email protected]> > wrote: > > Guil; Can you provide some information on how the RDB files and file > > connector were created? You say when you select "some classes", so > > what are the characteristics of those class definitions that could be > > different than others? For example, if you also have the Instances > > view open, then Composer will try to cache some class instances. The > > problem appears to occur when Composer tries to populate the Instances > > view. So that could explain why it happens "some" time, the "some" > > being when the Instances view is open and the class has instances, and > > also indicates problems with instances in the TDB data store. > > Otherwise, we'd need more information on the context of the error to > > speculate further... > > > -- Scott > > > On Nov 16, 4:40 pm, Guilherme Scomparim <[email protected]> > > wrote: > > > > Hi all, > > > > When I open some of my TDB files in Composer and on the class view I > > > select some classes I get the error below. > > > > Any ideas on how to fix it? > > > > Regards, > > > Guil > > > > Operation failed. > > > On: 17/11/2011 9:35:06 AM > > > Reason: > > > java.util.NoSuchElementException > > > at > > > org.openjena.riot.tokens.TokenizerText.next(TokenizerText.java:91) > > > at > > > com.hp.hpl.jena.tdb.nodetable.NodecSSE.decode(NodecSSE.java:100) > > > at com.hp.hpl.jena.tdb.lib.NodeLib.decode(NodeLib.java:85) > > > at com.hp.hpl.jena.tdb.lib.NodeLib.fetchDecode(NodeLib.java:67) > > > at > > > com.hp.hpl.jena.tdb.nodetable.NodeTableNative.readNodeByNodeId(NodeTableNative.java: > > > 158) > > > at > > > com.hp.hpl.jena.tdb.nodetable.NodeTableNative._retrieveNodeByNodeId(NodeTableNative.java: > > > 85) > > > at > > > com.hp.hpl.jena.tdb.nodetable.NodeTableNative.getNodeForNodeId(NodeTableNative.java: > > > 58) > > > at > > > com.hp.hpl.jena.tdb.nodetable.NodeTableCache._retrieveNodeByNodeId(NodeTableCache.java: > > > 86) > > > at > > > com.hp.hpl.jena.tdb.nodetable.NodeTableCache.getNodeForNodeId(NodeTableCache.java: > > > 57) > > > at > > > com.hp.hpl.jena.tdb.nodetable.NodeTableWrapper.getNodeForNodeId(NodeTableWrapper.java: > > > 43) > > > at > > > com.hp.hpl.jena.tdb.nodetable.NodeTableInline.getNodeForNodeId(NodeTableInline.java: > > > 55) > > > at com.hp.hpl.jena.tdb.lib.TupleLib.triple(TupleLib.java:108) > > > at com.hp.hpl.jena.tdb.lib.TupleLib.triple(TupleLib.java:103) > > > at com.hp.hpl.jena.tdb.lib.TupleLib.access$000(TupleLib.java:32) > > > at com.hp.hpl.jena.tdb.lib.TupleLib$3.convert(TupleLib.java:64) > > > at com.hp.hpl.jena.tdb.lib.TupleLib$3.convert(TupleLib.java:60) > > > at org.openjena.atlas.iterator.Iter$4.next(Iter.java:265) > > > at com.hp.hpl.jena.tdb.store.GraphTDBBase > > > $MapperIteratorTriples.next(GraphTDBBase.java:227) > > > at com.hp.hpl.jena.tdb.store.GraphTDBBase > > > $MapperIteratorTriples.next(GraphTDBBase.java:186) > > > at org.topbraid.tdb.graphstore.AutoLockingTDBGraph > > > $2.next(AutoLockingTDBGraph.java:350) > > > at org.topbraid.tdb.graphstore.AutoLockingTDBGraph > > > $2.next(AutoLockingTDBGraph.java:1) > > > at > > > com.hp.hpl.jena.util.iterator.WrappedIterator.next(WrappedIterator.java: > > > 68) > > > at > > > com.hp.hpl.jena.util.iterator.FilterIterator.hasNext(FilterIterator.java: > > > 44) > > > at com.hp.hpl.jena.graph.compose.CompositionBase > > > $2.hasNext(CompositionBase.java:99) > > > at com.hp.hpl.jena.util.iterator.NiceIterator > > > $1.hasNext(NiceIterator.java:86) > > > at > > > com.hp.hpl.jena.util.iterator.WrappedIterator.hasNext(WrappedIterator.java: > > > 64) > > > at > > > com.hp.hpl.jena.util.iterator.Map1Iterator.hasNext(Map1Iterator.java: > > > 38) > > > at > > > com.hp.hpl.jena.util.iterator.WrappedIterator.hasNext(WrappedIterator.java: > > > 64) > > > at > > > org.topbraidcomposer.navigation.instances.InstancesTableContentProvider.addInstances(InstancesTableContentProvider.java: > > > 43) > > > at > > > org.topbraidcomposer.navigation.instances.InstancesTableContentProvider.getInstances(InstancesTableContentProvider.java: > > > 95) > > > at org.topbraidcomposer.navigation.instances.InstancesView > > > $12.run(InstancesView.java:627) > > > at org.eclipse.jface.operation.ModalContext > > > $ModalContextThread.run(ModalContext.java:121) > > -- > You received this message because you are subscribed to the Google > Group "TopBraid Suite Users", the topics of which include TopBraid Composer, > TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group > athttp://groups.google.com/group/topbraid-users?hl=en -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en
