google-code-export / sqljet

Automatically exported from code.google.com/p/sqljet
0 stars 1 forks source link

NullPointerException in SqlJetFile with SvnKit #163

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am using the maven-svn-revision-number-plugin with svnkit-1.7.0-alpha1. The 
latter pulls in sqljet-1.1.0-SNAPSHOT as a dependency. This combination has 
been working fine for me until recently. Today, I attempted a build and 
promptly got a NullPointerException in the sqljet code. I am still using the 
same version of maven-svn-revision-number-plugin and svnkit, so the thing that 
randomly changed today would be the sqljet snapshot, build number 42.

Caused by: java.lang.NullPointerException
        at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:881)
        at org.tmatesoft.sqljet.core.internal.fs.SqlJetFile.lock(SqlJetFile.java:502)
        at org.tmatesoft.sqljet.core.internal.pager.SqlJetPager.waitOnLock(SqlJetPager.java:2518)
        at org.tmatesoft.sqljet.core.internal.pager.SqlJetPager.sharedLock(SqlJetPager.java:1233)
        at org.tmatesoft.sqljet.core.internal.pager.SqlJetPager.acquirePage(SqlJetPager.java:1019)
        at org.tmatesoft.sqljet.core.internal.btree.SqlJetBtreeShared.getPage(SqlJetBtreeShared.java:339)
        at org.tmatesoft.sqljet.core.internal.btree.SqlJetBtree.lockBtree(SqlJetBtree.java:703)
        at org.tmatesoft.sqljet.core.internal.btree.SqlJetBtree.beginTrans(SqlJetBtree.java:890)
        at org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.doBeginTransaction(SqlJetEngine.java:495)
        at org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.access$100(SqlJetEngine.java:53)
        at org.tmatesoft.sqljet.core.table.engine.SqlJetEngine$5.runSynchronized(SqlJetEngine.java:409)
        at org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.runSynchronized(SqlJetEngine.java:217)
        at org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.beginTransaction(SqlJetEngine.java:405)
        at org.tmatesoft.svn.core.internal.db.SVNSqlJetDb.beginTransaction(SVNSqlJetDb.java:167)
        at org.tmatesoft.svn.core.internal.db.SVNSqlJetStatement.next(SVNSqlJetStatement.java:86)
        at org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement.next(SVNSqlJetSelectStatement.java:74)
        at org.tmatesoft.svn.core.internal.wc17.db.SvnWcDbShared.readInfo(SvnWcDbShared.java:439)
        at org.tmatesoft.svn.core.internal.wc17.db.SVNWCDb.readInfo(SVNWCDb.java:2757)
        at org.tmatesoft.svn.core.internal.wc17.SVNWCContext.isTextModified(SVNWCContext.java:621)
        at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.assembleStatus(SVNStatusEditor17.java:344)
        at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.sendStatusStructure(SVNStatusEditor17.java:212)
        at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.getDirStatus(SVNStatusEditor17.java:651)
        at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.getDirStatus(SVNStatusEditor17.java:653)
        at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.getDirStatus(SVNStatusEditor17.java:653)
        at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.getDirStatus(SVNStatusEditor17.java:653)
        at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.getDirStatus(SVNStatusEditor17.java:653)
        at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.getDirStatus(SVNStatusEditor17.java:653)
        at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.getDirStatus(SVNStatusEditor17.java:653)
        at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.getDirStatus(SVNStatusEditor17.java:653)
        at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.getDirStatus(SVNStatusEditor17.java:653)
        at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.walkStatus(SVNStatusEditor17.java:581)
        at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgGetStatus.run(SvnNgGetStatus.java:137)
        at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgGetStatus.run(SvnNgGetStatus.java:41)
        at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner.run(SvnNgOperationRunner.java:16)
        at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:20)
        at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:398)
        at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:160)
        at org.tmatesoft.svn.core.wc.SVNStatusClient.doStatus(SVNStatusClient.java:370)
        at oe.maven.plugins.revision.RevisionMojo.createVersionedEntryProperties(RevisionMojo.java:209)
        at oe.maven.plugins.revision.RevisionMojo.getEntryProperties(RevisionMojo.java:174)
        at oe.maven.plugins.revision.RevisionMojo.execute(RevisionMojo.java:155)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
        ... 20 more

Original issue reported on code.google.com by christop...@gmail.com on 16 Dec 2011 at 8:31

GoogleCodeExporter commented 9 years ago

Original comment by sergey.s...@gmail.com on 12 Mar 2012 at 3:23

GoogleCodeExporter commented 9 years ago
Hi,

does it still throw NullPointerException with latest builds of svnkit-1.7 ?

Original comment by sergey.s...@gmail.com on 12 Mar 2012 at 4:26

GoogleCodeExporter commented 9 years ago
Not recently, no.

Original comment by christop...@gmail.com on 19 Mar 2012 at 1:28

GoogleCodeExporter commented 9 years ago

Original comment by sergey.s...@gmail.com on 22 Mar 2012 at 3:59