Worklight Java adapter invoke another adapter get I/O issue <p>I have a issue when I try to call adapter (HTTP/MYSQL) from a Java adapter.</p> <p>When I am using Postmen test it (added Authorization on the header) It's always get a IO issue: </p> <p><code>[I O: Invalid token on line 1, column 14]</code>.</p> <p>First, I guess it should be OAuth issue, I add <code>@OAuthSecurity(enabled=false)</code> at the class but not work.</p> <p>Would you please help me find out where the problem is.</p> <p>Code snippet:</p> <pre><code>DataAccessService service = WorklightBundles.getInstance() .getDataAccessService(); ProcedureQName name = new ProcedureQName("mysqlAdapter", "getMysqlAdapters"); String para = ""; // String para = "['a','b','c']"; InvocationResult mysql= service.invokeProcedure(name, para); JSONObject jsMysql = mysql.toJSON(); //String rst = jsMysql.get("key").toString(); </code></pre> <p>PS following code snippet is working when I test it on Postman:</p> <pre><code>HttpUriRequest request = api.getAdaptersAPI() .createJavascriptAdapterRequest("mysqlAdapter", "getMysqlAdapters"); try { HttpResponse response = api.getAdaptersAPI().executeAdapterRequest(request); JSONObject jsonObj =api.getAdaptersAPI().getResponseAsJSON(response); return jsonObj.toString(); } catch (MFPServerOAuthException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return "error"; </code></pre>