Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4496] Payload in KrollFunction: JNIUtil: !!! Unable to convert unknown Java object class 'java.util.ArrayList' to JS value !!!

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2016-11-07T14:42:34.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterRainer Schleevoigt
AssigneeShak Hossain
Created2016-09-22T15:49:21.000+0000
Updated2016-11-07T14:42:34.000+0000

Description

A XML parser (json-java) gives me an object like this: https://github.com/AppWerft/Ti.RemoteXML/blob/master/test.json It is an object that contains as child partly arrays I tried to use this object as second parameter in KrollFunction.call(). In all cases crashes the app. I tried to convert the Object into HashMap, KrollDict or JSONObject (via contructor). The only working way is to send the object by toString(). But in this case the payload must be converted to object on JS layer and exactly t his I would avoid. Any ideas how I can clean transfer?

Comments

  1. Sharif AbuDarda 2016-11-01

    Hello, Can you provide a sample code? we will look into it. Thanks.

JSON Source