HSQLDB Server NullPointerException with custom function

From: tch (curt.holden_at_stanfordalumni.org)
Date: 08/27/04

  • Next message: MJK: "Netscape LDAP Directory SDK 4.1"
    Date: 27 Aug 2004 06:03:30 -0700
    
    

    I am running HSQLDB 1.7.2. I am trying to call a Java method that I
    created using the following syntax:

    call "org.test.util.min_double"(0.1, 0.2);

    The method org.test.util.min_double is a simple wrapper for
    java.lang.Math.min(double a, double b). When I execute this call in
    HSQLDB I get the following
    java.lang.NullPointerException:

    C:\hsqltest>java -mx512m org.hsqldb.Server server.properties
    [Server@dc8569]: [Thread[main,5,main]]: checkRunning(false) entered
    [Server@dc8569]: [Thread[main,5,main]]: checkRunning(false) exited
    [Server@dc8569]: Startup sequence initiated from main() method
    [Server@dc8569]: Loaded properties from [server.properties]
    [Server@dc8569]: Initiating startup sequence...
    [Server@dc8569]: Server socket opened successfully in 10 ms.
    [Server@dc8569]: Database [index=0, id=0, db=file:local_db, alias=]
    opened sucessfully in 38033 ms.
    [Server@dc8569]: Startup sequence completed in 38063 ms.
    [Server@dc8569]: 2004-08-27 08:38:17.783 HSQLDB server 1.7.2 is online
    [Server@dc8569]: To close normally, connect and execute SHUTDOWN SQL
    [Server@dc8569]: From command line, use [Ctrl]+[C] to abort abruptly
    java.lang.NullPointerException
            at org.hsqldb.lib.StringConverter.writeUTF(StringConverter.java:492)
            at org.hsqldb.rowio.RowOutputBinary.writeString(RowOutputBinary.java:134)
            at org.hsqldb.Result.write(Result.java:1179)
            at org.hsqldb.Result.write(Result.java:1322)
            at org.hsqldb.ServerConnection.run(ServerConnection.java:246)
            at java.lang.Thread.run(Thread.java:534)

    Does anyone know how to make this work?


  • Next message: MJK: "Netscape LDAP Directory SDK 4.1"