Question

6
Replies
43
Views
alexplisov Member since 2017 5 posts
Alfa Bank
Posted: 1 year ago
Last activity: 11 months 4 weeks ago

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

Data Integration Java and Activities
Share this page LinkedIn