Looks like the problem is that
org.h2.mvstore.db.MVTable#lockExclusiveSession points to the session which
is already closed:
result = {org.h2.engine.Session@6778} "#6 (user: SA)"
serialId = 6
database = {org.h2.engine.Database@4931}
"TESTREMOTEMEMORYDXCOREFACTORY1:org.h2.engine.Database@35325dde"
connectionInfo = null
user = {org.h2.engine.User@4932} "SA:2:org.h2.engine.User@3bf5a508"
id = 7
locks = {java.util.ArrayList@10059} size = 1
undoLog = {org.h2.engine.UndoLog@10060}
autoCommit = true
random = null
lockTimeout = 10000
lastIdentity = {org.h2.value.ValueLong@10061} "150"
lastScopeIdentity = {org.h2.value.ValueNull@4936} "NULL"
firstUncommittedLog = -1
firstUncommittedPos = -1
savepoints = null
localTempTables = {java.util.HashMap@10062} size = 0
localTempTableIndexes = {java.util.HashMap@10063} size = 0
localTempTableConstraints = {java.util.HashMap@10064} size = 0
throttle = 0
lastThrottle = 0
currentCommand = null
allowLiterals = false
currentSchemaName = "PUBLIC"
schemaSearchPath = null
trace = {org.h2.message.Trace@10054}
removeLobMap = null
systemIdentifier = 0
procedures = null
undoLogEnabled = true
redoLogBinary = true
autoCommitAtTransactionEnd = false
currentTransactionName = null
cancelAt = 1455276080469
closed = true
sessionStart = 1455276027199
transactionStart = 0
currentCommandStart = 0
variables = null
temporaryResults = null
queryTimeout = 0
commitOrRollbackDisabled = false
waitForLock = null
waitForLockThread = null
modificationId = 22
objectId = 61
queryCacheSize = 8
queryCache = {org.h2.util.SmallLRUCache@10065} size = 8
modificationMetaID = 244
temporaryResultLobs = null
temporaryLobs = null
transaction = {org.h2.mvstore.db.TransactionStore$Transaction@11003} "1"
startStatement = -1
sessionState = null
sessionStateChanged = true
sessionStateUpdating = false
Here is a state of org.h2.mvstore.db.MVTable#database object (it does not
have "#6 (user: SA)" among sessions):
result = {org.h2.engine.Database@4931}
"TESTREMOTEMEMORYDXCOREFACTORY1:org.h2.engine.Database@35325dde"
persistent = false
databaseName = "mem:testRemoteMemoryDXCoreFactory1"
databaseShortName = "TESTREMOTEMEMORYDXCOREFACTORY1"
databaseURL = "jdbc:h2:mem:testRemoteMemoryDXCoreFactory1"
cipher = null
filePasswordHash = null
fileEncryptionKey = null
roles = {java.util.HashMap@5431} size = 1
users = {java.util.HashMap@5432} size = 1
settings = {java.util.HashMap@5433} size = 3
schemas = {java.util.HashMap@5434} size = 2
rights = {java.util.HashMap@5435} size = 0
userDataTypes = {java.util.HashMap@5436} size = 0
aggregates = {java.util.HashMap@5437} size = 0
comments = {java.util.HashMap@5438} size = 0
tableEngines = {java.util.HashMap@5439} size = 1
userSessions = {java.util.Collections$SynchronizedSet@5440} size = 4
0 = {org.h2.engine.Session@11023} "#3 (user: SA)"
1 = {org.h2.engine.Session@11024} "#4 (user: SA)"
2 = {org.h2.engine.Session@10302} "#5 (user: SA)"
3 = {org.h2.engine.Session@6335} "#7 (user: SA)"
exclusiveSession = null
objectIds = {org.h2.util.BitField@5441}
lobSyncObject = {java.lang.Object@5442}
mainSchema = {org.h2.schema.Schema@5443}
"PUBLIC:0:org.h2.schema.Schema@359d1be9"
infoSchema = {org.h2.schema.Schema@5444}
"INFORMATION_SCHEMA:-1:org.h2.schema.Schema@3b00d018"
nextSessionId = 8
nextTempTableId = 0
systemUser = {org.h2.engine.User@5445} "SA:0:org.h2.engine.User@5af6c968"
systemSession = {org.h2.engine.Session@5421} "#0 (user: SA)"
lobSession = {org.h2.engine.Session@5446} "#1 (user: SA)"
meta = {org.h2.mvstore.db.MVTable@5447} "PUBLIC.SYS"
metaIdIndex = {org.h2.mvstore.db.MVDelegateIndex@5448}
"SYS_ID:0:org.h2.mvstore.db.MVDelegateIndex@3221808"
lock = null
writer = null
starting = false
traceSystem = {org.h2.message.TraceSystem@5449}
trace = {org.h2.message.Trace@5450}
fileLockMethod = 4
publicRole = {org.h2.engine.Role@5451}
"PUBLIC:0:org.h2.engine.Role@5e3d19d6"
modificationDataId = 4439
modificationMetaId = 484
compareMode = {org.h2.value.CompareMode@5452}
cluster = "''"
readOnly = false
writeDelay = 500
eventListener = null
maxMemoryRows = 35566
maxMemoryUndo = 50000
lockMode = 3
maxLengthInplaceLob = 256
allowLiterals = 2
powerOffCount = 0
closeDelay = -1
delayedCloser = null
closing = false
ignoreCase = false
deleteFilesOnDisconnect = false
lobCompressionAlgorithm = null
optimizeReuseResults = true
cacheType = "LRU"
accessModeData = "rw"
referentialIntegrity = true
multiVersion = true
closeOnExit = null
mode = {org.h2.engine.Mode@5456}
multiThreaded = false
maxOperationMemory = 100000
lobFileListCache = null
autoServerMode = false
autoServerPort = 0
server = null
linkConnections = null
tempFileDeleter = {org.h2.util.TempFileDeleter@5457}
pageStore = null
reconnectLastLock = null
reconnectCheckNext = 0
reconnectChangePending = false
checkpointAllowed = 0
checkpointRunning = false
reconnectSync = {java.lang.Object@5458}
cacheSize = 58272
compactMode = 0
compiler = null
metaTablesInitialized = false
flushOnEachCommit = false
lobStorage = {org.h2.store.LobStorageMap@5459}
pageSize = 4096
defaultTableType = 0
dbSettings = {org.h2.engine.DbSettings@5460}
reconnectCheckDelay = 200
logMode = 2
mvStore = {org.h2.mvstore.db.MVTableEngine$Store@5461}
retentionTime = 0
backgroundException = null
javaObjectSerializer = null
javaObjectSerializerName = null
javaObjectSerializerInitialized = false
queryStatistics = false
queryStatisticsMaxEntries = 100
queryStatisticsData = null
среда, 20 января 2016 г., 11:35:25 UTC+3 пользователь Noel Grandin написал:
>
> Can you try turning on the debug tracing, and then sending me the trace
> log?
>
> http://h2database.com/html/features.html#trace_options
>
> thanks
>
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.