Re: [Neo4j] Unfinished transaction - cannot open db

2011-01-17 Thread Mattias Persson
Hi again and sorry for late response,

This has been some nut to crack, but finally I think the bug is resolved.
It's committed and will be available in the next milestone, but is already
available (at least within the next hour or so) in SNAPSHOT builds from the
neo4j maven repository.

I'd like to thank you for being persistent in giving back information and
being very helpful!

If the issue is still there please report back.


Best,
Mattias

2011/1/14 Andreas Bauer b...@gmx.net

 Hi,

 on the classpath are the libs  that come with neoclipse, so geronimo and
 all the neo4j-libs including neo4j-lucene-index-0.2-1.2.jar.

 When I start the database in neoclipse the following messages are written:

 Jan 14 18:17:02 CET 2011: XaResourceManager[./nioneo_logical.log] sorting 0
 xids
 Fri Jan 14 18:17:02 CET 2011: XaResourceManager[./nioneo_logical.log]
 checkRecoveryComplete 0 xids
 Fri Jan 14 18:17:02 CET 2011: ./neostore.relationshiptypestore.db.names
 rebuild id generator, highId=5 defragged count=0
 Fri Jan 14 18:17:02 CET 2011: ./neostore.propertystore.db.index.keys
 rebuild id generator, highId=3 defragged count=0
 Fri Jan 14 18:17:02 CET 2011: ./neostore.propertystore.db.index rebuild id
 generator, highId=2 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.propertystore.db.strings rebuild
 id generator, highId=1788 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.propertystore.db.arrays rebuild id
 generator, highId=1 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.propertystore.db rebuild id
 generator, highId=2924 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.relationshipstore.db rebuild id
 generator, highId=1137 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.nodestore.db rebuild id generator,
 highId=2019 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore rebuild id generator, highId=4
 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./nioneo_logical.log]
 recovery completed.
 Fri Jan 14 18:17:03 CET 2011: Recovery on log [./nioneo_logical.log.1]
 completed.
 Fri Jan 14 18:17:03 CET 2011: Non clean shutdown detected on log
 [./lucene/lucene.log.1]. Recovery started ...
 Fri Jan 14 18:17:03 CET 2011: [./lucene/lucene.log.1] logVersion=0 with
 committed tx=1
 Fri Jan 14 18:17:03 CET 2011: [./lucene/lucene.log.1] entries found=0
 lastEntryPos=16
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./lucene/lucene.log]
 sorting 0 xids
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./lucene/lucene.log]
 checkRecoveryComplete 0 xids
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./lucene/lucene.log]
 recovery completed.
 Fri Jan 14 18:17:03 CET 2011: Recovery on log [./lucene/lucene.log.1]
 completed.
 Fri Jan 14 18:17:03 CET 2011: Non clean shutdown detected on log
 [./lucene-fulltext/lucene.log.1]. Recovery started ...
 Fri Jan 14 18:17:03 CET 2011: [./lucene-fulltext/lucene.log.1] logVersion=0
 with committed tx=1
 Fri Jan 14 18:17:03 CET 2011: [./lucene-fulltext/lucene.log.1] entries
 found=0 lastEntryPos=16
 Fri Jan 14 18:17:04 CET 2011:
 XaResourceManager[./lucene-fulltext/lucene.log] sorting 0 xids
 Fri Jan 14 18:17:04 CET 2011:
 XaResourceManager[./lucene-fulltext/lucene.log] checkRecoveryComplete 0 xids
 Fri Jan 14 18:17:04 CET 2011:
 XaResourceManager[./lucene-fulltext/lucene.log] recovery completed.
 Fri Jan 14 18:17:04 CET 2011: Recovery on log
 [./lucene-fulltext/lucene.log.1] completed.
 Fri Jan 14 18:17:04 CET 2011: Non clean shutdown detected on log
 [./index/lucene.log.1]. Recovery started ...
 Fri Jan 14 18:17:04 CET 2011: [./index/lucene.log.1] logVersion=0 with
 committed tx=1
 Fri Jan 14 18:17:04 CET 2011: Injected one phase commit, txId=2
 Fri Jan 14 18:17:04 CET 2011: Injected one phase commit, txId=3
 Fri Jan 14 18:17:04 CET 2011: Injected one phase commit, txId=4
 Fri Jan 14 18:17:04 CET 2011: Injected two phase commit, txId=5
 Fri Jan 14 18:17:04 CET 2011: Injected two phase commit, txId=6
 Fri Jan 14 18:17:04 CET 2011: Failed to init extension
 org.neo4j.graphdb.index.IndexProvider[lucene] Could not create data source
 lucene-index[lucene-index]
 org.neo4j.graphdb.TransactionFailureExtion: Could not create data source
 lucene-index[lucene-index]
 at
 org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:182)
at
 org.neo4j.index.impl.lucene.LuceneIndexProvider.load(LuceneIndexProvider.java:110)
at
 org.neo4j.index.impl.lucene.LuceneIndexProvider.init(LuceneIndexProvider.java:94)
at
 org.neo4j.kernel.KernelExtension$KernelData.initAll(KernelExtension.java:153)
at
 org.neo4j.kernel.EmbeddedGraphDbImpl$2.init(EmbeddedGraphDbImpl.java:160)
at org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:155)
at
 org.neo4j.kernel.EmbeddedGraphDbImpl.init(EmbeddedGraphDbImpl.java:168)
at
 org.neo4j.kernel.EmbeddedGraphDatabase.init(EmbeddedGraphDatabase.java:81)
at
 

Re: [Neo4j] The imdb example is broken

2011-01-17 Thread Alfredas Chmieliauskas
Dear Michael,

thanks for all the help! But I just get the feeling that I am in some
parallel universe.
Because the imdb example still requires import
org.springframework.datastore.graph.annotation.GraphProperty;
see: 
https://github.com/trisberg/spring-datastore-graph-imdb/blob/master/src/main/java/org/neo4j/examples/imdb/domain/Actor.java

but the M1 namespace has changed to data (not datastore), see
https://github.com/SpringSource/spring-data-graph/blob/1.0.0.M1/spring-data-neo4j/src/main/java/org/springframework/data/graph/annotation/GraphProperty.java

Am I still using the wrong versions, or shall I just update the code
and get over it :-)

Alfredas
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] The imdb example is broken

2011-01-17 Thread Michael Hunger
Hi Alfredas,

yes the parallel universe is that you are looking at an older fork of the 
examples repository by Thomas Risberg.

The only valid examples repo is here: 
http://github.com/SpringSource/spring-data-graph-examples

That should also be mentioned in the reference docs.

Thomas actually updated the package names, but only in the official examples, 
I'll ask him to remove the old repo to avoid confusion.

Thanks for pointing that out

Michael

Am 17.01.2011 um 12:49 schrieb Alfredas Chmieliauskas:

 Dear Michael,
 
 thanks for all the help! But I just get the feeling that I am in some
 parallel universe.
 Because the imdb example still requires import
 org.springframework.datastore.graph.annotation.GraphProperty;
 see: 
 https://github.com/trisberg/spring-datastore-graph-imdb/blob/master/src/main/java/org/neo4j/examples/imdb/domain/Actor.java
 
 but the M1 namespace has changed to data (not datastore), see
 https://github.com/SpringSource/spring-data-graph/blob/1.0.0.M1/spring-data-neo4j/src/main/java/org/springframework/data/graph/annotation/GraphProperty.java
 
 Am I still using the wrong versions, or shall I just update the code
 and get over it :-)
 
 Alfredas
 ___
 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


[Neo4j] Unmanaged extensions example

2011-01-17 Thread Peter Neubauer
Hi Dave and others,
there is now a proper example of deploying an unmanaged extension into
the root URL space to the Neo4j Server, see
http://components.neo4j.org/neo4j-examples/snapshot/ and
http://docs.neo4j.org/chunked/snapshot/server-unmanaged-extensions.html
in the reference manual.

I just tested this, so the documentation should be right. Let the
community know if this works for you!

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Unfinished transaction - cannot open db

2011-01-17 Thread Andreas Bauer
Great! Thanks alot! Let me know when and where I can download the update!

Cheers,

Andi

Am 17.01.2011 um 10:03 schrieb Mattias Persson:

 Hi again and sorry for late response,
 
 This has been some nut to crack, but finally I think the bug is resolved.
 It's committed and will be available in the next milestone, but is already
 available (at least within the next hour or so) in SNAPSHOT builds from the
 neo4j maven repository.
 
 I'd like to thank you for being persistent in giving back information and
 being very helpful!
 
 If the issue is still there please report back.
 
 
 Best,
 Mattias
 
 2011/1/14 Andreas Bauer b...@gmx.net
 
 Hi,
 
 on the classpath are the libs  that come with neoclipse, so geronimo and
 all the neo4j-libs including neo4j-lucene-index-0.2-1.2.jar.
 
 When I start the database in neoclipse the following messages are written:
 
 Jan 14 18:17:02 CET 2011: XaResourceManager[./nioneo_logical.log] sorting 0
 xids
 Fri Jan 14 18:17:02 CET 2011: XaResourceManager[./nioneo_logical.log]
 checkRecoveryComplete 0 xids
 Fri Jan 14 18:17:02 CET 2011: ./neostore.relationshiptypestore.db.names
 rebuild id generator, highId=5 defragged count=0
 Fri Jan 14 18:17:02 CET 2011: ./neostore.propertystore.db.index.keys
 rebuild id generator, highId=3 defragged count=0
 Fri Jan 14 18:17:02 CET 2011: ./neostore.propertystore.db.index rebuild id
 generator, highId=2 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.propertystore.db.strings rebuild
 id generator, highId=1788 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.propertystore.db.arrays rebuild id
 generator, highId=1 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.propertystore.db rebuild id
 generator, highId=2924 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.relationshipstore.db rebuild id
 generator, highId=1137 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.nodestore.db rebuild id generator,
 highId=2019 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore rebuild id generator, highId=4
 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./nioneo_logical.log]
 recovery completed.
 Fri Jan 14 18:17:03 CET 2011: Recovery on log [./nioneo_logical.log.1]
 completed.
 Fri Jan 14 18:17:03 CET 2011: Non clean shutdown detected on log
 [./lucene/lucene.log.1]. Recovery started ...
 Fri Jan 14 18:17:03 CET 2011: [./lucene/lucene.log.1] logVersion=0 with
 committed tx=1
 Fri Jan 14 18:17:03 CET 2011: [./lucene/lucene.log.1] entries found=0
 lastEntryPos=16
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./lucene/lucene.log]
 sorting 0 xids
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./lucene/lucene.log]
 checkRecoveryComplete 0 xids
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./lucene/lucene.log]
 recovery completed.
 Fri Jan 14 18:17:03 CET 2011: Recovery on log [./lucene/lucene.log.1]
 completed.
 Fri Jan 14 18:17:03 CET 2011: Non clean shutdown detected on log
 [./lucene-fulltext/lucene.log.1]. Recovery started ...
 Fri Jan 14 18:17:03 CET 2011: [./lucene-fulltext/lucene.log.1] logVersion=0
 with committed tx=1
 Fri Jan 14 18:17:03 CET 2011: [./lucene-fulltext/lucene.log.1] entries
 found=0 lastEntryPos=16
 Fri Jan 14 18:17:04 CET 2011:
 XaResourceManager[./lucene-fulltext/lucene.log] sorting 0 xids
 Fri Jan 14 18:17:04 CET 2011:
 XaResourceManager[./lucene-fulltext/lucene.log] checkRecoveryComplete 0 xids
 Fri Jan 14 18:17:04 CET 2011:
 XaResourceManager[./lucene-fulltext/lucene.log] recovery completed.
 Fri Jan 14 18:17:04 CET 2011: Recovery on log
 [./lucene-fulltext/lucene.log.1] completed.
 Fri Jan 14 18:17:04 CET 2011: Non clean shutdown detected on log
 [./index/lucene.log.1]. Recovery started ...
 Fri Jan 14 18:17:04 CET 2011: [./index/lucene.log.1] logVersion=0 with
 committed tx=1
 Fri Jan 14 18:17:04 CET 2011: Injected one phase commit, txId=2
 Fri Jan 14 18:17:04 CET 2011: Injected one phase commit, txId=3
 Fri Jan 14 18:17:04 CET 2011: Injected one phase commit, txId=4
 Fri Jan 14 18:17:04 CET 2011: Injected two phase commit, txId=5
 Fri Jan 14 18:17:04 CET 2011: Injected two phase commit, txId=6
 Fri Jan 14 18:17:04 CET 2011: Failed to init extension
 org.neo4j.graphdb.index.IndexProvider[lucene] Could not create data source
 lucene-index[lucene-index]
 org.neo4j.graphdb.TransactionFailureExtion: Could not create data source
 lucene-index[lucene-index]
at
 org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:182)
   at
 org.neo4j.index.impl.lucene.LuceneIndexProvider.load(LuceneIndexProvider.java:110)
   at
 org.neo4j.index.impl.lucene.LuceneIndexProvider.init(LuceneIndexProvider.java:94)
   at
 org.neo4j.kernel.KernelExtension$KernelData.initAll(KernelExtension.java:153)
   at
 org.neo4j.kernel.EmbeddedGraphDbImpl$2.init(EmbeddedGraphDbImpl.java:160)
   at org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:155)
   at
 

Re: [Neo4j] Unfinished transaction - cannot open db

2011-01-17 Thread Anders Nawroth
Hi!

2011-01-17 20:42, Andreas Bauer:
 Great! Thanks alot! Let me know when and where I can download the update!

The snapshot version of the download package is found here:

http://neo4j.org/get?file=neo4j-1.3-SNAPSHOT-unix.tar.gz
http://neo4j.org/get?file=neo4j-1.3-SNAPSHOT-windows.zip


/anders



 Cheers,

 Andi

 Am 17.01.2011 um 10:03 schrieb Mattias Persson:

 Hi again and sorry for late response,

 This has been some nut to crack, but finally I think the bug is resolved.
 It's committed and will be available in the next milestone, but is already
 available (at least within the next hour or so) in SNAPSHOT builds from the
 neo4j maven repository.

 I'd like to thank you for being persistent in giving back information and
 being very helpful!

 If the issue is still there please report back.


 Best,
 Mattias

 2011/1/14 Andreas Bauerb...@gmx.net

 Hi,

 on the classpath are the libs  that come with neoclipse, so geronimo and
 all the neo4j-libs including neo4j-lucene-index-0.2-1.2.jar.

 When I start the database in neoclipse the following messages are written:

 Jan 14 18:17:02 CET 2011: XaResourceManager[./nioneo_logical.log] sorting 0
 xids
 Fri Jan 14 18:17:02 CET 2011: XaResourceManager[./nioneo_logical.log]
 checkRecoveryComplete 0 xids
 Fri Jan 14 18:17:02 CET 2011: ./neostore.relationshiptypestore.db.names
 rebuild id generator, highId=5 defragged count=0
 Fri Jan 14 18:17:02 CET 2011: ./neostore.propertystore.db.index.keys
 rebuild id generator, highId=3 defragged count=0
 Fri Jan 14 18:17:02 CET 2011: ./neostore.propertystore.db.index rebuild id
 generator, highId=2 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.propertystore.db.strings rebuild
 id generator, highId=1788 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.propertystore.db.arrays rebuild id
 generator, highId=1 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.propertystore.db rebuild id
 generator, highId=2924 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.relationshipstore.db rebuild id
 generator, highId=1137 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.nodestore.db rebuild id generator,
 highId=2019 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore rebuild id generator, highId=4
 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./nioneo_logical.log]
 recovery completed.
 Fri Jan 14 18:17:03 CET 2011: Recovery on log [./nioneo_logical.log.1]
 completed.
 Fri Jan 14 18:17:03 CET 2011: Non clean shutdown detected on log
 [./lucene/lucene.log.1]. Recovery started ...
 Fri Jan 14 18:17:03 CET 2011: [./lucene/lucene.log.1] logVersion=0 with
 committed tx=1
 Fri Jan 14 18:17:03 CET 2011: [./lucene/lucene.log.1] entries found=0
 lastEntryPos=16
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./lucene/lucene.log]
 sorting 0 xids
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./lucene/lucene.log]
 checkRecoveryComplete 0 xids
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./lucene/lucene.log]
 recovery completed.
 Fri Jan 14 18:17:03 CET 2011: Recovery on log [./lucene/lucene.log.1]
 completed.
 Fri Jan 14 18:17:03 CET 2011: Non clean shutdown detected on log
 [./lucene-fulltext/lucene.log.1]. Recovery started ...
 Fri Jan 14 18:17:03 CET 2011: [./lucene-fulltext/lucene.log.1] logVersion=0
 with committed tx=1
 Fri Jan 14 18:17:03 CET 2011: [./lucene-fulltext/lucene.log.1] entries
 found=0 lastEntryPos=16
 Fri Jan 14 18:17:04 CET 2011:
 XaResourceManager[./lucene-fulltext/lucene.log] sorting 0 xids
 Fri Jan 14 18:17:04 CET 2011:
 XaResourceManager[./lucene-fulltext/lucene.log] checkRecoveryComplete 0 xids
 Fri Jan 14 18:17:04 CET 2011:
 XaResourceManager[./lucene-fulltext/lucene.log] recovery completed.
 Fri Jan 14 18:17:04 CET 2011: Recovery on log
 [./lucene-fulltext/lucene.log.1] completed.
 Fri Jan 14 18:17:04 CET 2011: Non clean shutdown detected on log
 [./index/lucene.log.1]. Recovery started ...
 Fri Jan 14 18:17:04 CET 2011: [./index/lucene.log.1] logVersion=0 with
 committed tx=1
 Fri Jan 14 18:17:04 CET 2011: Injected one phase commit, txId=2
 Fri Jan 14 18:17:04 CET 2011: Injected one phase commit, txId=3
 Fri Jan 14 18:17:04 CET 2011: Injected one phase commit, txId=4
 Fri Jan 14 18:17:04 CET 2011: Injected two phase commit, txId=5
 Fri Jan 14 18:17:04 CET 2011: Injected two phase commit, txId=6
 Fri Jan 14 18:17:04 CET 2011: Failed to init extension
 org.neo4j.graphdb.index.IndexProvider[lucene] Could not create data source
 lucene-index[lucene-index]
 org.neo4j.graphdb.TransactionFailureExtion: Could not create data source
 lucene-index[lucene-index]
 at
 org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:182)
at
 org.neo4j.index.impl.lucene.LuceneIndexProvider.load(LuceneIndexProvider.java:110)
at
 org.neo4j.index.impl.lucene.LuceneIndexProvider.init(LuceneIndexProvider.java:94)
at
 org.neo4j.kernel.KernelExtension$KernelData.initAll(KernelExtension.java:153)

Re: [Neo4j] Unfinished transaction - cannot open db

2011-01-17 Thread Rick Bullotta
So the issue was in Neo and not Neoclipse?  If so, is this a recommended
patch for everyone running Neo 1.2 who might encounter a recovery/restart
situation, or is this something specific to a Neoclipse issue?

Thanks,

Rick

-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On
Behalf Of Anders Nawroth
Sent: Monday, January 17, 2011 4:10 PM
To: Neo4j user discussions
Subject: Re: [Neo4j] Unfinished transaction - cannot open db

Hi!

2011-01-17 20:42, Andreas Bauer:
 Great! Thanks alot! Let me know when and where I can download the update!

The snapshot version of the download package is found here:

http://neo4j.org/get?file=neo4j-1.3-SNAPSHOT-unix.tar.gz
http://neo4j.org/get?file=neo4j-1.3-SNAPSHOT-windows.zip


/anders



 Cheers,

 Andi

 Am 17.01.2011 um 10:03 schrieb Mattias Persson:

 Hi again and sorry for late response,

 This has been some nut to crack, but finally I think the bug is resolved.
 It's committed and will be available in the next milestone, but is
already
 available (at least within the next hour or so) in SNAPSHOT builds from
the
 neo4j maven repository.

 I'd like to thank you for being persistent in giving back information and
 being very helpful!

 If the issue is still there please report back.


 Best,
 Mattias

 2011/1/14 Andreas Bauerb...@gmx.net

 Hi,

 on the classpath are the libs  that come with neoclipse, so geronimo and
 all the neo4j-libs including neo4j-lucene-index-0.2-1.2.jar.

 When I start the database in neoclipse the following messages are
written:

 Jan 14 18:17:02 CET 2011: XaResourceManager[./nioneo_logical.log]
sorting 0
 xids
 Fri Jan 14 18:17:02 CET 2011: XaResourceManager[./nioneo_logical.log]
 checkRecoveryComplete 0 xids
 Fri Jan 14 18:17:02 CET 2011: ./neostore.relationshiptypestore.db.names
 rebuild id generator, highId=5 defragged count=0
 Fri Jan 14 18:17:02 CET 2011: ./neostore.propertystore.db.index.keys
 rebuild id generator, highId=3 defragged count=0
 Fri Jan 14 18:17:02 CET 2011: ./neostore.propertystore.db.index rebuild
id
 generator, highId=2 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.propertystore.db.strings
rebuild
 id generator, highId=1788 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.propertystore.db.arrays rebuild
id
 generator, highId=1 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.propertystore.db rebuild id
 generator, highId=2924 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.relationshipstore.db rebuild id
 generator, highId=1137 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.nodestore.db rebuild id
generator,
 highId=2019 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore rebuild id generator, highId=4
 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./nioneo_logical.log]
 recovery completed.
 Fri Jan 14 18:17:03 CET 2011: Recovery on log [./nioneo_logical.log.1]
 completed.
 Fri Jan 14 18:17:03 CET 2011: Non clean shutdown detected on log
 [./lucene/lucene.log.1]. Recovery started ...
 Fri Jan 14 18:17:03 CET 2011: [./lucene/lucene.log.1] logVersion=0 with
 committed tx=1
 Fri Jan 14 18:17:03 CET 2011: [./lucene/lucene.log.1] entries found=0
 lastEntryPos=16
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./lucene/lucene.log]
 sorting 0 xids
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./lucene/lucene.log]
 checkRecoveryComplete 0 xids
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./lucene/lucene.log]
 recovery completed.
 Fri Jan 14 18:17:03 CET 2011: Recovery on log [./lucene/lucene.log.1]
 completed.
 Fri Jan 14 18:17:03 CET 2011: Non clean shutdown detected on log
 [./lucene-fulltext/lucene.log.1]. Recovery started ...
 Fri Jan 14 18:17:03 CET 2011: [./lucene-fulltext/lucene.log.1]
logVersion=0
 with committed tx=1
 Fri Jan 14 18:17:03 CET 2011: [./lucene-fulltext/lucene.log.1] entries
 found=0 lastEntryPos=16
 Fri Jan 14 18:17:04 CET 2011:
 XaResourceManager[./lucene-fulltext/lucene.log] sorting 0 xids
 Fri Jan 14 18:17:04 CET 2011:
 XaResourceManager[./lucene-fulltext/lucene.log] checkRecoveryComplete 0
xids
 Fri Jan 14 18:17:04 CET 2011:
 XaResourceManager[./lucene-fulltext/lucene.log] recovery completed.
 Fri Jan 14 18:17:04 CET 2011: Recovery on log
 [./lucene-fulltext/lucene.log.1] completed.
 Fri Jan 14 18:17:04 CET 2011: Non clean shutdown detected on log
 [./index/lucene.log.1]. Recovery started ...
 Fri Jan 14 18:17:04 CET 2011: [./index/lucene.log.1] logVersion=0 with
 committed tx=1
 Fri Jan 14 18:17:04 CET 2011: Injected one phase commit, txId=2
 Fri Jan 14 18:17:04 CET 2011: Injected one phase commit, txId=3
 Fri Jan 14 18:17:04 CET 2011: Injected one phase commit, txId=4
 Fri Jan 14 18:17:04 CET 2011: Injected two phase commit, txId=5
 Fri Jan 14 18:17:04 CET 2011: Injected two phase commit, txId=6
 Fri Jan 14 18:17:04 CET 2011: Failed to init extension
 org.neo4j.graphdb.index.IndexProvider[lucene] Could not create data
source
 lucene-index[lucene-index]
 

Re: [Neo4j] Unfinished transaction - cannot open db

2011-01-17 Thread Andreas Bauer
Hi,

I tried to clean up my database with the new version. Seems to work. But when 
cleanup is done and my program wants to start the database I get

Caused by: org.neo4j.graphdb.TransactionFailureException: Unable to start TM
at org.neo4j.kernel.impl.transaction.TxManager.init(TxManager.java:192)
at org.neo4j.kernel.impl.transaction.TxModule.start(TxModule.java:97)
at org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:157)
at 
org.neo4j.kernel.EmbeddedGraphDbImpl.init(EmbeddedGraphDbImpl.java:168)
at 
org.neo4j.kernel.EmbeddedGraphDatabase.init(EmbeddedGraphDatabase.java:81)
at 
org.neo4j.kernel.EmbeddedGraphDatabase.init(EmbeddedGraphDatabase.java:65)
at 
nu.buki.data.neo4j.SocialNetworkService.clinit(SocialNetworkService.java:38)
Caused by: java.io.FileNotFoundException: network (No such file or directory)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.init(RandomAccessFile.java:212)
at java.io.RandomAccessFile.init(RandomAccessFile.java:98)
at org.neo4j.kernel.impl.transaction.TxLog.init(TxLog.java:76)
at org.neo4j.kernel.impl.transaction.TxManager.init(TxManager.java:148)
... 6 more


The exception occurs here: 

GraphDatabaseService neo4j = new EmbeddedGraphDatabase( cep);

This always work in the old versions. Do I have to change something?

Cheers,

Andi



Am 17.01.2011 um 22:41 schrieb Rick Bullotta:

 So the issue was in Neo and not Neoclipse?  If so, is this a recommended
 patch for everyone running Neo 1.2 who might encounter a recovery/restart
 situation, or is this something specific to a Neoclipse issue?
 
 Thanks,
 
 Rick
 
 -Original Message-
 From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On
 Behalf Of Anders Nawroth
 Sent: Monday, January 17, 2011 4:10 PM
 To: Neo4j user discussions
 Subject: Re: [Neo4j] Unfinished transaction - cannot open db
 
 Hi!
 
 2011-01-17 20:42, Andreas Bauer:
 Great! Thanks alot! Let me know when and where I can download the update!
 
 The snapshot version of the download package is found here:
 
 http://neo4j.org/get?file=neo4j-1.3-SNAPSHOT-unix.tar.gz
 http://neo4j.org/get?file=neo4j-1.3-SNAPSHOT-windows.zip
 
 
 /anders
 
 
 
 Cheers,
 
 Andi
 
 Am 17.01.2011 um 10:03 schrieb Mattias Persson:
 
 Hi again and sorry for late response,
 
 This has been some nut to crack, but finally I think the bug is resolved.
 It's committed and will be available in the next milestone, but is
 already
 available (at least within the next hour or so) in SNAPSHOT builds from
 the
 neo4j maven repository.
 
 I'd like to thank you for being persistent in giving back information and
 being very helpful!
 
 If the issue is still there please report back.
 
 
 Best,
 Mattias
 
 2011/1/14 Andreas Bauerb...@gmx.net
 
 Hi,
 
 on the classpath are the libs  that come with neoclipse, so geronimo and
 all the neo4j-libs including neo4j-lucene-index-0.2-1.2.jar.
 
 When I start the database in neoclipse the following messages are
 written:
 
 Jan 14 18:17:02 CET 2011: XaResourceManager[./nioneo_logical.log]
 sorting 0
 xids
 Fri Jan 14 18:17:02 CET 2011: XaResourceManager[./nioneo_logical.log]
 checkRecoveryComplete 0 xids
 Fri Jan 14 18:17:02 CET 2011: ./neostore.relationshiptypestore.db.names
 rebuild id generator, highId=5 defragged count=0
 Fri Jan 14 18:17:02 CET 2011: ./neostore.propertystore.db.index.keys
 rebuild id generator, highId=3 defragged count=0
 Fri Jan 14 18:17:02 CET 2011: ./neostore.propertystore.db.index rebuild
 id
 generator, highId=2 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.propertystore.db.strings
 rebuild
 id generator, highId=1788 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.propertystore.db.arrays rebuild
 id
 generator, highId=1 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.propertystore.db rebuild id
 generator, highId=2924 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.relationshipstore.db rebuild id
 generator, highId=1137 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore.nodestore.db rebuild id
 generator,
 highId=2019 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: ./neostore rebuild id generator, highId=4
 defragged count=0
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./nioneo_logical.log]
 recovery completed.
 Fri Jan 14 18:17:03 CET 2011: Recovery on log [./nioneo_logical.log.1]
 completed.
 Fri Jan 14 18:17:03 CET 2011: Non clean shutdown detected on log
 [./lucene/lucene.log.1]. Recovery started ...
 Fri Jan 14 18:17:03 CET 2011: [./lucene/lucene.log.1] logVersion=0 with
 committed tx=1
 Fri Jan 14 18:17:03 CET 2011: [./lucene/lucene.log.1] entries found=0
 lastEntryPos=16
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./lucene/lucene.log]
 sorting 0 xids
 Fri Jan 14 18:17:03 CET 2011: XaResourceManager[./lucene/lucene.log]
 checkRecoveryComplete 0 xids
 Fri Jan 14 18:17:03 CET 2011: 

Re: [Neo4j] Searching for ways in imported OSM data

2011-01-17 Thread bryce hendrix
Craig,

I've ran into a bit of a stumbling block. I am attempting to do find a
simple route using A* from 2 nodes on 2 different ways. What is the best way
to find the points closest to 2 reference points which are on ways? Assuming
I've got those nodes, is there anything special I have to do, other than
setting up the estimate and cost evaluators?

If I can figure this out, I'll submit my example back to you guys. I'm
excited about this stuff, but I seem to be discovering the limits of the
docs.

Bryce

On Sun, Jan 16, 2011 at 7:11 PM, Craig Taverner cr...@amanzi.com wrote:

 Great that they all work :-)

 Good luck with the rest of the project and keep us posted, we're interested
 in any feedback on the API.

 (getting lat/long mixed up is one of those things we all keep doing, I'm
 pretty sure I did it once as recently as last month ... ;-)

 On Sun, Jan 16, 2011 at 11:52 PM, bryce hendrix brycehend...@gmail.com
 wrote:

  Craig, Peter,
 
  Its useful if I get the latitude and longitude in the correct order for
 the
  Point. Ugh. I've found
  that SearchPointsWithinOrthodromicDistance, SearchClosest,
  and SpatialTopologyUtils.findClosestEdges all work for me. Looks like my
  project is well on its way now, thanks for the help.
 
  Bryce
 
  On Sun, Jan 16, 2011 at 3:16 PM, Craig Taverner cr...@amanzi.com
 wrote:
 
   The SearchPointsWithinOrthodromicDistance basically does a search on a
   rectangular bounding box, and then inside the result set filters by
   distance
   from the center. The filter probably works only on points as implied by
  the
   class name.
  
   The SpatialTopologyUtils class has a method findClosestEdge, which will
  do
   what you are looking for. If you call it without a distance value, it
  will
   take 1% of the total span of your layer as the search window, so if
 this
   does not make sense for your data (eg. your layer covers a small area,
 as
   you hinted at), then pass in the distance in units of the coordinate
  system
   of the layer (probably WGS84, degrees, if you are using only OSM data).
  Try
   it out and let us know.
  
   See:
  
 -
  
  
 
 https://github.com/neo4j/neo4j-spatial/blob/master/src/main/java/org/neo4j/gis/spatial/SpatialTopologyUtils.java
 -
  
  
 
 https://github.com/neo4j/neo4j-spatial/blob/master/src/test/java/org/neo4j/gis/spatial/TestSpatialUtils.java
  
  
   On Sun, Jan 16, 2011 at 11:19 AM, Peter Neubauer 
   peter.neuba...@neotechnology.com wrote:
  
Bryce,
I think (Craig, correct me if I'm wrong) you need to have a Point
layer to be able to do that search. The default OSM layer is
containing a lot of geometries, so I think you first should define a
layer on top of the full imported one, then search. I did something
like that in another spike, see
   
   
  
 
 https://github.com/popdevelop/snapplr/blob/master/server_java/src/main/java/com/geosnappr/TaginfoImporter.java#L312
   
The layer is defined with something like
   
   
  
 
 https://github.com/neo4j/neo4j-spatial/blob/master/src/test/java/org/neo4j/gis/spatial/TestDynamicLayers.java#L26
on top of the imported full data layer.
   
Does that help?
   
Cheers,
   
/peter neubauer
   
GTalk:  neubauer.peter
Skype   peter.neubauer
Phone   +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer
   
http://www.neo4j.org   - Your high performance graph
   database.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing
  party.
   
   
   
On Sat, Jan 15, 2011 at 10:58 PM, bryce hendrix 
  brycehend...@gmail.com
wrote:
 I'm pretty new to neo4j, so please excuse me if this is a FAQ.

 I exported OSM data for a city from the OSM site, then imported it
   using
the
 OSMImporter. I can see the layer via the webserver, so I know if
 got
 imported okay. Now I would like to find the way nearest to a
  coordinate
via
 the Java API, but I'm not really sure how to do that. I've tried
  using
 SearchPointsWithinOrthodromicDistance, but the results of the query
  are
 always empty. Can someone give me some tips, or provide a simple
   example?

 Thanks in advance,
 Bryce
 ___
 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
   
   ___
   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
 
 ___
 Neo4j mailing list
 User@lists.neo4j.org