On 26/03/13 15:39, Simon Helsen wrote:
Hi all,
I am currently using Jena 2.10.0 plus associated components and I am
sometimes running into an exception. Unfortunately, I don't have a
reproducible test yet as it seems (as usual) not to happen consistently.
But looking at the code, I am not sure what I am seeing. The problem is in
the journal, where the JournalEntryType seems to be 0 (valid values seem
to be 1 - 6).
I tend to avoid zeros because uninitialized is often zero.
Anyone has any idea how this could happen? Perhaps I am
doing something wrong here. I noticed in my code I am executing a commit
during a read-only transaction. I will remove this, but I thought this was
legal. Anything I am missing?
commit() for read is fine Or abort().
thanks
Simon
There was a panic message printed to the TDB log - was it an IOException?
com.ibm.juno.server.RestException:
com.hp.hpl.jena.tdb.transaction.TDBTransactionException: Exc eption after
commit point - transaction did commit
at com.ibm.juno.server.RestServlet.service(RestServlet.java:687)
... not good ...
Caused by: com.hp.hpl.jena.tdb.transaction.TDBTransactionException: Exc
eption after commit point - transaction did commit
at
com.hp.hpl.jena.tdb.transaction.Transaction.commit(Transaction.java:162)
at
com.hp.hpl.jena.tdb.transaction.Transaction.close(Transaction.java:251)
at
com.hp.hpl.jena.tdb.transaction.DatasetGraphTxn.end(DatasetGraphTxn.java:59)
at
...
at
com.ibm.juno.server.RestSerializer.handle(RestSerializer.java:46)
at com.ibm.juno.server.RestServlet.serialize(RestServlet.java:836)
at com.ibm.juno.server.RestServlet.service(RestServlet.java:679)
... 12 more
The stacktrace above is later than this one below? or is it one stacktrace?
Caused by: org.apache.jena.atlas.lib.InternalErrorException: Unknown type:
0
at
com.hp.hpl.jena.tdb.transaction.JournalEntryType.type(JournalEntryType.java:43)
at com.hp.hpl.jena.tdb.transaction.Journal._read(Journal.java:228)
...> at
com.hp.hpl.jena.tdb.transaction.Transaction.commit(Transaction.java:155)
... 25 more
Unclear -- maybe problems reading the journal file. Disk OK? not full?
(I'll reorg the code to read all bytes and check the checksum but that
is not the problem, it just shuffles checking around.).
Andy