<< January 2012 | Home | March 2012 >>

DNUG 2011 video of yours truly - Plug yourself in and your apps will never be the same!

The kind people from DNUG was kind enough to tape my presentation in November and send me a link to the video. Sides being extremely weird to see one self on video I thought someone might enjoy it - so here it is. Further down is the presentation on Slideshare from BLUG.

Link to video.

Tags : , ,

Notes 8.5.3 and Sametime Web API woes

For one of our products we are using the Sametime Web API which is a great way to Sametime enable applications outside the Notes client. Basically it uses the web container running within Notes Standard to provide a HTTP API for Sametime awareness. Great. We had an issue however after upgrading from Notes 8.5.2 to Notes 8.5.3 where Sametime awarenss stopped working but thanks to the design partner program and the help of Khuan Hoe Kong from IBM we're now back in the business. As this issue may bite others I thought I would post it here.

Our problem was that we were using the "mystatus" and "getShortStatus" API calls to get awareness status that is we were using local calls like http://localhost:59449/stwebapi/mystatus/ and http://localhost:59449/stwebapi/getShortStatus. These calls returned JSON we could use to get awareness status and as previously mentioned these calls worked fine in Notes 8.5.2 but after going to Notes 8.5.3 (and hence a newer version of the embedded Sametime client) they stopped working. Apparently these calls were considered a security risk so there were blocked and needed to be unblocked in order to work. Below is the response from IBM.

For security reasons, many of the WEBApi functions are disabled by default, including the mentioned two. To enable the function, add a preference to the plugin_customization.ini in the following format:

For example, to enable the getstatusshort, you would add this preference:
To enabled all the Web API functions you can use the global override:
The details of this change may be found in ST8.5.1 SDK.

While the above solution works it requires the customer to configure the client and hence wont work for us. The funny thing is that while the getstatusshort method is blocked for "security reasons" the getstatus method works just fine. Only difference is that the getstatus method returns more info. Makes no sense.

My main reason for considering this a bad approach is that I get an HTTP code 200 back but the response is empty/invalid. That seems wrong. A better REST solution would be to return a 403 Forbidden with an explanation why. What would in my mind have been the correct solution. Hope that can be incorporated into a future release.

But it works now so I will go back under my rock.

File not found when using IBM Connections Media Gallery

At a customer users were reporting that the media gallery in IBM Connections did not work. The error they were seeing was aneror message in the UI telling them that the file they just selected from their file system did not exist. Very strange. After diagnosing the issue it was caused by the media gallery not having been set up correctly as the default file types wasn't imported into the configuration. Why these defaults are not set automatically is the topic for another day.

There are two templates which determine the file types you can upload by default. You should also have these in your AppSrv01 profiles, or your nodes, etc. The step is done by following the instructions in the info center.

Diagnosing wierd widget installation issue

I had a customer report a widget (plugin) installation issue to me. They had clients being unable to install a widget (and hence a plugin) from an update site on our servers (external to their network). The error was reported as below:

Unable to access "http://<host>/site.xml". 
Contains: Error parsing site stream. [White spaces are 
   required between publicId and systemId.]
The issue turned out to be caused by a firewall issue and hence wrongly reported in the log. The issue was solved by relocating the update site to the customers network.

Mobile UI added

I've added a simple mobile UI to this blog for iPhones and other smartphones. iPads will get the full UI.

Tags : , ,

Blog updated

Did a maintenance of my blog this evening and updated from Pebble version 2.3.2 to 2.6.2 so lots of new stuff to look through. It looks like the update went fine but if you experience something "weird" please let me know. Thanks.

Disabling HTTPS communication between IHS WAS Plugin and WAS servers

Many people believe that you have to have multiple servers to run IBM Connections - this simply isn't true! There's no reason why you cannot run everything of the same server which is what we do here at the office. When you do that, if all servers are inside the firewall - or if you simply doesn't care about the security that it provides - you can disable the IHS WAS Plugin from communicating with the WAS server using SSL. A benefit from this is among other things that you do not have to care about certificates between the IHS WAS Plugin and the WAS server which simplifies installation and management.

Any way... For a while I've doing this configuration change manually directly in plugin-cfg.xml (by commenting the HTTPS transport out) until it bit us the other day. So I finally decided to find a proper, correct, solution. And of course there is a way to do this and it's very well documented in IBM Technote 1452735. So if you want to make that change go ahead and do it - I did and it's working flawlessly.

Windows 2008 64-bit can cause a significant CPU increase and I/O degradation when Domino opens many databases

Had a customer report the above issue and have it fixed by IBM so I thought others might benefit from it. The issue has been fixed as IBM SPR# KBRN8AKKA9. The technote is 1449825 and contains a lot of good info. Setting notes.ini "Disable_Random_RW_File_ATTR=1" fixes the issue.

"After Domino opens many NSF files in quick succession during a backup, the Virtual Address Space of the OS system cache may be completely used up (for example, 1TB of data may be used in this OS cache). Successive calls into the OS cache manager to get memory from the OS system cache then results in mapping/unmapping of views from the system cache. These mapping/unmapping operations takes a lot of CPU time and as a result shows as high OS CPU usage. In addition, because the large OS system cache may now reside on the disk (the RAM is not large enough to hold the OS system cache) this results in significant I/O on the system."

SOAP Headers in Lotus Domino web service consumers and providers

In a current project we're using the web service consumer and web server provider capability of Lotus Domino quite heavily. During the development the need to process the SOAP request headers which are provided in a section above the SOAP body. Problem is that these are not exposed through the proxy classes generated for you when you import the WSDL. Searching Google I came across the blog of Elena Neroslavskaya and more importantly the post that helped me out. Using the MessageContext class described in that blog post helped me crack the nut and now I can both iterate through the SOAP headers sent to me in the request and send SOAP headers back in the response. Sweet!

Below are two code snippets - one for iterating through request headers and one for sending headers back. Home it may help someone out there.

Iterate received headers

private void recurseHeaders(Iterator ite) { 
  while (ite.hasNext()) { 
    MessageElement elem = (MessageElement)ite.next(); 
    String nsUri = elem.getNamespaceURI(); 
    String name = elem.getName(); 
    String value = elem.getValue();
    System.out.println("SOAP Header - ns <" + 
      nsUri + ">, name <" + name + ">, value <" + 
      value + ">"); 

public com.example.FooResponseType foo(
  com.example.FooRequestType req) throws Exception { 
  MessageContext mc = MessageContext.getCurrentContext(); 
  SOAPEnvelope envelope = mc.getRequestMessage()

Send back headers

import lotus.domino.axis.message.SOAPHeaderElement;
import lotus.domino.axis.message.MessageElement;

MessageElement elemGuid = 
  new MessageElement("http://lekkimworld.com", "Guid"); 

MessageElement elemUser = 
  new MessageElement("http://lekkimworld.com", "User"); 

SOAPHeaderElement elemHeader = 
  new SOAPHeaderElement("http://lekkimworld.com", "TopElem"); 


Lotusphere 2012 one-liners

  • Way too busy hanging out, drinking with friends and networking.
  • Staying of site sucks but as long as the cab driver can find his way it works out fine. Btw staying in the Harry Potter room is cool if you can make your way onto the bed.
  • Being video taped for the IBM Champions roundtable
  • When my boss came to Lotusphere one day with two different shoes on
  • Working with the IBM team and the five other partners on the Social App Throwdown was a lot of work but was great fun. Getting my first android device was a nice surprise. Now of to the IDE.
  • Thumbs up for finding out about OK Go
  • Presenting on widgets for Connections was great fun and had good feedback
  • SHOW114 is a must read - the definitive guide for Java debugging in Notes/Domino.
  • SHOW115 is a must see - best demo to date of why OpenSocial and embedded experiences make sense
  • Ask the Developers lab rule!! Spent 3,5 hrs in there working through and solving a customer problem with help from the Connections team. Thanks you guys.
  • Back for Lotusphere 2013.

Tags :

Lotusphere 2012 reflections

As probably one of the last ones I'm just now back from Lotusphere 2012 (well past Friday actually). With the work pressure leading into Lotusphere I always take vacation immediately following Lotusphere. This year was no exception but instead of a week I took two. There was many reasons for this decision but it's not a decision I regret by any means. Only thing is that reflections from Lotusphere linger longer before being captured in writing which is a good way for me to work through the event.

As always Lotusphere is part real work (products, booth, customers), part catching up with friends (some which you only see once a year), speaking, socializing with friends/coworkers/customers and part networking. It is a mind boggling week that starts Saturday night and concludes Thursday afternoon where the place is suddenly empty and all that remain is the stuff you did. This year was no exception besides being more busy than ever. As highlights are surely the IBM Champion recognition at the OGS, participating in the Social App Throwdown and having extremely good conversations with IBM around the future of IBM Lotus Domino and Lotus Notes.

One thing is certain - I left Lotusphere relieved. Relieved that for the first time in a couple of years I feel that IBM is on the right track with the platforms. I finally feel that IBM is "getting it" and that the appdev team is on the right track. Of course I would like to see more OSGi sooner and better XPages/server runtime integration but I'm sure BM will get there.

Another thing that relieved me was a much clearer statement of direction. IBM was much clearer in articulating how OpenSocial is going to be central going forward and how collaboration using web technologies and mobile is going to be the center of what they do. Being social and being it online is core.

Another thing is that I left Lotusphere more certain than ever that the move from Lotus to IBM Collaboration Solutions (ICS) isn't a bad thing. It may not even be important or worth talking about. Things change. Names changes. Technology changes. We - as a community - need to move past the name discussion and focus on the solutions we can and should build. As true as ever - </bitching><doing>

As a developer I have been asked a few times to name my 3 take-aways from Lotusphere 2012. It's always tough but they will have to be:

  • learn Websphere (it is really not as bad as you might think)
  • skills up on JavaScript (the language - it is going to be everywhere / become framework independent)
  • OpenSocial is going to be very much a part of your toolbox if you're going to develop for Notes/iNotes/Connections going forward - API access to your applications (including existing ones) is going to be a key to your success
In conclusion a great conference - better than it has been for a few years.

Tags :

BP207 - Easy as Pie - Creating Widgets for IBM Connections

Below is my presentation from Lotusphere 2012 on creating widgets for IBM Connections. There's also a PDF version available.