{ "id": "175084", "key": "AC-6553", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2020-06-05T09:12:31.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-06-05T09:14:01.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "15000", "name": "Hyperloop" } ], "description": "I've been trying to create via hyperloop instances of java.lang.Throwable and calling setStackTrace(), unfortunately the code is failing with the following in the log output:\r\n\r\n\r\n{noformat}\r\n[ERROR] HyperloopProxy: (main) [45,461] Unable to resolve method call. Class: java.lang.Throwable, method name: setStackTrace, args: [[Ljava.lang.Object;@fb25d4c]\r\n{noformat}\r\n\r\n\r\nThis is the relevant code:\r\n\r\n{code:javascript}\r\nconst Throwable = require(\"java.lang.Throwable\");\r\nconst StackTraceElement = require(\"java.lang.StackTraceElement\");\r\nconst throwable = new Throwable(\"Test Exception\");\r\nthrowable.setStackTrace( [ new StackTraceElement( \"ClassName\", \"symbol\", \"file.js\", 1) ] );\r\n{code}\r\n\r\n\r\nAlso if I try to call throwable.getStackTrace() then I get:\r\n\r\n{noformat}\r\n[ERROR] JNIUtil: !!! Unable to convert unknown Java object class 'java.lang.StackTraceElement' to JS value !!!\r\n{noformat}\r\n\r\n\r\nIt looks like, to me, that the \"java.lang.StackTraceElement\" isn't being proxied between the js and the native code properly - a Hyperloop bug?\r\n\r\nI've attached a simple titanium project wth the above code for debugging purposes.", "attachment": [ { "id": "67424", "filename": "hyperloop-stacktrace.zip", "author": { "name": "michael@thecodesharman.com.au", "key": "michael@thecodesharman.com.au", "displayName": "Michael Sharman", "active": true, "timeZone": "Australia/Hobart" }, "created": "2020-06-05T09:10:05.000+0000", "size": 3130784, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Hyperloop unable to call Throwable.setStackTrace", "creator": { "name": "michael@thecodesharman.com.au", "key": "michael@thecodesharman.com.au", "displayName": "Michael Sharman", "active": true, "timeZone": "Australia/Hobart" }, "subtasks": [], "reporter": { "name": "michael@thecodesharman.com.au", "key": "michael@thecodesharman.com.au", "displayName": "Michael Sharman", "active": true, "timeZone": "Australia/Hobart" }, "environment": "Android 10, with Hyperloop 5.0.3 and Titanium SDK 9.0.1.GA", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }