New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Id must be assignable to Serializable error with 4.1.3 #366
Comments
Hi @ssherwood. I will take a look soon. In the mean time can you try 4.2.0.BUILD-SNAPSHOT and see if your problem persists. You can see an example on how to use the snapshot with Spring Boot 1.4.1 here: https://github.com/neo4j-examples/sdn4-university/tree/4.2.x. |
@mangrish I'm trying to emulate your work but I'm getting a new error:
I'm not sure what might be at issue (it might be my environment since I'm working behind a proxy and have to jump through hoops to get at SNAPSHOTS). I'll commit my code to https://github.com/ssherwood/demo-neo4j and try from home to be sure. |
@ssherwood Did you manage to resolve this problem? |
@vince-bickers No. I've tried a lot of things so far and have not had any succees unless I revert entirely back to Spring Boot 1.4.0. I'm doing these builds at home now and am running inside IntelliJ with a clean repo, so I can rule out a lot of environmental causes. For me, the Ingalls-BUILD-SNAPSHOT seems to be missing the Neo4jConfiguration class:
I noticed that the sdn4-university provides its own Neo4jConfiguration class which seems to be defeating the purpose of using Spring Boot's autoconfig approach. I suspect this is why your examples are not experiencing the same problem. When I switch to Hopper-SR4, the config class returns and I can actually start up the application but the serialization error returns:
Interestingly, the nodes actually get created in Neo4j but I can view them with the Spring Data Rest interfaces. |
I have the same problem than ssherwood with spring boot 1.4.2.RELEASE and spring-data-neo4j 4.2.0-SNAPSHOT:
|
This issue looks to be resolved after this commit from @luanne 3c26a64 I ran into the same issue. The cause was due to a bug when checking whether or not an ID field was either an enum or a simple type. The bug was introduced with this commit: 37179a3. This was diagnosed by @xenoterracide in this comment: spring-projects/spring-boot#6709 (comment) There is an issue at the moment when trying to use the This bug will need to be fixed in the Spring Boot auto-configuration project. Since I do not have the history on why Spring Data Neo4j will continue to be broken for applications using Spring Data REST repositories until this is resolved. There is no workaround in the meantime. |
Per previous conversation about this issue started here: spring-projects/spring-boot#6709
When upgrading to Spring Boot 1.4.1 our projects started generating errors:
Reverting back to Boot 1.4.0 reverted to expected behavior. It appears this is some kind of regression introduced in 4.1.3 as that is the default version in 1.4.1.
A simple project with the error is here: https://github.com/ssherwood/demo-neo4j
The text was updated successfully, but these errors were encountered: