-
Oct 22nd, 2011, 02:46 PM
#1
Spring Data Neo4j compiles under Sun JDK 1.6.0_27 fails under OpenJDK 1.6.0_23
Successful result Sun JDK:-
java -version
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)
---
[INFO] Reactor Summary:
[INFO]
[INFO] Spring Data Neo4j Parent .......................... SUCCESS [23.882s]
[INFO] Spring Data Neo4j ................................. SUCCESS [9:47.226s]
[INFO] Spring Data Neo4J Aspects ......................... SUCCESS [17:10.534s]
[INFO] Spring Data Neo4j REST Wrapper .................... SUCCESS [13:52.852s]
[INFO] Spring Data Neo4J Cross-Store Handling ............ SUCCESS [4:15.630s]
[INFO] Spring Data Neo4j Distribution .................... SUCCESS [23.776s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 46:03.241s
Compile time errors OpenJDK
21/10/11
java -version
java version "1.6.0_23"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre10-0ubuntu5)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Neo4jEntityConverterImpl.java:[87,87] incompatible types; no instance(s) of type variable(s) E exist so that org.springframework.data.mapping.model.BeanWrapper <E,R> conforms to org.springframework.data.mapping.model.BeanWrapper <org.springframework.data.neo4j.mapping.Neo4jPersi stentEntity<R>,R>
found : <E>org.springframework.data.mapping.model.BeanWrap per<E,R>
required: org.springframework.data.mapping.model.BeanWrapper <org.springframework.data.neo4j.mapping.Neo4jPersi stentEntity<R>,R>
[ERROR] Neo4jEntityConverterImpl.java:[131,83] incompatible types; no instance(s) of type variable(s) E exist so that org.springframework.data.mapping.model.BeanWrapper <E,T> conforms to org.springframework.data.mapping.model.BeanWrapper <org.springframework.data.neo4j.mapping.Neo4jPersi stentEntity<T>,T>
found : <E>org.springframework.data.mapping.model.BeanWrap per<E,T>
required: org.springframework.data.mapping.model.BeanWrapper <org.springframework.data.neo4j.mapping.Neo4jPersi stentEntity<T>,T>
[ERROR] Neo4jEntityFetchHandler.java:[54,106] incompatible types; no instance(s) of type variable(s) E exist so that org.springframework.data.mapping.model.BeanWrapper <E,java.lang.Object> conforms to org.springframework.data.mapping.model.BeanWrapper <org.springframework.data.neo4j.mapping.Neo4jPersi stentEntity<java.lang.Object>,java.lang.Object>
found : <E>org.springframework.data.mapping.model.BeanWrap per<E,java.lang.Object>
required: org.springframework.data.mapping.model.BeanWrapper <org.springframework.data.neo4j.mapping.Neo4jPersi stentEntity<java.lang.Object>,java.lang.Object>
[ERROR] Neo4jEntityFetchHandler.java:[62,102] incompatible types; no instance(s) of type variable(s) E exist so that org.springframework.data.mapping.model.BeanWrapper <E,java.lang.Object> conforms to org.springframework.data.mapping.model.BeanWrapper <org.springframework.data.neo4j.mapping.Neo4jPersi stentEntity<java.lang.Object>,java.lang.Object>
found : <E>org.springframework.data.mapping.model.BeanWrap per<E,java.lang.Object>
required: org.springframework.data.mapping.model.BeanWrapper <org.springframework.data.neo4j.mapping.Neo4jPersi stentEntity<java.lang.Object>,java.lang.Object>
[INFO] 4 errors
-
Oct 23rd, 2011, 11:25 AM
#2
Thank you very much for your feedback.
Unfortunately I have no place to replicate that, the linux box I have access to compiles fine.
Could you perhaps fork the project and fix it on your system and issue a pull request?
Thanks Michael
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] Spring Data Neo4j Parent .............................. SUCCESS [2.816s]
[INFO] Spring Data Neo4j ..................................... SUCCESS [26.391s]
[INFO] Spring Data Neo4J Aspects ............................. SUCCESS [21.179s]
[INFO] Spring Data Neo4j REST Wrapper ........................ SUCCESS [34.921s]
[INFO] Spring Data Neo4J Cross-Store Handling ................ SUCCESS [6.100s]
[INFO] Spring Data Neo4j Distribution ........................ SUCCESS [4.469s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 37 seconds
[INFO] Finished at: Sun Oct 23 18:20:26 CEST 2011
[INFO] Final Memory: 108M/259M
[INFO] ------------------------------------------------------------------------
root@cineasts:~/spring-data-neo4j# $JAVA_HOME/bin/java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.9) (6b20-1.9.9-0ubuntu1~10.10.2)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
root@cineasts:~/spring-data-neo4j# mvn -version
Apache Maven 2.2.1 (rdebian-4)
Java version: 1.6.0_20
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.35-30-server" arch: "amd64" Family: "unix"
Last edited by MichaelHunger; Oct 23rd, 2011 at 11:42 AM.
-
Oct 23rd, 2011, 02:38 PM
#3
Hello Michael,
Thank you for confirming that spring data does compile with openJDK. I believe my problem is low memory on my machine. I think the two VMs deal with memory management differently. I am getting more memory and should be able to confirm if this is the case. Anyway, it must be something local to my machine rather than needing to be fixed in a fork. I will let you know when I have confirmed this either way.
-
Oct 23rd, 2011, 03:59 PM
#4
Adam,
actually I think it is really problem of different java compilers, they are all very sensible wrt to generics. So we have to resolve that issue. Can you create a jira issue for it? http://spring.neo4j.org/issues
Thanks
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules