Announcement

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

    HashMap cannot be cast to AdvancedCriteria

    SmartClient Version: SNAPSHOT_v9.1d_2014-01-24/EVAL Deployment (expires 2014.03.25_13.13.02) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)

    A simple operationBinding with criteria is causing a class cast exception in the latest nightly build.

    <operationBindings>
    <operationBinding operationType="fetch" operationId="fetchDefault">
    <criteria fieldName="isDefault" value="true"/>
    </operationBinding>
    </operationBindings>

    16:41:03.759:XRP7:WARN:RPCManager:java.util.HashMap cannot be cast to com.isomorphic.criteria.AdvancedCriteriaundefined - response: {operationId: "custom",
    clientContext: undef,
    internalClientContext: undef,
    context: Obj,
    transactionNum: 22,
    httpResponseCode: 200,
    httpResponseText: "//isc_RPCResponseStart-->[{data:"java.ut..."[348],
    xmlHttpRequest: [object XMLHttpRequest],
    transport: "xmlHttpRequest",
    status: -1,
    clientOnly: undef,
    httpHeaders: Obj,
    isStructured: true,
    callbackArgs: null,
    results: Obj,
    data: "java.util.HashMap cannot be cast to com...."[76],
    invalidateCache: false,
    isDSResponse: true,
    queueStatus: -1}
    16:41:03.775:XRP7:WARN:RPCManager:java.util.HashMap cannot be cast to com.isomorphic.criteria.AdvancedCriteriaundefined - response: {operationId: "custom",
    clientContext: undef,
    internalClientContext: undef,
    context: Obj,
    transactionNum: 22,
    httpResponseCode: 200,
    httpResponseText: "//isc_RPCResponseStart-->[{data:"java.ut..."[348],
    xmlHttpRequest: [object XMLHttpRequest],
    transport: "xmlHttpRequest",
    status: -1,
    clientOnly: undef,
    httpHeaders: Obj,
    isStructured: true,
    callbackArgs: null,
    results: Obj,
    data: "java.util.HashMap cannot be cast to com...."[76],
    invalidateCache: false,
    isDSResponse: true,
    queueStatus: -1}

    #2
    We have automated tests that would catch this. Are you sure you don't have a deployment issue, such as war/sc/system/schema being missing for some reason?

    If that doesn't seem to be the case, please show the server log for this request, so we can see the stack traces (please always include this).

    Comment


      #3
      Another user hit the same error but provided a stack trace. This is fixed for tomorrow's build.

      Our automated test hit the more advanced case, which ironically didn't break. We'll add another test.

      Comment

      Working...
      X