Java exception troubleshooting usually begins with an error message and a
stack trace. Can we get that added to your fine description of how you
found the error? We still don't know what error you found.

Also please provide your config, with secrets redacted, of course. Both the
details of the error and exceptions in the log are almost always necessary
information.

On Wed, Mar 1, 2023, 22:09 Abhishek Ubhe <abhishekubhe0...@gmail.com> wrote:

> Hello,
>
> Please check the below case and help with your suggestions.
>
> Case :
>
>    - I have started Ignite node on the kubernetes pod.
>    - Also load some caches there after starting that ignite server node
>    in the same code flow. You can check the attachment for reference.
>    - Now I want to create a cache SQL table on that K8s pod where I have
>    started ignite server nodes.
>    - But when I try to create it through a script on K8s job I get a null
>    pointer for ignite instance.
>    - You can verify my java API below.
>
> CacheConfiguration<String, UserURMCacheSQLTable> userURMCacheConfig =
> (CacheConfiguration<String, UserURMCacheSQLTable>) CommonCacheConfiguration
> .getCommonCacheConfig("USER_URM_CACHE");
>
> userURMCacheConfig.setIndexedTypes(String.class,
> UserURMCacheSQLTable.class);
> userURMCacheConfig.setCacheMode(CacheMode.REPLICATED);
> userURMCacheConfig.setBackups(2);
>
> IgniteCache<String, UserURMCacheSQLTable> userURMCache =
> *ignite.getOrCreateCache(userURMCacheConfig);*
>
> Note : Getting null pointer at bolded line in above code.
> --
> *Regards,*
> *Abhishek Ubhe*
>
>

Reply via email to