April 23, 2007

Moving to wordpress

Many thanks to Steven Noels for hosting my blog for so long. Moving now to http://davanum.wordpress.com/

April 10, 2007

Open Letter to Sun Microsystems / Access to TCK for Java5 for Harmony

Geir has an open letter to Jonathan regarding our access to the TCK for Java5:

http://www.apache.org/jcp/sunopenletter.html

Here's the FAQ to go along with it:

http://www.apache.org/jcp/sunopenletterfaq.html

Bottom Line: Sun is in violation of its agreement with Apache and is playing unfair to put it very mildly. Now you may understand the meaning of my previous post.

April 04, 2007

Getting OpenJDK a TCK

I am involved in Apache Harmony so i keep track of what's happening with OpenJDK and ClassPath/Kaffe etc. Here's a quote from Simon Phipps from his blog that tingled my sixth sense and sent a shiver through my spine:

"I've also no doubt that we're likely to make mistakes as we work things through, especially as our business models around Java things evolve. Apologies in advance, help us fix them as they show up."

March 29, 2007

Apache Software License 2.0 / GPL v3 Draft

The Gory details are here:

http://gplv3.fsf.org/gpl3-dd3-guide

Two Quotable Quotes:

"We regret that we will not achieve compatibility of the Apache License,
Version 2.0, with GPLv3, despite what we had previously promised."

"We apologize to the Apache community for having previously overlooked
the significance of this issue. We look forward to further discussions with
the Apache Foundation in the hope of achieving compatibility in the future."

My Retort:

Thanks but no thanks!! We are **done** here.

March 04, 2007

Bug in JDK 6 / Confusion in JSR specifications

Here's the code:

import javax.xml.soap.*;

public class Test {
    public static void main(String[] args) throws Exception {
        MessageFactory factory = MessageFactory.newInstance();
        SOAPMessage message = factory.createMessage();
        AttachmentPart attachment = message.createAttachmentPart();
        String stringContent = "Update address for Sunny Skies ";
        stringContent += "Inc., to 10 Upbeat Street, Pleasant Grove, CA 95439";
        attachment.setContent(stringContent, "text/plain");
        attachment.setContentId("update_address");
        message.addAttachmentPart(attachment);
        message.writeTo(System.out);
    }
}

Here's the output under JDK6:

------=_Part_0_4875744.1173067363234
Content-Type: text/xml; charset=utf-8

------=_Part_0_4875744.1173067363234
Content-Type: text/plain
Content-ID: update_address
Update address for Sunny Skies Inc., to 10 Upbeat Street, Pleasant Grove, CA 95439

See the "Content-ID" in the attachment's mime header? Let's see what the latest and greatest SAAJ 1.3 spec says about it. I downloaded the "Download Specification With Change Bars" and "Download Documentation (JavaDocs)" from the following url: http://java.sun.com/xml/downloads/saaj.html In the PDF, for the API for AttachmentPart class, there are 2 methods getContentId and setContentId (See pages 25, 28, 32, 158, 160, 162). In all the references it is clear that the set/get should work with "Content-Id" and not "Content-ID". But guess what? open the javadoc zip and you can see that it is not in sync with the PDF. The javadoc uses "Content-ID". The main JSR page for SAAJ has link that says "Change Log for JSR 67". That link has no reference to any javadoc changes from the previous saaj revisions. If you see the J2EE 1.4 spec javadoc for AttachementPart, that has the old lower case version.

So, which is right? the javadoc or the spec? Oh forgot to mention, the TCK tests for the uppercase ("Content-ID"). My friend Steve is a huge advocate for test suites to accompany specs. In this case, having a test suite just was not enough for whatever reason. Guess, this is another reason why it was a bad idea to include JAX-WS/SAAJ in the JDK itself.

February 27, 2007

W3C's WSEC @ Boston / Communism

The Workshop on Web of Services for Enterprise Computing got off to a great start with a lot of familiar faces (Steve Vinoski, Mark Nottingham, Dave Orchard, Noah Mendelsohn, Rich Salz, Glen Daniels, Chris Ferris, Paul Downey, Hugo Haas, Philippe Le Hégaret, Eric Newcomer etc and a few new faces (for me!) - Mark Baker. Unfortunately i missed the afternoon session for my Citizenship test and will miss tomorrow because of a customer engagement. Hopefully Jonathan Marsh and Glen Daniels will hold down the fort tomorrow :)

One question asked by the DHS officer threw me off for a second..."Were you ever a member of a communist party"? Throw back from the McCarthy days is my guess. Towards the end, the DHS officer had trouble with his desktop when searching for a location, i took a peek at the monitor and saw an extra comma in the search field ("Boston,") and we had a good laugh about it as i told him what i did for a living.