This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Debug Server API Error



I am unable to run a java program that contains the following lines of code:

ScriptingEnvironment env = ScriptingEnvironment.instance();
       DebugServer server = (DebugServer)env.getServer("DebugServer.1");
      DebugSession session = server.openSession();

A run time error occurs and the following error message is displayed:

Exception in thread "main" java.lang.ExceptionInInitializerError
        at com.ti.debug.engine.cce.CCEDebugEngine$Factory.createInstance(CCEDebu
gEngine.java:48)
        at com.ti.debug.engine.scripting.DebugServer.start(DebugServer.java:612)

        at com.ti.debug.engine.scripting.DebugServer$SessionFactory.<init>(Debug
Server.java:141)
        at com.ti.debug.engine.scripting.DebugServer.openSession(DebugServer.jav
a:1112)
        at com.ti.debug.engine.scripting.DebugServer.openSession(DebugServer.jav
a:1077)
        at Sample.main(Sample.java:16)
Caused by: java.lang.NullPointerException
        at java.io.File.<init>(File.java:222)
        at com.ti.debug.engine.cce.DLLPreLoader.<init>(DLLPreLoader.java:20)
        at com.ti.debug.engine.cce.ADebugEngine.<clinit>(ADebugEngine.java:45)
        ... 6 more

I suspect that there is a path problem related to Debug Server.  I have all the proper class paths in place for all the jar files related to the Debug Server.

I need to do a release and I would appreciate a answer to this problem and how to fix it.  A code example would be helpful.

Regards,

Arthi Bhat

Software/Hardware Engineer

Acoustic Acuity