Skip to content
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

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

Closed
gitblit opened this issue Aug 12, 2015 · 4 comments
Closed

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

gitblit opened this issue Aug 12, 2015 · 4 comments

Comments

@gitblit
Copy link
Owner

gitblit commented Aug 12, 2015

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

@gitblit
Copy link
Owner Author

gitblit commented Aug 12, 2015

Reported by James.Moger on 2014-08-12 18:41:06

  • Status changed: Accepted
  • Labels added: Milestone-1.6.1

@gitblit
Copy link
Owner Author

gitblit commented Aug 12, 2015

Huh.  This one is quite weird.  It looks like JGit can't resolve the tree for the tickets
branch.

Reported by James.Moger on 2014-09-08 20:54:32

@gitblit
Copy link
Owner Author

gitblit commented Aug 12, 2015

Found it.  Fix pushed to master.

Reported by James.Moger on 2014-09-17 20:07:42

  • Status changed: Queued

@gitblit
Copy link
Owner Author

gitblit commented Aug 12, 2015

v1.6.1 released

Reported by James.Moger on 2014-10-20 21:36:03

  • Status changed: Done

@gitblit gitblit closed this as completed Aug 12, 2015
@flaix flaix modified the milestone: 1.6.1 Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants