Tech Per

29 Aug

Making a Java WebApp Return Proper SOAP Fault Responses

In several projects I have been co-developing, we had a webapp as part of the system, which exposed a webservice API as integration end-point to the system. The sole content of that webapp is the webservice, and as such, the web.xml contained only the mount of the webservice servlet (like CXF or Axis) and not [...]

28 Aug

The Need for java.lang.Thread and java.sql is Gone

At least for the application developer.
Back in the days of Java1, two cool parts of this new platform was the threading apis and the JDBC apis. These APIs have both had immense success. But I think we, as application developers, should forget about them. I know I mostly have.
There are good reasons, that these apis [...]

25 Aug

Applet Caching and the Control Panel on Linux

The Sun Java applet plugin will cache applets outside the browser cache, in its own cache directory. Clearing the cache in the browser will not clear the applet cache, which can be irritating when you need to be sure, that a fresh copy of a given applet is loaded.
What you need to do, is clear [...]

10 Aug

System.currentTimeMillis, System.nanoTime and Their Resolution

When reading about Robust Java Benchmarking, I came across some things I had not thought about myself. It turns out, that even though System.currentTimeMillis() has the unit of milliseconds, the precision with which the method can return, is quite different on various operating systems.
Brent Boyer explains that Windows XP has a granularity of 15 ms, [...]

09 Jul

JavaFX - A Forever Unfinished RIA Technology

A couple of weeks ago, while I had a fun day with a bunch of my colleagues, showing them the wonders of flex development, another two of my bright colleagues used that same day, to uncover how far JavaFX is now, and what could be done with the technology today. And the answer was horrifying. [...]

08 Jun

What Is The Big Deal With Flex?

Are you a Java developer with the thought: “What the f*** is up with all the flex hype here in the Java camp? Is flex not just the same old closed flash world like always?”. If so, then this post is for you.
In my recent post Flex Leads to Clash Between Java and Flex [...]

17 May

Conditional Page Rendering in Java Web Frameworks - Best Practices?

This is a post, that requires your input I want to harvest the information in your brains, on how your favourite web framework is best at not cluttering the view pages, when you need to show them differently for each user or state of the application.
Definition: Conditional Views
I have no better name, than “conditional [...]

05 May

SpringSource Application Platform

So, Spring Source has been able to keep a secret from us Secretly, they have been developing what looks a lot like a new application server, not like the JEE market, but with the springframework at its core. A well kept secret, which I did not see coming, even though we might have been [...]

11 Apr

Ping failed in MysqlValidConnectionChecker in JBoss/MySQL-ConnectorJ Combination

Today I was battling an issue for some of my colleagues. They were getting this exception from JBoss/Mysql ConnectorJ driver:

java.sql.SQLException: Ping failed: java.lang.IllegalArgumentException: object is not an instance of declaring class

in the JBoss console.
A look at the stacktrace told me, that it was coming from inside the method com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker.isValidConnection, so naturally, I dived into the [...]

09 Mar

Log5j and The State of Log4j Version 2

I just took log5j for a spin. For those who does not know, log5j is a Java5 enhancement of the log4j api. It provides two new features on top of log4j, where one is made possible by Java5:

Feature 1: Obtain a logger without giving the logger name (which is bad, I think)
Feature 2: Using printf-style [...]

© 2008 Tech Per | Entries (RSS) and Comments (RSS)

GPS Reviews and news from GPS Gazettewordpress logo