Monday, May 25, 2009

Adobe Flex

I'd like to refresh my UI knowledge after a long gap of 2+ years. By the time i left eclipse based plug-in development, i tuned myself in core application program. I did few XML server side stuff and managed a team in Java Swings and finally built an adapter for webMethods Integration server. I was into little bit of XQJ1.0 spec implementation. little bored? yes. now i get some time. Somehow i turned my attention from core application to UI.

By the time, i looked UI, it tremendously grown and more stylish too. JSP, Struts, velocity, looks like vintage classic tools to develop UI. Now i could see this is the age of Rich Internet application (RIA). As i want to part of this modern phase, i started learning Adobe flex.

I'll write my experience with Flex soon.

Saturday, May 16, 2009

Stax parser's hard to solve problem

I ran into some sort of serious issues with stax parser(woodstox implementation) in the recent time. You might have also encounter the problem with woodstox.

WstxEOFException: unexpected EOF prolog row[0,1]...

According to the document, this would happen when the TCP connection is broken when the stream is being read. because of this, the XML read was not successful. But this was not in my case. My connection to http server never end. then what's the problem? what went wrong?

It took more than five hours to resolve. When the stream is received from the http connection, one of my API reads the header information of the stream and then pass the stream for further parsing, when it uses the same stream (half read by other opeartion) for parsing the rest of the response, it failed. when i reset the stream, it went very well.

So please be sure that your input stream is reset before you parse every time.

Thursday, May 07, 2009

Big mess around XQJ1.0

One of the oldest JSR which has started in 2003 and not yet reached the final stage. I still doubt whether there is an active group working towards it's 1.0 spec release. Many of the comments from the approval forum says the interface level were not sufficient. There are quite a few XML databases in the market. Except XQuery there are no similar interaction layer. Data Direct is one such company trying to standardize this but in a wrong direction. As a key member in JSR-225, Data Direct might take a strong step towards its release.

Even after 6 long years, the specification fails to come to the center stage, there are chances that people might forgot XQJ. Whoever dealing with XML databases now with their own proprietary API will stick with them. Rewriting them would cost and might affect the stability. Quick releases in specification would increase the chances of stability and feature packed by early feed backs from industry.

I could find one open source implementation on proposed 1.0 spec is saxon.

Though there are chances for improvement, I'm waiting to see the XQJ spec in the limelight soon.