Can't upgrade YouTrack 4 to 5: ClassCastException
Hey,
I'm trying to upgrade my YouTrack 4.2 installation to 5.0.3 (latest) version. When I restore the database, I get the following exception after starting YouTrack server:
java.lang.ClassCastException: WatchRule: id = 25-0[up-to-date]' cannot be cast to Entity of type 'User'
jetbrains.teamsys.dnq.runtime.util.DnqUtils.cast(DnqUtils.java:223)
jetbrains.charisma.main.CurrentUserResidence.getResident(CurrentUserResidence.java:15)
jetbrains.charisma.main.YouTrackInit$20$1.invoke(YouTrackInit.java:350)
jetbrains.teamsys.dnq.runtime.txn._Txn.run(_Txn.java:18)
jetbrains.charisma.main.YouTrackInit$20.startRequestProcessing(YouTrackInit.java:348)
webr.framework.controller.BaseApplication$3.visit(BaseApplication.java:92)
webr.framework.controller.BaseApplication$3.visit(BaseApplication.java:90)
jetbrains.mps.webr.runtime.servlet.MainServlet.notifyListeners(MainServlet.java:59)
webr.framework.controller.BaseApplication.notifyListeners(BaseApplication.java:123)
webr.framework.controller.BaseApplication.startRequestProcessing(BaseApplication.java:90)
jetbrains.mps.webr.runtime.servlet.MainServlet.doGet(MainServlet.java:106)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)
org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:118)
org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82)
org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:242)
I'm not sure if I'm doing something wrong or this is a bug.
I'm trying to upgrade my YouTrack 4.2 installation to 5.0.3 (latest) version. When I restore the database, I get the following exception after starting YouTrack server:
java.lang.ClassCastException: WatchRule: id = 25-0[up-to-date]' cannot be cast to Entity of type 'User'
jetbrains.teamsys.dnq.runtime.util.DnqUtils.cast(DnqUtils.java:223)
jetbrains.charisma.main.CurrentUserResidence.getResident(CurrentUserResidence.java:15)
jetbrains.charisma.main.YouTrackInit$20$1.invoke(YouTrackInit.java:350)
jetbrains.teamsys.dnq.runtime.txn._Txn.run(_Txn.java:18)
jetbrains.charisma.main.YouTrackInit$20.startRequestProcessing(YouTrackInit.java:348)
webr.framework.controller.BaseApplication$3.visit(BaseApplication.java:92)
webr.framework.controller.BaseApplication$3.visit(BaseApplication.java:90)
jetbrains.mps.webr.runtime.servlet.MainServlet.notifyListeners(MainServlet.java:59)
webr.framework.controller.BaseApplication.notifyListeners(BaseApplication.java:123)
webr.framework.controller.BaseApplication.startRequestProcessing(BaseApplication.java:90)
jetbrains.mps.webr.runtime.servlet.MainServlet.doGet(MainServlet.java:106)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)
org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:118)
org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82)
org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:242)
I'm not sure if I'm doing something wrong or this is a bug.
Please sign in to leave a comment.
Please, clarify on what server do you deploy YouTrack? Did you configure Jetty by yourself?
We have rarely reproduced issue on Tomcat.
In other way, you are able to provide us with the database, we can fix the problem locally.
Thank you.
Thanks for the reply,
I'm using the MSI installer for windows, which uses a built-in Tomcat, I suppose.
My database does not have any sensitive information, I'll be glad if I could help you find the issue by providing a copy. Just tell me what to do.
Is there anything beside that that I can do?
Please, upload /teamsysdata folder to our ftp and let us know when it's done.
Thank you.
I have standalone Tomcat on fully patched Centos 6 server.
I uploaded db on your ftp (.uploads), filename is YouTrack-1258-4_______.tar.gz