From: | kongsen(dot)tian at tokuii(dot)com (kstian) |
---|---|
To: | |
Subject: | [Pljava-dev] NPE using existing TriggerData ResultSet |
Date: | 2005-10-03 01:38:25 |
Message-ID: | 43408B91.1080509@tokuii.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
Hi,
I was trying to use the existing postgresql connection from TriggerData
in Trigger function trying to write some data back to postgresql (in
another table) by using:
public static void triggerFunction(TriggerData td)
{
.
ResultSet _rsnew = td.getNew();
.
.
.
function(_rsnew.getStatement().getConnection()); //<========= (NPE here)
.
.
}
private static function (java.sql.Connection conn)
{
.
.
.
}
However, I am getting NPE at statement
"_renew.getStatement().getConnection()".
Is this a bug? Do you have another solution to reuse existing postgresql
connection?
Thanks a lot for helping.
Regards,
Kong
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Hallgren | 2005-10-03 05:25:04 | [Pljava-dev] NPE using existing TriggerData ResultSet |
Previous Message | kstian | 2005-09-28 06:38:27 | [Pljava-dev] stack depth limit exceeded (NOT from infinite recursion) |