Re: [Neo4j] Neo4J Plugin

2011-03-09 Thread francoisk6
Thank you andreas,

So would the plugin will let me return Iterable where neoNodeResult is a
custom class that have the following properties:

1. nodeType
2. nodeID
3. nodeStxCode
4. nodeLabel
5. nodeDepth

I could return Iterable but its not what i want plus I need extra infos
about the node to be returned.

Thx again.

-
Regards,
Francois Kassis.
--
View this message in context: 
http://neo4j-user-list.438527.n3.nabble.com/Neo4J-Plugin-tp2654214p2654814.html
Sent from the Neo4J User List mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Neo4J Plugin

2011-03-09 Thread Andreas Kollegger
Hi Francois,

There is not direct support for doing that with a ServerPlugin. It is possible 
to write a custom Representation implementation that would help, but we haven't 
documented that approach. 

An alternative at the moment would be to write an unmanaged extension: 
http://docs.neo4j.org/chunked/snapshot/server-unmanaged-extensions.html

The downside is that is rest-api specific. While the ServerPlugin 
Representation will work across any transport which we add to the server 
(currently only REST, but other wire protocols would be possible).

Best,
Andreas

On Mar 9, 2011, at 12:10 PM, francoisk6 wrote:

 Thank you andreas,
 
 So would the plugin will let me return Iterable where neoNodeResult is a
 custom class that have the following properties:
 
 1. nodeType
 2. nodeID
 3. nodeStxCode
 4. nodeLabel
 5. nodeDepth
 
 I could return Iterable but its not what i want plus I need extra infos
 about the node to be returned.
 
 Thx again.
 
 -
 Regards,
 Francois Kassis.
 --
 View this message in context: 
 http://neo4j-user-list.438527.n3.nabble.com/Neo4J-Plugin-tp2654214p2654814.html
 Sent from the Neo4J User List mailing list archive at Nabble.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


Re: [Neo4j] Neo4J Plugin

2011-03-09 Thread Jim Webber
 The downside is that is rest-api specific. While the ServerPlugin 
 Representation will work across any transport which we add to the server 
 (currently only REST, but other wire protocols would be possible).

I'm not convinced of the validity or usefulness of this notion. A RESTful 
approach isn't simply a wire binding - it implies much more including the use 
of hypermedia (which our managed plugins use).

If we're to build alternative wire protocols (e.g. a terse RPC protocol) then 
it wouldn't likely be RESTful, and I don't necessarily think it'd support 
server plugins as they are today.

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


Re: [Neo4j] Different build errors

2011-03-09 Thread Nolan Darilek
On 03/08/2011 10:23 AM, Andreas Kollegger wrote:
 Interesting. I've never used the libraryDependencies approach for specifying 
 dependencies. What's the advantage? I'll have to read up about that.


I think it ultimately does the same thing as specifying separate vals, 
so no advantage, just preference. I like the clarity of stating this is 
a library dependency rather than relying on val introspection.

In any case, I contorted my build definition in a variety of ways, but 
no matter what I did, I never downloaded anything other than 
neo4j-kernel-tests.jar. Eventually I tried your working project below, 
and that failed too. So it doesn't appear to be my project definition. 
I'm also regularly removing ~/.ivy2, ~/.m2, lib_managed/ and target/. 
Not sure if I'm missing anything, though the SBT download process does 
state 16 artifacts copied, 0 already retrieved so I think I'm getting 
them all.

  What Scala and SBT versions are you using? 2.8.1 and 0.7.5.RC0 here.

Not sure where to go from here. I'll try a post to the SBT list later today.

Thanks for the help.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Neo4J Plugin

2011-03-09 Thread Rick Bullotta
Jim - looking forward to meeting you at QCon, BTW!

-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On
Behalf Of Jim Webber
Sent: Wednesday, March 09, 2011 7:27 AM
To: Neo4j user discussions
Subject: Re: [Neo4j] Neo4J Plugin

 The downside is that is rest-api specific. While the ServerPlugin
Representation will work across any transport which we add to the server
(currently only REST, but other wire protocols would be possible).

I'm not convinced of the validity or usefulness of this notion. A RESTful
approach isn't simply a wire binding - it implies much more including the
use of hypermedia (which our managed plugins use).

If we're to build alternative wire protocols (e.g. a terse RPC protocol)
then it wouldn't likely be RESTful, and I don't necessarily think it'd
support server plugins as they are today.

Jim
___
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] IllegalStoreVersionException - Store version is older than expected...

2011-03-09 Thread José Devezas
Hello,

I'm using Blueprints 0.5 to read a Neo4j graph. I've just come back to the
project today, maven updated to the latest JARs and now I get this error.
I've tried searching for documentation on how to set this option, but I
couldn't find it yet. How do I upgrade the NeoStore to the latest version?

Caused by: org.neo4j.kernel.impl.nioneo.store.IllegalStoreVersionException:
Store version [NeoStore v0.9.6] is older than expected, but could be
upgraded automatically if 'allow_store_upgrade' configuration parameter was
set to 'true'.
 at
org.neo4j.kernel.impl.nioneo.store.NeoStore.versionFound(NeoStore.java:423)
 at
org.neo4j.kernel.impl.nioneo.store.AbstractStore.loadStorage(AbstractStore.java:146)
 at
org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.init(CommonAbstractStore.java:169)
 at
org.neo4j.kernel.impl.nioneo.store.AbstractStore.init(AbstractStore.java:119)
 at org.neo4j.kernel.impl.nioneo.store.NeoStore.init(NeoStore.java:64)
 at
org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.init(NeoStoreXaDataSource.java:132)
 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:73)
 at
org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:147)
 ... 14 more


-- 
José Luís Devezas
Labs SAPO/UP
http://labs.sapo.pt/up
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] IllegalStoreVersionException - Store version is older than expected...

2011-03-09 Thread Peter Neubauer
Jose,
we are right now upgrading the store versions to support bigger
numbers of Ndoes, Relationships and Properties. The exception is
hinting that you can automatically upgrade if you want to, otherwise,
you can run on the existing version.

You running Blueprints Snapshots?

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://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Wed, Mar 9, 2011 at 4:26 PM, José Devezas joseluisdeve...@gmail.com wrote:
 Hello,

 I'm using Blueprints 0.5 to read a Neo4j graph. I've just come back to the
 project today, maven updated to the latest JARs and now I get this error.
 I've tried searching for documentation on how to set this option, but I
 couldn't find it yet. How do I upgrade the NeoStore to the latest version?

 Caused by: org.neo4j.kernel.impl.nioneo.store.IllegalStoreVersionException:
 Store version [NeoStore v0.9.6] is older than expected, but could be
 upgraded automatically if 'allow_store_upgrade' configuration parameter was
 set to 'true'.
  at
 org.neo4j.kernel.impl.nioneo.store.NeoStore.versionFound(NeoStore.java:423)
  at
 org.neo4j.kernel.impl.nioneo.store.AbstractStore.loadStorage(AbstractStore.java:146)
  at
 org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.init(CommonAbstractStore.java:169)
  at
 org.neo4j.kernel.impl.nioneo.store.AbstractStore.init(AbstractStore.java:119)
  at org.neo4j.kernel.impl.nioneo.store.NeoStore.init(NeoStore.java:64)
  at
 org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.init(NeoStoreXaDataSource.java:132)
  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:73)
  at
 org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:147)
  ... 14 more


 --
 José Luís Devezas
 Labs SAPO/UP
 http://labs.sapo.pt/up
 ___
 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


Re: [Neo4j] IllegalStoreVersionException - Store version is older than expected...

2011-03-09 Thread Chris Gioran
On Wed, Mar 9, 2011 at 5:26 PM, José Devezas joseluisdeve...@gmail.com wrote:
 Hello,

 I'm using Blueprints 0.5 to read a Neo4j graph. I've just come back to the
 project today, maven updated to the latest JARs and now I get this error.
 I've tried searching for documentation on how to set this option, but I
 couldn't find it yet. How do I upgrade the NeoStore to the latest version?

 Caused by: org.neo4j.kernel.impl.nioneo.store.IllegalStoreVersionException:
 Store version [NeoStore v0.9.6] is older than expected, but could be
 upgraded automatically if 'allow_store_upgrade' configuration parameter was
 set to 'true'.

The changes, as Peter notes, are because of the upgrade of the store
format to accommodate
an even larger number of entities in a Neo4j database. This of course
requires an upgrade
procedure.

To start the latest SNAPSHOT in upgrade mode, you should pass in the
configuration parameter
allow_store_upgrade as true, as the exception hints. A sample way
to do this is

MapString, String properties = new HashMapString, String();
properties.put(Config.ALLOW_STORE_UPGRADE, true);

new EmbeddedGraphDatabase(db, properties);

After upgrading the store (meaning successful startup with the above
or equivalent code)
then you *cannot* go back to previous versions - including 1.3M03.
More details on this
procedure are at

http://docs.neo4j.org/chunked/snapshot/deployment-upgrading.html

Note however that your store will be touched only if you satisfy all
the requirements the
documentation outlines AND you explicitly ask for an upgrade, making
the procedure safe
for your data. Reversely, to use Neo4j version 1.3 you MUST upgrade to
the new format.

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


Re: [Neo4j] IllegalStoreVersionException - Store version is older than expected...

2011-03-09 Thread José Devezas
I am using Blueprints 0.5 (since SNAPSHOT), which is now the stable version.
It depends on Neo4j 1.3.M03. However, I'm using neo4j-index 1.3-SNAPSHOT, so
I believe this is causing the warning. Am I right?

Are there any stable versions of neo4j-index 1.3? I've searched for
neo4j-index 1.3.M03, but there seems to be no such version.

On Wed, Mar 9, 2011 at 3:42 PM, Chris Gioran chris.gio...@neotechnology.com
 wrote:

 On Wed, Mar 9, 2011 at 5:26 PM, José Devezas joseluisdeve...@gmail.com
 wrote:
  Hello,
 
  I'm using Blueprints 0.5 to read a Neo4j graph. I've just come back to
 the
  project today, maven updated to the latest JARs and now I get this error.
  I've tried searching for documentation on how to set this option, but I
  couldn't find it yet. How do I upgrade the NeoStore to the latest
 version?
 
  Caused by:
 org.neo4j.kernel.impl.nioneo.store.IllegalStoreVersionException:
  Store version [NeoStore v0.9.6] is older than expected, but could be
  upgraded automatically if 'allow_store_upgrade' configuration parameter
 was
  set to 'true'.

 The changes, as Peter notes, are because of the upgrade of the store
 format to accommodate
 an even larger number of entities in a Neo4j database. This of course
 requires an upgrade
 procedure.

 To start the latest SNAPSHOT in upgrade mode, you should pass in the
 configuration parameter
 allow_store_upgrade as true, as the exception hints. A sample way
 to do this is

MapString, String properties = new HashMapString, String();
properties.put(Config.ALLOW_STORE_UPGRADE, true);

new EmbeddedGraphDatabase(db, properties);

 After upgrading the store (meaning successful startup with the above
 or equivalent code)
 then you *cannot* go back to previous versions - including 1.3M03.
 More details on this
 procedure are at

 http://docs.neo4j.org/chunked/snapshot/deployment-upgrading.html

 Note however that your store will be touched only if you satisfy all
 the requirements the
 documentation outlines AND you explicitly ask for an upgrade, making
 the procedure safe
 for your data. Reversely, to use Neo4j version 1.3 you MUST upgrade to
 the new format.

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




-- 
José Luís Devezas
Labs SAPO/UP
http://labs.sapo.pt/up
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] IllegalStoreVersionException - Store version is older than expected...

2011-03-09 Thread José Devezas
I think I've figured out the problem. Since a different class in my program
uses neo4j-index 1.3-SNAPSHOT, that depends on neo4j-kernel 1.3-SNAPSHOT,
the whole application ends up using the SNAPSHOT version of the kernel.

I have a class that uses LuceneIndexBatchInserterImpl. What dependency
should I add to access this, in the 1.3.M03 version?

On Wed, Mar 9, 2011 at 3:54 PM, José Devezas joseluisdeve...@gmail.comwrote:

 I am using Blueprints 0.5 (since SNAPSHOT), which is now the stable
 version. It depends on Neo4j 1.3.M03. However, I'm using neo4j-index
 1.3-SNAPSHOT, so I believe this is causing the warning. Am I right?

 Are there any stable versions of neo4j-index 1.3? I've searched for
 neo4j-index 1.3.M03, but there seems to be no such version.

 On Wed, Mar 9, 2011 at 3:42 PM, Chris Gioran 
 chris.gio...@neotechnology.com wrote:

 On Wed, Mar 9, 2011 at 5:26 PM, José Devezas joseluisdeve...@gmail.com
 wrote:
  Hello,
 
  I'm using Blueprints 0.5 to read a Neo4j graph. I've just come back to
 the
  project today, maven updated to the latest JARs and now I get this
 error.
  I've tried searching for documentation on how to set this option, but I
  couldn't find it yet. How do I upgrade the NeoStore to the latest
 version?
 
  Caused by:
 org.neo4j.kernel.impl.nioneo.store.IllegalStoreVersionException:
  Store version [NeoStore v0.9.6] is older than expected, but could be
  upgraded automatically if 'allow_store_upgrade' configuration parameter
 was
  set to 'true'.

 The changes, as Peter notes, are because of the upgrade of the store
 format to accommodate
 an even larger number of entities in a Neo4j database. This of course
 requires an upgrade
 procedure.

 To start the latest SNAPSHOT in upgrade mode, you should pass in the
 configuration parameter
 allow_store_upgrade as true, as the exception hints. A sample way
 to do this is

MapString, String properties = new HashMapString, String();
properties.put(Config.ALLOW_STORE_UPGRADE, true);

new EmbeddedGraphDatabase(db, properties);

 After upgrading the store (meaning successful startup with the above
 or equivalent code)
 then you *cannot* go back to previous versions - including 1.3M03.
 More details on this
 procedure are at

 http://docs.neo4j.org/chunked/snapshot/deployment-upgrading.html

 Note however that your store will be touched only if you satisfy all
 the requirements the
 documentation outlines AND you explicitly ask for an upgrade, making
 the procedure safe
 for your data. Reversely, to use Neo4j version 1.3 you MUST upgrade to
 the new format.

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




 --
 José Luís Devezas
 Labs SAPO/UP
 http://labs.sapo.pt/up




-- 
José Luís Devezas
Labs SAPO/UP
http://labs.sapo.pt/up
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] IllegalStoreVersionException - Store version is older than expected...

2011-03-09 Thread Mattias Persson
How are you accessing indexes when not through batch insertion?

LuceneIndexBatchInserterImpl is the batch insertion class for neo4j-index
(LuceneIndexService and what not).

If you're accessing indexes through graphDb.index().forNodes(...) etc then
you'd want to use LuceneBatchInserterIndexProvider/LuceneBatchInserterIndex
found in neo4j-lucene-index, and neo4j-index won't be needed (it's
deprecated btw).

http://wiki.neo4j.org/content/Index_Framework

2011/3/9 José Devezas joseluisdeve...@gmail.com

 I think I've figured out the problem. Since a different class in my program
 uses neo4j-index 1.3-SNAPSHOT, that depends on neo4j-kernel 1.3-SNAPSHOT,
 the whole application ends up using the SNAPSHOT version of the kernel.

 I have a class that uses LuceneIndexBatchInserterImpl. What dependency
 should I add to access this, in the 1.3.M03 version?

 On Wed, Mar 9, 2011 at 3:54 PM, José Devezas joseluisdeve...@gmail.com
 wrote:

  I am using Blueprints 0.5 (since SNAPSHOT), which is now the stable
  version. It depends on Neo4j 1.3.M03. However, I'm using neo4j-index
  1.3-SNAPSHOT, so I believe this is causing the warning. Am I right?
 
  Are there any stable versions of neo4j-index 1.3? I've searched for
  neo4j-index 1.3.M03, but there seems to be no such version.
 
  On Wed, Mar 9, 2011 at 3:42 PM, Chris Gioran 
  chris.gio...@neotechnology.com wrote:
 
  On Wed, Mar 9, 2011 at 5:26 PM, José Devezas joseluisdeve...@gmail.com
 
  wrote:
   Hello,
  
   I'm using Blueprints 0.5 to read a Neo4j graph. I've just come back to
  the
   project today, maven updated to the latest JARs and now I get this
  error.
   I've tried searching for documentation on how to set this option, but
 I
   couldn't find it yet. How do I upgrade the NeoStore to the latest
  version?
  
   Caused by:
  org.neo4j.kernel.impl.nioneo.store.IllegalStoreVersionException:
   Store version [NeoStore v0.9.6] is older than expected, but could be
   upgraded automatically if 'allow_store_upgrade' configuration
 parameter
  was
   set to 'true'.
 
  The changes, as Peter notes, are because of the upgrade of the store
  format to accommodate
  an even larger number of entities in a Neo4j database. This of course
  requires an upgrade
  procedure.
 
  To start the latest SNAPSHOT in upgrade mode, you should pass in the
  configuration parameter
  allow_store_upgrade as true, as the exception hints. A sample way
  to do this is
 
 MapString, String properties = new HashMapString, String();
 properties.put(Config.ALLOW_STORE_UPGRADE, true);
 
 new EmbeddedGraphDatabase(db, properties);
 
  After upgrading the store (meaning successful startup with the above
  or equivalent code)
  then you *cannot* go back to previous versions - including 1.3M03.
  More details on this
  procedure are at
 
  http://docs.neo4j.org/chunked/snapshot/deployment-upgrading.html
 
  Note however that your store will be touched only if you satisfy all
  the requirements the
  documentation outlines AND you explicitly ask for an upgrade, making
  the procedure safe
  for your data. Reversely, to use Neo4j version 1.3 you MUST upgrade to
  the new format.
 
  cheers,
  CG
  ___
  Neo4j mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user
 
 
 
 
  --
  José Luís Devezas
  Labs SAPO/UP
  http://labs.sapo.pt/up
 
 


 --
 José Luís Devezas
 Labs SAPO/UP
 http://labs.sapo.pt/up
 ___
 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


Re: [Neo4j] IllegalStoreVersionException - Store version is older than expected...

2011-03-09 Thread José Devezas
Great, that's what I needed to know. I'll update my code to remove those
deprecated classes and use neo4j-lucene-index 1.3.M03, and problem solved.

Thanks! :-)

On Wed, Mar 9, 2011 at 4:07 PM, Mattias Persson
matt...@neotechnology.comwrote:

 How are you accessing indexes when not through batch insertion?

 LuceneIndexBatchInserterImpl is the batch insertion class for neo4j-index
 (LuceneIndexService and what not).

 If you're accessing indexes through graphDb.index().forNodes(...) etc then
 you'd want to use LuceneBatchInserterIndexProvider/LuceneBatchInserterIndex
 found in neo4j-lucene-index, and neo4j-index won't be needed (it's
 deprecated btw).

 http://wiki.neo4j.org/content/Index_Framework

 2011/3/9 José Devezas joseluisdeve...@gmail.com

  I think I've figured out the problem. Since a different class in my
 program
  uses neo4j-index 1.3-SNAPSHOT, that depends on neo4j-kernel 1.3-SNAPSHOT,
  the whole application ends up using the SNAPSHOT version of the kernel.
 
  I have a class that uses LuceneIndexBatchInserterImpl. What dependency
  should I add to access this, in the 1.3.M03 version?
 
  On Wed, Mar 9, 2011 at 3:54 PM, José Devezas joseluisdeve...@gmail.com
  wrote:
 
   I am using Blueprints 0.5 (since SNAPSHOT), which is now the stable
   version. It depends on Neo4j 1.3.M03. However, I'm using neo4j-index
   1.3-SNAPSHOT, so I believe this is causing the warning. Am I right?
  
   Are there any stable versions of neo4j-index 1.3? I've searched for
   neo4j-index 1.3.M03, but there seems to be no such version.
  
   On Wed, Mar 9, 2011 at 3:42 PM, Chris Gioran 
   chris.gio...@neotechnology.com wrote:
  
   On Wed, Mar 9, 2011 at 5:26 PM, José Devezas 
 joseluisdeve...@gmail.com
  
   wrote:
Hello,
   
I'm using Blueprints 0.5 to read a Neo4j graph. I've just come back
 to
   the
project today, maven updated to the latest JARs and now I get this
   error.
I've tried searching for documentation on how to set this option,
 but
  I
couldn't find it yet. How do I upgrade the NeoStore to the latest
   version?
   
Caused by:
   org.neo4j.kernel.impl.nioneo.store.IllegalStoreVersionException:
Store version [NeoStore v0.9.6] is older than expected, but could be
upgraded automatically if 'allow_store_upgrade' configuration
  parameter
   was
set to 'true'.
  
   The changes, as Peter notes, are because of the upgrade of the store
   format to accommodate
   an even larger number of entities in a Neo4j database. This of course
   requires an upgrade
   procedure.
  
   To start the latest SNAPSHOT in upgrade mode, you should pass in the
   configuration parameter
   allow_store_upgrade as true, as the exception hints. A sample way
   to do this is
  
  MapString, String properties = new HashMapString, String();
  properties.put(Config.ALLOW_STORE_UPGRADE, true);
  
  new EmbeddedGraphDatabase(db, properties);
  
   After upgrading the store (meaning successful startup with the above
   or equivalent code)
   then you *cannot* go back to previous versions - including 1.3M03.
   More details on this
   procedure are at
  
   http://docs.neo4j.org/chunked/snapshot/deployment-upgrading.html
  
   Note however that your store will be touched only if you satisfy all
   the requirements the
   documentation outlines AND you explicitly ask for an upgrade, making
   the procedure safe
   for your data. Reversely, to use Neo4j version 1.3 you MUST upgrade to
   the new format.
  
   cheers,
   CG
   ___
   Neo4j mailing list
   User@lists.neo4j.org
   https://lists.neo4j.org/mailman/listinfo/user
  
  
  
  
   --
   José Luís Devezas
   Labs SAPO/UP
   http://labs.sapo.pt/up
  
  
 
 
  --
  José Luís Devezas
  Labs SAPO/UP
  http://labs.sapo.pt/up
  ___
  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




-- 
José Luís Devezas
Labs SAPO/UP
http://labs.sapo.pt/up
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Issue with lucene index

2011-03-09 Thread David Montag
Alex,

That is caused by a bug. The bug has been fixed after 1.2. If you upgrade to
the latest milestone, you will no longer get this exception. Also, the
latest milestone will recover the store to a clean state. Your data will be
safe.

David

On Wed, Mar 9, 2011 at 10:26 AM, Axel Morgner a...@morgner.de wrote:

 Hi out there,

 is there a caveat when concurrently accessing a lucene index for writing?

  From time to time, in rare cases, I'm getting an exception when
 committing and indexing a series of nodes to Neo4j (1.2). The
 transaction is triggered by a log service thread while the main thread
 (web app) concurrently writes updates to the index, too.

 After such an exception, the system is unable to recover unless I
 manually remove the lucene, lucene-fulltext and index folders from the
 neo4j directory and start over. Then the system comes up again, and I
 can sucessfully rebuild the index.

 Do I have to take care of locking by myself?

 Greetings

 Axel

 [1]

 java.lang.NullPointerException
 at

 org.neo4j.index.impl.lucene.IndexType$CustomType.removeFromDocument(IndexType.java:165)
 at

 org.neo4j.index.impl.lucene.LuceneCommand$RemoveCommand.perform(LuceneCommand.java:228)
 at

 org.neo4j.index.impl.lucene.LuceneTransaction.doCommit(LuceneTransaction.java:231)
 at

 org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.commit(XaTransaction.java:319)
 at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.commit(XaResourceManager.java:447)
 at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.commit(XaResourceHelpImpl.java:65)
 at

 org.neo4j.kernel.impl.transaction.TransactionImpl.doCommit(TransactionImpl.java:517)
 at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:623)
 at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:586)
 at

 org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:105)
 at
 org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:86)
 at

 org.structr.core.node.TransactionCommand.execute(TransactionCommand.java:37)
 at org.structr.core.entity.AbstractNode.commit(AbstractNode.java:968)
 at org.structr.core.log.LogService.run(LogService.java:85)
 javax.transaction.xa.XAException: Unknown
 xid[GlobalId[NEOKERNL|-7500914275797900644|1974], BranchId[ 52 49 52 49
 52 49 ]]
 at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.rollback(XaResourceManager.java:471)
 at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.rollback(XaResourceHelpImpl.java:112)
 at

 org.neo4j.kernel.impl.transaction.TransactionImpl.doRollback(TransactionImpl.java:534)
 at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:650)
 at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:586)
 at

 org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:105)
 at
 org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:86)
 at

 org.structr.core.node.TransactionCommand.execute(TransactionCommand.java:37)
 at org.structr.core.entity.AbstractNode.commit(AbstractNode.java:968)
 at org.structr.core.log.LogService.run(LogService.java:85)
 09.03.2011 18:27:07 org.neo4j.kernel.impl.transaction.TxManager commit
 SCHWERWIEGEND: Unable to rollback transaction. Some resources may be
 commited others not. Neo4j kernel should be SHUTDOWN for resource
 maintance and transaction recovery 
 java.lang.NullPointerException
 at

 org.neo4j.index.impl.lucene.IndexType$CustomType.removeFromDocument(IndexType.java:165)
 at

 org.neo4j.index.impl.lucene.LuceneCommand$RemoveCommand.perform(LuceneCommand.java:228)
 at

 org.neo4j.index.impl.lucene.LuceneTransaction.doCommit(LuceneTransaction.java:231)
 at

 org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.commit(XaTransaction.java:319)
 at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.commit(XaResourceManager.java:447)
 at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.commit(XaResourceHelpImpl.java:65)
 at

 org.neo4j.kernel.impl.transaction.TransactionImpl.doCommit(TransactionImpl.java:517)
 at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:623)
 at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:586)
 at

 org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:105)
 at
 org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:86)
 at

 org.structr.core.node.TransactionCommand.execute(TransactionCommand.java:37)
 at org.structr.core.entity.AbstractNode.commit(AbstractNode.java:968)
 at org.structr.core.log.LogService.run(LogService.java:85)
 org.neo4j.graphdb.TransactionFailureException: Unable to commit transaction
 at
 org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:105)
 

[Neo4j] shortestPath exception

2011-03-09 Thread Arze, Cesar
Hi all,

Pretty new to neo4j and am playing around with it to store some ontology data. 
So far my experience has been pretty good but I am running into an odd issue 
when trying to get the shortest path between two nodes using the REST API. The 
command I am using is the following:

 curl -H Accept:application/json -H Content-Type:application/json -X POST 
http://localhost:7474/db/data/node/7212/paths -d 
'{to:http://localhost:7474/db/data/node/2499,relationships: {type: 
is_a, direction: in}, algorithm: shortestPath, max depth: 5}'

Which fails and prints out the following exception:

html
head
meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1/
titleError 500 Node[7025] not connected to this relationship[552]/title
head
bodyh2HTTP ERROR 500/h2
pProblem accessing /db/data/node/7212/paths. Reason:
preNode[7025] not connected to this relationship[552]/pre/ph3Caused 
by:/h3preorg.neo4j.graphdb.NotFoundException: Node[7025] not connected to 
this relationship[552]
at 
org.neo4j.kernel.impl.core.RelationshipImpl.getOtherNode(RelationshipImpl.java:107)
at 
org.neo4j.kernel.impl.core.RelationshipProxy.getOtherNode(RelationshipProxy.java:61)
at org.neo4j.graphalgo.impl.util.PathImpl$1$1.next(PathImpl.java:194)
at org.neo4j.graphalgo.impl.util.PathImpl$1$1.next(PathImpl.java:207)
at 
org.neo4j.helpers.collection.IteratorWrapper.next(IteratorWrapper.java:48)
at 
org.neo4j.server.rest.repr.ListRepresentation.serialize(ListRepresentation.java:59)
at org.neo4j.server.rest.repr.Serializer.serialize(Serializer.java:74)
at 
org.neo4j.server.rest.repr.MappingSerializer.putList(MappingSerializer.java:62)
at 
org.neo4j.server.rest.repr.ListRepresentation.putTo(ListRepresentation.java:74)
at 
org.neo4j.server.rest.repr.ObjectRepresentation$PropertyGetter.putTo(ObjectRepresentation.java:136)
at 
org.neo4j.server.rest.repr.ObjectRepresentation.serialize(ObjectRepresentation.java:147)
at org.neo4j.server.rest.repr.Serializer.serialize(Serializer.java:41)
at 
org.neo4j.server.rest.repr.ListSerializer.addMapping(ListSerializer.java:57)
at 
org.neo4j.server.rest.repr.MappingRepresentation.addTo(MappingRepresentation.java:53)
at 
org.neo4j.server.rest.repr.ListRepresentation.serialize(ListRepresentation.java:61)
at 
org.neo4j.server.rest.repr.ListRepresentation.serialize(ListRepresentation.java:52)
at org.neo4j.server.rest.repr.OutputFormat.format(OutputFormat.java:119)
at 
org.neo4j.server.rest.repr.OutputFormat.response(OutputFormat.java:99)
at org.neo4j.server.rest.repr.OutputFormat.ok(OutputFormat.java:49)
at 
org.neo4j.server.rest.web.RestfulGraphDatabase.allPaths(RestfulGraphDatabase.java:718)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:187)
at 
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:70)
at 
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:279)
at 
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)
at 
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:86)
at 
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)
at 
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:74)
at 
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1357)
at 
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1289)
at 
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1239)
at 
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1229)
at 
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:420)
at 
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:497)
at 
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:684)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
at 

Re: [Neo4j] shortestPath exception

2011-03-09 Thread Mattias Persson
Hi,

this seems to be a bug. Which version are you running? Also I'd love
to get access to your data set so that I could trigger it locally and
fix the bug... Would that be possible?

Best,
Mattias

P.S. If sending the data then please mail me directly because
attachments won't get through the list. D.S

Den onsdagen den 9:e mars 2011 skrev Arze, Cesarca...@som.umaryland.edu:
 Hi all,

 Pretty new to neo4j and am playing around with it to store some ontology 
 data. So far my experience has been pretty good but I am running into an odd 
 issue when trying to get the shortest path between two nodes using the REST 
 API. The command I am using is the following:

  curl -H Accept:application/json -H Content-Type:application/json -X POST 
 http://localhost:7474/db/data/node/7212/paths -d 
 '{to:http://localhost:7474/db/data/node/2499,relationships: {type: 
 is_a, direction: in}, algorithm: shortestPath, max depth: 5}'

 Which fails and prints out the following exception:

 html
 head
 meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1/
 titleError 500 Node[7025] not connected to this relationship[552]/title
 head
 bodyh2HTTP ERROR 500/h2
 pProblem accessing /db/data/node/7212/paths. Reason:
 pre    Node[7025] not connected to this 
 relationship[552]/pre/ph3Caused 
 by:/h3preorg.neo4j.graphdb.NotFoundException: Node[7025] not connected to 
 this relationship[552]
         at 
 org.neo4j.kernel.impl.core.RelationshipImpl.getOtherNode(RelationshipImpl.java:107)
         at 
 org.neo4j.kernel.impl.core.RelationshipProxy.getOtherNode(RelationshipProxy.java:61)
         at org.neo4j.graphalgo.impl.util.PathImpl$1$1.next(PathImpl.java:194)
         at org.neo4j.graphalgo.impl.util.PathImpl$1$1.next(PathImpl.java:207)
         at 
 org.neo4j.helpers.collection.IteratorWrapper.next(IteratorWrapper.java:48)
         at 
 org.neo4j.server.rest.repr.ListRepresentation.serialize(ListRepresentation.java:59)
         at org.neo4j.server.rest.repr.Serializer.serialize(Serializer.java:74)
         at 
 org.neo4j.server.rest.repr.MappingSerializer.putList(MappingSerializer.java:62)
         at 
 org.neo4j.server.rest.repr.ListRepresentation.putTo(ListRepresentation.java:74)
         at 
 org.neo4j.server.rest.repr.ObjectRepresentation$PropertyGetter.putTo(ObjectRepresentation.java:136)
         at 
 org.neo4j.server.rest.repr.ObjectRepresentation.serialize(ObjectRepresentation.java:147)
         at org.neo4j.server.rest.repr.Serializer.serialize(Serializer.java:41)
         at 
 org.neo4j.server.rest.repr.ListSerializer.addMapping(ListSerializer.java:57)
         at 
 org.neo4j.server.rest.repr.MappingRepresentation.addTo(MappingRepresentation.java:53)
         at 
 org.neo4j.server.rest.repr.ListRepresentation.serialize(ListRepresentation.java:61)
         at 
 org.neo4j.server.rest.repr.ListRepresentation.serialize(ListRepresentation.java:52)
         at 
 org.neo4j.server.rest.repr.OutputFormat.format(OutputFormat.java:119)
         at 
 org.neo4j.server.rest.repr.OutputFormat.response(OutputFormat.java:99)
         at org.neo4j.server.rest.repr.OutputFormat.ok(OutputFormat.java:49)
         at 
 org.neo4j.server.rest.web.RestfulGraphDatabase.allPaths(RestfulGraphDatabase.java:718)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at 
 com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:187)
         at 
 com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:70)
         at 
 com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:279)
         at 
 com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)
         at 
 com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:86)
         at 
 com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)
         at 
 com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:74)
         at 
 com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1357)
         at 
 com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1289)
         at 
 com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1239)
         at 
 com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1229)
         at 
 com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:420)
         at 
 

Re: [Neo4j] Issue with lucene index

2011-03-09 Thread Mattias Persson
Den onsdagen den 9:e mars 2011 skrev David
Montagdavid.mon...@neotechnology.com:
 Alex,

 That is caused by a bug. The bug has been fixed after 1.2. If you upgrade to
 the latest milestone, you will no longer get this exception. Also, the
 latest milestone will recover the store to a clean state. Your data will be
 safe.

Correct, and go with the M03 milestone first because M04 will
introduce changes which requires an upgrade from a cleanly shut down
database.

 David

 On Wed, Mar 9, 2011 at 10:26 AM, Axel Morgner a...@morgner.de wrote:

 Hi out there,

 is there a caveat when concurrently accessing a lucene index for writing?

  From time to time, in rare cases, I'm getting an exception when
 committing and indexing a series of nodes to Neo4j (1.2). The
 transaction is triggered by a log service thread while the main thread
 (web app) concurrently writes updates to the index, too.

 After such an exception, the system is unable to recover unless I
 manually remove the lucene, lucene-fulltext and index folders from the
 neo4j directory and start over. Then the system comes up again, and I
 can sucessfully rebuild the index.

 Do I have to take care of locking by myself?

 Greetings

 Axel

 [1]

 java.lang.NullPointerException
     at

 org.neo4j.index.impl.lucene.IndexType$CustomType.removeFromDocument(IndexType.java:165)
     at

 org.neo4j.index.impl.lucene.LuceneCommand$RemoveCommand.perform(LuceneCommand.java:228)
     at

 org.neo4j.index.impl.lucene.LuceneTransaction.doCommit(LuceneTransaction.java:231)
     at

 org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.commit(XaTransaction.java:319)
     at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.commit(XaResourceManager.java:447)
     at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.commit(XaResourceHelpImpl.java:65)
     at

 org.neo4j.kernel.impl.transaction.TransactionImpl.doCommit(TransactionImpl.java:517)
     at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:623)
     at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:586)
     at

 org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:105)
     at
 org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:86)
     at

 org.structr.core.node.TransactionCommand.execute(TransactionCommand.java:37)
     at org.structr.core.entity.AbstractNode.commit(AbstractNode.java:968)
     at org.structr.core.log.LogService.run(LogService.java:85)
 javax.transaction.xa.XAException: Unknown
 xid[GlobalId[NEOKERNL|-7500914275797900644|1974], BranchId[ 52 49 52 49
 52 49 ]]
     at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.rollback(XaResourceManager.java:471)
     at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.rollback(XaResourceHelpImpl.java:112)
     at

 org.neo4j.kernel.impl.transaction.TransactionImpl.doRollback(TransactionImpl.java:534)
     at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:650)
     at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:586)
     at

 org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:105)
     at
 org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:86)
     at

 org.structr.core.node.TransactionCommand.execute(TransactionCommand.java:37)
     at org.structr.core.entity.AbstractNode.commit(AbstractNode.java:968)
     at org.structr.core.log.LogService.run(LogService.java:85)
 09.03.2011 18:27:07 org.neo4j.kernel.impl.transaction.TxManager commit
 SCHWERWIEGEND: Unable to rollback transaction. Some resources may be
 commited others not. Neo4j kernel should be SHUTDOWN for resource
 maintance and transaction recovery 
 java.lang.NullPointerException
     at

 org.neo4j.index.impl.lucene.IndexType$CustomType.removeFromD--
 David Montag
 Neo Technology, www.neotechnology.com
 Cell: 650.556.4411
 david.mon...@neotechnology.com
 ___
 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


Re: [Neo4j] Issue with lucene index

2011-03-09 Thread Axel Morgner
Upgraded to 1.3.M03, issue is gone.

Thanks a lot!

Axel

Am 09.03.2011 20:24, schrieb Mattias Persson:
 Den onsdagen den 9:e mars 2011 skrev David
 Montagdavid.mon...@neotechnology.com:
 Alex,

 That is caused by a bug. The bug has been fixed after 1.2. If you upgrade to
 the latest milestone, you will no longer get this exception. Also, the
 latest milestone will recover the store to a clean state. Your data will be
 safe.
 Correct, and go with the M03 milestone first because M04 will
 introduce changes which requires an upgrade from a cleanly shut down
 database.
 David

 On Wed, Mar 9, 2011 at 10:26 AM, Axel Morgnera...@morgner.de  wrote:

 Hi out there,

 is there a caveat when concurrently accessing a lucene index for writing?

   From time to time, in rare cases, I'm getting an exception when
 committing and indexing a series of nodes to Neo4j (1.2). The
 transaction is triggered by a log service thread while the main thread
 (web app) concurrently writes updates to the index, too.

 After such an exception, the system is unable to recover unless I
 manually remove the lucene, lucene-fulltext and index folders from the
 neo4j directory and start over. Then the system comes up again, and I
 can sucessfully rebuild the index.

 Do I have to take care of locking by myself?

 Greetings

 Axel

 [1]

 java.lang.NullPointerException
  at

 org.neo4j.index.impl.lucene.IndexType$CustomType.removeFromDocument(IndexType.java:165)
  at

 org.neo4j.index.impl.lucene.LuceneCommand$RemoveCommand.perform(LuceneCommand.java:228)
  at

 org.neo4j.index.impl.lucene.LuceneTransaction.doCommit(LuceneTransaction.java:231)
  at

 org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.commit(XaTransaction.java:319)
  at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.commit(XaResourceManager.java:447)
  at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.commit(XaResourceHelpImpl.java:65)
  at

 org.neo4j.kernel.impl.transaction.TransactionImpl.doCommit(TransactionImpl.java:517)
  at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:623)
  at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:586)
  at

 org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:105)
  at
 org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:86)
  at

 org.structr.core.node.TransactionCommand.execute(TransactionCommand.java:37)
  at org.structr.core.entity.AbstractNode.commit(AbstractNode.java:968)
  at org.structr.core.log.LogService.run(LogService.java:85)
 javax.transaction.xa.XAException: Unknown
 xid[GlobalId[NEOKERNL|-7500914275797900644|1974], BranchId[ 52 49 52 49
 52 49 ]]
  at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.rollback(XaResourceManager.java:471)
  at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.rollback(XaResourceHelpImpl.java:112)
  at

 org.neo4j.kernel.impl.transaction.TransactionImpl.doRollback(TransactionImpl.java:534)
  at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:650)
  at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:586)
  at

 org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:105)
  at
 org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:86)
  at

 org.structr.core.node.TransactionCommand.execute(TransactionCommand.java:37)
  at org.structr.core.entity.AbstractNode.commit(AbstractNode.java:968)
  at org.structr.core.log.LogService.run(LogService.java:85)
 09.03.2011 18:27:07 org.neo4j.kernel.impl.transaction.TxManager commit
 SCHWERWIEGEND: Unable to rollback transaction. Some resources may be
 commited others not. Neo4j kernel should be SHUTDOWN for resource
 maintance and transaction recovery 
 java.lang.NullPointerException
  at

 org.neo4j.index.impl.lucene.IndexType$CustomType.removeFromD--
 David Montag
 Neo Technology, www.neotechnology.com
 Cell: 650.556.4411
 david.mon...@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


Re: [Neo4j] Issue with lucene index

2011-03-09 Thread Rick Bullotta
Hi, Mattias.

Is the ability to delete a node from a Lucene fulltext index the old way 
(just provide node + key name) in M03 and M04?

Thanks,

Rick

-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
Behalf Of Mattias Persson
Sent: Wednesday, March 09, 2011 2:24 PM
To: Neo4j user discussions
Subject: Re: [Neo4j] Issue with lucene index

Den onsdagen den 9:e mars 2011 skrev David
Montagdavid.mon...@neotechnology.com:
 Alex,

 That is caused by a bug. The bug has been fixed after 1.2. If you upgrade to
 the latest milestone, you will no longer get this exception. Also, the
 latest milestone will recover the store to a clean state. Your data will be
 safe.

Correct, and go with the M03 milestone first because M04 will
introduce changes which requires an upgrade from a cleanly shut down
database.

 David

 On Wed, Mar 9, 2011 at 10:26 AM, Axel Morgner a...@morgner.de wrote:

 Hi out there,

 is there a caveat when concurrently accessing a lucene index for writing?

  From time to time, in rare cases, I'm getting an exception when
 committing and indexing a series of nodes to Neo4j (1.2). The
 transaction is triggered by a log service thread while the main thread
 (web app) concurrently writes updates to the index, too.

 After such an exception, the system is unable to recover unless I
 manually remove the lucene, lucene-fulltext and index folders from the
 neo4j directory and start over. Then the system comes up again, and I
 can sucessfully rebuild the index.

 Do I have to take care of locking by myself?

 Greetings

 Axel

 [1]

 java.lang.NullPointerException
 at

 org.neo4j.index.impl.lucene.IndexType$CustomType.removeFromDocument(IndexType.java:165)
 at

 org.neo4j.index.impl.lucene.LuceneCommand$RemoveCommand.perform(LuceneCommand.java:228)
 at

 org.neo4j.index.impl.lucene.LuceneTransaction.doCommit(LuceneTransaction.java:231)
 at

 org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.commit(XaTransaction.java:319)
 at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.commit(XaResourceManager.java:447)
 at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.commit(XaResourceHelpImpl.java:65)
 at

 org.neo4j.kernel.impl.transaction.TransactionImpl.doCommit(TransactionImpl.java:517)
 at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:623)
 at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:586)
 at

 org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:105)
 at
 org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:86)
 at

 org.structr.core.node.TransactionCommand.execute(TransactionCommand.java:37)
 at org.structr.core.entity.AbstractNode.commit(AbstractNode.java:968)
 at org.structr.core.log.LogService.run(LogService.java:85)
 javax.transaction.xa.XAException: Unknown
 xid[GlobalId[NEOKERNL|-7500914275797900644|1974], BranchId[ 52 49 52 49
 52 49 ]]
 at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.rollback(XaResourceManager.java:471)
 at

 org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.rollback(XaResourceHelpImpl.java:112)
 at

 org.neo4j.kernel.impl.transaction.TransactionImpl.doRollback(TransactionImpl.java:534)
 at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:650)
 at
 org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:586)
 at

 org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:105)
 at
 org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:86)
 at

 org.structr.core.node.TransactionCommand.execute(TransactionCommand.java:37)
 at org.structr.core.entity.AbstractNode.commit(AbstractNode.java:968)
 at org.structr.core.log.LogService.run(LogService.java:85)
 09.03.2011 18:27:07 org.neo4j.kernel.impl.transaction.TxManager commit
 SCHWERWIEGEND: Unable to rollback transaction. Some resources may be
 commited others not. Neo4j kernel should be SHUTDOWN for resource
 maintance and transaction recovery 
 java.lang.NullPointerException
 at

 org.neo4j.index.impl.lucene.IndexType$CustomType.removeFromD--
 David Montag
 Neo Technology, www.neotechnology.com
 Cell: 650.556.4411
 david.mon...@neotechnology.com
 ___
 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


[Neo4j] doInternalRecovery takes a long time

2011-03-09 Thread Samuel Feng
Dear list,

I am developing a tomcat application in eclipse which has about 100,000
nodes using EmbeddedGraphDatabase (Neo4j version 1.2M05)

Sometimes I took me a long time(more than half an hour) to
doInternalRecovery, maybe because I shutdown the tomcat server directly.

From the messages.log, I can find many many Injected two phase commit, *Can
u tell me what cause this and how to prevent it?*

Thu Mar 10 09:47:47 CST 2011: Opened
[C:\home\heartwater\graph\\nioneo_logical.log.1] clean empty log, version=1
Thu Mar 10 09:47:47 CST 2011: Opened
[C:\home\heartwater\graph\/lucene/lucene.log.1] clean empty log, version=0
Thu Mar 10 09:47:47 CST 2011: Opened
[C:\home\heartwater\graph\/lucene-fulltext/lucene.log.1] clean empty log,
version=0
Thu Mar 10 09:47:47 CST 2011: Non clean shutdown detected on log
[C:\home\heartwater\graph\index/lucene.log.1]. Recovery started ...
Thu Mar 10 09:47:47 CST 2011: [C:\home\heartwater\graph\index/lucene.log.1]
logVersion=0 with committed tx=1
Thu Mar 10 09:47:48 CST 2011: Injected two phase commit, txId=2
Thu Mar 10 09:47:48 CST 2011: Injected two phase commit, txId=3
Thu Mar 10 09:47:48 CST 2011: Injected two phase commit, txId=4
Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=5
Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=6
Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=7
Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=8
Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=9
Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=10
Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=11
Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=12
Thu Mar 10 09:47:50 CST 2011: Injected two phase commit, txId=13
Thu Mar 10 09:47:50 CST 2011: Injected two phase commit, txId=14
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] doInternalRecovery takes a long time

2011-03-09 Thread David Montag
Samuel,

Can you try it with 1.3.M03, if possible?

Thanks,
David

On Wed, Mar 9, 2011 at 6:13 PM, Samuel Feng okos...@gmail.com wrote:

 Dear list,

 I am developing a tomcat application in eclipse which has about 100,000
 nodes using EmbeddedGraphDatabase (Neo4j version 1.2M05)

 Sometimes I took me a long time(more than half an hour) to
 doInternalRecovery, maybe because I shutdown the tomcat server directly.

 From the messages.log, I can find many many Injected two phase commit,
 *Can
 u tell me what cause this and how to prevent it?*

 Thu Mar 10 09:47:47 CST 2011: Opened
 [C:\home\heartwater\graph\\nioneo_logical.log.1] clean empty log, version=1
 Thu Mar 10 09:47:47 CST 2011: Opened
 [C:\home\heartwater\graph\/lucene/lucene.log.1] clean empty log, version=0
 Thu Mar 10 09:47:47 CST 2011: Opened
 [C:\home\heartwater\graph\/lucene-fulltext/lucene.log.1] clean empty log,
 version=0
 Thu Mar 10 09:47:47 CST 2011: Non clean shutdown detected on log
 [C:\home\heartwater\graph\index/lucene.log.1]. Recovery started ...
 Thu Mar 10 09:47:47 CST 2011: [C:\home\heartwater\graph\index/lucene.log.1]
 logVersion=0 with committed tx=1
 Thu Mar 10 09:47:48 CST 2011: Injected two phase commit, txId=2
 Thu Mar 10 09:47:48 CST 2011: Injected two phase commit, txId=3
 Thu Mar 10 09:47:48 CST 2011: Injected two phase commit, txId=4
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=5
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=6
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=7
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=8
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=9
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=10
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=11
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=12
 Thu Mar 10 09:47:50 CST 2011: Injected two phase commit, txId=13
 Thu Mar 10 09:47:50 CST 2011: Injected two phase commit, txId=14
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user




-- 
David Montag
Neo Technology, www.neotechnology.com
Cell: 650.556.4411
david.mon...@neotechnology.com
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] doInternalRecovery takes a long time

2011-03-09 Thread Samuel Feng
Thanks David.

My concern is if the neo4j data in 1.2 can be used in 1.3 directly?

I have used custom analyzer in my index.

2011/3/10 David Montag david.mon...@neotechnology.com

 Samuel,

 Can you try it with 1.3.M03, if possible?

 Thanks,
 David

 On Wed, Mar 9, 2011 at 6:13 PM, Samuel Feng okos...@gmail.com wrote:

 Dear list,

 I am developing a tomcat application in eclipse which has about 100,000
 nodes using EmbeddedGraphDatabase (Neo4j version 1.2M05)

 Sometimes I took me a long time(more than half an hour) to
 doInternalRecovery, maybe because I shutdown the tomcat server directly.

 From the messages.log, I can find many many Injected two phase commit,
 *Can
 u tell me what cause this and how to prevent it?*

 Thu Mar 10 09:47:47 CST 2011: Opened
 [C:\home\heartwater\graph\\nioneo_logical.log.1] clean empty log,
 version=1
 Thu Mar 10 09:47:47 CST 2011: Opened
 [C:\home\heartwater\graph\/lucene/lucene.log.1] clean empty log, version=0
 Thu Mar 10 09:47:47 CST 2011: Opened
 [C:\home\heartwater\graph\/lucene-fulltext/lucene.log.1] clean empty log,
 version=0
 Thu Mar 10 09:47:47 CST 2011: Non clean shutdown detected on log
 [C:\home\heartwater\graph\index/lucene.log.1]. Recovery started ...
 Thu Mar 10 09:47:47 CST 2011:
 [C:\home\heartwater\graph\index/lucene.log.1]
 logVersion=0 with committed tx=1
 Thu Mar 10 09:47:48 CST 2011: Injected two phase commit, txId=2
 Thu Mar 10 09:47:48 CST 2011: Injected two phase commit, txId=3
 Thu Mar 10 09:47:48 CST 2011: Injected two phase commit, txId=4
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=5
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=6
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=7
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=8
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=9
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=10
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=11
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=12
 Thu Mar 10 09:47:50 CST 2011: Injected two phase commit, txId=13
 Thu Mar 10 09:47:50 CST 2011: Injected two phase commit, txId=14
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user




 --
 David Montag
 Neo Technology, www.neotechnology.com
 Cell: 650.556.4411
 david.mon...@neotechnology.com

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


[Neo4j] Using Data tab of Web-Admin to Delete Relationships

2011-03-09 Thread Neal Walters
I'm using the the Data tab of the Web-Admin (V1.3.M03) to model my data
structure and learn Neo4j.
I accidentally created a wrong relationship.  I've selected that
relationship (from both the parent side and child side/direction), and tried
to remove it.
No error appears, but it doesn't seem to remove it.  (I press the back key
and refresh, and it's still there.)
Is there something I'm missing?

Thanks,
Neal Walters
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Nice change from all this Java

2011-03-09 Thread Anders Nawroth
And here's the place to join the discussion about it:
http://groups.google.com/group/clojure/browse_thread/thread/81fb57867896f491?pli=1

/anders

2011-03-09 22:38, Andres Taylor skrev:
 Hey all,

 Wanted to share something I just found on reddit.

 https://github.com/wagjo/borneo

 After being force fed all this Java, a bit of Clojure was very welcome.
 Looks really nice too.

 Andrés
 ___
 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


Re: [Neo4j] Issue with lucene index

2011-03-09 Thread Mattias Persson
2011/3/9 Rick Bullotta rick.bullo...@burningskysoftware.com

 Hi, Mattias.

 Is the ability to delete a node from a Lucene fulltext index the old way
 (just provide node + key name) in M03 and M04?

 Yes, they arrived in M03


 Thanks,

 Rick

 -Original Message-
 From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org]
 On Behalf Of Mattias Persson
 Sent: Wednesday, March 09, 2011 2:24 PM
 To: Neo4j user discussions
 Subject: Re: [Neo4j] Issue with lucene index

 Den onsdagen den 9:e mars 2011 skrev David
 Montagdavid.mon...@neotechnology.com:
  Alex,
 
  That is caused by a bug. The bug has been fixed after 1.2. If you upgrade
 to
  the latest milestone, you will no longer get this exception. Also, the
  latest milestone will recover the store to a clean state. Your data will
 be
  safe.

 Correct, and go with the M03 milestone first because M04 will
 introduce changes which requires an upgrade from a cleanly shut down
 database.
 
  David
 
  On Wed, Mar 9, 2011 at 10:26 AM, Axel Morgner a...@morgner.de wrote:
 
  Hi out there,
 
  is there a caveat when concurrently accessing a lucene index for
 writing?
 
   From time to time, in rare cases, I'm getting an exception when
  committing and indexing a series of nodes to Neo4j (1.2). The
  transaction is triggered by a log service thread while the main thread
  (web app) concurrently writes updates to the index, too.
 
  After such an exception, the system is unable to recover unless I
  manually remove the lucene, lucene-fulltext and index folders from the
  neo4j directory and start over. Then the system comes up again, and I
  can sucessfully rebuild the index.
 
  Do I have to take care of locking by myself?
 
  Greetings
 
  Axel
 
  [1]
 
  java.lang.NullPointerException
  at
 
 
 org.neo4j.index.impl.lucene.IndexType$CustomType.removeFromDocument(IndexType.java:165)
  at
 
 
 org.neo4j.index.impl.lucene.LuceneCommand$RemoveCommand.perform(LuceneCommand.java:228)
  at
 
 
 org.neo4j.index.impl.lucene.LuceneTransaction.doCommit(LuceneTransaction.java:231)
  at
 
 
 org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.commit(XaTransaction.java:319)
  at
 
 
 org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.commit(XaResourceManager.java:447)
  at
 
 
 org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.commit(XaResourceHelpImpl.java:65)
  at
 
 
 org.neo4j.kernel.impl.transaction.TransactionImpl.doCommit(TransactionImpl.java:517)
  at
  org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:623)
  at
  org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:586)
  at
 
 
 org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:105)
  at
  org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:86)
  at
 
 
 org.structr.core.node.TransactionCommand.execute(TransactionCommand.java:37)
  at
 org.structr.core.entity.AbstractNode.commit(AbstractNode.java:968)
  at org.structr.core.log.LogService.run(LogService.java:85)
  javax.transaction.xa.XAException: Unknown
  xid[GlobalId[NEOKERNL|-7500914275797900644|1974], BranchId[ 52 49 52 49
  52 49 ]]
  at
 
 
 org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.rollback(XaResourceManager.java:471)
  at
 
 
 org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.rollback(XaResourceHelpImpl.java:112)
  at
 
 
 org.neo4j.kernel.impl.transaction.TransactionImpl.doRollback(TransactionImpl.java:534)
  at
  org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:650)
  at
  org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:586)
  at
 
 
 org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:105)
  at
  org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:86)
  at
 
 
 org.structr.core.node.TransactionCommand.execute(TransactionCommand.java:37)
  at
 org.structr.core.entity.AbstractNode.commit(AbstractNode.java:968)
  at org.structr.core.log.LogService.run(LogService.java:85)
  09.03.2011 18:27:07 org.neo4j.kernel.impl.transaction.TxManager commit
  SCHWERWIEGEND: Unable to rollback transaction. Some resources may be
  commited others not. Neo4j kernel should be SHUTDOWN for resource
  maintance and transaction recovery 
  java.lang.NullPointerException
  at
 
  org.neo4j.index.impl.lucene.IndexType$CustomType.removeFromD--
  David Montag
  Neo Technology, www.neotechnology.com
  Cell: 650.556.4411
  david.mon...@neotechnology.com
  ___
  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




-- 

Re: [Neo4j] doInternalRecovery takes a long time

2011-03-09 Thread Samuel Feng
David,

I am using jdk1.5.

After upgraded to 1.3M03, I Encountered* *
*java.lang.UnsupportedClassVersionError: Bad version number in .class file*
Error.

Seems the jars in neo4j's lib folder are complied using jdk6.

Can I use 1.5 to compiled the sources directly?


2011/3/10 Samuel Feng okos...@gmail.com

 Thanks David.

 My concern is if the neo4j data in 1.2 can be used in 1.3 directly?

 I have used custom analyzer in my index.

 2011/3/10 David Montag david.mon...@neotechnology.com

 Samuel,

 Can you try it with 1.3.M03, if possible?

 Thanks,
 David

 On Wed, Mar 9, 2011 at 6:13 PM, Samuel Feng okos...@gmail.com wrote:

 Dear list,

 I am developing a tomcat application in eclipse which has about 100,000
 nodes using EmbeddedGraphDatabase (Neo4j version 1.2M05)

 Sometimes I took me a long time(more than half an hour) to
 doInternalRecovery, maybe because I shutdown the tomcat server directly.

 From the messages.log, I can find many many Injected two phase commit,
 *Can
 u tell me what cause this and how to prevent it?*

 Thu Mar 10 09:47:47 CST 2011: Opened
 [C:\home\heartwater\graph\\nioneo_logical.log.1] clean empty log,
 version=1
 Thu Mar 10 09:47:47 CST 2011: Opened
 [C:\home\heartwater\graph\/lucene/lucene.log.1] clean empty log,
 version=0
 Thu Mar 10 09:47:47 CST 2011: Opened
 [C:\home\heartwater\graph\/lucene-fulltext/lucene.log.1] clean empty log,
 version=0
 Thu Mar 10 09:47:47 CST 2011: Non clean shutdown detected on log
 [C:\home\heartwater\graph\index/lucene.log.1]. Recovery started ...
 Thu Mar 10 09:47:47 CST 2011:
 [C:\home\heartwater\graph\index/lucene.log.1]
 logVersion=0 with committed tx=1
 Thu Mar 10 09:47:48 CST 2011: Injected two phase commit, txId=2
 Thu Mar 10 09:47:48 CST 2011: Injected two phase commit, txId=3
 Thu Mar 10 09:47:48 CST 2011: Injected two phase commit, txId=4
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=5
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=6
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=7
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=8
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=9
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=10
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=11
 Thu Mar 10 09:47:49 CST 2011: Injected two phase commit, txId=12
 Thu Mar 10 09:47:50 CST 2011: Injected two phase commit, txId=13
 Thu Mar 10 09:47:50 CST 2011: Injected two phase commit, txId=14
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user




 --
 David Montag
 Neo Technology, www.neotechnology.com
 Cell: 650.556.4411
 david.mon...@neotechnology.com



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