Skip to main content

Any Way You Want It

Posted by editor on January 13, 2009 at 8:15 AM PST

Who seriously reads thousand-line dumps in forums?

Thanks, Kirill. Oh, for a lot of things, but this time for a forum post:

In general, less code you post equals higher chance the forum readers will look into it. My rule of thumb is that anything above 100 lines stands minimal chances of getting a response. Your original code was 220 lines. You'll need to bring it to the absolute minimum necessary to reproduce the problem. That includes removing unnecessary Java2D operations (no need to draw a dashed polygon, one line is enough to show the problem), removing usage of external images (duke), colored labels, control panel and any mouse interaction (that you state yourself is for the future).

Seriously, this is just such common sense: if you're not willing (or able) to reduce your bug to as small a block of code as possible -- a process that may very well reveal the problem -- then what makes you think that random members of a forum will do so for you? Reading the editor's RSS feed of all the forum activity, I groan when I see a post that basically says "Something broke, here's a 400-line thread dump", and I'm amazed when readers actually parse the dump and figure it out.

The "wisdom of crowds" only goes so far. Let's try to break things down and isolate problems as much as possible, OK?

Also in today's Forums, maxbowsher complains about the unavailability of Sun JDK source in
Re: JDK 6 Source Code. "No source later than 6u3 ever appeared online as far as I know, and Sun appear to be completely ignoring repeated requests for clarification on what's happening in this "feedback" forum. Even the links to 6u3 seem to have vanished now, though apparently the original download is still accessible if you happen to have the URL recorded."

Danilo Levantesi is looking to speed things up in
EJB deployment - Web Services endpoints creation. "I've noticed that every time I deploy an EJB module to Glassfish a lot of deployment time is spent generating Web Services endpoints from @WebService annotation. Are there any way to avoid this automatic creation? I thought something like: - offline automatic wsdl/xsd creation (eg ant task, maven plugin and so on), - disable Glassfish-side creation for already created endpoints which classes have the same serial uid."

thamizh needs guidance getting started building a
Restful webservice in java. "I want to build (demo) a restful web service in java. To achieve this from where i need to start? What are the things to be downloaded from java web site? Can i deploy my developed web service in plain tomcat web server? Do i need to configure anything in web.xml?"

In Java Today,
Jasper Potts has created a JavaFX Spline Editor for helping to calculate the values to pass to javafx.animation.Interpolator.SPLINE(...). "[I] thought it was about time we had a JavaFX version, and it could not be too hard. So a couple hours and a couple hundred bind statements later we have a very cool little Spline Editor that lets you edit the spline and see the effect in real time then copy the code to paste into your JavaFX application."

The JavaFX Examples project has launched, with the goal of pfoviding "a repository of a lot of small javaFX examples, where you can learn and find out different ways of doing things in this early Java platform." Owner maxtrix has seeded the project with a single LogicLoopScoreBoard example, and seeks further contributions from the community.

Daniel Lopez exercises JVM scripting, as well as his own ability to keep business logic separate from the rest of his application, in Separating Concerns: Business Logic Implementations round-up. " how to decide between one language or another? Well, one of the best ways to do so is to test for yourself, and that's what I did. So, I'm here to share the different implementations I came up with in the various different languages. [...] The basic idea of the test is to write a function that returns a list of items from a database, reachable through a data source, table in the form of an XML document." Read on for results in Jython, Groovy, Scala, and more.

In today's Weblogs, Sergey Malenkov explains the
Strange Sequences in JavaFX. "If you come across square brackets in JavaFX script, do not think that JavaFX supports arrays. These are sequences. Sequences are not arrays although they are similar. Before reading this blog post I recommend that you familiarize yourself with the tutorial."

Van Riper announces a user group group in
JUG-USA: The Whole is Greater than the Sum of the JUGs. "We are officially launching JUG-USA today. It is an umbrella Java User Group (JUG) which local JUGs from all over the United States can affiliate with. It is my hope that a true synergy will emerge from this undertaking. Please see the full post for more information and the pertinent links. "

Finally, Terrence Barr passes along some evening plans in
Reminder: JCP 10th Birthday Party - Tue, Jan 13th. "Just a quick note: Tomorrow, Tuesday (Jan 13th) the JCP will hold their 10th anniversary birthday party at the Computer History Museum in Mountain View, CA."

Current and upcoming Java

Registered users can submit event listings for the href=""> Events Page using our href="">events submission form.
All submissions go through an editorial review before being posted to the

Archives and Subscriptions: This blog is delivered weekdays as
the Java
Today RSS feed
. Also, once this page is no longer featured as the
front page of it will be
archived along with other past issues in the href=""> Archive.

Who seriously reads thousand-line dumps in forums?