Announcement Announcement Module
Collapse
No announcement yet.
SDN 2.3.0.M1 aspectj problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SDN 2.3.0.M1 aspectj problem

    My applications tests and also cineast-aspectj tests fail using SDN 2.3.0.M1 (and also snapshot) while simple mapping cineast pass the tests

    The summary of error is
    Code:
    Tests in error: 
      testGetMovie(org.neo4j.cineasts.service.MoviesRepositoryTests): org/neo4j/graphdb/ResourceIterable
      testGetMovieRecommendations(org.neo4j.cineasts.service.MoviesRepositoryTests): org/neo4j/cypher/javacompat/ExecutionResult
      testFindTwoMovies(org.neo4j.cineasts.service.MoviesRepositoryTests): org/neo4j/cypher/javacompat/ExecutionResult
      testFindTwoMoviesButRestrictToOne(org.neo4j.cineasts.service.MoviesRepositoryTests): org/neo4j/cypher/javacompat/ExecutionResult
      testImportMovie(org.neo4j.cineasts.movieimport.MovieDbImportServiceTests): org/neo4j/cypher/javacompat/ExecutionResult
      testImportMovieTwice(org.neo4j.cineasts.movieimport.MovieDbImportServiceTests): org/neo4j/cypher/javacompat/ExecutionResult
      testImportPerson(org.neo4j.cineasts.movieimport.MovieDbImportServiceTests): org/neo4j/cypher/javacompat/ExecutionResult
    It's a ClassDefNotFoundError for both ResourceIterable and ExecutionResult

  • #2
    What is the Neo4j Version you use?

    2.3.0 is focused on Neo4j 1.9 as far as I can remember.

    Comment


    • #3
      Hi Michael, I tried with neo4j 1.9, but maybe I had some dependency coming from my pom that created some problem. The application is using SDN 2.2.2 with neo4j 1.8.1 and I wanted to try 2.3 with neo4j 1.9

      Comment


      • #4
        Can you try the newly released 2.3.0.RC1 again?

        Comment


        • #5
          I tried and I have the same problem on both my application and cineasts-aspects. I'm on Linux, kernel 3.8 64 bit with OpenJDK 1.7.0_21

          Edit: I also tried with Oracle JDK 1.7.0_25 and had the same result.

          This is what I did for cineast aspects:

          - dowloaded the current master zip from https://github.com/SpringSource/spring-data-neo4j
          - chenged pom.xml with:

          Code:
          <properties>
          		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
          		<spring.version>3.2.3.RELEASE</spring.version>
                          <spring.security.version>3.1.4.RELEASE</spring.security.version>
          		<slf4j.version>1.6.1</slf4j.version>
          		<neo4j.version>1.9.2</neo4j.version>
          		<spring-data-neo4j.version>2.3.0.RC1</spring-data-neo4j.version>
          		<aspectj.version>1.6.12</aspectj.version>
          	</properties>
          - run maven test

          The tests fail with a classDefNotFoundError, here is the detailed error for MovieRepositoryTests -> testGetMovie

          Code:
          java.lang.NoClassDefFoundError: org/neo4j/graphdb/ResourceIterable
          	at java.lang.ClassLoader.defineClass1(Native Method)
          	at java.lang.ClassLoader.defineClass(ClassLoader.java:787)
          	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
          	at java.net.URLClassLoader.defineClass(URLClassLoader.java:447)
          	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
          	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
          	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
          	at java.security.AccessController.doPrivileged(Native Method)
          	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
          	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
          	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
          	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
          	at org.neo4j.cypher.javacompat.ExecutionEngine.execute(ExecutionEngine.java:79)
          	at org.springframework.data.neo4j.support.query.CypherQueryEngine.parseAndExecuteQuery(CypherQueryEngine.java:61)
          	at org.springframework.data.neo4j.support.query.CypherQueryEngine.query(CypherQueryEngine.java:49)
          	at org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.dispatchQuery(GraphRepositoryQuery.java:108)
          	at org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.execute(GraphRepositoryQuery.java:81)
          	at org.springframework.data.neo4j.repository.query.DerivedCypherRepositoryQuery.execute(DerivedCypherRepositoryQuery.java:39)
          	at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:312)
          	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.$Proxy44.findById(Unknown Source)
          	at org.neo4j.cineasts.service.MoviesRepositoryTests.testGetMovie_aroundBody0(MoviesRepositoryTests.java:38)
          	at org.neo4j.cineasts.service.MoviesRepositoryTests$AjcClosure1.run(MoviesRepositoryTests.java:1)
          	at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$around$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96cproceed(AbstractTransactionAspect.aj:59)
          	at org.springframework.transaction.aspectj.AbstractTransactionAspect$AbstractTransactionAspect$1.proceedWithInvocation(AbstractTransactionAspect.aj:65)
          	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
          	at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$around$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96c(AbstractTransactionAspect.aj:63)
          	at org.neo4j.cineasts.service.MoviesRepositoryTests.testGetMovie(MoviesRepositoryTests.java:36)
          	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:601)
          	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
          	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
          	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
          	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
          	at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
          	at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83)
          	at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
          	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)
          	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:88)
          	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
          	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
          	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
          	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
          	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
          	at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
          	at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
          	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
          	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)
          	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
          	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
          	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
          	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
          	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
          	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
          Caused by: java.lang.ClassNotFoundException: org.neo4j.graphdb.ResourceIterable
          	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
          	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
          	at java.security.AccessController.doPrivileged(Native Method)
          	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
          	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
          	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
          	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
          	... 63 more
          Last edited by alexmaz; Aug 7th, 2013, 10:13 AM.

          Comment

          Working...
          X