Blind shot
"Gonçalo E.D. Luiz" <[email protected]>
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Message-ID | <[email protected]> |
I've been reading Ozone Core code and I found out that MAYBE the issue
is comming from here:
/**
* der aktuelle thread is auch die aktuelle transaktion (wenn der
* thread ueberhaupt eine transaktion ist)
*/
public Transaction currentTA() {
Thread thread = Thread.currentThread();
// see startTransaction()
if (thread instanceof CommandThread) {
return ((CommandThread) thread).ta;
} else {
Transaction result = (Transaction)
threadTable.elementForKey(thread);
return result;
}
}
I will not try to translate the comment but I may guess that is saying
something about the "current thread and current transaction".
So my last mail maybe right. Ozone is trying to get the transaction on
the current thread, but because it is a new thread it has none ! Then at
Database.java when it does
env.currentTA().xxxxx() we get the null pointer when trying to execute
xxxxxx().
Is there a way to use thread like I'm trying to do ? Please say yes
Gonçalo.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click