Sean Gibbons - 2009-10-12

We're trying to run some instrument code but we keep getting a socket bind exception:

   java.net.BindException: Address already in use

        at java.net.PlainSocketImpl.socketBind(Native Method)   
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
        at java.net.ServerSocket.bind(ServerSocket.java:319)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at java.net.ServerSocket.<init>(ServerSocket.java:97)
        at com.vladium.emma.rt.RTController.start(RTController.java:99)
        at com.vladium.emma.rt.RT.reset(RT.java:222)
        at com.vladium.emma.rt.RT.<clinit>(RT.java:540)

The run will go part way through and then through the exception.  Code runs fine when we try and run the non-instrumented code all by itself.  There's no other java processes running and I can't find any mention of emma opening up any sockets so I don't understand why it would be trying to open up two sockets on the same port. 

Any idea what is happening here?