Error
-
I try to use the plugin with a remote Java library and get an error: Code: -32700 redstone.xmlrpc.XmlRpcFault: parse error. not well formed. I modifiyed the send methode like this:
StringBuffer buffer = ((StringWriter) writer).getBuffer();
String data = buffer.toString();
String privateHash = StringUtils.sha256(privateKey + StringUtils.sha256(privateKey + data));String dataSHA = publicKey + “||” + privateHash;
byte[] dataArray = dataSHA.getBytes(XmlRpcMessages.getString(“XmlRpcClient.Encoding”));openConnection();
connection.setRequestProperty(“Content-Length”, String.valueOf(dataArray.length));OutputStream output = new BufferedOutputStream(connection.getOutputStream());
output.write(dataArray);
output.flush();
output.close();
- The topic ‘Error’ is closed to new replies.