Hi to all!
When i try to execute a code very similar to the JdbcConnectionPool
example (http://www.h2database.com/html/tutorial.html#connection_pool)
i've got the same null pointer exception:
java.lang.NullPointerException
        at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:
128)
        at org.h2.jdbcx.JdbcXAConnection$PooledJdbcConnection.<init>
(JdbcXAConnection.java:481)
        at org.h2.jdbcx.JdbcXAConnection.getConnection
(JdbcXAConnection.java:121)
        at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow
(JdbcConnectionPool.java:225)
        at org.h2.jdbcx.JdbcConnectionPool.getConnection
(JdbcConnectionPool.java:201)

If i try exactly the same code of the example (in a single main
thread) it's all ok, but when i execute the same code in a multi-
thread context i have several exceptions... (the connection
establishment seems to succed the first time, but fails the next
times...).
In my code i create the connection pool only in an init phase and then
i try to use it from several threads...
I hope this can help to understand the problem...

Greetings,
Fabris.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to