Java DB

Apache Derby

Derby Tools and Utilities Guide

Derby Getting Started
Derby Reference Manual
Derby Developer's Guide
Derby Performance Tuning
Derby Server and Admin Guide
Derby Tools and Utilities
Derby Tools and Utilities
-Copyright
-License
-About this guide
-What are the Derby tools and utilities?
-Using ij
-ij properties reference
-ij commands and errors reference
-ij commands
-Absolute command
-After Last command
-Async command
-Autocommit command
-Before First command
-Close command
-Commit command
-Connect command
-Describe command
-Disconnect command
-Driver command
-Elapsedtime command
-Execute command
-Exit command
-First command
-Get Cursor command
-Get Scroll Insensitive Cursor command
-Help command
-Last command
-LocalizedDisplay command
-MaximumDisplayWidth command
-Next command
-Prepare command
-Previous command
-Protocol command
-Readonly command
-Relative command
-Remove command
-Rollback command
-Run command
-Set Connection command
-Show command
-Wait For command
-Syntax for comments in ij commands
-Syntax for identifiers in ij commands
-Syntax for strings in ij commands
-ij errors
-Using the bulk import and export procedures
-Storing jar files in a database
-sysinfo
-dblook
-SignatureChecker
-Trademarks

 

ij.exceptionTrace property

Function

When the ij.exceptionTrace property is set to true, a full exception stack trace is printed when exceptions occur in ij. The default setting is false.

Syntax

ij.exceptionTrace={ false | true } 

Example

In the following example, ij is started with the ij.exceptionTrace property set to true.

java -Dij.exceptionTrace=true org.apache.derby.tools.ij
ij version 10.6 
ij> connect 'jdbc:derby:wombat';  
ERROR XJ004: Database 'wombat' not found.  
SQL Exception: Database 'wombat' not found.
    at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:44)
    at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:87)
    at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:93)
    at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:172)
    at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(EmbedConnection.java:1955)
    at org.apache.derby.impl.jdbc.EmbedConnection.(EmbedConnection.java:254)
    at org.apache.derby.impl.jdbc.EmbedConnection30.(EmbedConnection30.java:72)
    at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:73)
    at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:200)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at org.apache.derby.impl.tools.ij.ij.dynamicConnection(ij.java:873)
    at org.apache.derby.impl.tools.ij.ij.ConnectStatement(ij.java:723)
    at org.apache.derby.impl.tools.ij.ij.ijStatement(ij.java:553)
    at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:289)
    at org.apache.derby.impl.tools.ij.Main.go(Main.java:207)
    at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:173)
    at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:55)
    at org.apache.derby.tools.ij.main(ij.java:60)  ij 
ij>
 

javadb@jdbcurl.com