[ 
https://issues.apache.org/jira/browse/JENA-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17442436#comment-17442436
 ] 

Andy Seaborne commented on JENA-2199:
-------------------------------------

Are you running Jena as released by this project?

Either compiled by your organization from unmodified official source, or an 
unmodified binary jar downloaded from Maven Central or the Apache release 
repository?

Until you mentioned it on this ticket, I didn't know Jena ran on Android.

The project has not tested on Android nor ever supported it. There have been 
some 3rd party projects that have ported Jena to Android. Are you using one of 
those? They are unconnected with the Apache Jena project.

Jena4 requires Java11 and I see that API level 28 was released a month before 
Java11.

I have seen reports that suggest (=> are best explained by)

(1) there are programs that run Android that inspect the filing system that 
Jena uses for databases and this leads to open file confusion and sync errors.

(2) another report implied concurrency or the memory model on Android was 
different.

Both (1) and (2) lead to intermittent errors.

The stack indicates you are running TDB2 in "direct "mode as used by a 32 bit 
java system. As the determination of 32 vs 64 java is by inspecting the System 
properties, it probably goes wrong on Android. (The app can force the choice.) 
Does Android support memory mapped files? This is the TDB difference between 32 
and 64 bit systems.

 Without context for the problem, there is not enough information to even do a 
code inspection to look for possible problem execution paths.

 

> Getting BlockException  thrown by Removal listener in jena
> ----------------------------------------------------------
>
>                 Key: JENA-2199
>                 URL: https://issues.apache.org/jira/browse/JENA-2199
>             Project: Apache Jena
>          Issue Type: Bug
>            Reporter: Mahesh Badari
>            Priority: Major
>              Labels: Android
>         Attachments: stacktrace_blockAccessIssue.txt
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> Following is the stack trace.
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache: Exception thrown by 
> removal listener
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache: 
> org.apache.jena.dboe.base.block.BlockException: BlockAccessBase: Bounds 
> exception: .../base/Data-0001/GPOS.idn: (217,217).
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.base.file.BlockAccessBase.check(BlockAccessBase.java:142)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.base.file.BlockAccessBase.check(BlockAccessBase.java:148)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.base.file.BlockAccessDirect.write(BlockAccessDirect.java:79)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.base.block.BlockMgrFileAccess.write(BlockMgrFileAccess.java:92)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.base.block.BlockMgrWrapper.write(BlockMgrWrapper.java:66)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.base.block.BlockMgrSync.write(BlockMgrSync.java:64)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.base.block.BlockMgrCache.access$001(BlockMgrCache.java:31)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.base.block.BlockMgrCache.lambda$new$0$BlockMgrCache(BlockMgrCache.java:79)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.base.block.-$$Lambda$BlockMgrCache$Dbee1XLOKReXm2ltJfUC2BJ56ME.accept(Unknown
>  Source:6)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.atlas.lib.cache.CacheGuava.lambda$new$0$CacheGuava(CacheGuava.java:43)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.atlas.lib.cache.-$$Lambda$CacheGuava$g2zhjpv3g6a-5vCyu39OwIgtLTY.onRemoval(Unknown
>  Source:2)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.ext.com.google.common.cache.LocalCache.processPendingNotifications(LocalCache.java:1810)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.ext.com.google.common.cache.LocalCache$Segment.runUnlockedCleanup(LocalCache.java:3463)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.ext.com.google.common.cache.LocalCache$Segment.postWriteCleanup(LocalCache.java:3439)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.ext.com.google.common.cache.LocalCache$Segment.remove(LocalCache.java:3073)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.ext.com.google.common.cache.LocalCache.remove(LocalCache.java:4236)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.ext.com.google.common.cache.LocalCache$LocalManualCache.invalidate(LocalCache.java:4876)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.atlas.lib.cache.CacheGuava.remove(CacheGuava.java:86)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.base.block.-$$Lambda$ddN84ktUJFZ9lPl9h32RwqMPbIo.accept(Unknown
>  Source:4)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> java.util.ArrayList.forEach(ArrayList.java:1262)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.base.block.BlockMgrCache.resetAlloc(BlockMgrCache.java:101)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.base.page.PageBlockMgr.resetAlloc(PageBlockMgr.java:48)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.trans.bplustree.BPlusTree._abort(BPlusTree.java:558)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.trans.bplustree.BPlusTree._abort(BPlusTree.java:70)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.transaction.txn.TransactionalComponentLifecycle.abort(TransactionalComponentLifecycle.java:126)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.transaction.txn.SysTrans.abort(SysTrans.java:45)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.transaction.txn.Transaction.lambda$null$14(Transaction.java:194)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.transaction.txn.-$$Lambda$Transaction$6quMjMq06Io3xkN5Lx7MKvnP4ec.accept(Unknown
>  Source:2)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> java.util.ArrayList.forEach(ArrayList.java:1262)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.transaction.txn.Transaction.lambda$abort$$15$Transaction(Transaction.java:194)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.transaction.txn.-$$Lambda$Transaction$j_vHZnWfXvACU78WSINkO6e83Jg.run(Unknown
>  Source:2)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.transaction.txn.TransactionCoordinator.executeAbort(TransactionCoordinator.java:852)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.transaction.txn.Transaction.abort$(Transaction.java:194)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.transaction.txn.Transaction.abort(Transaction.java:186)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.transaction.txn.TransactionalBase.abort(TransactionalBase.java:158)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.dboe.storage.system.DatasetGraphStorage.abort(DatasetGraphStorage.java:70)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.sparql.core.DatasetGraphWrapper.abort(DatasetGraphWrapper.java:280)
> 11-07 01:57:27.786 10114  5232  5271 W LocalCache:     at 
> org.apache.jena.sparql.core.DatasetImpl.abort(DatasetImpl.java:150)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to