com.intersys.globals.GlobalsException occurs when I am trying to call connection.connect() with the correct credentials
I have a simple app which tries to establish a connection with a Cache database instance via Global API for Java:
import com.intersys.globals.Connection;
import com.intersys.globals.ConnectionContext;
public class Assignment {
public static void main(String[] args) {
Connection connection = ConnectionContext.getConnection();
connection.connect("SAMPLES", "_SYSTEM", "SYS");
}
}
The expection I am getting:
Exception in thread "main" com.intersys.globals.GlobalsException: lc_conn::connect_device returned Db_err: source: lc_conn::connect() message: lc_conn::connect: CacheSecureStart returned -1:
at com.intersys.globals.internal.GlobalsConnectionJNI.connectImpl(Native Method)
at com.intersys.globals.internal.GlobalsConnectionJNI.connect(GlobalsConnectionJNI.java:107)
at com.tobilko.a3.Assignment.main(Assignment.java:17)
- The credentials and the namespace are correct.
- The Cache instance has been initialised correctly and by instruction.
- All the global environment variables including
GLOBALS_HOME
andDYLD_LIBRARY_PATH
have been set. -
The following libraries have been soft-linked:
ln -s $GLOBALS_HOME/bin/libisccache.dylib /usr/local/lib ln -s $GLOBALS_HOME/bin/liblcbjni.dylib /usr/local/lib ln -s $GLOBALS_HOME/bin/liblcbindnt.dylib /usr/local/lib ln -s $GLOBALS_HOME/bin/liblcbclientnt.dylib /usr/local/lib ln -s $GLOBALS_HOME/bin/libmdsjni.dylib /usr/local/lib
-
-Djava.library.path=/usr/local/lib
has been specified. - The jars have been included.
Any help would be really appreciated.