How did you create the cache? Most likely you would like yo use the PUBLIC one, or you should be able to access it using SQL_MYCACHE_TWSources.
Here are the docs regarding the schemas creation https://ignite.apache.org/docs/latest/SQL/schemas > On 17 Jun 2021, at 13:28, Ilya Kasnacheev <ilya.kasnach...@gmail.com> wrote: > > Hello! > > What is the connection string of your JDBC connection? > > Regards. > -- > Ilya Kasnacheev > > > ср, 16 июн. 2021 г. в 04:20, Moshe Rosten <mosheros...@gmail.com > <mailto:mosheros...@gmail.com>>: > Greetings, > > I'm attempting to retrieve a list of values from this query line: > List<List<?>> res = conn.sqlQuery("select * from TWSources"); > It works sometimes perfectly fine, and at other times it gives me this error: > org.apache.ignite.internal.client.thin.ClientServerError: Ignite failed to > process request [5]: Failed to set schema for DB connection for thread > [schema=myCache] (server status code [1]) > What could the problem be? > >