1

我已经在本地服务器上安装了gitblit,但不知道为什么我不能运行“Authority”密钥生成器。

它失败了

C:\Program Files (x86)\gitblit>authority INFO Using JCE Unlimited Strength Jurisdiction Policy files ${baseFolder} 设置为 C:\Program Files (x86)\gitblit\data 线程“AWT-EventQueue-0”java 中的异常。 lang.NullPointerException at com.gitblit.authority.GitblitAuthority.load(GitblitAuthority.java:305) at com.gitblit.authority.GitblitAuthority.initialize(GitblitAuthority.ja va:193) at com.gitblit.authority.GitblitAuthority$1.run( GitblitAuthority.java:16 3) 在 java.awt.event.event.InvocationEvent.dispatch(Unknown Source) 在 java.awt.EventQueue.dispatchEventImpl(Unknown Source) 在 java.awt.EventQueue.access$200(Unknown Source) 在 java.awt .EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security。AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt。 EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread。运行(未知来源)EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread。 java.awt.EventDispatchThread.run(未知源)上的 pumpEvents(未知源)EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread。 java.awt.EventDispatchThread.run(未知源)上的 pumpEvents(未知源)

C:\Program 文件 (x86)\gitblit>

这是服务运行和服务停止的情况。我完全不知道如何在我的系统上生成和使用 SSH 密钥。

附带说明一下,如果/当我开始工作时,如何将它与 Windows 中的另一个 git ssh 密钥(github)并排安装,以与 Powershell 一起使用?

4

1 回答 1

1

触发该异常的代码是这样的

  config.load();
  // replace user certificate model with actual data
  List<UserCertificateModel> list = UserCertificateConfig.KEY.parse(config).list;   
  for (UserCertificateModel ucm : list) {   
    ucm.user = userService.getUserModel(ucm.user.username);
    map.put(ucm.user.username, ucm);
  }

所以配置必须包含一些可疑的东西,它返回一个 ' null' ucm.user

旁注:使用几种 ssh 密钥是使用 ssh 配置文件完成的,如“如何临时更改 git ssh 用户以进行远程推送? ”中所示。

于 2013-03-26T07:04:57.607 回答