Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-6915

java.lang.ClassCastException: org.json.simple.JSONObject cannot be cast to org.json.simple.JSONArray

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Invalid
    • Affects Version/s: Release 3.4.0
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      2014 Sprint 18 Studio

      Description

      From http://www.appcelerator.com/blog/2014/09/titanium-sdk-3-4-0-beta-for-ios-8-now-available/#div-comment-71550

      We’ve been running Java 8 with it since 8 was released. We’ve heard mention that we need specific versions like 6 or 7 installed by various parties before, but traditionally that was because of Android limitations.

      There is instead likely a `ti info` bug like TISTUD-6909 but on the iOS side. Somehow the CLI is giving us different JSON values than we’ve traditionally received (i.e. Numbers where they used to be strings, objects where they used to be arrays). We couldn’t reproduce it locally for 6909, but were able to test and fix based on the user’s ti info output.

      In this case, we are guessing we used to get an array and now get an object, but without the output we don’t know where. Please run:

      titanium info -t ios -o json
      

      So we can generate a test case for it, and fix it.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cwilliams Christopher Williams
                Reporter:
                cwilliams Christopher Williams
                Reviewer:
                Praveen Innamuri (Inactive)
              • Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: