| Issue 3299: | its-base - Unable to create injector - No implementation for java.io.File | |
| 1 person starred this issue and may be notified of changes. | Back to list |
*****************************************************************
***** *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!! *****
***** *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD, *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
***** *****
***** THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS *****
***** *****
*****************************************************************
Affected Version:
What steps will reproduce the problem?
1. Compile gerrit, its-base and its-bugzilla from master branches
2. Configure and deploy its-bugzilla plugin in Gerrit
3. Start Gerrit
What is the expected output? What do you see instead?
Expected output is that plugin loads successfully.
Instead, an error is thrown and the plugin is disabled.
Please provide any additional information below.
Log file reports the following:
[2015-04-14 17:39:17,722] WARN com.google.gerrit.server.plugins.PluginLoader : Cannot load plugin its-bugzilla-2.12-SNAPSHOT
com.google.inject.CreationException: Unable to create injector, see the following errors:
1) No implementation for java.io.File annotated with @com.google.gerrit.server.config.SitePath() was bound.
while locating java.io.File annotated with @com.google.gerrit.server.config.SitePath()
for parameter 0 at com.googlesource.gerrit.plugins.hooks.workflow.RuleBase.<init>(RuleBase.java:75)
2) No implementation for java.io.File annotated with @com.google.gerrit.server.config.SitePath() was bound.
while locating java.io.File annotated with @com.google.gerrit.server.config.SitePath()
for field at com.googlesource.gerrit.plugins.hooks.workflow.GerritHookFilterChangeState.sitePath(GerritHookFilterChangeState.java:44)
I believe this is because the @SitePath annotation for java.io.File has been deprecated. Switch to a java.nio.file.Path resolves the issue.
Apr 15, 2015
Project Member
#1
david.pu...@sonymobile.com
Status:
ChangeUnderReview
Apr 16, 2015
(No comment was entered for this change.)
Status:
Submitted
|
|
| ► Sign in to add a comment |