{"action":"opened","issue":{"url":"https://api.github.com/repos/eclipsesource/J2V8/issues/369","repository_url":"https://api.github.com/repos/eclipsesource/J2V8","labels_url":"https://api.github.com/repos/eclipsesource/J2V8/issues/369/labels{/name}","comments_url":"https://api.github.com/repos/eclipsesource/J2V8/issues/369/comments","events_url":"https://api.github.com/repos/eclipsesource/J2V8/issues/369/events","html_url":"https://github.com/eclipsesource/J2V8/issues/369","id":280204497,"number":369,"title":"Reoccurring \"StartNodeJS Not Supported.\" error","user":{"login":"kocko94","id":19534600,"avatar_url":"https://avatars3.githubusercontent.com/u/19534600?v=4","gravatar_id":"","url":"https://api.github.com/users/kocko94","html_url":"https://github.com/kocko94","followers_url":"https://api.github.com/users/kocko94/followers","following_url":"https://api.github.com/users/kocko94/following{/other_user}","gists_url":"https://api.github.com/users/kocko94/gists{/gist_id}","starred_url":"https://api.github.com/users/kocko94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kocko94/subscriptions","organizations_url":"https://api.github.com/users/kocko94/orgs","repos_url":"https://api.github.com/users/kocko94/repos","events_url":"https://api.github.com/users/kocko94/events{/privacy}","received_events_url":"https://api.github.com/users/kocko94/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-07T16:58:39Z","updated_at":"2017-12-07T16:58:39Z","closed_at":null,"author_association":"NONE","body":"Still the issue seems to be reoccurring. The trigger of it is the following line:\r\n\r\n```java\r\nNodeJS nodeJS = NodeJS.createNodeJS();\r\n```\r\n\r\nThe full trace of the exception is:\r\n\r\n```java\r\njava.lang.RuntimeException: Unable to start activity ComponentInfo{example.com.testnodejs2/example.com.testnodejs2.MainActivity}: java.lang.UnsupportedOperationException: StartNodeJS Not Supported.\r\n at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2213)\r\n at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2263)\r\n at android.app.ActivityThread.access$800(ActivityThread.java:135)\r\n at app.ActivityThread$H.handleMessage(ActivityThread.java:1212)\r\n at android.os.Handler.dispatchMessage(Handler.java:102)\r\n at android.os.Looper.loop(Looper.java:136)\r\n at android.app.ActivityThread.main(ActivityThread.java:5038)\r\n at java.lang.reflect.Method.invokeNative(Native Method)\r\n at java.lang.reflect.Method.invoke(Method.java:515)\r\n at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)\r\n at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:611)\r\n at dalvik.system.NativeStart.main(Native Method)\r\n Caused by: java.lang.UnsupportedOperationException: StartNodeJS Not Supported.\r\n at com.eclipsesource.v8.V8._startNodeJS(Native Method)\r\n at com.eclipsesource.v8.V8.createNodeRuntime(V8.java:857) \r\n at com.eclipsesource.v8.NodeJS.createNodeJS(NodeJS.java:73)\r\n at com.eclipsesource.v8.NodeJS.createNodeJS(NodeJS.java:43)\r\n at de.tech.kv.testnodejs2.MainActivity.testNode(MainActivity.java:22)\r\n at de.tech.kv.testnodejs2.MainActivity.onCreate(MainActivity.java:17)\r\n at  android.app.Activity.performCreate(Activity.java:5445)\r\n at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)\r\n at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175\r\n```\r\n\r\nI've so far tried with the following J2V8 versions (either through gradle or I've manually downloaded the AAR file(s)):\r\n\r\n```gradle\r\ncompile 'com.eclipsesource.j2v8:j2v8:4.1.0@aar'\r\ncompile 'com.eclipsesource.j2v8:j2v8:4.3.0@aar'\r\ncompile 'com.eclipsesource.j2v8:j2v8:4.8.0@aar'\r\n//and some of the previous 3.x version but they do not support NodeJS\r\n```\r\nThe funny part is that the built Loader is successfully loading the V8 native libs and I am able to run:\r\n```java\r\nV8 v8 = V8.createV8Runtime();\r\n```\r\nI've tested the code on\r\n* OnePlus X (custom ROM with Android 7.1.1) with CPU architecture:\r\n   *  OS.ARCH: armv7l\r\n   *  CPU_ABI: armeabi-v7a\r\n   *  CPU_ABI2: armeabi\r\n* Pipo P9 Tablet (custom ROM with Android 4.4.2) with CPU architecture:\r\n   *  OS.ARCH: armv7l\r\n   *  CPU_ABI: armeabi-v7a\r\n   *  CPU_ABI2: armeabi\r\n* Samsung S7 (stock ROM with Android 7.1.2) with CPU architecture:\r\n   *  OS.ARCH: armv8l\r\n   *  CPU_ABI: armeabi-v8a\r\n   *  CPU_ABI2: armeabi\r\n\r\nI even tried to copy the downloaded .so libs to the 'libJni' folder but also with no success. Also I am using absolute empty project with nothing in it appart from the single java line from above so there are no other .so libraries or anything. Do you know the reason of this issue?\r\n"}}
{"actor":{"display_login":"kocko94"}}