Youtrack 2.0 upgrade failure

Finally making the leap to update Youtrack from 2.0. I followed the instructions regarding the moses.jar. I stopped Tomcat to ensure no 'xd' files in my old database before running. The conversion seemed to go fine. It is when i start Tomcat and attempt to load Youtrack in the browser. I receive the following exception.

java.lang.ClassCastException: EnumFieldsBundle: id = 67-15[up-to-date] (Saved)' cannot be cast to Entity of type 'BuildsBundle'
    jetbrains.teamsys.dnq.runtime.util.DnqUtils.cast(DnqUtils.java:257)
    jetbrains.charisma.customfields.predefined.IssueBuildSuppliedField.insertMissingValues(IssueBuildSuppliedField.java:91)
    jetbrains.charisma.customfields.predefined.RefactoringSuppliedField$3.invoke(RefactoringSuppliedField.java:119)
    jetbrains.teamsys.dnq.runtime.txn._Txn.runNew(_Txn.java:253)
    jetbrains.charisma.customfields.predefined.RefactoringSuppliedField.addValues(RefactoringSuppliedField.java:115)
    jetbrains.charisma.customfields.predefined.RefactoringSuppliedField.apply(RefactoringSuppliedField.java:36)
    jetbrains.charisma.teamcity.refactoring.MigrateToBuildCustomFieldRefactoring.apply(MigrateToBuildCustomFieldRefactoring.java:28)
    jetbrains.charisma.refactoring.Refactoring$2.invoke(Refactoring.java:79)
    jetbrains.teamsys.dnq.runtime.txn._Txn.runNew(_Txn.java:253)
    jetbrains.charisma.refactoring.Refactoring.applyRefactoring(Refactoring.java:77)
    jetbrains.charisma.refactoring.Refactoring.access$000(Refactoring.java:18)
    jetbrains.charisma.refactoring.Refactoring$1$1.visit(Refactoring.java:56)
    jetbrains.charisma.refactoring.Refactoring$1$1.visit(Refactoring.java:54)
    jetbrains.mps.internal.collections.runtime.IVisitor.invoke(IVisitor.java:14)
    jetbrains.mps.internal.collections.runtime.IterableUtils.visitAll(IterableUtils.java:17)
    jetbrains.mps.internal.collections.runtime.Sequence.visitAll(Sequence.java:85)
    jetbrains.charisma.refactoring.Refactoring$1.visit(Refactoring.java:54)
    jetbrains.charisma.refactoring.Refactoring$1.visit(Refactoring.java:52)
    jetbrains.mps.internal.collections.runtime.IVisitor.invoke(IVisitor.java:14)
    jetbrains.mps.internal.collections.runtime.IterableUtils.visitAll(IterableUtils.java:17)
    jetbrains.mps.internal.collections.runtime.Sequence.visitAll(Sequence.java:85)
    jetbrains.charisma.refactoring.Refactoring.applyAll(Refactoring.java:52)
    jetbrains.charisma.main.YouTrackInit$1.invoke(YouTrackInit.java:72)
    jetbrains.teamsys.dnq.runtime.txn._Txn.run(_Txn.java:18)
    jetbrains.charisma.main.YouTrackInit.init(YouTrackInit.java:70)
    jetbrains.charisma.main.InitWebApplicationServiceLocatorListener.onAfterInit(InitWebApplicationServiceLocatorListener.java:9)
    jetbrains.springframework.configuration.runtime.ServiceLocator.fireLocalAfterInit(ServiceLocator.java:112)
    jetbrains.charisma.main.ServletImpl.init(ServletImpl.java:64)
    javax.servlet.GenericServlet.init(GenericServlet.java:160)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:498)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:394)
    org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:294)
    org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:183)
    org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:169)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:662)

Any help on this would be appreciated. I would like to move forward and not have to rollback.
3 comments
Comment actions Permalink
Hello, Chris!
Are you trying to start YouTrack 3.x or 4.x? Also, do you remember, did you have a Enum Bundle with name "Builds" of "<Project name> Builds" in your installation?
0
Comment actions Permalink
I initially used YouTrack 3.x, when I got that exception I tried 4.x and received the same exception. Also, I attached a screenshot of Enum called Builds and another screenshot of Custom Fields.

image1

image2
0
Comment actions Permalink
As it turned out we were not using the 'Build' Enum anymore so I removed it and that seemed to fix this issue although, I have a new issue because the newer database has different value constraints. I have '/' in some of my issue names.
0

Please sign in to leave a comment.