I'm trying to write a simple entity that inserts itself on the ejbCreate and
updates itself on ejbStore.

I get the following exception about 50% of the time during the update, 25%
during the insert, and sometimes it works completely:

[OrderHelper] queryString is: INSERT INTO rgorders (userid) VALUES
 'foobar')
[Hypersonic] java.lang.NullPointerException
[Hypersonic]    at org.hsql.Channel.check(Channel.java:72)
[Hypersonic]    at org.hsql.Parser.processInsert(Parser.java:178)
[Hypersonic]    at org.hsql.Database.execute(Database.java:122)
[Hypersonic]    at org.hsql.ServerConnection.run(ServerConnection.java:58)
[OrderHelper] javax.ejb.CreateException: SQLException occured in
insertOrder:java.sql.SQLException: General error
java.lang.NullPointerException in statement [INSERT INTO rgorders (userid)
VALUES ( 'foobar')]

I can't believe that a simple entity won't work. If someone can look at this
I would appreciate it.



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to