Java Client Issue: Creating New Instance Error
TLDR Nader had a problem creating a new instance with the Java client due to a protected constructor error. Kishore Nallan responded with a commitment to fix the client to resolve the issue.
Feb 10, 2022 (21 months ago)
Nader
10:03 PMArrayList<Node> nodes = new ArrayList<>();
nodes.add(
new Node(
"http", // For Typesense Cloud use https
"localhost", // For Typesense Cloud use
"8108" // For Typesense Cloud use 443
)
);
Configuration configuration = new Configuration(nodes, Duration.ofSeconds(2),"<API_KEY>");
Client client = new Client(configuration);
it is not working for me as the
Client
has a package protected constructor.this is the error I am getting:
error: Client(Configuration) is not public in Client; cannot be accessed from outside package
Jason
10:11 PMHarisaran - any thoughts on this?
Feb 11, 2022 (21 months ago)
Kishore Nallan
02:41 AMFeb 13, 2022 (21 months ago)
Nader
06:30 PMTypesense
Indexed 2779 threads (79% resolved)
Similar Threads
Resolving ClassNotFoundException in Android while using Typesense
Amal encountered a ClassNotFoundException while setting up Typesense in Android. Kishore Nallan recommended using Stack Overflow and Maven to resolve the issue. They also provided a fix for the Java client on Android, which worked for Amal.
Troubleshooting TypeScript Error with Typesense
GM experienced an error with Typesense in TypeScript, requiring help to correct the issues. Jason helped propose solutions and adjustments to the code. Ultimately, they were able to resolve the errors and successfully implement a search function.
Collaborative Work on the Java Client Project
Jason organizes a team to work on the Java client, asking Joe about his updates. Kartik shared his Github handle, while Joe is waiting for a Github password reset before sharing his work.