Hi, On 16.04.2013 19:57, stivel wrote: > Hi, > > The following error where thrown during rugular derby execution. I'm unable > to identify the cause. > > > Tue Apr 16 14:41:51 IST 2013 Thread[DRDAConnThread_19,5,main] (XID = > 875157445), (SESSIONID = 945), (DATABASE = > /mnt/rw-mk/rw/DerbyDataBase/MKV3DB), (DRDAID = > ��������.����-4111503618722240380{474}), Cleanup action starting Tue Apr 16 > 14:41:51 IST 2013 Thread[DRDAConnThread_19,5,main] (XID = 875157445), > (SESSIONID = 945), (DATABASE = /mnt/rw-mk/rw/DerbyDataBase/MKV3DB), (DRDAID > = ��������.����-4111503618722240380{474}), Failed Statement is: null > java.lang.StackOverflowError at sun.nio.cs.UTF_8.updatePositions(Unknown
I guess you can try to up the allocated size of the threads' stacks using "-Xss" to java; it doesn't seem like you have an endless recursion bug here... As for the NPE, it would seem that something goes wrong when trying to open an index. This could happen if it is corrupted, you could try recreating the indexes. Thanks, Dag > Source) at sun.nio.cs.UTF_8$Decoder.xflow(Unknown Source) at > sun.nio.cs.UTF_8$Decoder.decodeArrayLoop(Unknown Source) at > sun.nio.cs.UTF_8$Decoder.decodeLoop(Unknown Source) at > java.nio.charset.CharsetDecoder.decode(Unknown Source) at > java.lang.StringCoding$StringDecoder.decode(Unknown Source) at > java.lang.StringCoding.decode(Unknown Source) at > java.lang.String.<init>(Unknown Source) at > java.lang.String.<init>(Unknown > Source) at java.io.UnixFileSystem.canonicalize0(Native Method) at > java.io.UnixFileSystem.canonicalize(Unknown Source) at > java.io.File.getCanonicalPath(Unknown Source) at > sun.security.provider.PolicyFile.canonPath(Unknown Source) at > java.io.FilePermission$1.run(Unknown Source) at > java.io.FilePermission$1.run(Unknown Source) at > java.security.AccessController.doPrivileged(Native Method) at > java.io.FilePermission.init(Unknown Source) at > java.io.FilePermission.<init>(Unknown Source) at > java.lang.SecurityManager.checkRead(Unknown Source) at > java.io.File.exists(Unknown Source) at > org.apache.derby.impl.store.raw.data.StreamFileContainer.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) at > org.apache.derby.impl.store.raw.data.StreamFileContainer.privExists(Unknown > Source) at > org.apache.derby.impl.store.raw.data.StreamFileContainer.open(Unknown > Source) at > org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openStreamContainer(Unknown > Source) at > org.apache.derby.impl.store.raw.xact.Xact.openStreamContainer(Unknown > Source) at > org.apache.derby.impl.store.raw.data.BaseDataFileFactory.dropStreamContainer(Unknown > Source) at > org.apache.derby.impl.store.raw.xact.Xact.dropStreamContainer(Unknown > Source) at > org.apache.derby.impl.store.raw.data.DropOnCommit.update(Unknown > Source) at java.util.Observable.notifyObservers(Unknown Source) > at > org.apache.derby.iapi.store.raw.xact.RawTransaction.notifyObservers(Unknown > Source) at > org.apache.derby.impl.store.raw.data.DropOnCommit.update(Unknown > Source) at java.util.Observable.notifyObservers(Unknown Source) > at > org.apache.derby.iapi.store.raw.xact.RawTransaction.notifyObservers(Unknown > Source) at > org.apache.derby.impl.store.raw.data.DropOnCommit.update(Unknown > Source) at java.util.Observable.notifyObservers(Unknown Source) > at > org.apache.derby.iapi.store.raw.xact.RawTransaction.notifyObservers(Unknown > Source) at > org.apache.derby.impl.store.raw.data.DropOnCommit.update(Unknown > Source) at java.util.Observable.notifyObservers(Unknown Source) > at > org.apache.derby.iapi.store.raw.xact.RawTransaction.notifyObservers(Unknown > Source) > > > and another one exception is > > Tue Apr 16 14:42:26 IST 2013 Thread[DRDAConnThread_35,5,main] Cleanup action > starting > java.lang.NullPointerException > at > org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openContainer(Unknown > Source) > at > org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openContainer(Unknown > Source) > at org.apache.derby.impl.store.raw.xact.Xact.openContainer(Unknown > Source) > at > org.apache.derby.impl.store.access.conglomerate.OpenConglomerate.init(Unknown > Source) > at org.apache.derby.impl.store.access.heap.Heap.open(Unknown Source) > at > org.apache.derby.impl.store.access.RAMTransaction.openConglomerate(Unknown > Source) > at > org.apache.derby.impl.store.access.RAMTransaction.openConglomerate(Unknown > Source) > at > org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getDescriptorViaIndexMinion(Unknown > Source) > > After this error I just restart derby and now its working.Can anyone suggest > why this error is and how to resolve this in future. > > Thanks > > > > -- > View this message in context: > http://apache-database.10148.n7.nabble.com/StackOverflow-error-and-NPE-in-derby-10-8-2-2-tp129240.html > Sent from the Apache Derby Users mailing list archive at Nabble.com.