Hi Isomorphic,
While trying to upgrade Smart GWT from 5.0 to 6.1 we got the following error:
java.lang.ClassCastException: com.isomorphic.js.JSExpression cannot be cast to java.lang.Long
at com.isomorphic.rpc.RPCManager.parseRequest(RPCManager.java:2480)
at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:435)
at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:415)
at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:147)
at com.isomorphic.servlet.IDACall._processRequest(IDACall.java:119)
at com.isomorphic.servlet.IDACall.doPost(IDACall.java:79)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:176)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
After some debugging, for the same input, snippet:
<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object">
<transactionNum xsi:type="xsd:long">0</transactionNum>
<operations xsi:type="xsd:List">
...
the 5.0 version transforms transactionNum into a Long type, but in 6.1 it is JSExpression.
Checking the RPCManager class the problematic line is:
RPCManager.java:1615 Long transactionNum = (Long)this.transaction.get("transactionNum");
Do you have a recommendation on how to move forward with the issue please?
Regards,
Zsolt
While trying to upgrade Smart GWT from 5.0 to 6.1 we got the following error:
java.lang.ClassCastException: com.isomorphic.js.JSExpression cannot be cast to java.lang.Long
at com.isomorphic.rpc.RPCManager.parseRequest(RPCManager.java:2480)
at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:435)
at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:415)
at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:147)
at com.isomorphic.servlet.IDACall._processRequest(IDACall.java:119)
at com.isomorphic.servlet.IDACall.doPost(IDACall.java:79)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:176)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
After some debugging, for the same input, snippet:
<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object">
<transactionNum xsi:type="xsd:long">0</transactionNum>
<operations xsi:type="xsd:List">
...
the 5.0 version transforms transactionNum into a Long type, but in 6.1 it is JSExpression.
Checking the RPCManager class the problematic line is:
RPCManager.java:1615 Long transactionNum = (Long)this.transaction.get("transactionNum");
Do you have a recommendation on how to move forward with the issue please?
Regards,
Zsolt
Comment