jEdit Community - Resources for users of the jEdit Text Editor
java.net.ConnectException: Connection refused
Submitted by audrey on Wednesday, 25 March, 2009 - 02:36
I updated my Fedora 10 box yesterday and now cannot launch jEdit. At least, I'm assuming the update is responsible. There was nothing else that I can think of that might have changed. When it launches, I see only a white screen, no window at all. I can see my gnome panels, though. The following is from activity.log: java.version=1.5.0_14 java.vm.version=1.5.0_14-b03 java.runtime.version=1.5.0_14-b03 java.vendor=Sun Microsystems Inc. java.compiler=null os.name=Linux os.version=2.6.27.19-170.2.35.fc10.i686 os.arch=i386 user.home=/home/audrey java.home=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre java.class.path=/home/audrey/jedit/4.3pre12/jedit.jar An error occurred while connecting to the jEdit server instance. This probably means that jEdit crashed and/or exited abnormally the last time it was run. If you don't know what this means, don't worry. java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.(Socket.java:367) at java.net.Socket.(Socket.java:209) at org.gjt.sp.jedit.jEdit.main(jEdit.java:247) My yum.log shows the following were updated: selinux-policy-targeted-3.5.13-49.fc10.noarch postgresql-libs-8.3.7-1.fc10.i386 postgresql-8.3.7-1.fc10.i386 postgresql-server-8.3.7-1.fc10.i386 postgresql-plperl-8.3.7-1.fc10.i386 postgresql-plpython-8.3.7-1.fc10.i386 gtk2-2.14.7-7.fc10.i386 lcms-1.18-1.fc10.i386 lcms-libs-1.18-1.fc10.i386 libX11-devel-1.1.5-1.fc10.i386 libX11-1.1.5-1.fc10.i386 xorg-x11-drv-vesa-2.2.0-3.fc10.i386 I'm going to assume (I know--a lot of assumptions here) that Postgres and Little CMS have nothing to do with it. I know next to nothing about Java sockets or jEdit server. Could the gtk or x11/xorg updates possibly be at fault? BTW, I did try to upgrade jEdit before posting here, but that's been a bit of a problem itself, and is the subject of the next post I'll be making. I figured I should keep them separate.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Aaaarrgghhh!!!
by audrey on Wed, 25/03/2009 - 02:42
  • Please don't blame me--the preview isn't working at all. So, what's with the newlines disappearing? No code tag? No break? And how come I can edit my comment but not the intial post? What kind of forum is this?
  • I'm reposting the important bits using list items to create line breaks (this is ridiculous)
  • I updated my Fedora 10 box yesterday and now cannot launch jEdit. At least, I'm assuming the update is responsible. There was nothing else that I can think of that might have changed. When it launches, I see only a white screen, no window at all. I can see my gnome panels, though.
  • The following is from activity.log:
  • java.version=1.5.0_14
  • java.vm.version=1.5.0_14-b03
  • java.runtime.version=1.5.0_14-b03
  • java.vendor=Sun Microsystems Inc.
  • java.compiler=null
  • os.name=Linux
  • os.version=2.6.27.19-170.2.35.fc10.i686
  • os.arch=i386
  • user.home=/home/audrey
  • java.home=/usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre
  • java.class.path=/home/audrey/jedit/4.3pre12/jedit.jar
  • An error occurred while connecting to the jEdit server instance. This probably means that jEdit crashed and/or exited abnormally the last time it was run. If you don't know what this means, don't worry.
  • java.net.ConnectException: Connection refused
  • at java.net.PlainSocketImpl.socketConnect(Native Method)
  • at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
  • at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
  • at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
  • at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
  • at java.net.Socket.connect(Socket.java:520)
  • at java.net.Socket.connect(Socket.java:470)
  • at java.net.Socket.(Socket.java:367)
  • at java.net.Socket.(Socket.java:209)
  • at org.gjt.sp.jedit.jEdit.main(jEdit.java:247)
 
Hmm.. Very weird. I've never
by elberry on Wed, 25/03/2009 - 07:45
Hmm.. Very weird. I've never had that problem before. Can you check to see if you have any java processes already running?

Also, how did you install jEdit? Java installer, or some other means?

You said it was installed previously, have you tried to re-install jEdit?

Also, it doesn't look like this would cause jEdit to not startup, does the new Fedora come with any eye-candy? Compiz, etc..

Try disabling it and see if it helps any.

Lastly, you're not the only one seeing issues with the preview, although I haven't personally experienced it. What browser are you using, and what version?

Learn from the past. Live in the present. Plan for the future.
11101000
Blog
 
thanks for responding
by audrey on Wed, 25/03/2009 - 16:33
There are no other java processes running. Now that I think of it, though, I might try installing another java app or two to see if they have similar problems.

I'm pretty sure I installed 4.3pre12 using the jar installer. I know it wasn't through yum, as I've never been able to get jpackage to play nice. This had been running fine for several months, when I upgraded to Fedora 10.

I did try renaming ~/.jedit and starting "fresh" but got as far as a couple of (blank) windows opening and freezing. The activity log showed no errors in that instance.

I also tried installing 4.2 but, like with 4.3pre16, it gets as far as the installer window opening but it's unresponsive. And I see pretty much the same backtrace:


Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xdfc767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xdfc831]
#2 /usr/lib/libX11.so.6(_XReply+0x254) [0x24bf54]
#3 /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/lib/i386/xawt/libmawt.so [0xab3f8d7e]
#4 /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/lib/i386/xawt/libmawt.so [0xab3e2d47]
#5 /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/lib/i386/xawt/libmawt.so [0xab3e2ec3]
#6 /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x26) [0xab3e3106]
... more


It sure looks like either the xorg, x11, or gtk update are responsible.

I'm not sure about Compiz. Fedora's nice to look at and all but I don't think about that sort of thing much with this box. There isn't even a sound card. I'll poke around to see if there's any graphics acceleration.


So ... why are my paragraphs suddenly working? Smiling
 
Not sure about the paragraphs
by elberry on Wed, 25/03/2009 - 17:39
Not sure about the paragraphs. Smiling

I would definitely see about Compiz though. It might have been installed during the update, and then enabled by default.

What version of Fedora did you upgrade from?

Also, did you install Java? or was it installed for you? You might try reinstalling it, perhaps something got fouled up during the upgrade.

Learn from the past. Live in the present. Plan for the future.
11101000
Blog
 
solved
by audrey on Fri, 27/03/2009 - 01:49
The problem was due to the libX11 update for Fedora 10 a few days ago. A patch has already been added to updates-testing and it worked for me. It should be pushed out soon, as this affected *many* different apps.

https://bugzilla.redhat.com/show_bug.cgi?id=491813

I've got my jEdit back!
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293