Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Aug 2007
    Location
    DKI Jaya
    Posts
    13

    com.lightstreamer.i.jc cannot be cast to java.lang

    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)

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    975
    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?

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    975
    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.

  4. #4
    Member
    Join Date
    Nov 2007
    Location
    London
    Posts
    18
    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)

  5. #5
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    975
    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.

 

 

Similar Threads

  1. Replies: 1
    Last Post: November 18th, 2009, 10:44 PM
  2. Replies: 3
    Last Post: September 29th, 2009, 09:54 AM
  3. Replies: 10
    Last Post: July 15th, 2009, 11:02 AM
  4. Replies: 1
    Last Post: May 21st, 2009, 10:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 11:34 PM.