This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 18, 2011, 7:44 AM
261 Posts

Re: EmbeddedObject.extractFile() is not working in a Java Agent if the Agent is called from an xPage

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role:
  • Tags: xpage,agent,java,embedded object
  • Replies: 2
This sounds like a security issue. For access to the filesystem the runtime security level of the (Java) agent needs to be set to 2 or 3. You might also want to check the security settings in the server document, especially who's allowed to run unrestricted methods.
 
Is the file extracted if you run the agent on the server using a URL? (http://server/db.nsf/yourAgent?openAgent)
 
Mark
May 18, 2011, 9:37 AM
8 Posts
Re: EmbeddedObject.extractFile() is not working in a Java Agent if the Agent is called fro...
Hi Mark,
 
Thanks for you advice, well the problem is solved. 
 
I am running the agent via http://localhost application
I have just selected "Allow restricted operation with full Administration rights". Its working fine.
 
It seems that when I run an agent from xPage on a localhost it is running with Anonymous and hence it was not extracting the file. 
 
 
- aneesh 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal