0 votes

Hi!

'm currently trying to make a multiplayer game in Godot. I have a remote server with tomEE on it. When I try to request the current players from my server everything works fine, but when I make the exact same request again, I get a 500 error.

I've tested my server in a program called Postman and there I can make an endless amount of requests without any errors, so this problem has something to do with Godot.

When I make my requests I create a temporary request node, make the request and free the node when its done.

This is the error I'm recieving:

java.lang.ArithmeticException: Not an int/long, use other value readers
    org.apache.johnzon.core.JsonNumberImpl.checkFractionalPart(JsonNumberImpl.java:117)
    org.apache.johnzon.core.JsonNumberImpl.intValueExact(JsonNumberImpl.java:55)
    org.apache.johnzon.mapper.MappingParserImpl.toObject(MappingParserImpl.java:596)
    org.apache.johnzon.mapper.MappingParserImpl.toValue(MappingParserImpl.java:923)
    org.apache.johnzon.mapper.MappingParserImpl.buildObject(MappingParserImpl.java:340)
    org.apache.johnzon.mapper.MappingParserImpl.readObject(MappingParserImpl.java:141)
    org.apache.johnzon.mapper.MappingParserImpl.readObject(MappingParserImpl.java:131)
    org.apache.johnzon.mapper.MappingParserImpl.readObject(MappingParserImpl.java:123)
    org.apache.johnzon.mapper.Mapper.mapObject(Mapper.java:362)
    org.apache.johnzon.mapper.Mapper.readObject(Mapper.java:295)
    org.apache.johnzon.jsonb.JohnzonJsonb.fromJson(JohnzonJsonb.java:224)
    org.apache.johnzon.jaxrs.jsonb.jaxrs.JsonbJaxrsProvider.readFrom(JsonbJaxrsProvider.java:187)
    org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSUtils.java:1397)
    org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBody(JAXRSUtils.java:1349)
    org.apache.cxf.jaxrs.utils.JAXRSUtils.processRequestBodyParameter(JAXRSUtils.java:865)
    org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:810)
    org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:214)
    org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78)
    org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
    org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
    org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267)
    org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:258)
    org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

Godot is doing something behind the scenes that is causing this error and I have no idea how to solve it. Please help :(

asked Nov 29, 2019 in Engine by AlpacaLord (21 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.