You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Pierre Villard (Jira)" <ji...@apache.org> on 2023/12/08 13:06:00 UTC
[jira] [Created] (NIFI-12494) Broken CLI - jakarta.ws.rs.client.ClientBuilder cannot be found
Pierre Villard created NIFI-12494:
-------------------------------------
Summary: Broken CLI - jakarta.ws.rs.client.ClientBuilder cannot be found
Key: NIFI-12494
URL: https://issues.apache.org/jira/browse/NIFI-12494
Project: Apache NiFi
Issue Type: Bug
Components: Tools and Build
Affects Versions: 2.0.0-M1
Reporter: Pierre Villard
Fix For: 2.0.0
When using the CLI, it currently throws the below error:
{code:java}
ERROR: Error executing command 'pg-export' : java.lang.ClassNotFoundException: Provider for jakarta.ws.rs.client.ClientBuilder cannot be found
org.apache.nifi.toolkit.cli.api.CommandException: Error executing command 'pg-export' : java.lang.ClassNotFoundException: Provider for jakarta.ws.rs.client.ClientBuilder cannot be found at org.apache.nifi.toolkit.cli.impl.command.nifi.AbstractNiFiCommand.doExecute(AbstractNiFiCommand.java:65) at org.apache.nifi.toolkit.cli.impl.command.AbstractPropertyCommand.execute(AbstractPropertyCommand.java:74) at org.apache.nifi.toolkit.cli.impl.command.CommandProcessor.processCommand(CommandProcessor.java:248) at org.apache.nifi.toolkit.cli.impl.command.CommandProcessor.processGroupCommand(CommandProcessor.java:229) at org.apache.nifi.toolkit.cli.impl.command.CommandProcessor.process(CommandProcessor.java:184) at org.apache.nifi.toolkit.cli.CLIMain.runSingleCommand(CLIMain.java:145) at org.apache.nifi.toolkit.cli.CLIMain.main(CLIMain.java:72)Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Provider for jakarta.ws.rs.client.ClientBuilder cannot be found at jakarta.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:75) at org.apache.nifi.toolkit.cli.impl.client.nifi.impl.JerseyNiFiClient.<init>(JerseyNiFiClient.java:98) at org.apache.nifi.toolkit.cli.impl.client.nifi.impl.JerseyNiFiClient$Builder.build(JerseyNiFiClient.java:345) at org.apache.nifi.toolkit.cli.impl.client.NiFiClientFactory.createClient(NiFiClientFactory.java:169) at org.apache.nifi.toolkit.cli.impl.client.NiFiClientFactory.createClient(NiFiClientFactory.java:59) at org.apache.nifi.toolkit.cli.impl.command.nifi.AbstractNiFiCommand.doExecute(AbstractNiFiCommand.java:62) ... 6 moreCaused by: java.lang.ClassNotFoundException: Provider for jakarta.ws.rs.client.ClientBuilder cannot be found at jakarta.ws.rs.client.FactoryFinder.find(FactoryFinder.java:163) at jakarta.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:62) ... 11 more {code}
Not sure which exact change caused this but it's likely related to some dependency management improvements we did.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)