I use a Oracle NG (JNDI) datastore which does not have the config parameter database. Thus the retrieved RESTDataStore does not contain this connection parameter which leads to an IllegalArgumentException because of a not null check in the according constructor.
I think a separation of all JNDI and non-JNDI database datastores would be a better approach due to their differences (more or less available setters for optional/required parameters).
I use a
Oracle NG (JNDI)
datastore which does not have the config parameterdatabase
. Thus the retrievedRESTDataStore
does not contain this connection parameter which leads to anIllegalArgumentException
because of a not null check in the according constructor.I think a separation of all JNDI and non-JNDI database datastores would be a better approach due to their differences (more or less available setters for optional/required parameters).