weird NPE

32 views
Skip to first unread message

Warner Onstine

unread,
Sep 24, 2012, 12:40:49 AM9/24/12
to ne...@googlegroups.com
Hi all, I'm getting a weird NPE when saving a node, it doesn't appear
to be happening consistently.

I'm using M05 with spring data 2.1.0 (snapshot).

Any ideas?

java.lang.NullPointerException
at org.neo4j.index.impl.lucene.IndexType$CustomType.get(IndexType.java:135)
at org.neo4j.index.impl.lucene.LuceneIndex.get(LuceneIndex.java:207)
at org.springframework.data.neo4j.repository.AbstractGraphRepository.getIndexHits(AbstractGraphRepository.java:187)
at org.springframework.data.neo4j.repository.AbstractGraphRepository.findByPropertyValue(AbstractGraphRepository.java:172)
at org.springframework.data.neo4j.repository.AbstractGraphRepository.findByPropertyValue(AbstractGraphRepository.java:159)
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:616)
at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:334)
at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:319)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
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:202)
at $Proxy55.findByPropertyValue(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:616)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at $Proxy56.findByPropertyValue(Unknown Source)
at com.clearboxmedia.srs.services.PersistanceService.save(PersistanceService.java:85)
at com.clearboxmedia.srs.rest.polling.EventfulEventPollingService.poll(EventfulEventPollingService.java:166)
at com.clearboxmedia.srs.rest.polling.EventfulEventPollingService$$FastClassByCGLIB$$320c0a13.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
at com.clearboxmedia.srs.rest.polling.EventfulEventPollingService$$EnhancerByCGLIB$$b5a9e0e1.poll(<generated>)
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:616)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$JResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:236)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1483)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1414)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:679)

Mattias Persson

unread,
Sep 24, 2012, 4:27:56 AM9/24/12
to ne...@googlegroups.com
That's a very poor error message, but it seems to be you trying to index a null value

2012/9/24 Warner Onstine <war...@gmail.com>

--





--
Mattias Persson, [mat...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com

Michael Hunger

unread,
Sep 24, 2012, 4:40:05 AM9/24/12
to ne...@googlegroups.com
Can you make sure that the index-name is correct ? No space on either end etc ?
> --
>
>

Warner Onstine

unread,
Sep 24, 2012, 10:26:45 AM9/24/12
to ne...@googlegroups.com
Ah, shouldn't be, but I'll doublecheck, Thanks!

-warner
> --
>
>

Trevor Mack

unread,
Sep 24, 2012, 11:49:10 AM9/24/12
to ne...@googlegroups.com
Warner, I also am seeing this same issue with my configuration upgrade to SDN 2.1.0.RC4 with neo4j 1.8.RC1 ... though reverting the SDN version back to 2.1.0.RC2 works fine (all domain tests pass)

Also tried just now to use SDN 2.1.0.RC3 and same thing as SDN 2.1.0.RC4 all repository tests fail even though under RC2 they passed locally.

--Trevor

Warner Onstine

unread,
Sep 24, 2012, 11:52:26 AM9/24/12
to ne...@googlegroups.com
Interesting, thanks for sharing. Doing some testing now so I'll look
into that to see if that may be the issue if my tests continue to fail
on non-null (empty) values.

-warner
> --
>
>

Michael Hunger

unread,
Sep 24, 2012, 12:58:28 PM9/24/12
to ne...@googlegroups.com
It would be awesome if you could share a test-case that exhibits the behavior. So we can get it fixed for GA.

Michael
> --
>
>

Warner Onstine

unread,
Sep 24, 2012, 2:12:34 PM9/24/12
to ne...@googlegroups.com
Mine did indeed come from null data trying to be inserted into the
graph db. Thanks for the help!

-warner
> --
>
>
Reply all
Reply to author
Forward
0 new messages