Hibernate version:
3.0.5
Full stack trace of any exception that occurs:
Code:
java.lang.NullPointerException
at org.hibernate.transaction.CMTTransaction.wasCommitted(CMTTransaction.java:127)
Hi,
I'm having troubles with the class
Quote:
org.hibernate.transaction.CMTTransaction
.
I am running in a CMT environment. When I call tx.wasCommitted(), I get the NullpointerException mentioned above. So I had a look into CMTTransaction's source code and found out that the private variable transaction was null.
Moreover, I did not find any code which would set the transaction variable to any value, so in my opinion it will always be null, can never be set to any other value as it is private, and wasCommitted() will always throw a NullPointerException. May this be a bug?
However, it's perfectly possible that I'm missing a point here as I am a Hibernate newbie, then please accept my apologies.
By the way, I found some articles suggesting that Websphere is really giving Hibernate a hard time. Can you tell me how far Websphere 5 and 6 are now being supported as of Hibernate 3.0.5?
best regards,
Stefan