Start Quickstart
source code
{
"timestamp": "2020-01-27T19:47:34.274+0000",
"status": 500,
"error": "Internal Server Error",
"message": "org.eclipse.jetty.server.Connector.setHost(Ljava/lang/String;)V",
"path": "/"
}
Expected Behavior
credential accepted and get data from google sheet
Actual Behavior
private Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT) throws
IOException {
// Load client secrets.
InputStream in = SheetCallAPI.class.getResourceAsStream(CREDENTIALS_FILE_PATH);
if (in == null) {
throw new FileNotFoundException("Resource not found: " + CREDENTIALS_FILE_PATH);
}
GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));
// Build flow and trigger user authorization request.
GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(
HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)
.setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))
.setAccessType("offline")
.build();
LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8080).build();
return new AuthorizationCodeInstalledApp(flow, receiver).authorize("user");
}
return new AuthorizationCodeInstalledApp(flow, receiver).authorize("user");
this line raised java.lang.NoSuchMethodError: org.eclipse.jetty.server.Connector.setHost(Ljava/lang/String;)V
Specifications
hint from code

there are no three methods
Start Quickstart
source code
Expected Behavior
credential accepted and get data from google sheet
Actual Behavior
this line raised
java.lang.NoSuchMethodError: org.eclipse.jetty.server.Connector.setHost(Ljava/lang/String;)VSpecifications
hint from code
there are no three methods