[h2] Is there any way a trigger can be invoked when a new table is created?

2013-12-23 Thread Vonmist
Is there any way for a trigger to work on creation/drop table? i saw something on DDL being able to do something about it? Please help, thanks! Can event listener be used to monitor the database and when there is a creation/drop of table? So when creation/drop event happen, the setProgress metho

Re: [h2] Is there any way a trigger can be invoked when a new table is created?

2013-12-26 Thread Vonmist
Hi, Thanks i will try it out. By the way, is trigger about to be used in server mode? When i tried running my database in server mode and another application connect to it and do a delete/update/insert statement, this error came out. Exception in thread "main" org.h2.jdbc.JdbcSQLException: Error

[h2] Trigger work with h2 server?

2014-01-06 Thread Vonmist
i have tested the trigger with embedded mode and it is working fine but when i use auto_server=true mode which also meant server mode, the trigger don't work. it keep having this error: Exception in thread "main" org.h2.jdbc.JdbcSQLException: Error creating or initializing trigger "AFTERTRIGGER"

[h2] Re: Trigger work with h2 server?

2014-01-07 Thread Vonmist
does anyone know why does this happen? is it because Trigger can't be used in server mode? -- View this message in context: http://h2-database.66688.n3.nabble.com/Trigger-work-with-h2-server-tp4028200p4028206.html Sent from the H2 Database mailing list archive at Nabble.com. -- You received t

Re: [h2] Trigger work with h2 server?

2014-01-07 Thread Vonmist
Hi, I have placed my jar file in the jre i am using and also placed the path in the classpath but i still get this error. -- View this message in context: http://h2-database.66688.n3.nabble.com/Trigger-work-with-h2-server-tp4028200p4028214.html Sent from the H2 Database mailing list archive

[h2] Re: Question on H2 Trigger

2014-01-28 Thread Vonmist
alueLob.java:775) Regards, Wei Ren On Tuesday, January 28, 2014 12:14:04 PM UTC+8, Vonmist wrote: > > Hi, i have created a Trigger on a specific database and it will insert > data into another database once a trigger is invoked. This is working fine > using java but if i were to delete

[h2] Re: Question on H2 Trigger

2014-02-02 Thread Vonmist
Does anyone know how to solve this problem? Thanks On Tuesday, January 28, 2014 12:14:04 PM UTC+8, Vonmist wrote: > > Hi, i have created a Trigger on a specific database and it will insert > data into another database once a trigger is invoked. This is working fine > using java but

[h2] Generic Error [50000-175] caused by NullPointerException

2014-03-20 Thread Vonmist
Hi all, I am currently using h2 version 1.3.174 and faced this error when i am working on Trigger class whereby a UPDATE statement is at the fire() method. I have searched the net and was told h2 v1.3.174 shouldnt have this problem but even when i changed back to 1.3.174, the error still surface

[h2] Re: Generic Error [50000-175] caused by NullPointerException

2014-03-20 Thread Vonmist
On Thursday, March 20, 2014 7:48:12 PM UTC+8, Vonmist wrote: > > Hi all, > > I am currently using h2 version 1.3.174 and faced this error when i am > working on Trigger class whereby a UPDATE statement is at the fire() method. > I have searched the net and was told h2 v1.3

[h2] Re: Generic Error [50000-175] caused by NullPointerException

2014-03-20 Thread Vonmist
Hi Noel The exception trace is as shown from previous post. Thanks On Thursday, March 20, 2014 8:06:25 PM UTC+8, Vonmist wrote: > > > > On Thursday, March 20, 2014 7:48:12 PM UTC+8, Vonmist wrote: >> >> Hi all, >> >> I am currently using h2 version 1.

Re: [h2] Re: Generic Error [50000-175] caused by NullPointerException

2014-03-20 Thread Vonmist
Inside my fire() method, there is a preparedStatement that execute a update statement to the database. On Thursday, March 20, 2014 8:09:46 PM UTC+8, Noel Grandin wrote: > > that exception is in your code: >at > com.auctorizium.database.server.TestTrigger.fire(TestTrigger.java:41) > > --

Re: [h2] Re: Generic Error [50000-175] caused by NullPointerException

2014-03-20 Thread Vonmist
The update statement have been tested and was working outside of the Trigger Class but when it was run at the fire() method inside the Trigger, the error appear. Thanks On Thursday, March 20, 2014 8:12:40 PM UTC+8, Vonmist wrote: > > Inside my fire() method, there is a preparedStatemen