lotus-domino

Create cross certificate for Domino Java agent?

ε祈祈猫儿з 提交于 2019-12-02 01:25:51
I am trying to connect to an https enabled web service using a Domino java agent. It works fine using http but fails on https. I disabled TLS 1.2 (apparently Fix Pack 4 and 5 have a bug with TLS 1.2 and Java). Now I get the following errors... [1034:0007-1164] 12/08/2015 05:44:57.75 PM SSLAdvanceHandshake Exit> State HandshakeCertificate (8) [1034:0007-1164] 12/08/2015 05:44:57.75 PM SSLProcessHandshakeMessage Enter> Message: Certificate (11) State: HandshakeCertificate (8) Key Exchange: 15 Cipher: ECDHE_RSA_WITH_AES_256_CBC_SHA (0xC014) [1034:0007-1164] 12/08/2015 05:44:57.80 PM

Dates are adjusted for users only at midnight on my xpages

落爺英雄遲暮 提交于 2019-12-02 00:51:58
We have a really strange problem in xpages regarding dates, the Notesdocument we have contain a date field and the value is only a date, there is no time portion. In the xpage I have specified to display the date as a date/time value. the date display correctly on the webpage but we are now getting reports from users who login at night (around midnight) and see the date as adjusted by one day. if the same people login at daytime the date is correct so this only seem to happend around midnight I have tried to change my clock on my client to around midnight but that does not reproduce it so I

XPages - save date only in Date field

不羁岁月 提交于 2019-12-02 00:47:18
问题 I'm using an Edit Box control to display a date field. When the XPage is saved, I would like to save the date only (now both date and time are being saved). Is there any way of doing this? Here is my code: <xp:inputText id="dateReparatur" value="#{document1.dateReparatur}"> <xp:this.converter> <xp:convertDateTime type="date" dateStyle="long"> </xp:convertDateTime> </xp:this.converter> <xp:dateTimeHelper></xp:dateTimeHelper> </xp:inputText></xp:td> UPDATE: I have now implemented the following

Using enum singleton coding pattern in a Domino Java Agent

戏子无情 提交于 2019-12-02 00:03:48
So this is the very simplified Lotus Domino Java agent code I am trying to run... import lotus.domino.*; enum SingletonTest { INSTANCE; public void helloWorld() { System.out.println("Hello World"); } } public class JavaAgent extends AgentBase { public void NotesMain() { try { System.out.println("Started"); SingletonTest.INSTANCE.helloWorld(); System.out.println("Done"); } catch(Exception e) { e.printStackTrace(); } } } But when I try to run it this is what appears on the Java Console... Started Exception in thread "AgentThread: JavaAgent" java.lang.VerifyError: JVMCFRE028 ldc* bytecode must

Where I can find ncso.jar?

浪尽此生 提交于 2019-12-01 23:01:37
I am trying to develop an application, which will remotely connected to a Lotusnote server and as I got to know, I should have ncso.jar file to add in my application for enabling remote access to the Lotus Note domino server. So would be appreciated to help me for downloading this file. You can find ncso.jar in installed Notes Client or Domino Server directory in folder ... / data / domino / java 来源: https://stackoverflow.com/questions/26529625/where-i-can-find-ncso-jar

XPages - save date only in Date field

跟風遠走 提交于 2019-12-01 21:32:06
I'm using an Edit Box control to display a date field. When the XPage is saved, I would like to save the date only (now both date and time are being saved). Is there any way of doing this? Here is my code: <xp:inputText id="dateReparatur" value="#{document1.dateReparatur}"> <xp:this.converter> <xp:convertDateTime type="date" dateStyle="long"> </xp:convertDateTime> </xp:this.converter> <xp:dateTimeHelper></xp:dateTimeHelper> </xp:inputText></xp:td> UPDATE: I have now implemented the following code: var dt = currentDocument.getItemValueDateTime("dateReparatur"); var dateonly = dt.getDateOnly();

Authentication and web services in Domino?

狂风中的少年 提交于 2019-12-01 20:57:09
问题 Is there a way to allow authentication in Domino webservices? If so, how would I do it? 回答1: IBM has an example here. There are other options. 回答2: Another way in JAVA would be: ServiceBindingStub stub = (WebServiceBindingStub) new ServiceLocator().getWebServicePort(portAddress); stub.setSSLOptions(PortTypeBase.NOTES_SSL_ACCEPT_SITE_CERTS + PortTypeBase.NOTES_SSL_ACCEPT_EXPIRED_CERTS); stub.setUsername(usr); stub.setPassword(pwd); 来源: https://stackoverflow.com/questions/10539408

Authentication and web services in Domino?

百般思念 提交于 2019-12-01 20:07:55
Is there a way to allow authentication in Domino webservices? If so, how would I do it? IBM has an example here . There are other options . Ketil Hjerpaasen Another way in JAVA would be: ServiceBindingStub stub = (WebServiceBindingStub) new ServiceLocator().getWebServicePort(portAddress); stub.setSSLOptions(PortTypeBase.NOTES_SSL_ACCEPT_SITE_CERTS + PortTypeBase.NOTES_SSL_ACCEPT_EXPIRED_CERTS); stub.setUsername(usr); stub.setPassword(pwd); 来源: https://stackoverflow.com/questions/10539408/authentication-and-web-services-in-domino

Call to getEmbeddedObjects(); (Domino Server API) returns wrong results

烈酒焚心 提交于 2019-12-01 19:47:17
The Domino server API getEmbeddedObjects(); returns the wrong result (zero) when a mail containing an attachment (as embedded object) is sent from the script. Though an attachment is sent as an EmbeddedOBject , getEmbeddedObjects(); returns ZERO . The mail type is NOT MIME . This is a Java application. Is there is any workaround for this problem? I take the body from the document. If the body is of richtextitem, I call the getEmbeddedObjects() which returns zero though an attachment is present as embedded object. Looking through all of the items in a document for the possibility of an

Lotus Notes XPages for design and Oracle (or other RDBMS) for data

房东的猫 提交于 2019-12-01 17:40:59
问题 I plan to make an web application using XPages for the design (plus the Lotus Notes Elements), but instead of storing the data in Lotus Notes, I will store the data in a RDBMS (specifically an Oracle Database). As you can see, I want to create a clear separation between the design and data. Is there a way I can do this? I mean, is there a way I can use Oracle as the data source and XPages/Lotus Notes for the UI only? Thanks a lot! 回答1: There actually has been native support for RDBMS/JDBC