简体   繁体   English

Lotus-Notes插件中的UnsatisfiedLinkError

[英]UnsatisfiedLinkError in lotus-notes plugin

We are having an issue with a dll in a notes plugin. 我们在Notes插件中遇到dll问题。

When we call this: NotesFactory.createSession(); 当我们这样称呼时:NotesFactory.createSession();

we get this error: 我们得到这个错误:

Unable to create view: nlsxbe (The filename or extension is too long. java.lang.UnsatisfiedLinkError: nlsxbe (The filename or extension is too long. ) at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:952) at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:921) at java.lang.System.loadLibrary(System.java:452) at lotus.domino.NotesThread.load(Unknown Source) at lotus.domino.NotesThread.checkLoaded(Unknown Source) at lotus.domino.NotesThread.sinitThread(Unknown Source) at com.atempo.adam.lotus.plugin.views.TopicView.createPartControl(TopicView.java:609) 无法创建视图:java中的java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:952)上的nlsxbe(文件名或扩展名太长。java.lang.UnsatisfiedLinkError:nlsxbe(文件名或扩展名太长。)。位于Lotus.domino.NotesThread.load(Unknown Source)处的java.lang.System.loadLibrary(System.java:452)处的lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:921)在Lotus.domino.NotesThread.checkLoaded(未知源) )在Lotus.domino.NotesThread.sinitThread(未知源)在com.atempo.adam.lotus.plugin.views.TopicView.createPartControl(TopicView.java:609)

NotesFactory is in Notes.jar, that we have included in our "plugin.xml" in dependencies tab. NotesFactory位于Notes.jar中,已包含在“依赖项”选项卡的“ plugin.xml”中。 (The dependencie is: "com.ibm.notes.java.api"). (依赖关系是:“ com.ibm.notes.java.api”)。

The path to the jar is: "C:\\Archivos de programa\\IBM\\Lotus\\Notes\\framework\\rcp\\eclipse\\plugins\\com.ibm.rcp.j2se.win32.x86_1.5.0.SR4-200707311521\\jre\\lib\\Notes.jar" That is longer than 128 characters. 罐子的路径是:“ C:\\ Archivos de programa \\ IBM \\ Lotus \\ Notes \\ framework \\ rcp \\ eclipse \\ plugins \\ com.ibm.rcp.j2se.win32.x86_1.5.0.SR4-200707311521 \\ jre \\ lib \\ Notes.jar“长度超过128个字符。 If we install notes in "c:\\program files\\IBM" instead of "C:\\Archivos de programa\\IBM", the resulting path is shorter than 128 and we don't get the error. 如果将注释安装在“ c:\\ program files \\ IBM”而不是“ C:\\ Archivos de programa \\ IBM”中,则结果路径短于128,并且不会出现错误。

We have also tried copying nlsxbe.dll to WIN\\System32 or registring nlsxbe.dll with the regsvr32 command, but we get the same error. 我们还尝试了使用regsvr32命令将nlsxbe.dll复制到WIN \\ System32或registring nlsxbe.dll,但是却遇到了同样的错误。

Versions are: Lotus notes 8.0, Revision 20070803.1143 java 1.5.0 版本为:Lotus Notes 8.0,修订版20070803.1143 Java 1.5.0

thanks 谢谢

Try adding the nlsxbe path to your Environment variables. 尝试将nlsxbe路径添加到您的环境变量中。 It Worked for me 对我有用

Did you add the jar as an External jar to the plugin project? 您是否将该jar作为外部jar添加到插件项目? If so try copying the jar and the dll into to the plugin project and reference them from there. 如果是这样,请尝试将jar和dll复制到插件项目中,然后从那里引用它们。

You can try asking Mikkel for some help he has lots of experience with plugin development within Lotus Notes --> www.lekkimworld.com 您可以尝试向Mikkel寻求帮助,他在Lotus Notes方面具有丰富的插件开发经验-> www.lekkimworld.com

@Carlos Jaime wrote me an e-mail and sure I will answer. @Carlos Jaime给我写了一封电子邮件,我一定会回答。

@Mitch Wheat I don't know if you've seen Notes recently but since Notes 8 was released this is no longer your grand fathers Notes!! @Mitch Wheat我不知道您最近是否看过Notes,但是自从Notes 8发布以来,这已不再是您的祖父Notes !! Notes is now based on Eclipse and a very modern and capable client. Notes现在基于Eclipse和一个非常现代且功能强大的客户端。 Probably one of the strongest enterprise clients, if not the strongest, on the market today. 可能是当今市场上最强大的企业客户之一,即使不是最强大的客户。 Many with views like yours either haven't seen (or used) a Notes client for a looooooong time or they are part of an organization that simply don't upgrade due to reasons that are beyond me. 许多像您这样的观点的人要么一整天都没看过(或使用过)Notes客户端,要么它们是组织的一部分,由于超出我的原因而根本就不升级。

Notes.jar should be in the "Notes\\jvm\\lib\\ext" folder. Notes.jar应该位于“ Notes \\ jvm \\ lib \\ ext”文件夹中。 Use that one instead. 改用那个。 There are known issues putting the Notes.jar into your plugin that can cause the client to crash/fail. 将Notes.jar放入您的插件中存在一些已知问题,可能导致客户端崩溃/失败。

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

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