-
Notifications
You must be signed in to change notification settings - Fork 11
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
Random error while loading beans from neo4j #7
Comments
Hi @dmichels, thanks for the report. I will try to reproduce this. One question, are you using neo4j in embedded or remote mote ? |
Hi, I'm using neo4j in remote mode |
Hi, |
Hi, |
Hi Sepp, i have the same error. Its not randomly, it occurs each time after redeployment (onStop/onStart cycle) after changing a file locally. This bug happens each time sine the 1.3.0 version. This issue never occurs in the past versions like the 1.1.1. Can you please have a look? :) I guess something is not shutdown correctly. I have an additional stacktrace: Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: object is not an instance of declaring class; nested exception is java.lang.IllegalArgumentException: object is not an instance of declaring class Cheers, |
Oh :( Forgot this one over my vacations 📦 Will take a look at it tomorrow :P |
Okay problem found :) |
Nailed it org.springframework.data.repository.core.support.RepositoryFactorySupport#getRepositoryInformation has a nice cache !!11!!! the metadata comes from the correct classloader but the cache holds the old one omfg |
https://jira.springsource.org/browse/DATACMNS-395 well i think here it broke :) |
Bugreport at spring data is open https://jira.springsource.org/browse/DATACMNS-395#comment-96947 |
Hi, is it possible to invalide the cache programmatically onStop of the playApp? Cheers |
Okay version 1.3.1 fixes this one have fun guys |
Hi,
sometimes I get an error while trying to load a bean from the database. Not always, but somtimes.
[error] play - Cannot invoke the action, eventually got an error: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
[error] application -
! @6gfdalfig - Internal server error, for (POST) [/authenticate] ->
play.api.Application$$anon$1: Execution exception[[RuntimeException: java.lang.reflect.InvocationTargetException]]
at play.api.Application$class.handleError(Application.scala:293) ~[play_2.10.jar:2.2.1]
at play.api.DefaultApplication.handleError(Application.scala:399) [play_2.10.jar:2.2.1]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2$$anonfun$applyOrElse$3.apply(PlayDefaultUpstreamHandler.scala:261) [play_2.10.jar:2.2.1]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2$$anonfun$applyOrElse$3.apply(PlayDefaultUpstreamHandler.scala:261) [play_2.10.jar:2.2.1]
at scala.Option.map(Option.scala:145) [scala-library.jar:na]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2.applyOrElse(PlayDefaultUpstreamHandler.scala:261) [play_2.10.jar:2.2.1]
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at play.data.Form.bind(Form.java:391) ~[play-java_2.10.jar:2.2.1]
at play.data.Form.bindFromRequest(Form.java:215) ~[play-java_2.10.jar:2.2.1]
at controllers.Application.authenticate(Application.java:95) ~[na:na]
at Routes$$anonfun$routes$1$$anonfun$applyOrElse$5$$anonfun$apply$5.apply(routes_routing.scala:97) ~[na:na]
at Routes$$anonfun$routes$1$$anonfun$applyOrElse$5$$anonfun$apply$5.apply(routes_routing.scala:97) ~[na:na]
at play.core.Router$HandlerInvoker$$anon$7$$anon$2.invocation(Router.scala:183) ~[play_2.10.jar:2.2.1]
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_45]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_45]
at play.data.Form.bind(Form.java:388) ~[play-java_2.10.jar:2.2.1]
at play.data.Form.bindFromRequest(Form.java:215) ~[play-java_2.10.jar:2.2.1]
Caused by: java.lang.ClassCastException: neo4j.models.User cannot be cast to neo4j.models.User
at neo4j.services.UserService.authenticate(UserService.java:24) ~[na:na]
at controllers.Application$Login.validate(Application.java:60) ~[na:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_45]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_45]
It's strange that he can't cast from neo4j.models.User to neo4j.models.User.
But like I said: It fails randomly.
The text was updated successfully, but these errors were encountered: