简体   繁体   English

错误Lotus Domino下的Jacob库(不满意的链接错误:jacob-1.17-x64(库已经在另一个类加载器中加载)

[英]error Jacob Library under lotus domino (unsatisfied linkError :jacob-1.17-x64(Library is already loaded in another classloader)

I have a webagent under lotus domino xpages that use jacob Library to execute macro under Microsoft Excel the agent work randomly and i have frequently an error. 我在使用jacob库在Microsoft Excel下执行宏的Lotus Domino xpages下有一个Webagent,该代理随机工作,并且我经常出错。

The error came from this line in the code : final ActiveXComponent excel = new ActiveXComponent("Excel.Application"); 错误来自代码中的这一行:最终ActiveXComponent excel = new ActiveXComponent(“ Excel.Application”);

System OS :Win2008 server R2 x64 Domino Server 8.5.3 x86 can any one give me a help ? 系统操作系统:Win2008 server R2 x64 Domino Server 8.5.3 x86谁能给我帮助?

在此处输入图片说明

When you load libraries that have a native component (like the jacob library), you should make sure to load them once only. 加载具有本机组件的库(例如jacob库)时,应确保仅加载一次。 The agent runtime however loads every run using a separate class loader instance. 但是,代理运行时使用单独的类加载器实例加载每次运行。 You probably can have success with an XAgent and a application scope managed bean. 使用XAgent和应用程序范围托管的bean,您可能会成功。

Running client type apps (like Excel) is never a good idea on a server 在服务器上运行客户端类型的应用程序(例如Excel)绝不是一个好主意

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM