Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Cannot cast java.lang.String to java.util.List

    Every since I updated my project from build "5.1-d20140907-SNAPSHOT" to build "5.1-p20151218", I am getting the exception "Cannot cast java.lang.String to java.util.List"

    Here is the line of code it is complaining about:
    Code:
    List<String> sensorListing = (List<String>) request.getCriteriaValue("sensorId");
    The object passed in the criteria is of type String[]

    Please help me understand why the different smartgwt build is causing the exception.

    #2
    We can't tell much from just this one line of code. This could be the result of a bugfix making longstanding incorrect usage in your code into an actual problem, but don't have any specific recent bugfix in mind that would be involved in this API, so we'd need a way to reproduce the problem to really comment.

    Comment

    Working...
    X