Sidebar
0 votes
27 views
ago by shamon-l-7513 (190 points)

com.qvera.qie.web.exception.MappingFailureException:  WrappedException: Wrapped java.lang.Exception: Parameter 'publicKeyIn' must be a 'String', 'File', or 'byte[]'. 

var outputFilename = "\\iis-int-dev\generatedfiles\PGP\encryption\completed\out.txt";

var bytes = source.getBytes();

var PGPTrilliumPublic = qie.getVariable('PGPTrilliumPublic');

qie.info(PGPTrilliumPublic);

var outBytes = qie.pgpEncryptBytesNoSig(bytes, PGPTrilliumPublic);

qie.writeFile(outputFilename, outBytes);

1 Answer

0 votes

Using qie.getVariable() returns an object, rather than the String that qie.pgpEncryptBytesNoSig() is expecting.  Try using this instead:

var PGPTrilliumPublic = qie.getVariable('PGPTrilliumPublic').getBytes();
ago by jon-t-7005 (8.3k points)
...