UnsatisfiedLinkError - NotesFactory.createSession
Hi,
I try to export data from Lotus Notes with the help of the lotus.domino.*-files (notes.jar).
When creating a new Session-Object
(Session s = NotesFactory.createSession();)
I get an "unsatisfiedLinkError"........
Can anybody help me?
Thanks a lot....
Axel
Maybe you need a native library (for example, a DLL on Windows) that is missing on your system (or at least is not in the PATH).
Jesper
Similar Messages
-
Entry point not found for js32.dll
Dear Friends,
I am trying to connect to a Domino server using NRPC (Native call based) connection. I have added Notes Client path in PATH variable (double checked this). My machine is W2k and Java version 1.4.2.
The following is the code which I am trying to run and getting erorr as,
"The procedure entry point JS_NewStringCopyN could not be located in dynamic link library js32.dll". I've use Dependency walker tool to ensure that js32.dll contains the specified function. May I know what's going wrong here?
Thanks,
Ketan
import java.util.List;
import java.util.Vector;
import lotus.domino.Database;
import lotus.domino.Document;
import lotus.domino.NotesError;
import lotus.domino.NotesException;
import lotus.domino.NotesFactory;
import lotus.domino.NotesThread;
import lotus.domino.Session;
import lotus.domino.View;
import lotus.domino.ViewEntry;
import lotus.domino.ViewEntryCollection;
public class TestNRPCConnection {
//session variable
protected Session session = null;
//database variable
protected Database dominodb = null;
* Constructor which accepts all the parameters to create a non-DIIOP domino connection
* @param serverName - name of domino server
* @param dbName - database name
* @param userIdFileName - user id file path
* @param userName -
* @param password
public TestNRPCConnection(String serverName, String dbName, String userIdFileName, String userName, String password)
try
NotesThread.sinitThread();
this.session = NotesFactory.createSession();
lotus.domino.Registration r = this.session.createRegistration();
r.switchToID(userIdFileName, password);
dominodb = session.getDatabase(serverName,dbName);
if(dominodb == null)
throw new Exception ("Couldn't create Domino Connection. Please check the parameters.");
if( dominodb.isOpen() == false)
this.close();
throw new Exception("Couldn't create Domino Connection. Please check the parameters. " +
" server=" + serverName
+ ", user=" + userName
+ ", user_ID_file=" + userIdFileName
+ ", database_path=" + dbName
+ ", password=" + ((password != null)? "<non-null>" : "<null>")
else
System.out.println("View Names are : " + dominodb.getViews());
System.out.println(" Database is Open " + dominodb.getFileName());
catch(NotesException e){
String dominoErrorText = e.text;
int dominoErrorID = e.id;
switch (dominoErrorID) {
case NotesError.NOTES_ERR_DOCNOTSAVED :
System.out.println("NotesException - . Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
break;
case NotesError.NOTES_ERR_VIEWOPEN_FAILED :
System.out.println("Could not open the specified View <viewname>. Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
break;
case NotesError.NOTES_ERR_DBNOACCESS :
System.out.println("No access to the specified Database <dbname>. Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
break;
case NotesError.NOTES_ERR_ILLEGAL_SERVER_NAME :
System.out.println("The servername specified <servername> isn't correct. Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
break;
case NotesError.NOTES_ERR_DBOPEN_FAILED :
System.out.println("Could not open specified Database <dbname>. Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
break;
case NotesError.NOTES_ERR_SSOTOKEN_EXP:
//Single Sign-on Token has expired.
System.out.println("NotesException - Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
break;
case NotesError.NOTES_ERR_SERVER_ACCESS_DENIED:
//Access denied.
System.out.println("This user is not authorized to open DIIOP connections with the Domino server. Check your DIIOP configuration. NotesException - " + dominoErrorID + " " + dominoErrorText);
break;
case NotesError.NOTES_ERR_GETIOR_FAILED:
//Could not get IOR from Domino Server.
System.out.println("Unable to open a DIIOP connection with " + serverName + ". Make sure the DIIOP and HTTP tasks are running on the Domino server, and that ports are open. NotesException - " + dominoErrorID + " " + dominoErrorText + ".");
break;
default:
//Unexpected error. Show detailed message.
System.out.println("NotesException - " + dominoErrorID + " " + dominoErrorText);
e.printStackTrace(System.out);
catch(Exception ex)
ex.printStackTrace();
System.out.println("Error while creating Domino Connection. Details - " + ex + ". Parameters are, " +
" server=" + serverName
+ ", user=" + userName
+ ", user_ID_file=" + userIdFileName
+ ", database_path=" + dbName
+ ", password=" + ((password != null)? "<non-null>" : "<null>"));
public synchronized void close()
try
this.dominodb = null;
if(session != null)
session.recycle();
session = null;
catch(Exception ex)
ex.printStackTrace();
finally
NotesThread.stermThread();
* Gets documents by the specified view name
* @param viewName - name of the domino view
* @return
public synchronized List getColumnNamesForView(String viewName)
List columnNames = new Vector();
List documentList = new Vector();
try
View view = (lotus.domino.local.View)this.dominodb.getView(viewName);
ViewEntryCollection entryCollection = view.getAllEntries();
if(entryCollection == null)
return null;
ViewEntry entry = entryCollection.getFirstEntry();
int i = -1; //counter
while (entry != null)
if (entry.isDocument())
Document doc = entry.getDocument();
i++;
//get the Column Names
if(i == 0)
List items = doc.getItems();
String name = "";
for(int k=0; ((i==0) && (k<items.size())); k++)
name = ((lotus.domino.Item)items.get(k)).getName();
//skip column names starting with $ or ($
if(name != null)
columnNames.add(name);
if(doc == null)
continue;
else
//clean up task
doc.recycle();
doc = null;
//return columnNames;
documentList.add(0, columnNames);
entry = entryCollection.getNextEntry();
}//end of while
catch(Exception e)
e.printStackTrace();
return documentList;
public static void main(String[] args){
TestNRPCConnection domino = null;
try
System.out.println("java.library.path = '" + System.getProperty("java.library.path") + "'");
domino = new TestNRPCConnection(
"testservername",
"names.nsf",
"c:/lotus/domino/data/admin.id",
"UserName/domain",
"somepassword");
System.out.println("Column Names " + domino.getColumnNamesForView("Groups"));
}catch(Exception e)
e.printStackTrace();
finally
//if(domino != null)
//domino.close();
}Hi,
Can you try with a Generic Wrapper like JNative (it contains a method to list all exported functions of a dll : even mangled ones) ?
--Marc (http://jnative.sf.net) -
Could not get IOR from Domino Server while provisioning Lotus Notes
Hi all,
There are two servers that have OIM installed, development server and test server. From development server, we can
provision to Lotus Notes just fine. But for test server everytime when
provision to Lotus Notes. There will be an exception
NotesException: Could not get IOR from Domino Server: http://10.3.100.61:63148/diiop_ior.txt
From test server
I can access the URL http://10.3.100.61:63148/diiop_ior.txt using Internet Explorer
I can telnet to 10.3.100.61 63148
I can use connector testing program and it work fine
All configuration and jar files are the same as development server
There is no firewall or antivirus running in both systems.
Both server is virtual server using VMWare.
OS: Windows2003R2 Enterprise
DB: Oracle 10gR2 10.2.0.2
AS: Oracle AS 10g 10.1.3.3.0
OIM 9.1.0
Lotus Notes Connector 9.0.4.2
Thank you.
Satit
The error is as below
=================================================
INFO,11 Nov 2008 11:24:26,109,[ADAPTER.LOTUSNOTES],LotusNotesProvision::init
INFO,11 Nov 2008 11:24:26,109,[ADAPTER.LOTUSNOTES],LotusNotesProvision::init
DEBUG,11 Nov 2008 11:24:26,109,[ADAPTER.LOTUSNOTES],LotusNotesProvision::init : Host 10.3.100.61
DEBUG,11 Nov 2008 11:24:26,109,[ADAPTER.LOTUSNOTES],LotusNotesProvision::init : Port 63148
DEBUG,11 Nov 2008 11:24:26,109,[ADAPTER.LOTUSNOTES],LotusNotesProvision::init : Admin Pongtape Ungkawanish/Telecom./Central Support/Fin./KK_Bangkok/TH
DEBUG,11 Nov 2008 11:24:26,109,[ADAPTER.LOTUSNOTES],LotusNotesProvision::init : Certifier OU
DEBUG,11 Nov 2008 11:24:26,109,[ADAPTER.LOTUSNOTES],LotusNotesProvision::init : Before session
08/11/11 11:24:26 Running setTimeoutParameters
08/11/11 11:24:26 Running Connect
INFO,11 Nov 2008 11:24:26,109,[ADAPTER.LOTUSNOTES],LNotesConnectionUtil::getSession
INFO,11 Nov 2008 11:24:26,109,[ADAPTER.LOTUSNOTES],LNotesConnectionUtil::getSession : ***Non-Secure Mode
ERROR,11 Nov 2008 11:24:26,109,[ADAPTER.LOTUSNOTES],LNotesConnectionUtil::getSession : ***Connection refused to Lotus Notes......
NotesException: Could not get IOR from Domino Server: http://10.3.100.61:63148/diiop_ior.txt
at lotus.domino.NotesFactory.requestIORPlain(Unknown Source)
at lotus.domino.NotesFactory.requestIORUsingArgs(Unknown Source)
at lotus.domino.NotesFactory.getIOR(Unknown Source)
at lotus.domino.NotesFactory.createSessionUP(Unknown Source)
at lotus.domino.NotesFactory.createSession(Unknown Source)
at com.thortech.xl.Integration.HostAccess.LNotesConnectionUtil.getSession(Unknown Source)
at com.thortech.xl.Integration.HostAccess.LotusNotesProvision.connect(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpLNCREATEUSER.CONNECT(adpLNCREATEUSER.java:449)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpLNCREATEUSER.implementation(adpLNCREATEUSER.java:160)
at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.retryTasks(Unknown Source)
at com.thortech.xl.ejb.beans.tcProvisioningOperationsSession.retryTasks(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SecurityRoleInterceptor.invoke(SecurityRoleInterceptor.java:47)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at tcProvisioningOperations_RemoteProxy_6ocop18.retryTasks(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:781)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
... 45 more
INFO,11 Nov 2008 11:24:26,109,[ADAPTER.LOTUSNOTES],Unable to connect to the target. Attempting to reconnect after delay of 2000ms.......
INFO,11 Nov 2008 11:24:28,110,[ADAPTER.LOTUSNOTES],LNotesConnectionUtil::getSession
INFO,11 Nov 2008 11:24:28,110,[ADAPTER.LOTUSNOTES],LNotesConnectionUtil::getSession : ***Non-Secure Mode
ERROR,11 Nov 2008 11:24:28,110,[ADAPTER.LOTUSNOTES],LNotesConnectionUtil::getSession : ***Connection refused to Lotus Notes......
NotesException: Could not get IOR from Domino Server: http://10.3.100.61:63148/diiop_ior.txt
at lotus.domino.NotesFactory.requestIORPlain(Unknown Source)
at lotus.domino.NotesFactory.requestIORUsingArgs(Unknown Source)
at lotus.domino.NotesFactory.getIOR(Unknown Source)
at lotus.domino.NotesFactory.createSessionUP(Unknown Source)
at lotus.domino.NotesFactory.createSession(Unknown Source)
at com.thortech.xl.Integration.HostAccess.LNotesConnectionUtil.getSession(Unknown Source)
at com.thortech.xl.Integration.HostAccess.LNotesConnectionUtil.getSession(Unknown Source)
at com.thortech.xl.Integration.HostAccess.LotusNotesProvision.connect(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpLNCREATEUSER.CONNECT(adpLNCREATEUSER.java:449)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpLNCREATEUSER.implementation(adpLNCREATEUSER.java:160)
at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.retryTasks(Unknown Source)
at com.thortech.xl.ejb.beans.tcProvisioningOperationsSession.retryTasks(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SecurityRoleInterceptor.invoke(SecurityRoleInterceptor.java:47)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at tcProvisioningOperations_RemoteProxy_6ocop18.retryTasks(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:781)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
... 46 morecheck if DIIOP service is turned on at the Lotus Domino side...
Oleg. -
Hi,ALL
This is a strange Question, please help me to figure it out.
I have a HttpServlet Aplication,
It will connect with Domino server to search database as CLIENT.
So, When It connect with Domino server.
I use Notes Cobra connection:
NotesFactory.createSession(....);
unluckly, it thorws me exception:
can't instantiate default ORB implementation lotus.priv.CORBA.iiop.ORB
If I create a pure application runing on windows platform.and use the same function:
NotesFactory.createSession(....);
it works fine.
why this problem happend if it is called under HttpServlet application?
ThanksFollow-Up:
Ironport, if you could get someone to investigate this, it would prevent future issues with your plugin.
Thank you for the detailed report. I have filed defect #9107 for this issue. I'll also see that this gets added to our knowledge base. -
Hi,ALL
This is a strange Question, please help me to figure it out.
I have a HttpServlet Aplication,
It will connect with Domino server to search database as CLIENT.
So, When It connect with Domino server.
I use Notes Cobra connection:
NotesFactory.createSession(....);
unluckly, it thorws me exception:
can't instantiate default ORB implementation lotus.priv.CORBA.iiop.ORB
If I create a pure application runing on windows platform.and use the same function:
NotesFactory.createSession(....);
it works fine.
why this problem happend if it is called under HttpServlet application?
ThanksWhat I want to know:
if at the same time: cliend side both thread call
server.
or thread1 starts to call server, before thread1
ends call thread2 starts to call server again.
what will happen?
can I get right result?Each thread on the client side will have its own socket and each request on the server side will be relayed to its own socket, so there won't be no mix up in the transfer, if that is what you mean. The rest depends on how the server handles the requests.
>
and on server side:
what should I pay attention?You should pay attention to the fact that, on the server side, each request ought to be processed in a separate Thread, or else your server will never be able to process more than one request at a time, in which case your second request (on the client side) will block until the first one has been process, and so forth for each additional request. -
Illegal use of nonvirtual function call
I'm trying to run this program....
import java.io.*;
import java.util.*;
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
import sun.net.nntp.*;
import lotus.domino.*;
public class WriteNewsFile implements Constants{
private Store store;
private Database db;
public Store createNNTPConnection(String host, String protocol) throws Exception{
// Create empty properties
Properties props = new Properties();
// Get session
javax.mail.Session session = javax.mail.Session.getInstance(props, null);
// Get the store
Store store = session.getStore(protocol);
store.connect(host, null, null);
return store;
public Vector getForumNames(String root) throws Exception {
Vector result = new Vector();
NntpClient nc = new NntpClient(NNTP_HOST);
String line;
nc.serverOutput.println(NNTP_COMMAND_LIST_ACTIVE);
BufferedReader br = new BufferedReader(new InputStreamReader(nc.serverInput));
while ((line = br.readLine()) != null) {
if (line.equals("."))
break;
if (line.startsWith(root)) {
result.add(line.substring(0, line.indexOf(" ")));
nc.closeServer();
return result;
private void init(String root) throws Exception {
Vector forums = getForumNames(root);
for (Enumeration e = forums.elements(); e.hasMoreElements();) {
System.out.println(readWriteNewsgroup((String)e.nextElement()));
System.gc();
public static void main(String args[]) {
WriteNewsFile wns = new WriteNewsFile();
try{
wns.db = wns.openNotesDB(DOMINO_HOST, DOMINO_USER, DOMINO_PASSWD,
DOMINO_DB);
wns.store = wns.createNNTPConnection(NNTP_HOST, NNTP);
//wns.init("forums.software.");
wns.init("forums.hardware.");
//wns.init("forums.services.");
wns.store.close();
}catch(Exception e){
e.printStackTrace();
* Insert the method's description here.
* Creation date: (12/10/2001 9:51:20 AM)
* @param s java.lang.String
public Database openNotesDB(String host, String user, String passwd, String dbName) throws
NotesException {
lotus.domino.Session session =
NotesFactory.createSession(host, user, passwd);
db = session.getDatabase(session.getServerName(), dbName);
if (db == null)
throw new NotesException();
else
return db;
public String readWriteNewsgroup(String newsgroup) throws Exception {
// Get folder
Folder folder = store.getFolder(newsgroup);
folder.open(Folder.READ_ONLY);
// Get directory
Message messages[] = folder.getMessages();
for (int i = 0, n = messages.length; i < n; i++) {
//System.out.println( i + ": " + messages.getFrom()[0] + "\t" +
messages[i].getSubject());
Document doc = db.createDocument();
doc.replaceItemValue(MESSAGE_NUMBER,new Integer(messages[i].getMessageNumber()));
doc.replaceItemValue(MESSAGE_ID, messages[i].getHeader(MESSAGE_ID)[0]);
doc.replaceItemValue(DATE, messages[i].getReceivedDate());
doc.replaceItemValue(FROM, messages[i].getFrom()[0].toString());
doc.replaceItemValue(SUBJECT, messages[i].getSubject());
doc.replaceItemValue(NEWSGROUPS, messages[i].getHeader(NEWSGROUPS)[0]);
doc.replaceItemValue(ORGANIZATION, messages[i].getHeader(ORGANIZATION)[0]);
RichTextItem rtitem = doc.createRichTextItem(BODY);
try{
rtitem.appendText(messages[i].getContent().toString());
}catch(UnsupportedEncodingException e){
System.out.println("Could not convert body to String");
//rtitem.recycle();
if (!doc.save())
System.out.println("Did not save the document");
// Close connections and files
folder.close(false);
return newsgroup;
but getting this runtime error.....
C:\$user\java>java WriteNewsFile
Exception in thread "main" java.lang.VerifyError: (class: com/ibm/CORBA/iiop/Gen
ericServerSC, method: dispatch signature: (Lcom/ibm/CORBA/iiop/IIOPInputStream;L
com/ibm/CORBA/iiop/IIOPOutputStream;)V) Illegal use of nonvirtual function call
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:134)
at com.ibm.CORBA.iiop.ORB.registerSubcontracts(ORB.java)
at com.ibm.CORBA.iiop.ORB.<init>(ORB.java)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:254)
at org.omg.CORBA.ORB.create_impl(ORB.java:306)
at org.omg.CORBA.ORB.init(ORB.java:355)
at lotus.domino.cso.Session.OREFtoSession(Session.java:703)
at lotus.domino.cso.Session.<init>(Session.java:57)
at lotus.domino.cso.Session.createSession(Session.java:36)
at lotus.domino.NotesFactory.createSession(NotesFactory.java:67)
at WriteNewsFile.openNotesDB(WriteNewsFile.java:88)
at WriteNewsFile.main(WriteNewsFile.java:66)
and don't understand the nature of the error...... Can anyone help or direct me to some information that might help me understand?
Thanks,
Heatheryou have used a method that was implemented in JRE1.2 -- IE's native JVM 1.1.4 or 1.1.5 . You can do one of two things:
1) convert your html file to make it use a new Java plug-in, or
2) change your code to call a comparble method that is available before 1.2
V.V. -
I have been having similar problems as forum messages # 520072 &
524480 (ref. below). my only difference is that in the apache
error log I get the following:
java.net.MalformedURLException: unknown protocol: https
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(Compiled Code)
at java.net.MalformedURLException.<init>(Compiled Code)
at java.net.URL.<init>(Compiled Code)
at java.net.URL.<init>(Compiled Code)
at
sun.net.www.protocol.http.HttpURLConnection.followRedirect
(Compiled Code)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream
(Compiled Code)
at java.net.URL.openStream(Compiled Code)
at lotus.domino.NotesFactory.getIOR(Compiled Code)
at lotus.domino.NotesFactory.createSession(Compiled Code)
at
oracle.lotus.application.ApplicationLogin.authenticateUser
(Compiled Code)
at oracle.lotus.application.ApplicationLogin.performLogin
(Compiled Code)
at oracle.lotus.application.LotusProvider.process
(Compiled Code)
at oracle.lotus.application.ExternalServlet.doGet
(Compiled Code)
at oracle.lotus.application.ExternalServlet.doPost
(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.jserv.JServConnection.processRequest
(Compiled Code)
at org.apache.jserv.JServConnection.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
Our Lotus notes web sever is running HTTPS (on a Sun Box) and
the portal (v3.0.9x) is running on Sun Solaris 8. And like the
others, I have followed the Oracle doc on creating a Lotus
Portlet to the letter. But, I'm at a lost since I can not find
a resolve for the error or what it really means. I've searched
MetaLink and Technet and even put in a TAR (which Oracle said
they do not support their own demo portlets - thanks a lot :^
( ) Any insight to this problem would be great.
thanks,
kurt
reference msgs:
**part of msg #524480
I am trying to install these portlets from the PDK and am having
problems. Looked through all other threads relating to these
portlets and have not found a the answer to my problem.
I have followed instructions to the letter and can access
mailbox in browser by using http://
[lotus_host]/mail/mailbox.nsf.
Having set up the External Application as instructed, when I
attempt to logon to the application, I am presented with a page
headed Lotus with the five input fields from the previous form,
Username, Password, MailFilename, MailServer, Hostname. When I
complete these fields nothing seems to happen.
part of msg #520072
Using the downloaded Java PDK framework and the Lotus Notes zip
file, I have successfully configured and tested the 'sample'web
provider.
I then configured the apache configuration files
jserv.properties and zone.properties for Lotus Notes (as
described in the Lotus Notes Portlets help file.
All went well until I got to Registering the Provider with
Oracle
9iAS Portal :
I got as far as the Input form for the Lotus Notes Inbox (i.e.
clicking on the hyperlink for the external application).
This form asks for Username, Password,Mailfilename, Mailserver
and Hostname.
The form is headed 'LOTUS', the only other item on the Form
being the 'Submit' button.
When I submit the form the entries are cleared (returning an
empty input form as before) but nothing happens.If you check out the thread from my question (524480), we found
that we had to enable the IIOP task on the domino server as we
were not running it, this cured the problem I think you are
encountering.
This has not solved all our problems as I only see Notes data in
the Inbox Portlet Preview mode, this problem is refered by other
contributors as the collapsing Portlet problem (496625) and I do
not know whether there is a solution to this problem yet.
Hope this helps. -
Not able to connect to Lotus Domino server using java/corba
Hi
I am new to Lotus Domino server and Java.
I have INstalled Lotus Domino server5 on 1 machine and was successful in installing the Lotus client on another machine.
Throught the lotus client i am able to connect to the server and send and receive the mails.
Now I want to connect to the domino server using the Lotus Domino Tolkit for Java/Corba.
In this Toolkit they have given the sample code program ..
if I run the code I am getting the error
java.io.FileNotFoundException: http://<IPADDRESS>/diiop_ior.txtjava.io.FileNotFoundException: http://<IPADDRESS>/diiop_ior.txt
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:691)
at java.net.URL.openStream(URL.java:942)
at lotus.domino.NotesFactory.getIOR(NotesFactory.java:314)
at lotus.domino.NotesFactory.createSession(NotesFactory.java:66)
at IntroCorbaApp.run(IntroCorbaApp.java:65)
at java.lang.Thread.run(Thread.java:539)
lotus.domino.NotesException: Could not get IOR from HTTP Server
lotus.domino.NotesException
at lotus.domino.NotesFactory.getIOR(NotesFactory.java:344)
at lotus.domino.NotesFactory.createSession(NotesFactory.java:66)
at IntroCorbaApp.run(IntroCorbaApp.java:65)
at java.lang.Thread.run(Thread.java:539)
I also tried to find this file in the Domino server directory.
The file exists in drive:\LotusServer\Domino\Data\Domino\HTML directory..
I am not getting what exactly is the Problem
Plz any one help me in this regard..
thanks in advanceYou should be able to access the diiop_ior.txt file from browser without authentication,only then it will work. This file should not
be protected. -
Need help on Exception hadnling in jdk1.4
hi i am working on some lotus notes validation tool. I have created menu driver program...when i run the first time with option 6..and in option 6 i got exception and i am catching properly,again i am displaying the menu..but if i select the option 6 again and i wantedly put exception... but this time program is terminating....
even exception came i want display the menu again...the program internally using the NotesThread....i think that dispaching or delegation....Migth UnhandledExceptionHandler...But i am running on 1.4
Please find the following code that i have written...help on this.
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import lotus.domino.AdministrationProcess;
import lotus.domino.NotesException;
import lotus.domino.NotesThread;
import lotus.domino.Registration;
import lotus.domino.Session;
public class TestNotesException {
public static void mainMenu()throws Exception{
while (true) {
BufferedReader reader = new BufferedReader(new InputStreamReader(
System.in));
System.out.println("\nNotesTool Commands");
int option = 0;
System.out.println("\t1.Driver/Notes Configuration Information "
+ "\n\t2.JVM Information"
+ " \n\t3.Domino Server Session Information"
+ "\n\t4.Authenticate to Domino Server"
+ " \n\t5.Create Lotus Notes Test User"
+ "\n\t6.Delete Lotus Notes User"
+ "\n\t7.Open Lotus Notes Database"
+ "\n\t8.Send Domino Console Command" + "\n\t99.Quit");
System.out.println("Enter Command:");
option = Integer.parseInt(reader.readLine());
switch (option) {
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
System.out
.println("\n*************** DELETE THE USER *********************\n");
System.out
.println("Please enter user's full name that you want delete:::");
String userName = reader.readLine();
System.out.println("User "
+ deleteUser(userName)
+ " is deleted from the domino Server "
break;
case 99:
System.out.println("");
System.exit(0);
default:
System.out.println("Command not supported.Choose correct option");
* @param args
* @throws Exception
* @throws Exception
* @throws IOException
public static void main(String[] args) {
// TODO Auto-generated method stub
try{
mainMenu();
/*} catch (NotesException e) {
try{
throw new NotesException(e.id, e.text, e.internal);
}catch(NotesException e1){
e1.printStackTrace();
System.out.println(e.getCause());
System.out.println(e.getClass());
System.out.println(e.internal);
//throw new NotesException(e.id, e.text, e.internal);
}catch (NotesException e) {
System.out.println("Command not supported.Choose correct option");
catch (NumberFormatException e) {
System.out.println("Command not supported.Choose correct option");
//throw new NotesException(e.id, e.text, e.internal);
catch (NotesCustomException1 e) {
//System.out.println("Command not supported.Choose correct option");
//e.printStackTrace();
//throw new NotesException(e.id, e.text, e.internal);
catch (Exception e) {
System.out.println("Command not supported.Choose correct option");
//throw new NotesException(e.id, e.text, e.internal);
}finally{
try {
mainMenu();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
private static String deleteUser(String userName) throws Exception{
// TODO Auto-generated method stub
NotesThread.sinitThread();
Session NotesSess = lotus.domino.NotesFactory.createSession();
Registration tmpNReg = NotesSess.createRegistration();
String userName1 = tmpNReg.switchToID("C:\\Program Files\\Lotus\\Domino\\data\\admin.id", "novell");
AdministrationProcess pAdminP = NotesSess
.createAdministrationProcess("DomainA/NotesOrg");
pAdminP.deleteUser(userName, true,
AdministrationProcess.MAILFILE_DELETE_ALL, "");
NotesThread.stermThread();
//throw new NotesCustomException1("sankar::::",e);
return userName;
class NotesCustomException1 extends Exception {
public NotesCustomException1() {
super();
public NotesCustomException1(String msg) {
super(msg);
public NotesCustomException1(String msg, Throwable t) {
super(msg, t);
}Of course you get a UnhandledException the deleteUser() throws a exception which you have not bothered to catch when calling it. Also, you do not have seemed to have bothered to check that the user has actually been deleted before outputting a string stating that they have. And as G.W. says click the code button before posting code. And get rid of those TODOs.
-
Error in Oracle9iAS when registering Lotus Notes?-pls help.
Hi..
I not sure whether to post my problem here, or in Portal forum...
I got this error when registering Lotus Notes mail in Portal(We done all the step, but stuck in the Final Step). I know, maybe you will ask me to post it in PDK/Lotus Notes Forum, but, one of my friend said that This is Portal/Oracle9iAS Error..
can anybody pls help me? Where to configure in the server to let Lotus Notes app is ok?
This is the error that come out when we tried to register the Lotus Notes Mail...
"500 Internal Server Error
java.lang.VerifyError: (class: com/ibm/CORBA/iiop/GenericServerSC, method: dispatch signature: (Lcom/ibm/CORBA/iiop/IIOPInputStream;Lcom/ibm/CORBA/iiop/IIOPOutputStream;)V) Illegal use of nonvirtual function call at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at com.ibm.CORBA.iiop.ORB.registerSubcontracts(ORB.java) at com.ibm.CORBA.iiop.ORB.<init>(ORB.java) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.omg.CORBA.ORB.create_impl(ORB.java:284) at org.omg.CORBA.ORB.init(ORB.java:328) at lotus.domino.cso.Session.OREFtoSession(Session.java:703) at lotus.domino.cso.Session.<init>(Session.java:57) at lotus.domino.cso.Session.createSession(Session.java:36) at lotus.domino.NotesFactory.createSession(NotesFactory.java:67) at oracle.portal.integration.lotusnotes.application.ApplicationLogin.authenticateUser(Unknown Source) at oracle.portal.integration.lotusnotes.application.ApplicationLogin.performLogin(Unknown Source) at oracle.portal.integration.lotusnotes.application.LotusProvider.process(Unknown Source) at oracle.portal.integration.lotusnotes.application.ExternalServlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:244) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283) at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523) at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269) at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735) at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151) at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)Yes I have YemuZip & it works but need something that is either menu or automated. I have tried to use automator to automatically archive a .dat file when I add it to the folder where these files are stored...but can't get it to work. I haven't used automator before.
I have the workflow done but it will only run when I go to the menu & select the workflow - I though the whoel point was that it was automatic?
Anyway if YemuZip is the only way I can do it I guess I will have to wear it - I thought it may be a simple thing to alter the way OS X handles the compression...
Thanks! -
Identity Management System Setup Error
In Global Settings tab when I try to set up identity management system for lotus notes by providing proper host name, user name and password I get following error on oc4j log file
07/03/28 14:22:05 org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation com.ibm.CORBA.iiop.ORB vmcid: 0x0 minor code: 0 completed: No
07/03/28 14:22:05 at org.omg.CORBA.ORB.create_impl(ORB.java:297)
07/03/28 14:22:05 at org.omg.CORBA.ORB.init(ORB.java:336)
07/03/28 14:22:05 at lotus.domino.cso.Session.getORBObject(Session.java:746)
07/03/28 14:22:05 at lotus.domino.cso.Session.OREFtoSession(Session.java:780)
07/03/28 14:22:05 at lotus.domino.cso.Session.<init>(Session.java:73)
07/03/28 14:22:05 at lotus.domino.cso.Session.createSession(Session.java:41)
07/03/28 14:22:05 at lotus.domino.NotesFactory.createSession(NotesFactory.java:67)
07/03/28 14:22:05 at oracle.search.plugin.security.identity.ln.LNIdentityPluginRepositoryAccess.login(LNIdentityPluginRepositoryAccess.java:119)
07/03/28 14:22:05 at oracle.search.plugin.security.identity.ln.LNIdentityPluginManager.validateParams(LNIdentityPluginManager.java:367)
07/03/28 14:22:05 at oracle.search.admin.system.ctrl.SystemCtrl.identityMgmtActivate(SystemCtrl.java:1069)
07/03/28 14:22:05 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
07/03/28 14:22:05 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
07/03/28 14:22:05 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
07/03/28 14:22:05 at java.lang.reflect.Method.invoke(Method.java:324)
07/03/28 14:22:05 at oracle.cabo.servlet.event.MethodEventHandler.handleEvent(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.event.TableEventHandler.handleEvent(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.event.TableEventHandler.handleEvent(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.event.BasePageFlowEngine.handleRequest(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
07/03/28 14:22:05 at control.idmgmt__activate._jspService(_idmgmt__activate.java:1618)
07/03/28 14:22:05 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
07/03/28 14:22:05 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
07/03/28 14:22:05 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
07/03/28 14:22:05 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
07/03/28 14:22:05 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
07/03/28 14:22:05 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
07/03/28 14:22:05 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
07/03/28 14:22:05 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
07/03/28 14:22:05 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
07/03/28 14:22:05 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
07/03/28 14:22:05 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
07/03/28 14:22:05 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
07/03/28 14:22:05 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
07/03/28 14:22:05 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
07/03/28 14:22:05 at java.lang.Thread.run(Thread.java:534)
07/03/28 14:22:05 Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: com.ibm.CORBA.iiop.ORB
Dependent class: org.omg.CORBA.ORB
Loader: jre.bootstrap:1.4.2_08
Code-Source: unknown
Configuration: jre bootstrap
This load was initiated at search_admin.web.admin:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
07/03/28 14:22:05 at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2078)
07/03/28 14:22:05 at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1679)
07/03/28 14:22:05 at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
07/03/28 14:22:05 at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
07/03/28 14:22:05 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
07/03/28 14:22:05 at java.lang.Class.forName0(Native Method)
07/03/28 14:22:05 at java.lang.Class.forName(Class.java:219)
07/03/28 14:22:05 at org.omg.CORBA.ORB.create_impl(ORB.java:295)
07/03/28 14:22:05 ... 36 more
07/03/28 14:22:05 lotus.domino.NotesException
07/03/28 14:22:05 at lotus.domino.cso.Session.OREFtoSession(Session.java:825)
07/03/28 14:22:05 at lotus.domino.cso.Session.<init>(Session.java:73)
07/03/28 14:22:05 at lotus.domino.cso.Session.createSession(Session.java:41)
07/03/28 14:22:05 at lotus.domino.NotesFactory.createSession(NotesFactory.java:67)
07/03/28 14:22:05 at oracle.search.plugin.security.identity.ln.LNIdentityPluginRepositoryAccess.login(LNIdentityPluginRepositoryAccess.java:119)
07/03/28 14:22:05 at oracle.search.plugin.security.identity.ln.LNIdentityPluginManager.validateParams(LNIdentityPluginManager.java:367)
07/03/28 14:22:05 at oracle.search.admin.system.ctrl.SystemCtrl.identityMgmtActivate(SystemCtrl.java:1069)
07/03/28 14:22:05 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
07/03/28 14:22:05 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
07/03/28 14:22:05 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
07/03/28 14:22:05 at java.lang.reflect.Method.invoke(Method.java:324)
07/03/28 14:22:05 at oracle.cabo.servlet.event.MethodEventHandler.handleEvent(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.event.TableEventHandler.handleEvent(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.event.TableEventHandler.handleEvent(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.event.BasePageFlowEngine.handleRequest(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
07/03/28 14:22:05 at control.idmgmt__activate._jspService(_idmgmt__activate.java:1618)
07/03/28 14:22:05 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
07/03/28 14:22:05 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
07/03/28 14:22:05 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
07/03/28 14:22:05 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
07/03/28 14:22:05 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
07/03/28 14:22:05 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
07/03/28 14:22:05 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
07/03/28 14:22:05 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
07/03/28 14:22:05 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
07/03/28 14:22:05 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
07/03/28 14:22:05 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
07/03/28 14:22:05 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
07/03/28 14:22:05 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
07/03/28 14:22:05 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
07/03/28 14:22:05 at java.lang.Thread.run(Thread.java:534)
07/03/28 14:22:05 oracle.search.sdk.common.PluginException: Login failed for host name
07/03/28 14:22:05 at oracle.search.plugin.security.identity.ln.LNIdentityPluginManager.validateParams(LNIdentityPluginManager.java:376)
07/03/28 14:22:05 at oracle.search.admin.system.ctrl.SystemCtrl.identityMgmtActivate(SystemCtrl.java:1069)
07/03/28 14:22:05 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
07/03/28 14:22:05 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
07/03/28 14:22:05 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
07/03/28 14:22:05 at java.lang.reflect.Method.invoke(Method.java:324)
07/03/28 14:22:05 at oracle.cabo.servlet.event.MethodEventHandler.handleEvent(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.event.TableEventHandler.handleEvent(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.event.TableEventHandler.handleEvent(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.event.BasePageFlowEngine.handleRequest(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source)
07/03/28 14:22:05 at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
07/03/28 14:22:05 at control.idmgmt__activate._jspService(_idmgmt__activate.java:1618)
07/03/28 14:22:05 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
07/03/28 14:22:05 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
07/03/28 14:22:05 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
07/03/28 14:22:05 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
07/03/28 14:22:05 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
07/03/28 14:22:05 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
07/03/28 14:22:05 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
07/03/28 14:22:05 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
07/03/28 14:22:05 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
07/03/28 14:22:05 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
07/03/28 14:22:05 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
07/03/28 14:22:05 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
07/03/28 14:22:05 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
07/03/28 14:22:05 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
07/03/28 14:22:05 at java.lang.Thread.run(Thread.java:534)
Please help
Thanks in advance,
ShaktiDid you evern get a solution to your problem? We are experiencing the same exception:
<2008-06-30 17:38:41,936> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Creat
ing new instance of Resource Adapter oracle.tip.adapter.jms.JmsResourceAdapter
08/06/30 17:38:41 java.lang.Exception: Failed to create "ejb/collaxa/system/ActivationAgentManagerBe
an" bean; exception reported is: "javax.naming.NoInitialContextException: Cannot instantiate class:
com.evermind.server.ApplicationInitialContextFactory [Root exception is oracle.classloader.util.Anno
tatedClassNotFoundException:
Missing class: com.evermind.server.ApplicationInitialContextFactory
Dependent class: com.sun.naming.internal.VersionHelper12
Loader: jre.bootstrap:1.5.0_06
Code-Source: unknown
Configuration: jre bootstrap
This load was initiated at JmsAdapter:0.0.0 using the Class.forName() method.
The missing class is available from the following locations:
1. Code-Source: /D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-
source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar)
This code-source is available in loader oc4j:10.1.3.
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at com.oracle.bpel.client.util.BeanRegistry.lookupActivationAgentManagerBean(BeanRegistry.ja
va:700)
at com.oracle.bpel.client.ActivationAgentHandle.getActivationAgentManager(ActivationAgentHan
dle.java:205)
at com.oracle.bpel.client.ActivationAgentHandle.addStats(ActivationAgentHandle.java:235)
at oracle.tip.adapter.fw.AdapterFrameworkListenerBase.publishAdapterStopWatch(AdapterFramewo
rkListenerBase.java:2227)
at oracle.tip.adapter.fw.jca.messageinflow.MessageEndpointImpl.publishAdapterStopWatch(Messa
geEndpointImpl.java:490)
at oracle.tip.adapter.fw.sw.AdapterStopWatchManager.publishInboundAdapterStopWatch(AdapterSt
opWatchManager.java:241)
at oracle.tip.adapter.fw.sw.AdapterStopWatchManager.stopInboundAdapterStopWatch(AdapterStopW
atchManager.java:211)
at oracle.tip.adapter.jms.inbound.JmsConsumer.send(JmsConsumer.java:373)
at oracle.tip.adapter.jms.JMS.JMSMessageConsumer.onMessage(JMSMessageConsumer.java:475)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.Kernel.execute(Kernel.java:343)
at weblogic.kernel.Kernel.execute(Kernel.java:367)
at weblogic.kernel.Kernel.execute(Kernel.java:355)
at weblogic.jms.client.JMSSession.pushMessage(JMSSession.java:2474)
at weblogic.jms.client.JMSSession.invoke(JMSSession.java:3006)
at weblogic.jms.dispatcher.Request.wrappedFiniteStateMachine(Request.java:643)
at weblogic.jms.dispatcher.DispatcherImpl.dispatchAsyncInternal(DispatcherImpl.java:132)
at weblogic.jms.dispatcher.DispatcherImpl.dispatchOneWay(DispatcherImpl.java:341)
at weblogic.jms.dispatcher.DispatcherImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: com.evermind.server.ApplicationInitialContextFactory
Dependent class: com.sun.naming.internal.VersionHelper12
Loader: jre.bootstrap:1.5.0_06
Code-Source: unknown
Configuration: jre bootstrap
This load was initiated at JmsAdapter:0.0.0 using the Class.forName() method.
1. Code-Source: /D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-
source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar)
This code-source is available in loader oc4j:10.1.3.
at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2078)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1679)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
... 32 more
". -
Timer or sleep to wait for result
I am using a Lotus Notes Mail Class to return the User's Name.
The result takes a couple of secs to be returned and I added an Infinite loop (yeah baaad) checking that a result has been returned. Without the loop null is returned. (if LNotes is not installed the loop works ... ;-) )
I'd rather start a separate Thread that executes for 10 - 20 secs (while the form/application is finishing initialisation & waits for user input) and then update a TField on the form once it's got the username or quits if it exceeds the 10-20 secs.
I've read http://java.sun.com/products/jfc/tsc/articles/timer/ but I am not sure how to implement the different solutions.
public class Mail extends NotesThread {
try {
Session s = NotesFactory.createSession();
toName = (String)s.getCommonUserName();
Name no = s.getUserNameObject();
public OpenAForm() {
initComponents();
NSMail m = new NSMail();
m.start();
while (m.toName == null) {
jTFreqName.setText(m.toName);
}Edited by: SKtron on Nov 8, 2007 4:29 PM
Edited by: SKtron on Nov 8, 2007 4:30 PM
Edited by: SKtron on Nov 8, 2007 4:31 PM
Edited by: SKtron on Nov 8, 2007 4:31 PMpublic OpenAForm() {
initComponents();
NSMail m = new NSMail();
m.start();I see you calling start on your NSMail object... Is it a Thread? Basically, you want to run this synchronously, so you either want to call m.join() after starting it, or m.run() to just run it in the same thread -
I'm trying to send an email using Notes for some reason (probably a valid one) the Notes API prompts me to specify a password. How do I get around this? Anybody know where the javadoc for the Notes API is? It's very frustrating. The IBM Redbook doesn't help much either?
NotesThread.sinitThread();
Session notesSession=NotesFactory.createSession();
Database mailDatabase=notesSession.getDatabase
"x//x//x","mail\\x.nsf");
Document mailDoc=mailDatabase.createDocument();
mailDoc.replaceItemValue("Form","Memo");
mailDoc.replaceItemValue("Subject","This is a test mail");
mailDoc.replaceItemValue ("SendTo","[email protected]"); mailDoc.save(true,true);
//mailDoc.send(false);
mailDatabase.recycle();
NotesThread.stermThread(); //Required to finish the sessionHi Killasimba,
Were you able to solve the problem?
If so, please post here the solution on how to avoid this prompting for password.
Thanks
Pasting the link of course never occurred to you. It
must be a wonderful feeling helping people solve
problems. Maybe that's why there are so many posts of
the same questions over and over again coz nobody
HELPS them. Anyway for anybody else looking for the
Notes R5 API documentation, it's at :
http://www-12.lotus.com/ldd/doc/domino_notes/5.0/help5_
esigner.nsf -
Fail to create External Application for Lotus Notes portlet (diiop_ior.txt)
I've downloaded the PDK-January today and I'm trying the Lotus Notes Portlet. I have been following the document located in the PDK directory pdk\pdk\solutions\lotusnotes\installation.html.
I encountered problem when I trying the section Publishing the Lotus Notes Portlets - Creating the External Application -> at the last 2 steps.
At first I think it's my fault until I keep finding other posts and monitoring the console log for my standalone OC4J server.
java.io.FileNotFoundException: http://dominalWebMailip:80/diiop_ior.txt
java.io.InputStream sun.net.www.protocol.http.HttpURLConnection.getInput
Stream()
HttpURLConnection.java:560
java.io.InputStream java.net.URL.openStream()
URL.java:798
java.lang.String lotus.domino.NotesFactory.getIOR(java.lang.String)
NotesFactory.java:314
lotus.domino.Session lotus.domino.NotesFactory.createSession(java.lang.S
tring, java.lang.String, java.lang.String)
NotesFactory.java:65
boolean oracle.portal.integration.lotusnotes.application.ApplicationLogi
n.authenticateUser(java.lang.String, java.lang.String, java.lang.String, java.la
ng.String, java.lang.String)
void oracle.p[i]Long postings are being truncated to ~1 kB at this time.(Continued)
void oracle.security.jazn.oc4j.JAZNFilter.doFilter(javax.servlet.Servlet
Request, javax.servlet.ServletResponse, javax.servlet.FilterChain)
JAZNFilter.java:283
void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.serv
let.ServletRequest, javax.servlet.ServletResponse)
ServletRequestDispatcher.java:560
void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(j
avax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
ServletRequestDispatcher.java:306
boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.e
vermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpSer
vletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.Input
Stream, java.io.OutputStream, boolean)
HttpRequestHandler.java:767
void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
Thanks for any help and replies! -
Hi all,
I had an issue when Implementing the prjNotesDomino_Sample_JCD Project(createDoc).
Follow is the server.log
[#|2006-10-16T12:04:42.062+0800|INFO|IS5.1.1|STC.eWay.NotesDomino.com.stc.connector.notesdominoadapter.appconn.NotesDominoApplicationImpl|_ThreadID=36; ThreadName=Thread-86;|*** Notes session successfully created *** CN=di.han/O=alibaba/C=cn|#]
[#|2006-10-16T12:04:45.046+0800|WARNING|IS5.1.1|STC.eWay.NotesDomino.com.stc.connector.notesdominoadapter.appconn.NotesDominoAgent|_ThreadID=36; ThreadName=Thread-86;|Unsupported MBean type; unable to send alert.|#]
[#|2006-10-16T12:04:45.046+0800|SEVERE|IS5.1.1|STC.eWay.NotesDomino.com.stc.connector.notesdominoadapter.appconn.NotesDominoAgent|_ThreadID=36; ThreadName=Thread-86;|***** Unable to locate or Open the database: SAMPLE.nsf on server 10.0.1.178:63148|#]
[#|2006-10-16T12:04:45.046+0800|SEVERE|IS5.1.1|STC.eWay.NotesDomino.com.stc.connector.notesdominoadapter.appconn.NotesDominoApplicationImpl|_ThreadID=36; ThreadName=Thread-86;|*** Unable to create document ****|#]
[#|2006-10-16T12:04:45.046+0800|SEVERE|IS5.1.1|STC.eWay.NotesDomino.com.stc.connector.notesdominoadapter.appconn.NotesDominoApplicationImpl|_ThreadID=35; ThreadName=Worker: 15; Context=project=Notes,deployment=Deployment1,collab=CreateDoc_CM_CreateDoc1,external=File1;|*** Unable to create the document *** |#]
My CAPS notes configuration:
Database Type:Remote
NOtes/Domino Server: <myNoteServer>:63148
NOtes/Domino Database SAMPLE.nsf
Notes/Domino User:******
Password:*******
JCD code:
package ToruialNotes;
public class CreateDoc
public com.stc.codegen.logger.Logger logger;
public com.stc.codegen.alerter.Alerter alerter;
public com.stc.codegen.util.CollaborationContext collabContext;
public com.stc.codegen.util.TypeConverter typeConverter;
public void receive( com.stc.connector.appconn.file.FileTextMessage input, com.stc.connector.appconn.file.FileApplication FileClient_1, com.stc.connector.notesdominoadapter.appconn.NotesDominoApplication NotesDomino_1, dtd.Notes532244024.NOTES_DOCUMENT Notes_NOTES_DOCUMENT_1 )
throws Throwable
boolean Status;
Notes_NOTES_DOCUMENT_1.unmarshalFromString( input.getText() );
NotesDomino_1.createDocument();
if (Notes_NOTES_DOCUMENT_1.hasNOTES_ITEM()) {
for (int i1 = 0; i1 < Notes_NOTES_DOCUMENT_1.countNOTES_ITEM(); i1 += 1) {
if (Notes_NOTES_DOCUMENT_1.getNOTES_ITEM( i1 ).hasItemName()) {
NotesDomino_1.getDocument().getItem( i1 ).setItemName( Notes_NOTES_DOCUMENT_1.getNOTES_ITEM( i1 ).getItemName() );
if (Notes_NOTES_DOCUMENT_1.getNOTES_ITEM( i1 ).hasItemValue()) {
NotesDomino_1.getDocument().getItem( i1 ).setItemValue( Notes_NOTES_DOCUMENT_1.getNOTES_ITEM( i1 ).getItemValue() );
Status = NotesDomino_1.saveDocument();
if (!Status) {
FileClient_1.setText( "Document Not Created" );
} else {
FileClient_1.setText( "Document Added\"" );
FileClient_1.write();
I can connect to Lotus by java code in eclipse and create document succueed on SAMPLE.nsf. Java code:
import lotus.domino.*;
public class aaa {
public static void main(String[] argv) {
try {
String host = "10.0.1.178:63148";
Session s = NotesFactory.createSession(host, "di.han", "12345678");
Database db = s.getDatabase(null, "sample.nsf");
if(db.isOpen())
Document doc=db.createDocument();
//db.getAllDocuments();
doc.appendItemValue("FirstName","qqqq");
doc.appendItemValue("LastName","wwww");
doc.appendItemValue("EEID","1234");
doc.appendItemValue("SSN","11-11-1999");
doc.save(true,false);
// Operational code goes here
} catch (Exception e) {
e.printStackTrace();
Anyone had such issue as me?
Message was edited by:
bobyeFrom the release notes (on JCAPS 5.1.1)....
"To enable the eWay... the following are required:"
"Lotus Notes/Domino 6.0, 6.5 and 7.0 with Lotus Notes Client installed on the same host as the eGate Participating Host."
"The special DLL used for password event handling must be placed in the Lotus Notes CLient area."
Do you mean these criterias?
TE
Maybe you are looking for
-
Why is the instance not installed with AWS in my region (US instead of Europe)
Yesterday I installed the 'SAP NetWeaver Application Server ABAP & SAP Business Warehouse 7.4 SP8 on SAP HANA 1.0 SP8 [Developer Edition]' over through CAL ( caltdc.netweaver.ondemand.com ) and ended up with an instance in AWS running in region US (
-
hi all ora 8i on sunsolaris I want to replicate the production database with the standby database. Both are having almost equal resources, which is the best option to create replicated database, it should be COST EFFECTIVE. we generate millions of re
-
Glibc package fails to compile on linux-ck and linux-pf kernels
I'm trying to compile glibc in debug mode, so I added two lines right after build() build() { export CFLAGS="$CFLAGS -g -O1" export CXXFLAGS="$CXXFLAGS -g -O1" (stock compilation doesn't work either) then after some time getting this GCONV_PATH=/tmp/
-
Change email password from Outlook
Hi all, We are running instance of messaging 6.2 (Q12005). Using the Messanger Express, users are able to change their email account passwords using the "Options" --> >"Password". How can the users change their password using the MS-Outlook ? We are
-
How long does the first charge take? I've had my new nano for 1 week and am really disappointed with the battery charge. Have you got any tips? Thanks.