The following step cause a ServerSocket Exception on revision 3456. The app crashes on the next run
1. Follow Menu Perferences/
2. Select Advance
3. Enter a large number in remote port text box (e.g, 602250)
4. Click OK
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Port value out of range: 602250
at java.net.ServerSocket.<init>(ServerSocket.java:180)
at net.sf.jabref.remote.RemoteListener.openRemoteListener(RemoteListener.java:119)
at net.sf.jabref.AdvancedTab.storeSettings(AdvancedTab.java:177)
at net.sf.jabref.PrefsDialog3$OkAction$1.run(PrefsDialog3.java:252)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at spin.Invocation.evaluate(Invocation.java:175)
at spin.off.SpinOffEvaluator$1.run(SpinOffEvaluator.java:108)
at java.lang.Thread.run(Thread.java:619)</init>
Catch and treat the exception properly
Should be already fixed on master. https://github.com/JabRef/jabref/blob/master/src/main/java/net/sf/jabref/gui/preftabs/AdvancedTab.java#L295