You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Yip Ng (JIRA)" <de...@db.apache.org> on 2006/09/18 18:26:23 UTC

[jira] Updated: (DERBY-1718) creating an after insert trigger with trigger action involving xml datatype throws java.io.NottSerializableException

     [ http://issues.apache.org/jira/browse/DERBY-1718?page=all ]

Yip Ng updated DERBY-1718:
--------------------------

    Attachment: derby1718-trunk-stat01.txt
                derby1718-trunk-diff01.txt

Attaching initial patch derby1718-trunk-diff01.txt for DERBY-1718.  The fix basically implements the Formatable interface for SqlXmlUtil class.  Currently, it writes out the query expression string instead of the XPath object(its serializable I think), and then later recompiles the query once at evaluation time.  The reason behind this is that I don't  want the stored form to be tied to a particular XML implementation.  But I am open if anyone feels that the Xalan XPath object should be serialized instead.  

To run the lang/xml_general.sql and lang/xmlBinding.java, please refer to the instructions in this thread:

http://article.gmane.org/gmane.comp.apache.db.derby.devel/25793

derbylang and the above xml tests passes.  Running derbyall now.  Appreciate if someone can review this patch.  Thanks.



> creating an after insert trigger with trigger action involving  xml datatype throws  java.io.NottSerializableException
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-1718
>                 URL: http://issues.apache.org/jira/browse/DERBY-1718
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.3.0.0, 10.2.2.0
>         Environment: Java Version:    1.4.2
> Java Vendor:     IBM Corporation
>            Reporter: Suresh Thalamati
>         Assigned To: Yip Ng
>         Attachments: derby1718-trunk-diff01.txt, derby1718-trunk-stat01.txt, stk.txt
>
>
> creating an after insert trigger with trigger action involving  xml datatype throws following error :
> ij> create trigger trigxml after insert on t1 for each statement mode db2sql
> insert into t2 values (1,
> xmlparse(document '<name> ram </name>' preserve whitespace));
> ERROR XSDAJ: Exception during write of a serializable or SQLData object
> ERROR XJ001: Java exception: 'org.apache.derby.iapi.types.SqlXmlUtil: java.io.No
> ton'.SerializableExcepti
> ij>
> repro:
> connect 'jdbc:derby:wombat;create=true';
> create table t1 (i int, x xml);
> create table t2 (i int, x xml);
> insert into t2 values (1, 
> xmlparse(document '<name> suresh </name>' preserve whitespace));
> --- following trigger creation is failing ,. 
> create trigger trigxml after insert on t1 for each statement mode db2sql 
> insert into t2 values (1, 
> xmlparse(document '<name> ram </name>' preserve whitespace));

-- 
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