Returns the complete trace of the error.
 

1 error.stackTrace

<error.stackTrace />
Example
Copy
<xsql-script>
    <body>

        <try>
            <body>
                <!-- A exception in the database engine can be performed (description column does not exist) -->
                <insert table='cdiarios'>
                    <column name='descri'>test</column>
                </insert>
            </body>
            <catch>
                <println>Error at line: <error.line/></println>
                <println>.......in tag: <error.tag/></println>
                <println>...root cause: <error.message/></println>
                <println>....sql code1: <error.sqlcode/></println>
                <println>...sql state1: <error.sqlstate/></println>
                <println>..stack trace: <error.stackTrace/></println>
            </catch>
        </try>

    </body>
</xsql-script>
Copy
c:\jas>bin\ws-dbscript -file test.xml -user dpc -dbms demo_formacion
Running script................: test
Error at line: 7
.......in tag: insert
...root cause: Column (descri) not found in any table in the query (or SLV is undefined).
...node cause: RW[dbsrv2][demo_formacion][deister_prg] {1}
....sql code1: -217
....sql code2: 0
...sql state1: IX000
...sql state2: null
..stack trace:     > FROM [0]
java.sql.SQLException: Column (descri) not found in any table in the query (or SLV is undefined).


       at com.informix.jdbc.IfxSqli.addException(IfxSqli.java:3105)
       at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.java:3419)
       at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2282)
       at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2202)
       at com.informix.jdbc.IfxSqli.executePrepare(IfxSqli.java:1093)
       at com.informix.jdbc.IfxResultSet.executePrepare(IfxResultSet.java:189)
       at com.informix.jdbc.IfxPreparedStatement.setupExecutePrepare(IfxPreparedStatement.java:193)
       at com.informix.jdbc.IfxPreparedStatement.<init>(IfxPreparedStatement.java:171)
       at com.informix.jdbc.IfxSqliConnect.prepareStatement(IfxSqliConnect.java:1964)
       at deister.webstudio.core.dbms.jdbc.DBPoolConnection.prepareStatement(DBPoolConnection.java:3642)
       at deister.webstudio.core.xsql.script.XSQLScriptRunner.__prepareStatement(XSQLScriptRunner.java:8315)
       at deister.webstudio.core.xsql.script.functions.f_sql.function_insert.a(function_insert.java:356)
       at deister.webstudio.core.xsql.script.XSQLScriptRunner.a(XSQLScriptRunner.java:5668)
       at deister.webstudio.core.xsql.script.XSQLScriptRunner.__exec_xsql_command(XSQLScriptRunner.java:5566)
       at deister.webstudio.core.xsql.script.commands.command_try.a(command_try.java:66)
       at deister.webstudio.core.xsql.script.XSQLScriptRunner.__exec_xsql_command(XSQLScriptRunner.java:5546)
       at deister.webstudio.core.xsql.script.XSQLScriptRunner.a(XSQLScriptRunner.java:3591)
       at deister.webstudio.core.xsql.script.XSQLScriptRunner.run(XSQLScriptRunner.java:3508)
       at java.lang.Thread.run(Thread.java:595)

       SQL ERROR: -217 Column (%s) not founded in any table on the query (or SLV not defined).
       SQL STATE: IX000
   > FROM [1]

SQLExceptionInfo: RW[dbsrv2][demo_formacion][deister_prg] {1}
INSERT INTO cdiarios


       (descri)
        VALUES (?)

Program returned..............: <void >
Execution completed...........: 1.528 secs.


c:\jas>