db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "A B (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-1772) Error 42Z78 "Failed to locate 'Xalan' API classes" should not have sqlstate class '42'
Date Mon, 18 Sep 2006 20:57:24 GMT
     [ http://issues.apache.org/jira/browse/DERBY-1772?page=all ]

A B updated DERBY-1772:

    Attachment: d1772_v1.patch

Attaching the simplest patch possible for this issue--just changes SQLSTATE '42Z78' to a Derby-specific
SQLSTATE, 'XML00'.  I also moved SQLSTATE '42Z7Z' to 'XML01' since I believe it falls into
the same category of "Derby-specific errors that are not covered by the SQLStandard."

I read through the SQL standard definitions for SQLSTATES and none of them jumped out at me
as being more appropriate than '42', so I just created a new set of SQLSTATEs, "XMLxx", for
this particular issue.  As I said, this was just the easiest way to go; if anyone can suggest
a better SQLSTATE to fit the errors, please let me know.  Otherwise, the d1772_v1.patch should
be all it takes to resolve this issue.

Note: Since we don't currently have any tests for cases where the classpath is missing the
required Xalan/JAXP classes, there were no test/master files to update.  The need to add tests
for such scenarios is filed as part of DERBY-1758.

Review/feedback/commit would be much appreciated.

> Error 42Z78 "Failed to locate 'Xalan' API  classes" should not have sqlstate class '42'
> ---------------------------------------------------------------------------------------
>                 Key: DERBY-1772
>                 URL: http://issues.apache.org/jira/browse/DERBY-1772
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions:
>            Reporter: Daniel John Debrunner
>            Priority: Minor
>         Attachments: d1772_v1.patch
> This is a run-time error but it has the SQL state  '42' for compile error, and thus in
Java SE 6 will have a SQLException of type SQLSyntaxErrorException.
> ERROR 38000: The exception 'java.sql.SQLSyntaxErrorException: Failed to locate '
> Xalan' API or implementation classes.  XML operations are not permitted unless t
> hese classes are in your classpath.' was thrown while evaluating an expression.
> ERROR 42Z78: Failed to locate 'Xalan' API or implementation classes.  XML operat
> ions are not permitted unless these classes are in your classpath.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message