Traccar -- Oracle Integration : Re Invent the wheel

ANJUM SOHAIL5 years ago

Despite all efforts , reading all forums, configurations, still struck at Oracle Integration with Traccar: Plz assist or guide how to troubleshoot.
Config.xml

<entry key='database.driverFile'>C:\Program Files\Traccar\lib\ojdbc7.jar</entry>
<entry key='database.driver'>oracle.jdbc.OracleDriver</entry>
<entry key='database.url'>jdbc:oracle:thin:trcaa/trcaa@localhost:1521:trcaa</entry>
<entry key='database.user'>trcaa</entry>
<entry key='database.password'>trcaa</entry>

Error Log File:tracker-server.log

2019-12-10 00:24:42 ERROR: Main method error - 
java.lang.reflect.InaccessibleObjectException: Unable to make void jdk.internal.loader.ClassLoaders$AppClassLoader.appendToClassPathForInstrumentation(java.lang.String) accessible: module java.base does not "opens jdk.internal.loader" to unnamed module @71d06a3
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340)
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280)
    at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:198)
    at java.base/java.lang.reflect.Method.setAccessible(Method.java:192)
    at org.traccar.database.DataManager.initDatabase(DataManager.java:113)
    at org.traccar.database.DataManager.<init>(DataManager.java:89)
    at org.traccar.Context.init(Context.java:292)
    at org.traccar.Main.run(Main.java:110)
    at org.traccar.Main$1.run(Main.java:88)
    at org.traccar.WindowsService$ServiceMain.callback(WindowsService.java:191)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:520)
    at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:551)

2019-12-10 00:24:42  WARN: JNA: Callback org.traccar.WindowsService$ServiceMain@15d49048 threw the following exception - 
java.lang.RuntimeException: java.lang.reflect.InaccessibleObjectException: Unable to make void jdk.internal.loader.ClassLoaders$AppClassLoader.appendToClassPathForInstrumentation(java.lang.String) accessible: module java.base does not "opens jdk.internal.loader" to unnamed module @71d06a3
    at org.traccar.Main.run(Main.java:152)
    at org.traccar.Main$1.run(Main.java:88)
    at org.traccar.WindowsService$ServiceMain.callback(WindowsService.java:191)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:520)
    at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:551)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make void jdk.internal.loader.ClassLoaders$AppClassLoader.appendToClassPathForInstrumentation(java.lang.String) accessible: module java.base does not "opens jdk.internal.loader" to unnamed module @71d06a3
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340)
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280)
    at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:198)
    at java.base/java.lang.reflect.Method.setAccessible(Method.java:192)
    at org.traccar.database.DataManager.initDatabase(DataManager.java:113)
    at org.traccar.database.DataManager.<init>(DataManager.java:89)
    at org.traccar.Context.init(Context.java:292)
    at org.traccar.Main.run(Main.java:110)
    ... 8 more