🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: mozilla.dev.tech.js-engine.rhino
1 messages
1 total messages Started by rahulsaini8 Wed, 26 Feb 2014 15:19
Issue in Rhino API, after integrating progaurd
#1
Author: rahulsaini8
Date: Wed, 26 Feb 2014 15:19
47 lines
2161 bytes
After integrating Progaurd in Android, I'm facing issue with Rhino API.

Without progaurd, below code in working fine.

org.mozilla.javascript.Context context = org.mozilla.javascript.Context.enter();

context.setOptimizationLevel(-1);

ScriptableObject scope = context.initStandardObjects();

try {

    InputStream inputStream = mContext.getAssets().open(JAVASCRIPT_FILE);

    InputStreamReader reader = new InputStreamReader(inputStream);



    context.evaluateReader(scope, reader, JAVASCRIPT_FILE, 1, null);

} catch (IOException exception) {

    throw new CustomException(null, exception);

}

Function functionAdd = (Function) scope.get(JAVASCRIPT_FUNCTION_NAME);



Object returnObject = functionAdd.call(context, scope, scope, new Object[] {

    parameter1, parameter2, parameter3

});

But after integrating Progaurd, I'm getting below error:



02-26 14:58:13.200: E/AndroidRuntime(11607): Caused by: java.lang.IllegalStateException: Failed to create VMBridge instance

02-26 14:58:13.200: E/AndroidRuntime(11607): at org.a.b.ds.<clinit>(Unknown Source)

02-26 14:58:13.200: E/AndroidRuntime(11607): ... 11 more

Thank You
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads