Skip to content

Unable to migrate tickets from file service to branch service #770

Description

@gitblit

Originally reported on Google Code with ID 474

What steps will reproduce the problem?
1. Have an issue in a repo to migrate.
2. Attempt to migrate between services using the directions listed at .


What version of the product are you using? On what operating system?
GitBlit WAR 1.6.0, JDK 7u55, Windows 7, Tomcat 7.0.54 64-bit.


Command output and stack trace:
C:\tomcat\webapps\ROOT\WEB-INF\lib>java -cp .\* com.gitblit.MigrateTickets com.gitblit.tickets.BranchTicketService
--baseFolder c:\gitblit
2014-07-28 14:01:37 [INFO ] Basefolder  : c:\gitblit
2014-07-28 14:01:37 [INFO ] Settings    : c:\gitblit\gitblit.properties
2014-07-28 14:01:37 [INFO ] JVM timezone: America/Denver (MDT -0600)
2014-07-28 14:01:37 [INFO ] App timezone: America/Denver (MDT -0600)
2014-07-28 14:01:37 [INFO ] JVM locale  : en_US
2014-07-28 14:01:37 [INFO ] App locale  : <client>
2014-07-28 14:01:37 [INFO ] Repositories folder : c:\gitblit\git
2014-07-28 14:01:37 [INFO ] Identifying repositories...
2014-07-28 14:01:38 [INFO ] 13 repositories identified with calculated folder sizes
in 536 msecs
2014-07-28 14:01:38 [INFO ] Lucene will process indexed branches every 2 minutes.
2014-07-28 14:01:38 [INFO ] Garbage Collector (GC) is disabled.
2014-07-28 14:01:38 [INFO ] Mirror service is disabled.
2014-07-28 14:01:38 [INFO ] Commit cache is disabled
2014-07-28 14:01:38 [INFO ] 11 repository models loaded for anonymous in 54 msecs
2014-07-28 14:01:38 [INFO ] Deleted all tickets for project/repo.git
2014-07-28 14:01:38 [ERROR] Failed to commit ticket 1 to C:\gitblit\git\project\repo.git
java.lang.NullPointerException
        at org.eclipse.jgit.internal.storage.file.UnpackedObjectCache$Table.index(UnpackedObjectCache.java:146)
        at org.eclipse.jgit.internal.storage.file.UnpackedObjectCache$Table.contains(UnpackedObjectCache.java:109)
        at org.eclipse.jgit.internal.storage.file.UnpackedObjectCache.isUnpacked(UnpackedObjectCache.java:64)
        at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject(ObjectDirectory.java:367)
        at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:145)
        at org.eclipse.jgit.treewalk.CanonicalTreeParser.reset(CanonicalTreeParser.java:201)
        at org.eclipse.jgit.treewalk.TreeWalk.parserFor(TreeWalk.java:988)
        at org.eclipse.jgit.treewalk.TreeWalk.addTree(TreeWalk.java:468)
        at com.gitblit.tickets.BranchTicketService.getTreeEntries(BranchTicketService.java:828)
        at com.gitblit.tickets.BranchTicketService.createIndex(BranchTicketService.java:802)
        at com.gitblit.tickets.BranchTicketService.commitChangeImpl(BranchTicketService.java:733)
        at com.gitblit.tickets.ITicketService.createTicket(ITicketService.java:993)
        at com.gitblit.MigrateTickets.migrate(MigrateTickets.java:185)
        at com.gitblit.MigrateTickets.main(MigrateTickets.java:95)
Failed to migrate project/repo.git #1


Reported by gibwar on 2014-07-28 20:21:40

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions