[Neo4j] org.neo4j.graphdb.NotFoundException

2014-09-15 Thread sunyulovetech
Hi,

I am using neo4j 1.9.7,SDN 2.2.0.RELEASE and haproxy 1.4.24 to run the 
environment. I have 6 server,1 master and 5 slavers .Write to the all 
server. 
Now I always get these exception:

org.springframework.dao.DataRetrievalFailureException: 3189664; nested 
exception is org.neo4j.graphdb.NotFoundException: 3189664
org.springframework.dao.DataRetrievalFailureException: 3189664; nested 
exception is org.neo4j.graphdb.NotFoundException: 3189664
at 
org.springframework.data.neo4j.support.Neo4jExceptionTranslator.translateExceptionIfPossible(Neo4jExceptionTranslator.java:59)
at 
org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:58)
at 
org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:213)
at 
org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:163)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy46.findById(Unknown Source)
at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source)
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:319)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at com.sun.proxy.$Proxy47.findById(Unknown Source)
at 
cn.gaialine.talkage2.service.tcardManager.impl.tcardManagerServiceImpl.tcardPraise(tcardManagerServiceImpl.java:676)
 

at 
cn.gaialine.talkage2.controller.TcardManagerController.tcardPraise(TcardManagerController.java:579)
at sun.reflect.GeneratedMethodAccessor225.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)
at 
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
at 
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
at 
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
at 
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
at 
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at 
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:698)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1506)
at 
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1486)
at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)
at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:138)
at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:540)
at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:213)
at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1096)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:432)
at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:175)
at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1030)
at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:136)
at 
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:201)
at 
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at 
org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:317)
at 
org.eclipse.jetty.server.handler.Handl

[Neo4j] Re: 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 sunyulovetech
I also encountered this problem.My solution is that:
  1.put the data import single neo4j.(one instance)
  2.update some data(any one can)
  3.start the ha cluster.
  Note:
First startup the neo4j instance that import the data

在 2014年6月17日星期二UTC+8下午3时59分32秒,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.b

[Neo4j] Re: In SDN, @Labels creates two labels for one node one starting with _ and another without _.

2014-06-12 Thread sunyulovetech
Hi PM,
 I don't know how your code is.So I am talking about my idea.
 In the SDN,if you create node with cypher query language,the label must be 
added _ . If you use save() ,SDN can add the label automatic without _ .The 
SDN 3.0.1 default that label don't hava _ .

在 2014年6月12日星期四UTC+8下午7时41分35秒,PM写道:
>
> Hi Michael  ,
>
> I am using SDN 3.0.1 and Neo4j 2.0.3 and trying to create node labels 
> using @Labels. But i m not understand that why two labels are creating for 
> same node one starting with _ and another without _ . Is there any specific 
> reason behind this or there should be some configuration so i can stop to 
> create label with _. Because i don want any label in my db which starting 
> from _.
>
>
>
>
> Thanks,
> Pallavi  
>

-- 
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] Neo4j 1.9.7 Java heap space

2014-06-02 Thread sunyulovetech
About the "You can also increase your heap or have the queries only work on 
a batch of data."
If the data is very large,the increase will no limit. This is not a suit 
way of doing. 
Now I using spring data neo4j.I can use template to work on a batch of 
data, but i use @Query to implement it.So I need one queries to do.
Thanks

在 2014年5月31日星期六UTC+8上午7时50分00秒,Michael Hunger写道:
>
> How about splitting it in multiple queries?
>
> START node=node(12346L)
> MATCH node - [r2:FOWARD] - user - [r3] - ()
> DELETE r3,user;
>
>
> START node=node(12346L)
> MATCH node - [r1] - ()
> DELETE r1,node;
>
> You can also increase your heap or have the queries only work on a batch 
> of data.
>
> How much is "rich"-relationships?
>
>
>
>
>
> On Fri, May 30, 2014 at 5:25 AM, > 
> wrote:
>
>> Hi there,
>>
>> I use the neo4j 1.9.7 enterprise version. 
>>
>> Now I need to delete some graph. Following that :
>>
>> START node=node(12346L)
>> MATCH node - [r2:FOWARD] - user - [r3] - user2
>> DELETE r3
>> WITH node,user
>> DELETE user
>> WITH node
>> MATCH node - [r1] - user1
>> DELETE r1
>> WITH node
>> DELETE node
>>
>> When the data is very big,it will tell me java heap space . The 
>> relationship all are rich-relationship.
>>
>> I hope to know that whether it has more better for this.
>>
>> Thanks
>>
>> -- 
>> 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.


Re: [Neo4j] Neo4j 1.9.7 Java heap space

2014-06-02 Thread sunyulovetech
I am sorry for that "rich "-relationship .It means that relationship has 
properties.
Now I need to do it using one query . I remember that at neo4j manual,it 
says that "This query isn’t for deleting large amounts of data, but is nice 
when playing around with small example data sets" for DELETE.I need to know 
wether it has other syntax to do it.
Can you help me? 
Thank you very much!

在 2014年5月31日星期六UTC+8上午7时50分00秒,Michael Hunger写道:
>
> How about splitting it in multiple queries?
>
> START node=node(12346L)
> MATCH node - [r2:FOWARD] - user - [r3] - ()
> DELETE r3,user;
>
>
> START node=node(12346L)
> MATCH node - [r1] - ()
> DELETE r1,node;
>
> You can also increase your heap or have the queries only work on a batch 
> of data.
>
> How much is "rich"-relationships?
>
>
>
>
>
> On Fri, May 30, 2014 at 5:25 AM, > 
> wrote:
>
>> Hi there,
>>
>> I use the neo4j 1.9.7 enterprise version. 
>>
>> Now I need to delete some graph. Following that :
>>
>> START node=node(12346L)
>> MATCH node - [r2:FOWARD] - user - [r3] - user2
>> DELETE r3
>> WITH node,user
>> DELETE user
>> WITH node
>> MATCH node - [r1] - user1
>> DELETE r1
>> WITH node
>> DELETE node
>>
>> When the data is very big,it will tell me java heap space . The 
>> relationship all are rich-relationship.
>>
>> I hope to know that whether it has more better for this.
>>
>> Thanks
>>
>> -- 
>> 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] Neo4j 1.9.7 Java heap space

2014-05-30 Thread sunyulovetech
Hi there,

I use the neo4j 1.9.7 enterprise version. 

Now I need to delete some graph. Following that :

START node=node(12346L)
MATCH node - [r2:FOWARD] - user - [r3] - user2
DELETE r3
WITH node,user
DELETE user
WITH node
MATCH node - [r1] - user1
DELETE r1
WITH node
DELETE node

When the data is very big,it will tell me java heap space . The 
relationship all are rich-relationship.

I hope to know that whether it has more better for this.

Thanks

-- 
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.