I tried today for the first time to use a session object in websocket and I keep getting this error:
I searched the forum and found the solutions in:
and in
I implemented them but I keep getting this error.
I even tried a handler which is called at runtime when the websocket is connected (hidloc is a hidden control which gets the window.location; ) with this code (the handler Handle sub is the same as the filter's sub):
I also have placed a breakpoint in the filter request handle but it does not stop there and the same is valid for the custom handler request.
I am through with ideas on how to deal with it. Can somebody advise on anything that maybe I have missed?
java.lang.RuntimeException: Object should first be initialized (HttpSession).
I searched the forum and found the solutions in:
jServer v4.0 - Based on Jetty 11
Starting from B4J v9.80 this library is included as an internal library. Old library: https://www.b4x.com/android/forum/threads/141323/#content This is a new version of jServer. It is based on Jetty 11.0.9. Previous versions were based on an early version of Jetty 9. There were many improvements...
www.b4x.com
and in
safari session variables in b4j v4
Hi i have problems with sessions variables with safari after upgrade to version 4. it seems that browser lose values. Chrome and firefox works correctly. In safari i have the accept cookies and data from all sites active. can anyone help me?
www.b4x.com
I implemented them but I keep getting this error.
I even tried a handler which is called at runtime when the websocket is connected (hidloc is a hidden control which gets the window.location; ) with this code (the handler Handle sub is the same as the filter's sub):
B4X:
Dim hj As HttpJob
hj.Initialize("", Me)
Dim sSite As String = hidloc.GetVal.Value
Log(sSite)
hj.Download(IIf(sSite.EndsWith("/"), sSite.SubString2(0, sSite.Length - 1), sSite) & "/sess")
wait for (hj) JobDone(hj As HttpJob)
hj.Release
I also have placed a breakpoint in the filter request handle but it does not stop there and the same is valid for the custom handler request.
I am through with ideas on how to deal with it. Can somebody advise on anything that maybe I have missed?