Friday 7 May 2010

Space Shuttle Atlantis - Final Voyage!

On May 14th 2010 the Space Shuttle Atlantis will roar into the heavens for what will most likely be her final flight... and I will be there to see her go!
I remember watching the first flight of the Shuttle, when I was 11 years old. The teachers has squashed the whole school into a classroom at school in England. A television was rolled out and switched on and we sat and watched...
I had always had an interest in space and NASA and seeing the Shuttle launch started a life long ambition to one day see one fly. 29 years later the dream is finally coming true (as long as a certain volcano doesn't spoil the party).
When I heard last year that the Shuttle was being retired at the end of this year I really didn't believe it would happen. I mean how could something as iconic as the Space Shuttle no longer be flying? But then of course I could say the same of Concorde. Both vehicles suffering from the same issue, funding. When it became clear this would be the last year I made a decision that I had to make a launch, no matter what the cost.
A couple of weeks ago I entered a draw being held by NASA. They are holding a special tweetup at Kennedy Space Centre for followers of @NASA and were selecting 150 people from all those who applied to attend the 2 day event. So I entered not expecting to be selected only to get an email confirming I had been picked! Not only would I be able to see the launch, it would be from the VIP/Press area, the closest point you can get during a launch. To add to that we would get a tour, meet astronauts and shuttle engineers and get a look behind the scenes, to see the cogs that make the space programme engine run. If that wasn't inspiration enough to go then nothing would be.
So in 5 days I will head off from Gatwick to Orlando for what I expect will be one of the most amazing sights I will ever get to see.

Thursday 25 March 2010

Server Time faster or slower than OS?

In the last few days our old mail server which is running Domino 8 started doing odd things with the dates and times. Mail which arrived at say 10:15am would show as arriving the previous day at 05:23am or some other random time. The amount of time the server was out from the OS date time was not consistent and would vary.

Having checked all the usual suspects such as regional settings, default user etc... I still could not find an obvious answer. Then by luck and a bit of cunning query writing I found a technote which described exactly what we were experiencing. Apparently the Domino server was suffering from "Time Creep", where there is some inconsistency on the OS ticks v the OS time and apparently was caused by a bug in the Domino Time package. This has been resolved in 8.02 and 8.5.

To resolve the issue there is a handy Notes.ini param you can set which tells Domino to sync the time with the OS:

SERVER_TIMESYNC_INTERVAL = 1 - every 5min (default)
SERVER_TIMESYNC_INTERVAL = 2 - every 1min
SERVER_TIMESYNC_INTERVAL = 3 - every 60min
SERVER_DISABLE_TIMESYNC=1 -disable polling

Having added this to the server it now appears to be correct but I will need to monitor it for a few days to be sure.

Here is a link to the full technote:
http://www-01.ibm.com/support/docview.wss?rs=899&uid=swg21327441

Tuesday 2 March 2010

Xpages not loading? JVM errors? - Solution

If you read my last post you will recall that after upgrading my Dominio 7.02 server to 8.5.1 I could not get xpages to load from the server. I would get HTTP 500 errors in the browser and a http jvm: severe: clfad####e: error on the console.

I did the usual search on the net, tried the suggestions such as re-installing the server after removing the jvm directory, running a clean on the project from designer etc... But still no joy. Asked around a few fellow notes peeps and still no luck.

I tried to view two different xpage databases, the first was the standard 8.5 discussion and the second was a simple bespoke database with a single xpage containing a label and a field. Neither would load, however both would preview on the client.

After a few hours of investigation this morning and much hair pulling, desk head banging and caffeine consumption I have found the cause.

The error I was getting seems to be a fairly generic one:

HTTP JVM: SEVERE: CLFAD####E: Exception occurred servicing request for: /xpages/xpagestu.nsf/xp1.xsp - HTTP Code: 500
HTTP Web Server: Command Not Handled Exception [/xpages/xpagestu.nsf/xp1.xsp]


Unfortunately turning on the "Display Default Error Page" in the xpages tab of the database properties did not work and no additional information was displayed making tracking the problem down a bit of an issue.

So I turned on Http debugging using "tell http debug session on" from the console. This generates log files in the IBM_TECHNICAL_SUPPORT directory under the server data directory. After trying a few requests a had a look at the logs and the only error I could see related to a completely different database. The log file was showing an error with a cookie used in another web application on that server.

The error showing in the logs was :

java.lang.illegalArgumentException: Cookie name "some name" is a reserved tokenSo initially I ignored that and continued searching... After another half hour or so I went back to the log file and still the only error recorded was related to a cookie from another application. So I decided to clear all my cookies out and try again. Hey presto, it loaded!

The end result is that a malformed cookie name, in this case one that has a space in the name, stops xpages loading to the browser!

Now I need to do some more testing but what this means to me is that the other web application on our server, if used, will stop xpages working on a users browser. Now I don't know if there is a way around this without a a lot of changes to the other application. I will enquire from people at IBM etc... if there is a solution but at least I know the cause now.

Monday 1 March 2010

Xpages not loading on Server, JVM errors

Finally last night I decided that it was time to upgrade our existing 7.02 server to 8.5.1 as I want to make use of xpages in our web applications. So I backed up the 7.02 directories and did an install of 8.5.1 over the existing directories.

This seemed to work ok, the server booted up OK after, was showing as 8.5.1 on console and all the expected tasks such as xsp etc... loaded on server start. The only problem is that the server will not serve up an xpages to the browser, all I get is an "HTTP error 500" in the browser and a "http jvm: severe: clfad####e: error in the notes log".

I've tried the 8.5 discussion database, a brand new database with a single xpage and just a label and field and neither will load. All preview OK from the client.

I have tried to re-install after deleting the jvm directory so it was recreated, still no joy. I have signed the databases with the server ID and that did not work. Regular http pages are server, i.e. forms, views, pages etc...

So I have an 8.5 server that won't load the very things I need to be using!

Any ideas, is there something else I need to have configured? Do you need to have an internet site document for xpages to work? I noticed in the server document there is nowhere to map javascript directories but there is in the web documents.

Friday 22 January 2010

Dates and Times, how do you handle them?

So my last post on dates and times got me thinking, how is everyone else dealing with them for international type applications. I am now curious how people store, report on, use dates and times.

So if you had a "Global" application, where the users are in any timezone what would you...

  1. Store in the documents
  2. Use for views
  3. Use for calculations
  4. Include in emails
  5. Deal with front end and server side use
Having exchange a few mails recently it seems that people do things differently. Some store in local, some convert to GMT/UTC, some store mulitple dates in different formats.

Please leave a comment!

Wednesday 20 January 2010

Notes and Timezones!

I have a rather difficult issue to resolve, well in my mind it is, it may well not be! "Time Zones!"

I have a system that is a global application, it can be used via a browser or via a notes client The system stores lots of dates to track SLA's and the SLA's themselves are computed based on the day of the week and the time of day. Normally storing dates is fine, you use a date/time field and leave notes to handle the display. Unfortunately the SLA issue here causes me a problem.

So here is where it get's complicated, all the dates/times need to be in CET (Amsterdam) no matter where they are set.

  1. The server is in UK running GMT
  2. Users from the web will use local time on Client machine which could be any time zone but dates can potentially be calculated in WQS agent on server
  3. Administrators can be anywhere but will use a Notes Client
  4. Reporting must be in CET (Amsterdam)
So when a document is created via web or client, the SLA's need to be looked up based on the hour of day and day of week as I said. This must be based on CET (Amsterdam) no matter what the local time zone of the user is or server is.
Now I thought I had something working until I turned my local machines clock forward to April, which of course is GMT+1. Now my CET dates/times are still showing GMT +1 and not taking DST into account. I guess I need to know if the date/time in Amsterdam is DST even if the machine running the code is in New York for example.
So currently my codwould show 01/01/2010 19:00 GMT as 01/01/2010 20:00 CET but 01/04/2010 1900 GMT+1 shows as 01/04/2010 CET as DST is not being taken into account.
I have to admit this is driving me nuts!
So any advice? Ideas?

Saturday 2 January 2010

The year that was 2009

Like just about everyone else who has a blog I thought I would reflect on the last year, if nothing else for my own sanity. A year that proved to have highs and incredible lows for me. This is a personal reflection on my life and not on technology or the world at large.

For the first time in 2008 I had spent Christmas away from home with my mother, her partner, my aunt and her family and of course my family including Duke our dog. We had rented some cottages down in Somerset and had a really nice time. It turned out to be a very important memory for me and one I will always cherish.

Work has been a challenge in 2009. Having had to cope with increased demand, fewer resources, it was tough. I found myself working 10 - 12 hour days as the norm and had very little time to myself for anything except work.

The summer proved to be a damp affair and as such I really didn't get out on the motorbike much this year. The Kill spills organisation that I have marshalled for at various events over the last 4 years did not have any events this year and they are something I usually look forward to. Maybe next year, who knows.

Of course the major events of 2009 were very personal in nature. My mother was diagnosed with Lung Cancer in August and less than a month later she died suddenly. I have covered this is detail in a previous post but this was obviously a heart breaking event. The day after my mothers funeral we lost our dog Duke, another very distressing event. It seemed that 2009 was destined to end on a bad note. Two weeks after that my son was in a bad car accident when a friend of his lost control of his car and flipped it. My son wasn't wearing a seat belt but thank god he didn't get flung from the car or crushed under it and walked away with minor injuries.

This Christmas has been depressing and difficult. My mother was missing and she loved this time of year. I am so glad that we spent last year together as a family. Duke loved Christmas as well and would go mad ripping the paper of his new toy each year but again that was missing. In fact the magic of Christmas has been slowly fading as the years go by. I don't know why, I always loved this time of year, but now it just seems like a big panic for weeks or months then a day later it's all over. The sad thing is I "really want" to enjoy the festive season but I just can't. I wish it was like one of those family movies where everyone is happy and Santa flies over the house on his sleigh shouting ho ho ho, but life isn't like that.

Just so I don't finish on the doom and gloom, there were some highlights for 2009. I had my first (and so far only) flying lesson in an old beaten up Cessna 152 out of Blackbushe. I also turned semi-professional in my photography and have enjoyed that immensely. Both things I hope to continue in the future. I've made lots of new friends online in twitter and also reconnected with old friends from my school days. Now I need to stop living in the past and try to get on with the future.