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.
4 comments
Comment actions Permalink
Hello Hamed,

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.
0
Comment actions Permalink
Hi,

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?

  • Hamed
0
Comment actions Permalink
Hamed,

Please, upload /teamsysdata folder to our ftp and let us know when it's done.

Thank you.
0
Comment actions Permalink
I have exactly the same error after upgrading from 5.0.5 to 5.1.
I have standalone Tomcat on fully patched Centos 6 server.
I uploaded db on your ftp (.uploads), filename is YouTrack-1258-4_______.tar.gz

java.lang.ClassCastException: UserGroup: id = 24-0[up-to-date]' cannot be cast to Entity of type 'User'
    jetbrains.teamsys.dnq.runtime.util.DnqUtils.cast(DnqUtils.java:236)
    jetbrains.charisma.main.CurrentUserResidence.getResident(CurrentUserResidence.java:15)
    jetbrains.charisma.main.YouTrackInit$21$1.invoke(YouTrackInit.java:373)
    jetbrains.teamsys.dnq.runtime.txn._Txn.run(_Txn.java:18)
    jetbrains.charisma.main.YouTrackInit$21.startRequestProcessing(YouTrackInit.java:371)
    webr.framework.controller.BaseApplication$3.visit(BaseApplication.java:100)
    webr.framework.controller.BaseApplication$3.visit(BaseApplication.java:98)
    jetbrains.mps.webr.runtime.servlet.MainServlet.notifyListeners(MainServlet.java:59)
    webr.framework.controller.BaseApplication.notifyListeners(BaseApplication.java:140)
    webr.framework.controller.BaseApplication.startRequestProcessing(BaseApplication.java:98)
    jetbrains.mps.webr.runtime.servlet.MainServlet.doGet(MainServlet.java:106)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    jetbrains.mps.webr.runtime.filter.QueryParameterFilter.doFilter(QueryParameterFilter.java:25)
    org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:137)
    org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82)
    org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:242)
prettyPrint();
0

Please sign in to leave a comment.