Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why do I get a NullPointerException when calling K2Searchs K2Connection method?

0
Posted

Why do I get a NullPointerException when calling K2Searchs K2Connection method?

0

In older versions of K2, the K2Connection method needed to be passed the protocol version to be used. Starting with K2 Version 4.50, this argument has been removed; only the hostname and port are passed to the K2Connection method: Prior to Version 4.50, call K2Connection(host, Integer.parseInt(port), getProtocol()); Starting with Version 4.50, call K2Connection(host, Integer.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123