NotesCLI 3.4 java exception
Does anyone have any clue of what that exception might be?
Or at least any help guiding where I should look?@laptop:~/Downloads/NotesCLI-3.4.0$ ./notescli.cmd --version Lotus Notes Command Line Email Client v3.4.0 Copyright (C) 2开发者_StackOverflow002, 2010 by IBM Corporation. Exception in thread "Thread-5" java.lang.NoSuchFieldError: lotus/domino/local/Session.cpp_object at lotus.domino.local.NotesBase.PropGetBool(Native Method) at lotus.domino.local.Session.isOnServer(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.python.core.PyReflectedFunction.__call__(Unknown Source) at org.python.core.PyMethod.__call__(Unknown Source) at org.python.core.PyObject.__call__(Unknown Source) at org.python.core.PyInstance.invoke(Unknown Source) at org.python.pycode._pyx0.versionInfo$2(./lib/notescli3/notescli3.py:56) at org.python.pycode._pyx0.call_function(./lib/notescli3/notescli3.py) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyFunction.__call__(Unknown Source) at org.python.core.PyObject.__call__(Unknown Source) at org.python.pycode._pyx1.f$0(:1) at org.python.pycode._pyx1.call_function() at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyCode.call(Unknown Source) at org.python.core.Py.runCode(Unknown Source) at org.python.core.__builtin__.eval(Unknown Source) at org.python.core.__builtin__.eval(Unknown Source) at org.python.core.BuiltinFunctions.__call__(Unknown Source) at org.python.pycode._pyx0.run$8(./lib/notescli3/notescli3.py:159) at org.python.pycode._pyx0.call_function(./lib/notescli3/notescli3.py) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyFunction.__call__(Unknown Source) at org.python.core.PyMethod.__call__(Unknown Source) at org.python.core.PyObject.__call__(Unknown Source) at org.python.core.PyObject._jcallexc(Unknown Source) at org.python.core.PyObject._jcall(Unknown Source) at org.python.proxies.__main__$NotesCLI3$1.run(Unknown Source) at lotus.domino.NotesThread.run(Unknown Source)
The answer is simple. You use Notes.jar form different version of LN client.
Setup java class path to the same Notes.jar that your LN use.
Based on this post in one of IBM's Notes community formus, it appears that there may be a bug in the isOnServer property in Notes and Domino version 8.5.2. That property is clearly being referenced in your stacktrace just before the error.
So the first thing I would do is download and apply the Fix Packs that IBM has issued for 8.5.2, which can be found here and see if they solve the problem for you. You could also try upgrading to Notes 8.5.3, which you'll need to get through your normal software distribution channel.
If that doesn't help, then your best course of action would probably be to downgrade to 8.5.1 and if that fixes the problem then you could take two paths: call IBM support and report the problem in 8.5.2 to the Notes programability support team and see if they can provide a hotfix, and/or go to the OpenNTF site for the Notes command line client project and post the information in the discussion area and see if the developer can provide you with a workaround that avoids the isOnServer call. (Or you could download the source code, create the workaround yourself, and then post your code back to OpenNTF, along with an explanation!)
精彩评论