pg.ddx.io  pljava-dev@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Subject: [Pljava-dev] Re: worked
Date: Tue, 30 Nov 2004 10:42:47 +0100
Message-ID: <thhal-0GtmHAu89cC4CB3n8Hc/YXbUzWVWxhV@mailblocks.com> (raw)
In-Reply-To: <5F4ED4205E00D6119BFE009027DE39090793EF96@MLSW00103>
References: <5F4ED4205E00D6119BFE009027DE39090793EF96@MLSW00103>
	<41AC4097.3090503@mailblocks.com>
	<thhal-0GtmHAu09cC4sEEFuRe2ul1sTuTS493@mailblocks.com>

Rao,

>ERROR:  Unable to find static method com.test.HelloWorld.getName with
>signature (Lorg/postgresql/pljava/TriggerData;)V
>
>
>The function is working fine if I execute as ordinary function ,I mean
>without trigger.
>Create function tgfun() returns varchar as 'com.test.HelloWorld.getName'
>language java;
>  
>
PL/Java requires that all trigger functions take a 
org.postgresql.pljava.TriggerData argument. So your method must look 
something like this:

public static void getName(TriggerData td)
{
}

Regards,
Thomas Hallgren







Message-ID: <thhal-0GtmHAu89cC4CB3n8Hc/YXbUzWVWxhV@mailblocks.com>
Permalink:  ../thhal-0GtmHAu89cC4CB3n8Hc%2FYXbUzWVWxhV@mailblocks.com/
Also on:    postgresql.org/message-id/thhal-0GtmHAu89cC4CB3n8Hc/YXbUzWVWxhV@mailblocks.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] Re: worked
  In-Reply-To: <thhal-0GtmHAu89cC4CB3n8Hc/YXbUzWVWxhV@mailblocks.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox