Help get this topic noticed by sharing it on Twitter Twitter, Facebook Facebook, or email.
Bill Carlson

SocketException when recording in Eclipse

When trying to record my application execution in Eclipse (version 3.7.0.158), I get a SocketException with the following stack trace:

java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
at java.net.ServerSocket.implAccept(ServerSocket.java:522)
at java.net.ServerSocket.accept(ServerSocket.java:490)
at java.com.chronon3.sb.recorder.b.a.a(SourceFile:59)
at java.com.chronon3.sb.recorder.b.a.run(SourceFile:40)

This error appears to be dependent on the number of classes included in the recording, but running my current test even with a very small number of classes included still causes this error to occur. I can't find anything in the documentation indicating socket communications or what might be causing this problem. HELP!

Properties:
java.runtime.name: OpenJDK Runtime Environment
sun.boot.library.path: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64/jre/lib/amd64
java.vm.version: 23.7-b01
java.vm.vendor: Oracle Corporation
java.vendor.url:
path.separator: :
java.vm.name: OpenJDK 64-Bit Server VM
file.encoding.pkg: sun.io
user.country: US
sun.java.launcher: SUN_STANDARD
sun.os.patch.level: unknown
java.vm.specification.name: Java Virtual Machine Specification
java.runtime.version: 1.7.0_19-mockbuild_2013_04_17_07_11-b00
java.awt.graphicsenv: sun.awt.X11GraphicsEnvironment
java.endorsed.dirs: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64/jre/lib/endorsed
os.arch: amd64
java.vm.specification.vendor: Oracle Corporation
os.name: Linux
sun.jnu.encoding: UTF-8
java.specification.name: Java Platform API Specification
java.class.version: 51.0
sun.management.compiler: HotSpot 64-Bit Tiered Compilers
os.version: 3.8.1-201.fc18.x86_64
java.specification.version: 1.7
sun.arch.data.model: 64
user.language: en
java.specification.vendor: Oracle Corporation
awt.toolkit: sun.awt.X11.XToolkit
java.vm.info: mixed mode
java.version: 1.7.0_19
1 person has
this problem
+1
Reply
  • bill,
    sorry for the late reply.
    the error is not in fact related to the amount of classes being recorded.

    the chronon eclipse plugin makes a connection with the program being recorded to enable the blue 'stop' button in the console view.

    This error will occur if you try to use a firewall to block communication between eclipse and the application.
    If you want, you can change the port that is used for communication by going to :
    window > preferences>chronon > recorder > advanced settings > 'GUI Listener Port'
  • (some HTML allowed)
    How does this make you feel? Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited