Error Connecting to AI Assistant: Need Guidance on Configuration

Hello KNIME community,

I’m facing an issue when trying to use the AI Assistant (K-AI) in KNIME. The following error appears when I attempt to start the assistant (see attached screenshot):

“Error while starting AI Assistant: Unable to connect to the AI Assistant backend…”

Our IT department has confirmed that there are no firewall restrictions on our network, and they recommended contacting the KNIME administrator or community for guidance on what needs to be configured.

Interestingly, when I’m working remotely (telework), the K-AI assistant works perfectly. However, when I’m on the company premises, it fails to connect. This leads me to believe there might be a network or proxy configuration issue specific to the corporate environment.

Could anyone advise on:

  • What network settings or endpoints the AI Assistant depends on?
  • Whether any specific proxy or port configuration is needed for on-premise usage?

Any help would be greatly appreciated.

Thank you!

I received this message when I triggered K-AI in the Row Filter Expression node:

Node: root:1120
Message:java.lang.NullPointerException

org.knime.core.util.proxy.URLConnectionFactory.resolveJavaNetProxy(URLConnectionFactory.java:228)
org.knime.core.util.proxy.URLConnectionFactory.getConnection(URLConnectionFactory.java:193)
org.knime.ai.assistant.java.UiStringsUtils.getUiStrings(UiStringsUtils.java:84)
org.knime.ai.assistant.java.codegen.CodeGenerationHubEndpoint.getDisclaimer(CodeGenerationHubEndpoint.java:161)
org.knime.scripting.editor.ai.HubConnection.getDisclaimer(HubConnection.java:130)
org.knime.scripting.editor.ScriptingService$RpcService.getAiDisclaimer(ScriptingService.java:353)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.base/java.lang.reflect.Method.invoke(Unknown Source)
com.googlecode.jsonrpc4j.JsonRpcBasicServer.invoke(JsonRpcBasicServer.java:478)
com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleObject(JsonRpcBasicServer.java:349)
com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleJsonNodeRequest(JsonRpcBasicServer.java:274)
com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleRequest(JsonRpcBasicServer.java:242)
org.knime.core.webui.data.rpc.json.impl.JsonRpcServer.handleRequest(JsonRpcServer.java:150)
org.knime.core.webui.data.rpc.RpcServerManager.doRpc(RpcServerManager.java:138)
org.knime.core.webui.data.RpcDataService.handleRpcRequest(RpcDataService.java:109)
org.knime.core.webui.node.DataServiceManager.callRpcDataService(DataServiceManager.java:162)
org.knime.core.wizard.rpc.DefaultNodeService.callNodeDataService(DefaultNodeService.java:151)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.base/java.lang.reflect.Method.invoke(Unknown Source)
com.googlecode.jsonrpc4j.JsonRpcBasicServer.invoke(JsonRpcBasicServer.java:478)
com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleObject(JsonRpcBasicServer.java:349)
com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleJsonNodeRequest(JsonRpcBasicServer.java:274)
com.googlecode.jsonrpc4j.JsonRpcBasicServer.handleRequest(JsonRpcBasicServer.java:242)
org.knime.core.webui.data.rpc.json.impl.JsonRpcServer.handleRequest(JsonRpcServer.java:150)
org.knime.core.wizard.rpc.JsonRpcFunction.call(JsonRpcFunction.java:195)
com.equo.comm.common.MessageHandler.processReceivedEventMessage(MessageHandler.java:131)
com.equo.comm.ee.provider.service.ChromiumService.receiveMessage(ChromiumService.java:98)
com.equo.comm.ee.provider.CommunicationManagerChromiumImpl.receiveMessage(CommunicationManagerChromiumImpl.java:48)
com.equo.chromium.swt.internal.spi.CommRouterHandler.handleRequest(CommRouterHandler.java:33)
com.equo.chromium.swt.internal.spi.CommRouterHandler.lambda$1(CommRouterHandler.java:51)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.base/java.lang.Thread.run(Unknown Source)

K-AI not working on company network – proxy or firewall issue?

Hello,

I’m experiencing an issue with KNIME’s AI Assistant (K-AI). When I try to activate it within a node (e.g., Row Filter Expression), I get an error related to proxy resolution:

org.knime.core.util.proxy.URLConnectionFactory.resolveJavaNetProxy

org.knime.ai.assistant.java.codegen.CodeGenerationHubEndpoint.getDisclaimer


However, when I use the same workflow at home (on a domestic network), everything works perfectly. This leads me to believe the problem is with the company's network restrictions (proxy/firewall).

The IT team confirmed there are no active blocks on their side, but I would appreciate some guidance on:

* Which URLs/domains K-AI needs to access
* Whether specific proxy settings should be manually configured in KNIME

Thanks in advance!

solved with this help

Help with the Extensions - KNIME Extensions - KNIME Community Forum

1 Like