Quick Table of Contents

  1. Java
  2. Profilers
  3. JDBC
  4. Links
  5. System Properties
  6. JSR
More Articles (showing 15 below)
2010-07-26
2010-06-13
2008-09-05
2007-01-20 2008-09-04
2007-01-14
2006-08-06
2005-11-02
2005-03-16
2004-09-21
2004-08-15
2004-08-11
2004-04-06
2004-04-06
2004-04-06
 

Java

1. Java

Java is a powerful programming language that lets you write programs that run virtually anywhere!

2. Profilers

I've tried both YourKit and JProfiler. Both were sufficient for my needs and integrate well into IntelliJ.

YourKit costs $499 (389 EUR) for a single user license. Upgrades from previous versions are at a 50% discount.

JProfiler costs $499 (409 EUR). With 1 year support/upgrades is $698 (599 EUR). Further upgrades for a single license are $179 (159 EUR).

3. JDBC

MySQL

Troubleshooting

Address already in use: connect
          ** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: java.net.BindException: Address already in use: connect

STACKTRACE:

java.net.SocketException: java.net.BindException: Address already in use: connect
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)
	at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
	at com.mysql.jdbc.Connection.<init>(Connection.java:1485)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
	at java.sql.DriverManager.getConnection(Unknown Source)
	at java.sql.DriverManager.getConnection(Unknown Source)
          

It isn't saying that its trying to listen on a local socket, but can't create a socket. Check that an excessive amount of TCP sockets aren't already open using netstat.

5. System Properties

The JVM takes arguments on the command line -Dname=value

e.g. To specify the default timezone, java -Duser.timezone=GMT

6. JSR

JSR 310: Date time calendar API

We're using Joda Time as a replacement date time API in our code.