B4J Question [BANanoServer] Errors, please help

Mashiane

Expert
Licensed User
Longtime User
Good day

I am attempting BANanoServer again.

I have applied this fix on BANanoServer 7.35, please note the reported version online is 1.13


I am getting this error on b4j console.

B4X:
java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (HttpSession).

In the app, this is the error

B4X:
Uncaught SyntaxError: Unexpected token 'o', "[object Blob]" is not valid JSON
    at JSON.parse (<anonymous>)
    at s.onmessage (bananocore.js:17:2968)

Browser

B4X:
s.onmessage = function(e) {
                (r.debug || p.debugAll) && console.debug("ReconnectingWebSocket", "onmessage", r.url, e.data);
                var t = JSON.parse(e.data);
                if ("eval" == t.etype)
                    if (isWSJSON(t.prop))
                        if ((t = JSON.parse(t.prop)).request_id) {
                            var n = t.request_id;
                            var o = t.data;
                            if (toString.call(o) === '[object Object]') {
                                o = JSON.stringify(o);
                            }
                            ;i[n](o),
                            delete i[n]
                        } else {
                            var c;
                            (c = l("message")).data = e.data,
                            d.dispatchEvent(c)
                        }
                    else
                        (c = l("message")).data = e.data,
                        d.dispatchEvent(c);
                else
                    (c = l("message")).data = e.data,
                    d.dispatchEvent(c)
            }
            ,
 

jmon

Well-Known Member
Licensed User
Longtime User
java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (HttpSession).

I had that a moment ago. The solution for me was to kill the java.exe process that stayed opened in the background.
 
Upvote 0
Top