NotesDomino eWay issue
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.conne ctor.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.co nnector.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.con nector.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.con nector.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.con nector.notesdominoadapter.appconn.NotesDominoApplicationImpl|_ThreadID=35; ThreadName=Worker: 15; Context=project=Notes,deployment=Deployment1,collab=CreateDoc_CM_CreateDoc1,ext ernal=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:
bobye

