[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