Questions? Feedback?powered byOlark live chat software
Bug 3183

System.outofmemoryexception error when attempting to create filenet document from Powerbuilder 2017 13 August, 2019

jorge gonzalez
13 August, 2019
Product: PowerBuilder Category: PowerScript
Version: 2017 R3 Publishing: Public
Status: Reproducing Priority: P3
Classification: Resolution:
Mark Lee 13 August, 2019
Hi Jorge,

Thanks for your quick update.
1. I googled the error message you provided and found that the possible reason of it is the memory limit of your Web Service Server.
2. Another solution, you can find the link below:
http://codeverge.com/sybase.powerbuilder.general/pb-11.5.1-4011-calling-web-servic/1037418
 
Generally, we also suggest you rewrite the Web Service method.
1. Please refer to the PB help or the following link. SOAPClient is obsolete, which means it is no longer eligible for technical support and will not be enhanced. 
https://www.appeon.com/support/documents/appeon_online_help/pb2017r3/application_techniques/ch35s03.html#d0e23597
 
2. We suggest you use HTTPClient Object to rewrite the Soap Webservice method.
HTTPClient object is for sure much better than the traditional way with SOAP both in terms of flexibility and efficiency.
You can refer to the following samples for more details.
https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/236-call-soap-web-services-using-httpclient-object
https://www.appeon.com/support/documents/appeon_online_help/pb2019/objects_and_controls/ch02s39.html
 
Regards,
Mark Lee
jorge gonzalez 13 August, 2019
1. Does it happen when running from the PB IDE, or just in the deployed application?           It happens in both
2. Does this code work before in other PB version?     This code has been around for a while. What happened is that a new project came on line that consolidated Tif files into one big tif file and this problem popped up.
3. Are you using the .Net web service engine, or the EasySoap engine?         .net
(in other words, do you have PBWSCLIENT170.PBD OR PBSOAPCLIENT170.PBD in your target's library path?)
4. Can you please provide a sample test case (with PBT/PBL) for us to reproduce it?  This would be difficult to do.
Mark Lee 13 August, 2019
Hi Jorge,
  
Thanks for reporting this problem.
Sorry that I have never seen this issue before.
1. Does it happen when running from the PB IDE, or just in the deployed application?
2. Does this code work before in other PB version?
3. Are you using the .Net web service engine, or the EasySoap engine?
(in other words, do you have PBWSCLIENT170.PBD OR PBSOAPCLIENT170.PBD in your target's library path?)
4. Can you please provide a sample test case (with PBT/PBL) for us to reproduce it?
 
Regards,
Mark Lee
jorge gonzalez 13 August, 2019
sysoutmemerror.png (7KB)

*Phenomenon: I am attempting to create a FileNet document using the FileNet createdocument web service method. When the document is larger than 46 megs a system,outofmemoryexception occurs.


*Reproduce Steps: Call the createdocument FileNet method with a large file.


Remarks: Has anybody seen this error? It seems to be a java error. Is it being thrown by FileNet or one of the dlls PowerBuilder calls to interface with FileNet. How would I determine what is throwing this error.
OS:
Windows 10 
Platform:
64-bit 
Database Type:
IBM Mainframe DB2 
Database Version:
11