NPE getting length of Blob

2008-03-03 Thread Daniel Noll
Hi all. I have someone seeing the following error under both 10.3.1.4 and 10.3.2.1: java.lang.NullPointerException at org.apache.derby.client.am.PreparedStatement.setIntX(Unknown Source) at org.apache.derby.client.am.CallableLocatorProcedures.blobGetLength(Unknown Source)

Derby issues (Windows vs Linux) with a Rails 2.0.2 and 1.1RC2

2008-03-03 Thread cdwillie76
I have a pretty basic Rails 2.0.2 using embedded derby that I am deploying with warbler and goldspike 1.5. If I deploy the war and run the application under tomcat on linux, it runs fine. If I deploy that same war on windows with tomcat, I get periodic "can't connect to the database errors". I

Re: Derby get-together at Java One

2008-03-03 Thread Francois Orsini
This sounds great, Rick. FYI, there is also the CommunityOne event (May 5) a day before JavaOne...I'll be giving a talk there about Derby. I believe ComunityOne registration is free if some of you are going to be around at that time: http://developers.sun.com/events/communityone/ Plenty of places

RE: CURRENT_TIME function

2008-03-03 Thread Jim Newsham
For your scenario, use System.nanoTime() instead. This provides a time value (in nanoseconds, so you'll have to scale it appropriately) which is not tied to the system clock. It is only appropriate for calculating elapsed time (not time relative to a fixed clock such as "wall time"), but this is

Re: CURRENT_TIME function

2008-03-03 Thread musky
the scenario is an automated exam where the questions are fetched from the apache derby database server. so i wanted to fetch the time also from the server so that the local client local clock tampering will have no effect on the current time. how do i do this. regards. please help. Narayanan

Re: Derby, identity columns & locks on syscolumns

2008-03-03 Thread Øystein Grøvlen
Andrew Lawrenson wrote: I've done some more experimentation & testing. At the moment, when syscolumns is updated, if a sub-transction is done, the update is done with an expicit no-wait on locks. I've tried changing this so that it will use the same wait policy as the parent transaction - when

RE: Derby, identity columns & locks on syscolumns

2008-03-03 Thread Andrew Lawrenson
I've done some more experimentation & testing. At the moment, when syscolumns is updated, if a sub-transction is done, the update is done with an expicit no-wait on locks. I've tried changing this so that it will use the same wait policy as the parent transaction - when this is done, I see none