Re: [Neo4j] Neo4j java.lang.IllegalStateException - adding nodes to Spatial Index/Layer

2015-02-04 Thread Mamta Thakur
Hi folks,

I have also started to get this error on sdn.save. Did anyone fixed it yet?

Regards,
Mamta.

On Wednesday, April 2, 2014 at 8:05:06 PM UTC+5:30, Michael Hunger wrote:
>
> Would you be able to supply a full test project that reproduces this error?
>
> Sent from mobile device
>
> Am 02.04.2014 um 16:12 schrieb Zeeshan Arif  >:
>
> I am facing the following exception when attempting to add nodes to the 
> Spatial Index or Layer. 
>
> The DB nodes and relationships were setup first using the bulk loader and 
> than I am attempting to load using transactional API with batches of 1000 
> nodes into Spatial Index. Usually, it comes around 100K nodes mark.. Once 
> you hit this exception the transactions fail to commit.
>
> Environment is Neo4j 2.0.1 with spatail plugin also as 2.0.1..
>
> Any help is appreciated. Thanks,
>
> - Zeeshan
>
> java.lang.IllegalStateException: No property record in property chain for 
> Node[5111528,used=true,rel=124602537,prop=-1,labels=Inline(0x0:[]),light] 
> contained property with key 34
> at 
> org.neo4j.kernel.impl.nioneo.xa.NeoStoreTransaction.findPropertyRecordContaining(NeoStoreTransaction.java:1616)
> at 
> org.neo4j.kernel.impl.nioneo.xa.NeoStoreTransaction.removeProperty(NeoStoreTransaction.java:1473)
> at 
> org.neo4j.kernel.impl.nioneo.xa.NeoStoreTransaction.nodeRemoveProperty(NeoStoreTransaction.java:1467)
> at 
> org.neo4j.kernel.impl.api.StateHandlingStatementOperations.nodeRemoveProperty(StateHandlingStatementOperations.java:587)
> at 
> org.neo4j.kernel.impl.api.ConstraintEnforcingEntityOperations.nodeRemoveProperty(ConstraintEnforcingEntityOperations.java:173)
> at 
> org.neo4j.kernel.impl.api.LockingStatementOperations.nodeRemoveProperty(LockingStatementOperations.java:269)
> at 
> org.neo4j.kernel.impl.api.OperationsFacade.nodeRemoveProperty(OperationsFacade.java:488)
> at 
> org.neo4j.kernel.impl.core.NodeProxy.removeProperty(NodeProxy.java:248)
> at 
> org.neo4j.collections.rtree.RTreeIndex.quadraticSplit(RTreeIndex.java:643)
> at 
> org.neo4j.collections.rtree.RTreeIndex.quadraticSplit(RTreeIndex.java:560)
> at 
> org.neo4j.collections.rtree.RTreeIndex.splitAndAdjustPathBoundingBox(RTreeIndex.java:541)
> at org.neo4j.collections.rtree.RTreeIndex.add(RTreeIndex.java:86)
> at 
> org.neo4j.gis.spatial.EditableLayerImpl.add(EditableLayerImpl.java:44)
> at 
> org.neo4j.gis.spatial.indexprovider.LayerNodeIndex.add(LayerNodeIndex.java:136)
> at 
> org.neo4j.gis.spatial.indexprovider.LayerNodeIndex.add(LayerNodeIndex.java:44)
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to neo4j+un...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Neo4j] Re: Find relationship between two specific nodes

2014-12-17 Thread Mamta Thakur
Hi Reihane ,

Were you able to fix this issue. I am facing the exact same issue. Using 
embedded neo4j 2.0.3

Thanks,
Mamta.

On Wednesday, February 26, 2014 6:24:34 AM UTC+5:30, Reihane Boghrati wrote:
>
> Hi,
>
> I have two specific nodes (say usernode1 and usernode2) and I want to get 
> the relationship between these two. So far I have this code: (which goes 
> through all relationships of one of the nodes to find the appropriate 
> relationship)
>
> Iterable relIterable = 
> userNode1.getRelationships(MyRelationshipTypes.friendship);
> if (userNode1!= null && userNode2!=null){
> for (Relationship rel : relIterable) {
> if (rel.getOtherNode(userNode1).equals(userNode2)) {
> rel.delete();
> break;
> }
> }
>
> Is anyone aware of a better way of doing so? (in terms of performance)
>
> Best,
> Reihane
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Neo4j] org.neo4j.graphdb.NotFoundException: RELATIONSHIP[7141600] has no property with propertyKey="__type__".

2014-12-03 Thread Mamta Thakur
Hi,

We are using neo4j 2.0.3 and SDN (3.1.0).

We are getting this error when trying to execute this cypher with 
repository.
@Query("MATCH (n:Member)-[:MY_FB]->p WHERE n.id = {0} RETURN p;")
->
org.neo4j.graphdb.NotFoundException: RELATIONSHIP[7141600] has no property 
with propertyKey="__type__".

If I look for this relationship id "7141600" This is a relationship of p 
-[r:INVITE]-x.
Our SDN save(repository.save()) hangs up  quiet often so Invite relations 
were inserted using native java code like this.

private static final RelationshipType INVITED = DynamicRelationshipType
  .withName("INVITED");
relationship = initiator.createRelationshipTo(recipient, INVITED);

Can someone please guide me to the fix. I don't know why is this _type_ 
required anyway. Earlier(prior upgrade 1.9.2)  we used to have fully 
qualified class names as _type_ for NODEs, now I see just classname. Which 
is not consistent in itself.


Regards,
Mamta.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] findAllByPropertyValue Deprecated in SDN 3.1.0, throws error

2014-06-26 Thread Mamta Thakur
We had the deprecated method in the code and that ran into that error as I 
mentioned earlier. The deprecated method is actually not working for me.
Thats why I am looking for an alternate solution.

Regards,
Mamta

On Thursday, June 26, 2014 7:13:37 PM UTC+5:30, Michael Hunger wrote:
>
> As you updated your graph it still runs with the indexing type strategy
>
> So either stick with the deprecated method 
> or
> Switch the strategy to label based in your spring config
>
> Make a backup first if you go with option 2
>
>
>
> Sent from mobile device
>
> Am 26.06.2014 um 15:37 schrieb Mamta Thakur  >:
>
> @NodeEntity
> public class Member {
>   
>   @GraphId
>   Long nodeId;
>   @Indexed(unique = true, numeric = false)
>   private String id;
>   private Long facebookUserId;
>   @RelatedTo(type = "MY_FB", direction = Direction.BOTH)
>   FacebookUser facebookUser;
>   @RelatedToVia(type = KNOWS, direction = Direction.BOTH, elementClass = 
> Relationship.class)
>   Iterable knowsRelationships;
>   
>   --- constructors and getter/setter.
>
> }
>
> Regards,
> Mamta.
>
> On Thursday, June 26, 2014 7:02:16 PM UTC+5:30, Michael Hunger wrote:
>>
>> What does your entity look like?
>>
>> Sent from mobile device
>>
>> Am 26.06.2014 um 14:52 schrieb Mamta Thakur :
>>
>> Hi All,
>>
>> We recently upgraded the Neo4j version to 2.0.3 and SDN to 3.1.0. Data 
>> upgrade happened successfully.
>> We were able to run some of the APIs successfully where as some gave 
>> issues.
>>
>> 
>> org.springframework.data
>>   spring-data-neo4j
>>   3.1.0.RELEASE
>> 
>>
>> Code:
>>  Iterator repoItr =
>> memberRepository.findAllByPropertyValue("id",
>> Long.valueOf(id)).iterator();
>>
>> Looks like the method is deprecated, but do we have an alternate to this 
>> method?
>> Tried findAllBySchemaPropertyValue("id", id), but that did not return 
>> anything.
>>
>> Error Stack:
>>
>> org.springframework.dao.InvalidDataAccessApiUsageException: Can lookup 
>> label based property from legacy index
>> at 
>> org.springframework.data.neo4j.support.Neo4jTemplate.getIndex(Neo4jTemplate.java:640)
>> at 
>> org.springframework.data.neo4j.repository.LegacyIndexSearcher.getIndex(LegacyIndexSearcher.java:40)
>> at 
>> org.springframework.data.neo4j.repository.LegacyIndexSearcher.getIndexHits(LegacyIndexSearcher.java:75)
>> at 
>> org.springframework.data.neo4j.repository.LegacyIndexSearcher.access$200(LegacyIndexSearcher.java:21)
>> at 
>> org.springframework.data.neo4j.repository.LegacyIndexSearcher$3.query(LegacyIndexSearcher.java:132)
>> at 
>> org.springframework.data.neo4j.repository.LegacyIndexSearcher.queryResult(LegacyIndexSearcher.java:139)
>> at 
>> org.springframework.data.neo4j.repository.LegacyIndexSearcher.findAllByPropertyValue(LegacyIndexSearcher.java:130)
>> at 
>> org.springframework.data.neo4j.repository.AbstractGraphRepository.findAllByPropertyValue(AbstractGraphRepository.java:170)
>> at 
>> org.springframework.data.neo4j.repository.AbstractGraphRepository.findAllByPropertyValue(AbstractGraphRepository.java:181)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at 
>> org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:405)
>> at 
>> org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:390)
>> at 
>> org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:344)
>> at 
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>> at 
>> org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
>> at 
>> org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
>> at 
>> org.spri

Re: [Neo4j] findAllByPropertyValue Deprecated in SDN 3.1.0, throws error

2014-06-26 Thread Mamta Thakur
@NodeEntity
public class Member {
  
  @GraphId
  Long nodeId;
  @Indexed(unique = true, numeric = false)
  private String id;
  private Long facebookUserId;
  @RelatedTo(type = "MY_FB", direction = Direction.BOTH)
  FacebookUser facebookUser;
  @RelatedToVia(type = KNOWS, direction = Direction.BOTH, elementClass = 
Relationship.class)
  Iterable knowsRelationships;
  
  --- constructors and getter/setter.

}

Regards,
Mamta.

On Thursday, June 26, 2014 7:02:16 PM UTC+5:30, Michael Hunger wrote:
>
> What does your entity look like?
>
> Sent from mobile device
>
> Am 26.06.2014 um 14:52 schrieb Mamta Thakur  >:
>
> Hi All,
>
> We recently upgraded the Neo4j version to 2.0.3 and SDN to 3.1.0. Data 
> upgrade happened successfully.
> We were able to run some of the APIs successfully where as some gave 
> issues.
>
> 
> org.springframework.data
>   spring-data-neo4j
>   3.1.0.RELEASE
> 
>
> Code:
>  Iterator repoItr =
> memberRepository.findAllByPropertyValue("id",
> Long.valueOf(id)).iterator();
>
> Looks like the method is deprecated, but do we have an alternate to this 
> method?
> Tried findAllBySchemaPropertyValue("id", id), but that did not return 
> anything.
>
> Error Stack:
>
> org.springframework.dao.InvalidDataAccessApiUsageException: Can lookup 
> label based property from legacy index
> at 
> org.springframework.data.neo4j.support.Neo4jTemplate.getIndex(Neo4jTemplate.java:640)
> at 
> org.springframework.data.neo4j.repository.LegacyIndexSearcher.getIndex(LegacyIndexSearcher.java:40)
> at 
> org.springframework.data.neo4j.repository.LegacyIndexSearcher.getIndexHits(LegacyIndexSearcher.java:75)
> at 
> org.springframework.data.neo4j.repository.LegacyIndexSearcher.access$200(LegacyIndexSearcher.java:21)
> at 
> org.springframework.data.neo4j.repository.LegacyIndexSearcher$3.query(LegacyIndexSearcher.java:132)
> at 
> org.springframework.data.neo4j.repository.LegacyIndexSearcher.queryResult(LegacyIndexSearcher.java:139)
> at 
> org.springframework.data.neo4j.repository.LegacyIndexSearcher.findAllByPropertyValue(LegacyIndexSearcher.java:130)
> at 
> org.springframework.data.neo4j.repository.AbstractGraphRepository.findAllByPropertyValue(AbstractGraphRepository.java:170)
> at 
> org.springframework.data.neo4j.repository.AbstractGraphRepository.findAllByPropertyValue(AbstractGraphRepository.java:181)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at 
> org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:405)
> at 
> org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:390)
> at 
> org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:344)
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at 
> org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
> at 
> org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
> at 
> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at 
> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:155)
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at 
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
> at com.sun.proxy.$Proxy53.findAllByPropertyValue(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java

[Neo4j] findAllByPropertyValue Deprecated in SDN 3.1.0, throws error

2014-06-26 Thread Mamta Thakur
Hi All,

We recently upgraded the Neo4j version to 2.0.3 and SDN to 3.1.0. Data 
upgrade happened successfully.
We were able to run some of the APIs successfully where as some gave issues.


org.springframework.data
  spring-data-neo4j
  3.1.0.RELEASE


Code:
 Iterator repoItr =
memberRepository.findAllByPropertyValue("id",
Long.valueOf(id)).iterator();

Looks like the method is deprecated, but do we have an alternate to this 
method?
Tried findAllBySchemaPropertyValue("id", id), but that did not return 
anything.

Error Stack:

org.springframework.dao.InvalidDataAccessApiUsageException: Can lookup 
label based property from legacy index
at 
org.springframework.data.neo4j.support.Neo4jTemplate.getIndex(Neo4jTemplate.java:640)
at 
org.springframework.data.neo4j.repository.LegacyIndexSearcher.getIndex(LegacyIndexSearcher.java:40)
at 
org.springframework.data.neo4j.repository.LegacyIndexSearcher.getIndexHits(LegacyIndexSearcher.java:75)
at 
org.springframework.data.neo4j.repository.LegacyIndexSearcher.access$200(LegacyIndexSearcher.java:21)
at 
org.springframework.data.neo4j.repository.LegacyIndexSearcher$3.query(LegacyIndexSearcher.java:132)
at 
org.springframework.data.neo4j.repository.LegacyIndexSearcher.queryResult(LegacyIndexSearcher.java:139)
at 
org.springframework.data.neo4j.repository.LegacyIndexSearcher.findAllByPropertyValue(LegacyIndexSearcher.java:130)
at 
org.springframework.data.neo4j.repository.AbstractGraphRepository.findAllByPropertyValue(AbstractGraphRepository.java:170)
at 
org.springframework.data.neo4j.repository.AbstractGraphRepository.findAllByPropertyValue(AbstractGraphRepository.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:405)
at 
org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:390)
at 
org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:344)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at 
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at 
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at 
org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:155)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy53.findAllByPropertyValue(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at 
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at 
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy60.findAllByPropertyValue(Unknown Source)

Thanks,
Mamta.

-- 
You received this mes

Re: [Neo4j] Upgrading neo4j 1.9.3 to 2.0.3 fails with Invalid log format version found, expected 3 but was 2

2014-06-18 Thread Mamta Thakur
Thanks Michael removing the graph.db/index/lucene.log.* helped and I am 
able to access few of APIs. So I think we are good with upgrade.
Some complains for older version of cypher that uses "?". 

"and you _might_ need to create a transaction against an index, like 
creating
an index and deleting it again, e.g. from java code or the shell.

db.index().forNodex("foo").delete()"

Do I still need to do this? Wouldn't this clear all the indexes that we 
have for all the different type of nodes? say "foo" and "bar". 


Regards,
Mamta.

On Tuesday, June 17, 2014 8:51:36 PM UTC+5:30, Michael Hunger wrote:
>
> No, as you have a clean shutdown all the data is in the store.
>
> Sent from mobile device
>
> Am 17.06.2014 um 16:55 schrieb Mamta Thakur  >:
>
> Hi Michael,
>
> Does that mean I will loose the existing index as well? How would any of 
> my queries work?
>
> I fixed some of the @RelationshipEntity that did not have an @GraphId 
> required with 2.0.3.
> Now I don't get this error on start up rather I get this error when 
> shutting down the server.
>
> ~Mamta.
>
> On Tuesday, June 17, 2014 7:36:10 PM UTC+5:30, Michael Hunger wrote:
>>
>> Btw. just got the info that it is fixed and will be part of 2.0.4
>>
>> https://github.com/neo4j/neo4j/commit/37371aa (Thanks Jake!)
>>
>> Michael
>> Am 17.06.2014 um 14:55 schrieb Michael Hunger <
>> michael...@neotechnology.com>:
>>
>> This is a know issue which is currently worked on,
>>
>> can you delete the logical log files of the lucene index after your 
>> upgrade?
>>
>> that means
>>
>> rm graph.db/index/lucene.log.*
>>
>> and you _might_ need to create a transaction against an index, like 
>> creating
>> an index and deleting it again, e.g. from java code or the shell.
>>
>> db.index().forNodex("foo").delete()
>>
>>
>>
>> Thanks a lot
>>
>> Michael
>>
>> Am 17.06.2014 um 09:59 schrieb Mamta Thakur :
>>
>> Hi,
>>
>> I have been trying to upgrade neo4j from 1.9.3 to 2.0.3. SDN 
>> from 2.3.1.RELEASE to 3.1.0.RELEASE.
>>
>> Followed the steps listed @ 
>> http://docs.neo4j.org/chunked/stable/deployment-upgrading.html#explicit-upgrade
>> I try bringing up the server with the upgrade configuration.There are a 
>> few new folders created in the db store. One among which is upgrade_backup 
>> and messages log there says upgrade happened.
>>
>> 2014-06-17 07:16:55.286+ INFO  [o.n.k.i.DiagnosticsManager]: --- 
>> INITIALIZED diagnostics END ---
>> 2014-06-17 07:17:00.216+ INFO  [o.n.k.i.n.s.StoreFactory]: Starting 
>> upgrade of database store files
>> 2014-06-17 07:17:00.225+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
>> upgrade 10% complete
>> 2014-06-17 07:17:00.228+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
>> upgrade 20% complete
>> 2014-06-17 07:17:00.231+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
>> upgrade 30% complete
>> 2014-06-17 07:17:00.233+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
>> upgrade 40% complete
>> 2014-06-17 07:17:00.236+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
>> upgrade 50% complete
>> 2014-06-17 07:17:00.239+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
>> upgrade 60% complete
>> 2014-06-17 07:17:00.241+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
>> upgrade 70% complete
>> 2014-06-17 07:17:00.244+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
>> upgrade 80% complete
>> 2014-06-17 07:17:00.247+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
>> upgrade 90% complete
>> 2014-06-17 07:17:00.249+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
>> upgrade 100% complete
>> 2014-06-17 07:17:03.776+ INFO  [o.n.k.i.n.s.StoreFactory]: Finished 
>> upgrade of database store files
>>
>> But I get the error with log/index.
>>
>> Exception when stopping 
>> org.neo4j.index.impl.lucene.LuceneDataSource@42a792f0 
>> org.neo4j.kernel.impl.tran
>> saction.xaframework.IllegalLogFormatException: Invalid log format version 
>> found, expected 3 but was 2. To be able to upgrade from an older log format 
>> version there must have been a clean shutdown of the database
>> java.lang.RuntimeException: 
>> org.neo4j.kernel.impl.transaction.xaframework.IllegalLogFormatException: 
>> Invalid log format version found, expected 3 but wa
>> s 2. To be able to upgrade from an older log format version there must 
>> have been a clean shutdown of the database
>> at 
>> org.neo4j.kernel.im

Re: [Neo4j] Upgrading neo4j 1.9.3 to 2.0.3 fails with Invalid log format version found, expected 3 but was 2

2014-06-17 Thread Mamta Thakur
Hi Michael,

Does that mean I will loose the existing index as well? How would any of my 
queries work?

I fixed some of the @RelationshipEntity that did not have an @GraphId 
required with 2.0.3.
Now I don't get this error on start up rather I get this error when 
shutting down the server.

~Mamta.

On Tuesday, June 17, 2014 7:36:10 PM UTC+5:30, Michael Hunger wrote:
>
> Btw. just got the info that it is fixed and will be part of 2.0.4
>
> https://github.com/neo4j/neo4j/commit/37371aa (Thanks Jake!)
>
> Michael
> Am 17.06.2014 um 14:55 schrieb Michael Hunger <
> michael...@neotechnology.com >:
>
> This is a know issue which is currently worked on,
>
> can you delete the logical log files of the lucene index after your 
> upgrade?
>
> that means
>
> rm graph.db/index/lucene.log.*
>
> and you _might_ need to create a transaction against an index, like 
> creating
> an index and deleting it again, e.g. from java code or the shell.
>
> db.index().forNodex("foo").delete()
>
>
>
> Thanks a lot
>
> Michael
>
> Am 17.06.2014 um 09:59 schrieb Mamta Thakur  >:
>
> Hi,
>
> I have been trying to upgrade neo4j from 1.9.3 to 2.0.3. SDN 
> from 2.3.1.RELEASE to 3.1.0.RELEASE.
>
> Followed the steps listed @ 
> http://docs.neo4j.org/chunked/stable/deployment-upgrading.html#explicit-upgrade
> I try bringing up the server with the upgrade configuration.There are a 
> few new folders created in the db store. One among which is upgrade_backup 
> and messages log there says upgrade happened.
>
> 2014-06-17 07:16:55.286+ INFO  [o.n.k.i.DiagnosticsManager]: --- 
> INITIALIZED diagnostics END ---
> 2014-06-17 07:17:00.216+ INFO  [o.n.k.i.n.s.StoreFactory]: Starting 
> upgrade of database store files
> 2014-06-17 07:17:00.225+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
> upgrade 10% complete
> 2014-06-17 07:17:00.228+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
> upgrade 20% complete
> 2014-06-17 07:17:00.231+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
> upgrade 30% complete
> 2014-06-17 07:17:00.233+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
> upgrade 40% complete
> 2014-06-17 07:17:00.236+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
> upgrade 50% complete
> 2014-06-17 07:17:00.239+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
> upgrade 60% complete
> 2014-06-17 07:17:00.241+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
> upgrade 70% complete
> 2014-06-17 07:17:00.244+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
> upgrade 80% complete
> 2014-06-17 07:17:00.247+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
> upgrade 90% complete
> 2014-06-17 07:17:00.249+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
> upgrade 100% complete
> 2014-06-17 07:17:03.776+ INFO  [o.n.k.i.n.s.StoreFactory]: Finished 
> upgrade of database store files
>
> But I get the error with log/index.
>
> Exception when stopping 
> org.neo4j.index.impl.lucene.LuceneDataSource@42a792f0 
> org.neo4j.kernel.impl.tran
> saction.xaframework.IllegalLogFormatException: Invalid log format version 
> found, expected 3 but was 2. To be able to upgrade from an older log format 
> version there must have been a clean shutdown of the database
> java.lang.RuntimeException: 
> org.neo4j.kernel.impl.transaction.xaframework.IllegalLogFormatException: 
> Invalid log format version found, expected 3 but wa
> s 2. To be able to upgrade from an older log format version there must 
> have been a clean shutdown of the database
> at 
> org.neo4j.kernel.impl.transaction.xaframework.LogPruneStrategies$TransactionTimeSpanPruneStrategy$1.reached(LogPruneStrategies.java:250)
> at 
> org.neo4j.kernel.impl.transaction.xaframework.LogPruneStrategies$AbstractPruneStrategy.prune(LogPruneStrategies.java:78)
> at 
> org.neo4j.kernel.impl.transaction.xaframework.LogPruneStrategies$TransactionTimeSpanPruneStrategy.prune(LogPruneStrategies.java:222)
> at 
> org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.close(XaLogicalLog.java:742)
> at 
> org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:69)
> at 
> org.neo4j.index.impl.lucene.LuceneDataSource.stop(LuceneDataSource.java:310)
> at 
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
> at 
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.shutdown(LifeSupport.java:547)
> at 
> org.neo4j.kernel.lifecycle.LifeSupport.remove(LifeSupport.java:339)
> at 
> org.neo4j.kernel.impl.transaction.XaDataSourceManager.unregisterDataSource(XaDataSourceManager.java:272)
> at 
> org.neo4j.index.lucene.Lucen

[Neo4j] Upgrading neo4j 1.9.3 to 2.0.3 fails with Invalid log format version found, expected 3 but was 2

2014-06-17 Thread Mamta Thakur
Hi,

I have been trying to upgrade neo4j from 1.9.3 to 2.0.3. SDN 
from 2.3.1.RELEASE to 3.1.0.RELEASE.

Followed the steps listed 
@ 
http://docs.neo4j.org/chunked/stable/deployment-upgrading.html#explicit-upgrade
I try bringing up the server with the upgrade configuration.There are a few 
new folders created in the db store. One among which is upgrade_backup and 
messages log there says upgrade happened.

2014-06-17 07:16:55.286+ INFO  [o.n.k.i.DiagnosticsManager]: --- 
INITIALIZED diagnostics END ---
2014-06-17 07:17:00.216+ INFO  [o.n.k.i.n.s.StoreFactory]: Starting 
upgrade of database store files
2014-06-17 07:17:00.225+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
upgrade 10% complete
2014-06-17 07:17:00.228+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
upgrade 20% complete
2014-06-17 07:17:00.231+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
upgrade 30% complete
2014-06-17 07:17:00.233+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
upgrade 40% complete
2014-06-17 07:17:00.236+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
upgrade 50% complete
2014-06-17 07:17:00.239+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
upgrade 60% complete
2014-06-17 07:17:00.241+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
upgrade 70% complete
2014-06-17 07:17:00.244+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
upgrade 80% complete
2014-06-17 07:17:00.247+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
upgrade 90% complete
2014-06-17 07:17:00.249+ INFO  [o.n.k.i.n.s.StoreFactory]: Store 
upgrade 100% complete
2014-06-17 07:17:03.776+ INFO  [o.n.k.i.n.s.StoreFactory]: Finished 
upgrade of database store files

But I get the error with log/index.

Exception when stopping 
org.neo4j.index.impl.lucene.LuceneDataSource@42a792f0 
org.neo4j.kernel.impl.tran
saction.xaframework.IllegalLogFormatException: Invalid log format version 
found, expected 3 but was 2. To be able to upgrade from an older log format 
version there must have been a clean shutdown of the database
java.lang.RuntimeException: 
org.neo4j.kernel.impl.transaction.xaframework.IllegalLogFormatException: 
Invalid log format version found, expected 3 but wa
s 2. To be able to upgrade from an older log format version there must have 
been a clean shutdown of the database
at 
org.neo4j.kernel.impl.transaction.xaframework.LogPruneStrategies$TransactionTimeSpanPruneStrategy$1.reached(LogPruneStrategies.java:250)
at 
org.neo4j.kernel.impl.transaction.xaframework.LogPruneStrategies$AbstractPruneStrategy.prune(LogPruneStrategies.java:78)
at 
org.neo4j.kernel.impl.transaction.xaframework.LogPruneStrategies$TransactionTimeSpanPruneStrategy.prune(LogPruneStrategies.java:222)
at 
org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.close(XaLogicalLog.java:742)
at 
org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:69)
at 
org.neo4j.index.impl.lucene.LuceneDataSource.stop(LuceneDataSource.java:310)
at 
org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
at 
org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.shutdown(LifeSupport.java:547)
at 
org.neo4j.kernel.lifecycle.LifeSupport.remove(LifeSupport.java:339)
at 
org.neo4j.kernel.impl.transaction.XaDataSourceManager.unregisterDataSource(XaDataSourceManager.java:272)
at 
org.neo4j.index.lucene.LuceneKernelExtension.stop(LuceneKernelExtension.java:92)
at 
org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:155)
at 
org.neo4j.kernel.extension.KernelExtensions.stop(KernelExtensions.java:124)
at 
org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:155)
at 
org.neo4j.kernel.lifecycle.LifeSupport.shutdown(LifeSupport.java:185)
at 
org.neo4j.kernel.InternalAbstractGraphDatabase.shutdown(InternalAbstractGraphDatabase.java:801)
at 
org.springframework.data.neo4j.support.DelegatingGraphDatabase.shutdown(DelegatingGraphDatabase.java:270)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:327)
at 
org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:253)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:510)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingleton