(from mail conversation)
Most functions of e.g.HttpSessionAccess assume that you are running in a request-response thread that was initiated by a client-roundtrip.
If creating a thread on server-side on your own, then the thread environment data is missing. What you can do to overcome is:
Code:
public void onXyzAction(ActionEvent event)
{
// here: running in UI request/response thread!
Thread tParallel = createParallelThread(...);
ThreadData.injectThread(tParallel);
}
Now basic information (e.g. session reference) will be transferred and much more functions of HttpSessionAccess will find their environment.
Kind regards! Björn