354 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
View Outputformat "json" issue
Thu, Feb 21st 2013 126
Dive in to ace
Fri, Feb 8th 2013 126
Light reader of www.alexa.com rank
Mon, Feb 4th 2013 149
xPage: Optimize Uploaded Image
Wed, Oct 17th 2012 129
Custom File Upload in the xPage. Java. Backend.
Thu, Oct 11th 2012 207
It looks like Planet Lotus users are more familar with programming languages than with natural.
Sat, Oct 6th 2012 339
CKFinder for Domino. Downloading
Sat, Oct 6th 2012 122
Top 10
It looks like Planet Lotus users are more familar with programming languages than with natural.
Sat, Oct 6th 2012 339
Custom File Upload in the xPage. Java. Backend.
Thu, Oct 11th 2012 207
Light reader of www.alexa.com rank
Mon, Feb 4th 2013 149
xPage: Optimize Uploaded Image
Wed, Oct 17th 2012 129
Dive in to ace
Fri, Feb 8th 2013 126
View Outputformat "json" issue
Thu, Feb 21st 2013 126
CKFinder for Domino. Downloading
Sat, Oct 6th 2012 122
xPage java.lang.NoClassDefFoundError
Wed, Oct 3rd 2012 117
How To: run Domino agent outside from Lotus Notes client
Thu, Feb 2nd 2012 115
How to use Velocity in xPages
Fri, Sep 7th 2012 92


Andriy Kuba
 
Blog Title Lotus and Java
Blog Description No blog description listed in the feed.
Blog URL http://lotusandjava.blogspot.com/
RSS Feed http://feeds.feedburner.com/LotusAndJava
PlanetLotus Feed http://planetlotus.org/profiles/rss/andriy-kuba
Validate Feed feedvalidator.org or validator.w3.org
Feed Last Checked Apr 25, 2014 12:19:16 AM EST. Realtime Update:
Landed Here Mar 01, 2012
Location Kiev, Ukraine
Posts: # / 1st / Latest - -
Total Hits 3,838. myPL RSS Selections: 8


Recent Blog Posts
126


View Outputformat "json" issue
Thu, Feb 21st 2013 6:10a   Andriy Kuba
I got problem with "Outputformat=json" for view. In the case of "!" sign presence in a view column, it wrapped to "!". That is incorrect for canonical JSON. I use JSON for HTML output, so I fix it by replacing "!" to it's HTML code "!". To fix - place simple formula in to the column value: @ReplaceSubstring(HTMLinList;"!";"!") [read] Keywords: domino
126


Dive in to ace
Fri, Feb 8th 2013 5:10a   Andriy Kuba
We use HTML templates in our project. Unfortunately there is no ability to good editing this templates in the IBM Notes client I dig around a little and found a cool thing - ace - that help us a lot. So, xPages, ace, jQuery and few hours of work: [read] Keywords: ibm notes notes client xpages ajax
149


Light reader of www.alexa.com rank
Mon, Feb 4th 2013 5:08a   Andriy Kuba
Alexa is a good site to check you rank, unfortunately it's does not store statistic for the sites that have less than 100,000 rank. You could buy account, for store such statistic for you own site. Sometime you need to look for the statistic of your competitors, that are lower than 100,000. I create a little program that allow you to gather statistic for any site that is on the www.alexa.com. You need to put URL in to the properties file, run program and look in to the resulting jso [read] Keywords: properties
129


xPage: Optimize Uploaded Image
Wed, Oct 17th 2012 7:00a   Andriy Kuba
I had a task to upload images in xPage. The next one is to optimize image lossless. User upload the image in to the Domino media library and the image optimizing on the fly. Unfortunately there is no good Java solution for lossless optimization of images. There are set of solution to use third party command line programs and run it from java. The problem is that you need to install this program on the server, many of them supports only one OS, so if you have Domino server on the windows and t [read] Keywords: domino application blogger java linux server
207


Custom File Upload in the xPage. Java. Backend.
Thu, Oct 11th 2012 5:02a   Andriy Kuba
There are a lot of articles about custom file upload with xPages. Most of them are about JavaScript. They use Java classes, so convert that code in to the Java is not problematic. It's very easy to do in backend java code within xPages. The only one miss is that we could not write to the file attachment directly from the request. We still need to use a file. Thanks to xPage - it handle server temp files himself. The code: public void process() throws Exception { HttpServletRequest req [read] Keywords: xpages blogger java javascript server
339


It looks like Planet Lotus users are more familar with programming languages than with natural.
Sat, Oct 6th 2012 6:22a   Andriy Kuba
True code header have better rate: [read] Keywords: lotus blogger planet lotus planetlotus
122


CKFinder for Domino. Downloading
Sat, Oct 6th 2012 6:10a   Andriy Kuba
CKFinder have two options to download files (images) - by request to the server "connector" command processor and by direct downloading. Request to the "connector" ("ckfinder-connector-urlconnector.xsp?command=Download...") is not accessible for Domino. For direct download CKFinder use file(image) link with the "?download" command. Let's modify this way for allowing CKFinder to "download" files from the Domino server. Browser would download file in the case if "content-disp [read] Keywords: acl domino blogger database java server




79


CKFinder for Domino. Images (and Files)
Fri, Oct 5th 2012 8:23a   Andriy Kuba
CKFinder open an image in the same way as a thumbnail. So we have exactly the same problem like for thumbnails in Domino. CKFinder construct link to the file like "base-file-urlfilename". In Domino, we have access to the attachment with the help of "$file" path. So we must to have URL like: "base-file-urlfilename$filefilename." or "base-file-urlfilenamefilename" in the case of substitution. You need to find in the ckfinder.js string like J.push('a'); and change it with if (!F [read] Keywords: domino blogger java
77


CKFinder for Domino. Thumbnails.
Fri, Oct 5th 2012 4:37a   Andriy Kuba
CKFinder have two options to show thumbnails - by request to the server "connector" command processor and by direct downloading. Request to the "connector" ("ckfinder-connector-urlconnector.xsp?command=Thumbnails...") is not accessible for Domino. Reading thumbnail attachment on the server and return data as result of the command is expensive operation for the server. CKFinder construct direct download like "thumb-base-urlfilename?hash=.....". In Domino, we have access to the atta [read] Keywords: domino blogger java server
117


xPage java.lang.NoClassDefFoundError
Wed, Oct 3rd 2012 6:17a   Andriy Kuba
Suddenly got "java.lang.NoClassDefFoundError" error on my xPage for the class from "Java" design area. The day before it works without problems. Project clean, rebuild does not help. Server restart does not help. I read that Recompile code when opening in designer (xPages) solution helps for someone, unfortunately not for me. The only one solution helps is to rename class that was not found. I am lucky to have only one such class and I am afraid to get this error again for all of them [read] Keywords: domino xpages blogger java server
60


CKFinder for Domino. First step.
Fri, Sep 28th 2012 12:11p   Andriy Kuba
I am trying to get CKFinder to work with Domino. I saw the post "ckeditor 3.2, ckfinder 1.4.3 and Domino" but it is unavailable 2nd day, so I am looking himself in to this point. First problem CKFinder add some command to the end of it's URL, that domino server do not like: "?t=XYZ". Just remove it: open ckfinder.js, look for something like "f={jY:'C7OA1WG',_:{}," and replace it on "f={_:{}," (delete jY:'C7OA1WG') CKFinder also use command syntax like "?command=. [read] Keywords: acl domino apple blogger server xml
46


CKFinder in Domino
Thu, Sep 27th 2012 10:11a   Andriy Kuba
I need to add some image library to use it with CKEditor in domino. The best I found is CKFinder (it is not free). I did not find a good media library for build it up on the Domino. CKFinder also have some troubles in the case of work with Domino. Do someone know a good media library? I would prefer some client side library that communicate with server through JSON or XML (like CKFinder). Maybe some one have a nice experience with CKFinder on Domino ? [read] Keywords: domino blogger server xml
84


xPage in DXL
Tue, Sep 25th 2012 6:11a   Andriy Kuba
Domino export xPage's (java area, libs, xPages actually) in to DXL as base64 with some pre header. This does not allow to change DXL and import it back. More of then, extracting real base64 become hard task because there is no any information about that "pre-header" in DXL. I found similar question on the stackoverflow: http://stackoverflow.com/questions/9929325/encoding-scheme-for-ssjs-library-when-exported-via-dxl [read] Keywords: domino dxl xpages blogger java
53


Export Design DXL
Sun, Sep 23rd 2012 11:15a   Andriy Kuba
Export design DXL feature has been added to the DominoJavaSyncer: https://github.com/andriykuba/DominoJavaSyncer/wiki/Export-design-DXL [read] Keywords: dxl blogger java wiki
71


Orphaned agent data in Notes 8.5
Sun, Sep 23rd 2012 10:11a   Andriy Kuba
I have export of DXL from my database and found many orphaned agent data. It's "agentdata" tag that does not follow "agent" tag. First of all I check help: Note also that the agentdata element immediately follows the agent element, but is not contained by it. Second - look for a possible problem and solution. Take attention, "In order for the utility to clean up orphaned Agent Data Notes, you must have at least one LotusScript agent in the database.". I spend half of our until detec [read] Keywords: agent dxl ibm ldd lotus lotusscript notes blogger database
49


How to print any data in XPage output
Fri, Sep 21st 2012 5:11p   Andriy Kuba
I was looking for a solution for output clean data in xPage without any tags. Nice solution is present in the first comment to this post. In the case you need few xPage with output special data, better to create special base class and then just extend it. More under cut. Read more » [read] Keywords: domino blogger xml
88


Accessing XPages global objects in Java (extended)
Fri, Sep 21st 2012 4:10p   Andriy Kuba
There is nice post "Accessing XPages global objects in Java". There is a little more information about returned objects. It's a good idea to create some base class to extend it for all classes that need access to global xPage objects. So I take variables from that articles and add Request and Response objects also. Look more for the source. Read more » [read] Keywords: domino xpages blogger java oracle
46


Synchronize database resources with folders
Mon, Sep 17th 2012 10:10a   Andriy Kuba
The task I have was to update CKEditor that we have in our app. And yes - there is not possible to use server file system for me, only nsf. A long time ago (1 year) I was upload CKEditor using WebDAV. There is only way that store folder structure in the file names of resources in .nsf. This days configuration of WebDAV was not allowed for me (yes, I have very strict access to the server) . So I need to install local (development) domino server, configure WebDAV, upload files, do copy of d [read] Keywords: domino blogger css database development java server
92


How to use Velocity in xPages
Fri, Sep 7th 2012 9:11a   Andriy Kuba
We are using velocity in our project for build some HTML fro some templates. There was a problem with using it in the Java libraries. Look at this post to find problem description and solution. Now we want to use velocity in the xPage context. There is also a little trouble: at java.lang.SecurityManager.checkPermission(SecurityManager.java:544) at java.lang.Thread.getContextClassLoader(Thread.java:456) at org.apache.velocity.util.ClassUtils.getClass(ClassUtils.java:68) This problem [read] Keywords: domino ibm xpages blogger eclipse java
38


Domino Java Syncer Documentation
Fri, Sep 7th 2012 6:11a   Andriy Kuba
I moved documentation from the document format in to the wiki. So you could find actual documentation on the git hub wiki [read] Keywords: domino blogger java wiki
65


xPage CKEdior: how to remove language direction attribute?
Thu, Sep 6th 2012 6:09a   Andriy Kuba
in-build CKEditor in xPage (Domino 8.5.3) always add dir attribute to the text container's tags, like P or H2. For example: test I could change direction "ltr" or "rtl" from the Rich Text Element settings or CKEditor custom config, but I could not remove this attribute at all. If I use trivial CKEditor, the this attribute absent until I special set up contentsLangDirection property. So It looks like xPage force this attribute to be set in any case. Does some one know how [read] Keywords: domino rich text blogger
55


Domino Java Syncer on the Github
Thu, Sep 6th 2012 6:09a   Andriy Kuba
I was commite source of Domino Java Syncer to the Github: https://github.com/andriykuba/DominoJavaSyncer There is also new functionality - importexport JavaScrip libraries as projects in to the Eclipse. So version is up to 3 now. New documentation would be published later [read] Keywords: domino blogger eclipse java
50


Corrupted DateTime
Fri, Jul 6th 2012 2:12p   Andriy Kuba
Some time, the code like this could cause error like this This issue for example: http://www-01.ibm.com/support/docview.wss?rs=697&context=SSCQGF&dc=DB550&uid=swg1IO13958&loc=en_US&cs=utf-8&lang=en Read more » [read] Keywords: domino ibm lotus blogger java
60


Handle Leak with Domino Server
Wed, Mar 21st 2012 4:11p   Andriy Kuba
Run next code as third party program on Domino binaries. PATH must point to Domino location and Notes.jar must be from Domino. It will crash Domino server within few minutes. The reason is that Domino has Handle Leak on every createrecycle session. It will free only if Java program will stop. The same code works correct with Notes Client There is dummy work around. I am not sure it will stable and appropriate for any If test will stop without closing notes thread (incorrec [read] Keywords: domino lotus notes notes client blogger java leak server
45


Fast fix to Domino Java Syncer
Mon, Mar 5th 2012 6:17p   Andriy Kuba
After importing java libraries by Domino Java Syncer 2.1 some agents was not compiled by native DXL importer in some databases. So there is fast fix to compile and sign all java agent in database after export java library with Domino Java Syncer. Domino Java Syncer 2.1 updated without version change. [read] Keywords: agent domino dxl blogger database java
49


Update of Domino Java Syncer
Sat, Mar 3rd 2012 3:12p   Andriy Kuba
There is a few improvements to Domino Java Syncer 2.0. Domino Java Syncer 2.1  and list of changes: Notes.jar parameter was removed form “eclipse” command Exported eclipse project will use Lotus Notes JVM. This JVM includes Notes.jar, so there is no need to include this package within special entry. You will need to add it manually in to the project In the case you will use not Lotus Notes JVM. “.jar” dependencies have relative path in exported eclipse projects Full path in [read] Keywords: domino dxl lotus lotusnotes notes notes client blogger eclipse google java workspace
47


Domino Java Syncer Documentation version 2.0
Sat, Feb 25th 2012 6:32a   Andriy Kuba
Domino Java Syncer - © Andriy Kuba documentation v2.0 About System Requirements Installation Uninstallation Guide       Exporting Java libraries from Domino to Eclipse       Importing Java libraries to Domino from Eclipse Configuration     Ant file     JVM configuration in Eclipse Advanced Restrictions Read more » [read] Keywords: domino blogger eclipse java
43


Export and Import Domino Java libraries
Fri, Feb 24th 2012 1:49p   Andriy Kuba
I describe how to export Domino Java Libraries in to Eclipse Projects. Current post will show how to do backward operation - import Eclipse project in to Domino library. Within both way you will be able to importexport Domino java libraries in to Eclipse project. The main reason to do it is to use Control Version on class level but java library level. This application will be very useful if you do many code in the Domino Java libraries and works in team. Documentation Feel free [read] Keywords: domino application blogger eclipse google java
54


"Facebook shares" retrieve in a back end
Wed, Feb 22nd 2012 8:02a   Andriy Kuba
Sometimes you need to get Facebook shares number of you pages in back end. I was need it for performance reason, it faster to preload this data from Facebook in to Domino document and then show it. There are two way to do it: FQL  You could find examples and explanation following http://developers.facebook.com/docs/reference/fql/link_stat/. Within FQL you could get shared statistic divided by "share", "like", "comment" and also sum of them. Graph API Look http:/ [read] Keywords: domino blogger facebook java widget
48


Concurrency Lotus Document Processing in Java
Tue, Feb 14th 2012 3:41p   Andriy Kuba
Domino have all objects synchronized within session so it does not look a good idea to do something with documents in multiple threads in Domino. Some time you need to do some on document that takes a lot of time out of Domino objects, like read some data from URL and put it to the document. Reading URL source data will take a lot of time there, so it is a good idea to do such task in multiple threads. Take in to mind this multiple thread test on 50 documents Only document access operations [read] Keywords: domino lotus blogger java
66


How to run Domino Java agents in Multi threads
Mon, Feb 13th 2012 12:22p   Andriy Kuba
You could use ExecutorService for Domino Java for running Domino Java agents in the few threads. There is only one attention: You know that code will wait until agent.run() or agent.runOnServer() finish. It looks like this methods using thread.wait() for waiting the end of the task. So interrupt() in NotesExecutorService.NotesTask.stopThread() will interrupt not only the NotesTask thread itself but  agent.run() also. If you are using ExecutorService for Domino Java for running agents [read] Keywords: agent domino blogger java
63


ExecutorService for Domino Java
Fri, Feb 10th 2012 6:20a   Andriy Kuba
ExecutorService is a good to use class, but it have a little problem in domino http://lotusandjava.blogspot.com/2012/02/take-attention-on-executorservice-in.html It's nice when company politic allow you to fix it like this http://www-01.ibm.com/support/docview.wss?uid=swg21279509 If you are not allowed to do it, than you got a little trouble. Fortunately Java is creator friendly language, so you could do ExecutorService himself. I did NotesExecutorService on the base of next arti [read] Keywords: domino ibm blogger java
41


How To: jQuery on demand
Thu, Feb 9th 2012 5:45a   Andriy Kuba
jQuery are needs to be loaded on demand some times. There is lot of examples but I will add one more from me. You could wrrite some functions that needs jQuery, some "function myFunctionWithjQuery(){...}", and call it as "initializeJ('myFunctionWithjQuery')". "initializeJ" will load jQuery, after that, "myFunctionWithjQuery" will be called. "initializeJ" under cut Read more » [read] Keywords: blogger
43


How To: import DXL in Java
Wed, Feb 8th 2012 1:55p   Andriy Kuba
This operation is opposite to export and much easy. Read more » [read] Keywords: dxl blogger java
52


Kind of magic
Wed, Feb 8th 2012 1:35p   Andriy Kuba
What result will be ? The answer is on this fine post [read] Keywords: blogger java
53


Domino Java Syncer Documentation
Wed, Feb 8th 2012 5:41a   Andriy Kuba
  Domino Java Syncer - © Andriy Kuba documentation v1.0 About System Requirements Installation Uninstallation Guide Configuration Advanced Read more » [read] Keywords: domino blogger java
52


How To: export Domino Java Libraries in to Eclipse Projects
Tue, Feb 7th 2012 4:31p   Andriy Kuba
Based on my previous blog post I create utility for exporting Domino Java Libraries in to Eclipse projects. It is a simple java program with command line interface Documentation Feel free to use it [read] Keywords: domino blogger eclipse google interface java
54


Take attention on "ExecutorService" in Domino Java
Tue, Feb 7th 2012 7:12a   Andriy Kuba
If you will use "ExecutorService" in your Domino Java code, you will need additional configure Java Security. "shutdown" method in "ExecutorService" will throw "AccessControlException" in trival java agent. java.security.AccessControlException: Access denied (java.lang.RuntimePermission modifyThread) at java.security.AccessControlException.(AccessControlException.java:62) at java.security.AccessController.checkPermission(AccessController.java:68) at java.lang.SecurityM [read] Keywords: agent domino ibm blogger bug java security
48


How To: unmap MappedByteBuffer
Sat, Feb 4th 2012 6:13p   Andriy Kuba
There is an issue in the JVM  "Add unmap method to MappedByteBuffer" We got this bug in the How To: extract some text nodes from DXL in to files. File could not be deleted in the current program flow - that is the effect of this bug. There is some solution, I will show example under cut Read more » [read] Keywords: dxl blogger bug java oracle
63


Ho To: easy Java agent development
Sat, Feb 4th 2012 3:54a   Andriy Kuba
Widely spread practice to write java code in the agent. Some coll guys will say, you need to write in library and append library to the agent. I want to show you a more clear scheme: So you will be able to easy manage code of all agent in one place. Mode explanation under cut Read more » [read] Keywords: agent domino blogger development java
76


How To: extract attachment from DXL (XML) in to the file in Java
Fri, Feb 3rd 2012 12:41p   Andriy Kuba
I will show how to extract some raw data from DXL in to the file. We need two things: 1. Code for extracting DXL 2. Some Utility to decode Base64 ".jar" files from the Java Libraries will be extracted in our example Read more » [read] Keywords: dxl blogger java xml
41


How To: create project for Lotus NotesDomino development in Eclipse
Fri, Feb 3rd 2012 6:02a   Andriy Kuba
I will show how you could create an Eclipse project configured for work with Lotus NotesDomino. This will be a simple java class as always. First of all you need to do one thing out of java programming - add Domino JRE to Eclipse. You could use any JRE you want, but I prefer to use Domino or Notes JRE because it's "native" for our future code. So let's add it and call it "Domino": You also will need one more information for our program - path to the Notes.jar like "C:Pr [read] Keywords: domino ibm lotus notes blogger development eclipse java
42


How To: write string in to file in one line of code
Fri, Feb 3rd 2012 2:17a   Andriy Kuba
There is many examples how to do it, I propose you to add one tiny method to your code and forget. Read more » [read] Keywords: blogger java
66


How To: wrapp StringBuffer.append to print each "append" in new line
Fri, Feb 3rd 2012 1:30a   Andriy Kuba
All of you know fine StringBuilder (StringBuffer) classes. Time to time you need to out multilines text and must code something like Read more » [read] Keywords: blogger java
52


How To: simple Log in Java
Thu, Feb 2nd 2012 2:37p   Andriy Kuba
If you need log in your application, you could find a lot of implementation in the internet. The best one is Apache log4j But in the case of simple application I prefer to use a tiny Log class: Read more » [read] Keywords: application blogger java
64


New subscription for Domino developers on StackOverflow
Thu, Feb 2nd 2012 12:17p   Andriy Kuba
Feel free to engage in to xPages thread on the StackOverflow [read] Keywords: domino xpages blogger
51


How To: extract some text nodes from DXL in to files
Thu, Feb 2nd 2012 11:22a   Andriy Kuba
One more post about processing DXL. I will show how to extract text nodes from the Database DXL. We will use previous code How To: export DXL in Java and How To: parse DXL in Java Let's extract Java Libraries from our datbase DXL, like it does Source Control Enablement for Designer Read more » [read] Keywords: dxl blogger database java openntf
49


How To: clean directory in Java
Thu, Feb 2nd 2012 10:45a   Andriy Kuba
There are tons of file utils on the web. The best one is File Utilities in Apache commons IO. Any way, if you need just deleting directory with sub-directories or just clean directory form all files and sub-directories, then look at my tiny example Read more » [read] Keywords: blogger java
115


How To: run Domino agent outside from Lotus Notes client
Thu, Feb 2nd 2012 8:08a   Andriy Kuba
This is simple with the help of Java API Read more » [read] Keywords: agent domino lotus notes notes client blogger java
66


How To: parse DXL in Java
Thu, Feb 2nd 2012 6:14a   Andriy Kuba
How to export database in to DXL I described in How To: export DXL in Java To do something with resulting DXL we need to find a way to easy get anything we want from the DXL. I will show how to do it with DOM parser. This is easy as always. Read more » [read] Keywords: dxl blogger database java
67


XPages does not run in NTF
Thu, Feb 2nd 2012 2:01a   Andriy Kuba
I got a problem: XPages could not be opened from .NTF in the client "XPages cannot process the application launch page: notes:///discussion8.ntf/allDocuments.xsp?OpenXPage" I suppose this could be because of .NTF could not be opened on the web also, so Lotus does not run HTTP to process XPage for the client. So .NTF becomes useless for development because of you could not test what you are doing immediately. [read] Keywords: domino lotus notes ntf xpages application blogger development




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition