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.

[CCSVv5.1 RC1] Issue when launching a DSS session on windows 7

Other Parts Discussed in Thread: CCSTUDIO

Hi,

 I have a script to launch  DSS that is working fine on Windows XP

When I try to luanch the same script under another PC under windows 7

I have following messages:

c:\TI\sival\operat\regtests\ivahd>call ivahd_boot_host1_sdma.bat local omap4470
-c c:\TI\sival\operat\ccs_config\omap4470\config\ccsv5-omap4470light.ccxml
ivahd_boot_host1_sdma execution started
"current VOB drive:" T
"Omap under test:" omap4470
CCS config file:  c:\TI\sival\operat\ccs_config\omap4470\config\ccsv5-omap4470li
ght.ccxml
srcipt directory: ..\..
End of environemnt set-up
set regression test directory to T:\cdb\tcomap4470\tc_ivahd\ivahd_boot_host1_sdm
a_board
Omap4 Power Off - On
[INF][teb4430.py]Turning TEB off.
[INF][teb4430.py]Turning TEB on.
TI CCSV install directory: c:\CCSv5_RC1\ccsv5\ccs_base
CCS config file used: c:\TI\sival\operat\ccs_config\omap4470\config\ccsv5-omap44
70light.ccxml
Timeout value (in ms) 240000
Use ..\..\dss\omap4_dss.js JavaScript
Launch script engine

***** DSS Generic Loader *****

START: 14:22:09 GMT+0100 (CET)

Configuring Debug Server for specified target...
CCS configuration Done with c:\TI\sival\operat\ccs_config\omap4470\config\ccsv5-
omap4470light.ccxml configuration file
Open Cortex a9 CPU0 session
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\CCSv5_RC1\ccsv5\cc
s_base\DebugServer\bin\win32\LibraryLoader.dll: Can't find dependent libraries
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.load0(Unknown Source)
        at java.lang.System.load(Unknown Source)
        at com.ti.debug.engine.xpcom.DLLPreLoader.load(DLLPreLoader.java:40)
        at com.ti.debug.engine.xpcom.Runtime.preXPCOMInit(Runtime.java:244)
        at com.ti.debug.engine.xpcom.Runtime.startBare(Runtime.java:191)
        at com.ti.debug.engine.xpcom.Runtime.startBare(Runtime.java:148)
        at com.ti.debug.engine.xpcom.Runtime.createComponent(Runtime.java:249)
        at com.ti.debug.engine.impl.Application.<init>(Application.java:93)
        at com.ti.debug.engine.cce.CCEDebugEngine.<init>(CCEDebugEngine.java:17)

        at com.ti.debug.engine.cce.CCEDebugEngine.instance(CCEDebugEngine.java:5
0)
        at com.ti.debug.engine.scripting.DebugServer.start(DebugServer.java:642)

        at com.ti.debug.engine.scripting.DebugServer$SessionFactory.<init>(Debug
Server.java:152)
        at com.ti.debug.engine.scripting.DebugServer.openSession(DebugServer.jav
a:1107)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:142)
        at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:20
1)
        at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:64)

        at org.mozilla.javascript.gen.c1._c1(..\..\dss\omap4_dss.js:170)
        at org.mozilla.javascript.gen.c1.call(..\..\dss\omap4_dss.js)
        at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java
:106)
        at org.mozilla.javascript.gen.c1._c0(..\..\dss\omap4_dss.js:22)
        at org.mozilla.javascript.gen.c1.call(..\..\dss\omap4_dss.js)
        at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:3
37)
        at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:275
5)
        at org.mozilla.javascript.gen.c1.call(..\..\dss\omap4_dss.js)
        at org.mozilla.javascript.gen.c1.exec(..\..\dss\omap4_dss.js)
        at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:500)

        at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:4
22)
        at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:388)
        at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:379)
        at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:176)
        at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:97)
        at org.mozilla.javascript.Context.call(Context.java:540)
        at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:447)
        at org.mozilla.javascript.tools.shell.Main.exec(Main.java:159)
        at org.mozilla.javascript.tools.shell.Main.main(Main.java:137)
ERROR CODE: 1
Test Execution NOK - Error returned: 1
ivahd_boot_host1_sdma execution completed

Any idea of what can be the root cause of this?

I have aatched the batch file that is calling the java process. It is based on the loadti.bat provided as an example of DSS

@echo off
SETLOCAL

REM ===========================================================================
REM This batch file executes LoadTI_omap4 for DSS for Windows.
REM ===========================================================================

REM ===========================================================================
REM Do not edit the lines below.
REM ===========================================================================

REM Set the DSS and DebugServer Root.
REM this batch file can be call from local host or remote
REM in first case use TI _DIR  var for local install of CCS
REM otherwise gives the network name- ex CNYNC04162
REM CAUTION the ccsv4 directory must be SHARED in that case

REM set DEBUGSERVER_ROOT=%~dp0..\..\..\DebugServer
@echo TI CCSV install directory: %TI_DIR%

rem set DEBUGSERVER_ROOT=%TI_DIR%\DebugServer


setlocal ENABLEDELAYEDEXPANSION

:setccscfg4
if "%1"=="-c" goto setccscfg1
goto setccscfg3

:setccscfg1
REM ccs cfg file is next argument
SET CCS_CFG_FILE=%2
SHIFT
SHIFT

:setccscfg2
@echo CCS config file used: %CCS_CFG_FILE%

if "%1" =="-t" goto timeout_1
REM set timeout max value here: 240000 ms = 4 minutes
SET TIMEOUT_MAX_MS=240000
goto timeout_2
:timeout_1
SET TIMEOUT_MAX_MS=%2
REM arg must be shifted to be aligned in all cases
SHIFT
SHIFT

:timeout_2
@echo Timeout value (in ms) %TIMEOUT_MAX_MS%

REM This path to point to the absolute install location of the Debug Server.
REM We're going to use the DOS macro %~dp0 which always points to the
REM absolute path of this batch file, no matter where on the system this
REM batch file is called from.

:setccscfg3
rem set DEBUGSERVER=%~dp0..\..\DebugServer
set DEBUGSERVER=%TI_DIR%\DebugServer

if not exist "!DEBUGSERVER!" set DEBUGSERVER=%TI_DIR%\..\..\xulrunner


REM prior to modify path, save old value, restored at this end
set OLD_PATH=!PATH!

REM Path to necessary bbinaries
set PATH=!DEBUGSERVER!\..\eclipse\plugins\com.ti.dvt.ofssymbolmanager_1.0.0;!PATH!
set PATH=!DEBUGSERVER!\..\eclipse\plugins\com.ti.dvt.tidisassembly_1.0.0\os\win32;!PATH!

REM Path to Rhino JAR File
set RHINO_JAR="!DEBUGSERVER!\packages\ti\dss\java\js.jar"

REM Path to DVT Scripting JAR File
set DVT_SCRIPTING_JAR="!DEBUGSERVER!\..\dvt\scripting\dvt_scripting.jar"

REM Path to DebugServer JAR File
set SCRIPTING_JARS="!DEBUGSERVER!\packages\ti\dss\java\dss.jar"

REM If this is CCS (rather than stand-alone DSS) also add Eclipse's startup.jar
REM to the app classpath
if exist "!DEBUGSERVER!\..\eclipse\startup.jar" (
  set SCRIPTING_JARS=!SCRIPTING_JARS!;"!DEBUGSERVER!\..\eclipse\startup.jar"
)

REM Name of Rhino Shell Java Application
if "%DEBUG_DSS_ON%"=="TRUE" goto setdssdbg
set RHINO_SHELL=org.mozilla.javascript.tools.shell.Main
rem set OPEN_GUI=
goto next_00

:setdssdbg
REM Name of Rhino Debugger Java Application
@echo USE RHINO DEBUGGER !!!
set RHINO_SHELL=org.mozilla.javascript.tools.debugger.Main
rem set OPEN_GUI="-open_ccs"

:next_00
REM Set full path to script
SET LOADTI_JS=%SCRIPT_DIR%\dss\omap4_dss.js

@echo Use %LOADTI_JS% JavaScript
REM check if help is required here after all var are defined

rem try to set a variable tocall omap4_test function only if call from dss
SET LOAD_FROM_DSS=TRUE

:ask4help
if "%1"=="-h" goto jhelp
if "%1"=="-help" goto jhelp
if "%1"=="--help" goto jhelp
if "%1"=="?" goto jhelp
if "%1"=="/?" goto jhelp

SET PARAM01=%1
SET PARAM02=%2
SET PARAM03=%3
SET PARAM04=%4
SET PARAM05=%5
SET PARAM06=%6
SET PARAM07=%7
SET PARAM08=%8
SET PARAM09=%9
SHIFT
SET PARAM10=%9
SHIFT
SET PARAM11=%9
SHIFT
SET PARAM12=%9
SHIFT
SET PARAM13=%9
SHIFT
SET PARAM14=%9
SHIFT
SET PARAM15=%9
SHIFT
SET PARAM16=%9
SHIFT
SET PARAM17=%9
SHIFT
SET PARAM18=%9
SHIFT
SET PARAM19=%9
SHIFT
SET PARAM20=%9
SHIFT
SET PARAM21=%9
SHIFT
SET PARAM22=%9
SHIFT
SET PARAM23=%9
SHIFT
SET PARAM24=%9
SHIFT
SET PARAM25=%9
SHIFT
SET PARAM26=%9
SHIFT
SET PARAM27=%9
SHIFT
SET PARAM28=%9
SHIFT
SET PARAM29=%9
SHIFT
SET PARAM30=%9
SHIFT
SET PARAM31=%9
SHIFT
SET PARAM32=%9
SHIFT
SET PARAM33=%9
SHIFT
SET PARAM34=%9
SHIFT
SET PARAM35=%9


REM If the user chose to install the JRE with this DSS install - use that JRE. 
if exist "!DEBUGSERVER!\..\jre" (
  set JAVA_HOME=!DEBUGSERVER!\..\jre
  set PATH=!DEBUGSERVER!\..\jre\bin;!PATH!
  goto LAUNCH_SCRIPT
)

REM If this CCS (rather than stand-alone DSS) the installed jre is in
REM \eclipse\jre
if exist "!DEBUGSERVER!\..\eclipse\jre" (
  set JAVA_HOME=!DEBUGSERVER!\..\eclipse\jre
  set PATH=!DEBUGSERVER!\..\eclipse\jre\bin;!PATH!
  goto LAUNCH_SCRIPT
)

:LAUNCH_SCRIPT
@echo Launch script engine
REM java.exe -Xms40m -Xmx256m -Dxpcom.bridge.executeOnDedicatedThread=no -Dorg.eclipse.swt.browser.XULRunnerPath="!DEBUGSERVER!\win32" -DXPCOM.RUNTIME="!DEBUGSERVER!\win32" -cp !RHINO_JAR!;!SCRIPTING_JARS!;!DVT_SCRIPTING_JAR! !RHINO_SHELL! "%LOADTI_JS%" -c %CCS_CFG_FILE% -t %TIMEOUT_MAX_MS% %PARAM01% %PARAM02% %PARAM03% %PARAM04% %PARAM05% %PARAM06% %PARAM07% %PARAM08% %PARAM09% %PARAM10% %PARAM11% %PARAM12% %PARAM13% %PARAM14% %PARAM15% %PARAM16% %PARAM17% %PARAM18% %PARAM19% %PARAM20% %PARAM21% %PARAM22% %PARAM23% %PARAM24% %PARAM25%

java.exe -Xms40m -Xmx384m -DXPCOM.RUNTIME="!DEBUGSERVER!\win32"  -cp !RHINO_JAR!;!SCRIPTING_JARS!;!DVT_SCRIPTING_JAR! !RHINO_SHELL! "%LOADTI_JS%" -c %CCS_CFG_FILE% -t %TIMEOUT_MAX_MS% %PARAM01% %PARAM02% %PARAM03% %PARAM04% %PARAM05% %PARAM06% %PARAM07% %PARAM08% %PARAM09% %PARAM10% %PARAM11% %PARAM12% %PARAM13% %PARAM14% %PARAM15% %PARAM16% %PARAM17% %PARAM18% %PARAM19% %PARAM20% %PARAM21% %PARAM22% %PARAM23% %PARAM24% %PARAM25% %PARAM26% %PARAM27% %PARAM28% %PARAM29% %PARAM30% %PARAM31% %PARAM32% %PARAM33% %PARAM34% %PARAM35%

REM Done.
@echo ERROR CODE: %ERRORLEVEL%
if %ERRORLEVEL% NEQ 0 goto Test_Fail
goto Test_Pass 

:invalidpath
@echo %DEBUGSERVER_ROOT% does not point to a valid DSS DebugServer installation
goto end

:jhelp 
set SCRIPT_DIR=..
echo "java help"
java.exe -Xms40m -Xmx256m -Dxpcom.bridge.executeOnDedicatedThread=no -Dorg.eclipse.swt.browser.XULRunnerPath="!DEBUGSERVER!\win32" -DXPCOM.RUNTIME="!DEBUGSERVER!\win32" -cp !RHINO_JAR!;!SCRIPTING_JARS!;!DVT_SCRIPTING_JAR! !RHINO_SHELL! omap4_dss.js --help
goto end


:Test_Fail
@echo Test Execution NOK - Error returned: %ERRORLEVEL%
set DSS_TEST_RES=TEST_FAIL
goto end

:Test_Pass
@echo Test execution OK
set DSS_TEST_RES=TEST_PASS

:end
set DEBUGSERVER_ROOT=
SET CCS_CFG_FILE=
SET TIMEOUT_MAX_MS=
set DSS_ROOT=
set DSS_LIB_PATH=
set LOADTI_JS=
set RHINO_JAR=
set SCRIPTING_JAR=
set RHINO_SHELL=
set RHINO_DEBUGGER=
set PATH=%OLD_PATH%

endlocal

  • Hello,

    If you are on Win7-64 bit, there was a known issue with DSS picking up a 64-bit version of the JRE. This should be resolved with the CCSv5.1 release. Could you try this version?

    Thanks

    ki

  • hi ki,

     

     Yes  I have pick up the latest loadti.bat examplefrom CCSV5.1 RC2 and merge in my script and it is fine!

    I have just replace the line where the java process is called i.e

    I used

    java.exe -Xms40m -Xmx384m -DXPCOM.RUNTIME="!DEBUGSERVER_ROOT!\win32"  -cp !RHINO_JAR!;!SCRIPTING_JARS!; !RHINO_SHELL! "%LOADTI_JS%" -c %CCS_CFG_FILE% -t %TIMEOUT_MAX_MS% %PARAM01% %PARAM02% %PARAM03% %PARAM04% ...
    instead of
    REM CMD /C java.exe -DXPCOM.RUNTIME="!DEBUGSERVER_ROOT!\win32" -cp "!RHINO_JAR!;!SCRIPTING_JAR!" !RHINO_SHELL! "!LOADTI_JS!" -c %CCS_CFG_FILE% -t %TIMEOUT_MAX_MS% %PARAM01% %PARAM02% %PARAM03% %PARAM04% ...
    otherwise ther  is an error at execution

    uncaught JavaScript runtime exception: TypeError: instance is not a function, it is org.mozilla.javascript.NativeJavaPackage.

    when calling ;

        dssScriptEnv = Packages.com.ti.ccstudio.scripting.environment.ScriptingEnvironment.instance();

    thanks