ddhanis
Hi Lightstreamer team,
While testing my apps, I received this message and exception below. Can you explain to me what this means ?
AFAIK, I never try to do such thing as "update management" what so ever.
as for the exception, I was trying to send a message to lightstreamer to delete a row in a dynametaplus table. the map is a HashMap<String,String> table.
Please give me a way to solve these problems ?
TIA, Dyan
30.Jan.08 19:58:25,833 <ERROR> Update management failed
java.lang.ClassCastException: com.lightstreamer.i.jc cannot be cast to java.lang
.String
at com.lightstreamer.d.pb.b(pb.java)
at com.lightstreamer.d.pb.a(pb.java)
at com.lightstreamer.d.pb.b(pb.java)
at com.lightstreamer.d.pb.a(pb.java)
at com.lightstreamer.d.eb.a(eb.java)
at com.lightstreamer.d.nb.smartUpdate(nb.java)
Dario Crivelli
We need to investigate; as the Map values are already ensured to be Strings, the passed Map seems to be OK.
May you please specify the Server edition and version/build?
Dario Crivelli
After investigating with ddhanis, this turned out to be a side effect of reusing the objects sent to the ItemEventListener, which, however, is not supported by the ItemEventListener specifications.
RichP1
Hi Dario,
We're getting a similar error message (stack trace below) - is it the same issue that ddhanis came across? We're running version 3.4.8, Vivace edition.
Many thanks,
Richard
03-Mar-09 09:09:57,578 |ERROR|LightstreamerLogger.pump |PUMP POOLED THREAD 4 |Unexpected error while sending data
java.lang.ClassCastException: java.lang.String cannot be cast to com.lightstreamer.c.gc
at com.lightstreamer.a.j.a(j.java)
at com.lightstreamer.b.b.c.a(c.java)
at com.lightstreamer.b.b.j.a(j.java)
at com.lightstreamer.b.b.k.a(k.java)
at com.lightstreamer.b.j.a(j.java)
at com.lightstreamer.b.a.s.a(s.java)
at com.lightstreamer.b.a.i.a(i.java)
at com.lightstreamer.b.a.i.a(i.java)
at com.lightstreamer.b.a.c.a(c.java)
at com.lightstreamer.b.a.db.d(db.java)
at com.lightstreamer.b.a.db.k(db.java)
at com.lightstreamer.b.l.a(l.java)
at com.lightstreamer.c.vb.run(vb.java)
at com.lightstreamer.c.u.a(u.java)
at com.lightstreamer.c.v.run(v.java)
03-Mar-09 09:09:57,578 |ERROR|LightstreamerLogger.scheduler |PUMP POOLED THREAD 4 |Unexpected error while sending data
com.lightstreamer.f.bb: java.lang.ClassCastException: java.lang.String cannot be cast to com.lightstreamer.c.gc
at com.lightstreamer.b.a.c.a(c.java)
at com.lightstreamer.b.a.db.d(db.java)
at com.lightstreamer.b.a.db.k(db.java)
at com.lightstreamer.b.l.a(l.java)
at com.lightstreamer.c.vb.run(vb.java)
at com.lightstreamer.c.u.a(u.java)
at com.lightstreamer.c.v.run(v.java)
03-Mar-09 09:09:57,578 |INFO |LightstreamerLogger.connections |PUMP POOLED THREAD 4 |Failed HTTP connection on Lightstreamer HTTP Server from 192.168.71.110:1357
03-Mar-09 09:09:57,578 |ERROR|LightstreamerLogger.connections |PUMP POOLED THREAD 4 |Failure in HTTP connection on Lightstreamer HTTP Server
com.lightstreamer.f.bb: java.lang.ClassCastException: java.lang.String cannot be cast to com.lightstreamer.c.gc
at com.lightstreamer.b.a.c.a(c.java)
at com.lightstreamer.b.a.db.d(db.java)
at com.lightstreamer.b.a.db.k(db.java)
at com.lightstreamer.b.l.a(l.java)
at com.lightstreamer.c.vb.run(vb.java)
at com.lightstreamer.c.u.a(u.java)
at com.lightstreamer.c.v.run(v.java)
Dario Crivelli
Yes, it should be.
Though the exception message is slightly different, the reuse of a HashMap previously supplied through "update" or "smartUpdate" could lead to that exception.
Is it possible for you to check the Data Adapter code?
Note that the Server can't perform any preliminary check on this condition for performance reasons.