Hi Guys, Is it possible to fix this in future release or not, this means in the event of a unclean shutdown, a regression is needed or is it possible to had detection if the old db was not shutdown cleanly and improve the error message?
-----Original Message----- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Mattias Persson Sent: Thursday, 27 October 2011 2:12 AM To: Neo4j user discussions Subject: Re: [Neo4j] Exception when converting older graph Hi, did you open it after a clean shutdown of the 1.4.M05 store? Because it will auto upgrade the store to a 1.5 format, but there's a problem of detecting store version in 1.5.M02 if you try to open it after a non-clean shutdown. 2011/10/26 Paul A. Jackson <paul.jack...@pb.com> > I have a graph that was created with 1.4.M05 that I am trying to open > with 1.5.M02. Is this supported? > > I get this exception: > Caused by: org.neo4j.graphdb.TransactionFailureException: Could not > create data source [nioneodb], see nested exception for cause of error > at > org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:153) > at > org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:112) > at > org.neo4j.kernel.EmbeddedGraphDbImpl.<init>(EmbeddedGraphDbImpl.java:190) > at > org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:80) > at com.g1.dcg.graph.neo4j.NeoGraph.<init>(NeoGraph.java:124) > ... 42 more > Caused by: java.lang.IllegalArgumentException > at java.nio.Buffer.limit(Buffer.java:249) > at > org.neo4j.kernel.impl.nioneo.xa.Command.readDynamicRecord(Command.java:253) > at > org.neo4j.kernel.impl.nioneo.xa.Command$RelationshipTypeCommand.readCommand(Command.java:957) > at > org.neo4j.kernel.impl.nioneo.xa.Command.readCommand(Command.java:1004) > at > org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource$CommandFactory.readCommand(NeoStoreXaDataSource.java:302) > at > org.neo4j.kernel.impl.transaction.xaframework.LogIoUtils.readTxCommandEntry(LogIoUtils.java:157) > at > org.neo4j.kernel.impl.transaction.xaframework.LogIoUtils.readLogEntry(LogIoUtils.java:99) > at > org.neo4j.kernel.impl.transaction.xaframework.LogIoUtils.readEntry(LogIoUtils.java:76) > at > org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.readEntry(XaLogicalLog.java:866) > at > org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.doInternalRecovery(XaLogicalLog.java:796) > at > org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.open(XaLogicalLog.java:238) > at > org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.open(XaLogicalLog.java:192) > at > org.neo4j.kernel.impl.transaction.xaframework.XaContainer.openLogicalLog(XaContainer.java:97) > at > org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.<init>(NeoStoreXaDataSource.java:147) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at > java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at > org.neo4j.kernel.impl.transaction.XaDataSourceManager.create(XaDataSourceManager.java:75) > at > org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:147) > ... 46 more > > The values in the readDynamicRecord method at the time of the call are: > static = org.neo4j.kernel.impl.nioneo.xa.Command > byteChannel = {org.neo4j.kernel.impl.util.BufferedFileChannel@53535} > buffer = > {java.nio.DirectByteBuffer@33560}"java.nio.DirectByteBuffer[pos=12 > lim=12 cap=713]" > id = 1 > type = 0 > inUseFlag = 1 > inUse = true > record = {org.neo4j.kernel.impl.nioneo.store.DynamicRecord@63952 > }"DynamicRecord[1,true,isLight,-1]" > nrOfBytes = -1 > nextBlock = -4294967280 > > Thanks. > > Paul Jackson, Principal Software Engineer Pitney Bowes Business > Insight > 4200 Parliament Place | Suite 600 | Lanham, MD 20706-1844 USA > O: 301.918.0850 | M: 703.862.0120 | www.pb.com paul.jack...@pb.com > > Every connection is a new opportunity(tm) > > > > Please consider the environment before printing or forwarding this email. > If you do print this email, please recycle the paper. > > This email message may contain confidential, proprietary and/or > privileged information. It is intended only for the use of the intended > recipient(s). > If you have received it in error, please immediately advise the sender > by reply email and then delete this email message. Any disclosure, > copying, distribution or use of the information contained in this > email message to or by anyone other than the intended recipient is > strictly prohibited. Any views expressed in this message are those of > the individual sender, except where the sender specifically states them to be > the views of the Company. > > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user