Question
Alfa Bank
RU
Last activity: 14 Aug 2019 0:31 EDT
Unreleased resource: stream in activity InvokeAxis2
Hello, Team.
Can anyone explain me why there is no close method called after reading from data source stream inside activity InvokeAxis2?
try {
java.io.InputStream in = dataSource.getInputStream();
byte[] buf = new byte[in.available()];
in.read(buf);
String attachVal = Base64Util.encodeToString(buf);
attachKeys.add(attachKey);
attachVals.add(attachVal);
attachTypes.add(attachType);
} catch (Throwable e) {
throw new ConnectorException("Couldn't serialize attachment to string value", e);
}
I'm using Pega 7.2.2. Activity InvokeAxis2 is located in Rule-Connect-SOAP class. Pega-IntegrationEngine:07-10-27 ruleset.
Regards,
Alex