Archive for October, 2011

October 16, 2011 Address already in use: JVM_Bind

by Jay Jonas

Just have some fun with Java sockets API in a Windows enviroment? So, what I could I say, just happens! Here is a solution.

Open the Command Prompt and follows these steps:

  • Find out if tcp port is really in use:
C:> netstat -na
  • Find out which process is binded on that por, in case it’s in use:
C:> netstat -abnovp tcp
This command may be a litte slow to return their results
  • To kill the process, take the PID (Process ID) in the lastest column and run this command:
C:> taskkill /pid <process_id_goes_here> /f

Finally, you can download the TCPView, a freebie from Microsoft.

TCPView is a Windows program that will show you detailed listings of all TCP and UDP endpoints on your system, including the local and remote addresses and state of TCP connections.


A more little tip: fix your sofware!

Tags: ,
October 4, 2011

JavaBeans PropertyChangeSupport Template

by Jay Jonas

Property-change events occur whenever the value of a bound property changes for a java bean. You can use a Eclipse template to help you to write all the standard setter code

Open Windows | Preferences. Browse to Java | Editor | Templates. Click on New and enter property_change_support as Name, choose Java Statements as Context and mark Automatically Insert option. Write a meaning description as “property change support for setter method” and copy & paste into Pattern the code as follows:

if (this.${enclosing_method_arguments} == null && ${enclosing_method_arguments} == null) {
propertyChangeSupport.firePropertyChange("${enclosing_method_arguments}", this.${enclosing_method_arguments}, ${word_selection})

Take care about that there is no new line at the end of the last line.
Take notes and will never forget it.

October 4, 2011

Tab Mix Plus dragging broken in Firefox

by Jay Jonas

Tab dragging (drag and drop to move the tabs around each others, but also to move a tab into a new window) has been broken in the Firefox 8 (Beta) version I use. That was not a Firefox fault, but a problem with the great Tab Mix Plus add-on.
The solution for this was to install Tab Mix Plus Dev-Build, a preview development version.

Futher information and download at Tab Mix Plus Forums.

// Updated 20111019:

Development Channel
The Development Channel lets you test an experimental new version of this add-on before it’s released to the general public. Once you install the development version, you will continue to get updates from this channel.
Install development version