URL is not valid and cannot be loaded

I just downloaded an installed WebStorm 2.1.1 on my Ubuntu 11.04 laptop (using Unity).  When I try to debug a very simple javascript app by referencing the html file, there is a long pause and firefox eventually opens in a new tab with a popup window saying "The URL is not valid and cannot be loaded.".  The URL window shows "file:///".  Seeing that WS 2.1.1 is supposed to support Firefox 5, I then upgraded to version 5 and tried again.  I got exactly the same results.  I'm not sure what might be the problem.  Here is how I bring up WS:

jberry@joebuntu:~/WebStorm-107.307/bin$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)
jberry@joebuntu:~/WebStorm-107.307/bin$ ./WebStorm.sh

I have firebug installed in FF as well as other add-ons (e.g., FireFinder, Zotero and Adblock).  I own a copy of WS that I have been using on a Windows XP box.  On that box (running FF 4), I have virtually the same add-ons (although there might be some difference) and have had no problems whatsoever.  I'm just now trying to use WS on my Ubuntu box.  This actually brings me to a secondary question. Do I need to purchase a second copy of WS if I intend to use it on two computers?  The developer is only me but I do sometimes work on one box or another.

Any assistance or advice would be appreciated.

Joe

7 comments
Comment actions Permalink

Could you please go to Tools -> Add-ons in Firefox and check whether JetBrains Firefox extension is installed or not. If it is installed please tell which version of the extension is shown.

0
Comment actions Permalink

It says that version 0.4.6 is installed and that it was last updated on 7/3/2011.  Automatic updates is set to default.  It further shows that it is enabled (due to the 'disabled' button being available for me to click on).  Should I perhaps uninstall the plugin and reinstall?

Thanks,
Joe

0
Comment actions Permalink

Yes. Could you please ununstall the extension from Firefox, close all Firefox instances and then start the debugger from WebStorm? It should show a dialog saying that it's going to install the extension.

0
Comment actions Permalink

Not too much success, I'm afraid.  I removed the extension, restarted Firefox to confirm it was removed and then exited FF. I started my html page via WebStorm's debug. The dialog came up saying it would install the extension. After waiting a bit, FF came up and a "New Tab" was presented to me.  All the time, WS said "Waiting for connection".  I waited 4 minutes. I checked and confirmed that FF believes the WS extension is installed.  I eventually stopped the debugging session.  Without closing FF, I started debugging again via WS. This time I got a response but it was the same one I originally complained about ("URL is not valid ...").

Any other ideas?  Could it be an incompatibility with other extensions?

Joe

0
Comment actions Permalink

I saw how easy it was to disable (not remove) the extensions and so I disabled all extensions and removed the WS extension.  I restarted FF and reran the debug session via WS.  I saw the same dialog asking to install the WS extension. Afterwards, I checked and noticed that 3 extensions were active: JetBrains, Global Menu Bar Integration, and Ubuntu FireFox mods (0.9.1).  I had the identical symptoms as I described above.  WS could never connect to FF. When I stopped and restarted the debugging session in WS, I got that same invalid URL messages.

0
Comment actions Permalink

May be you have some firewall which blocks WebStorm from connecting to the Firefox extension.
Could you please replace <WS_HOME>/bin/log.xml file by the attached one, reproduce the problem and attach here idea.log file (use Help | 'Reveal Log' action to locate it) and content of Firefox Error Console?



Attachment(s):
log.xml
0
Comment actions Permalink

Beautiful, Nikolay.  The new log.xml file revealed what the problem was.  I was getting the following exception:

2011-07-10 12:19:31,844 [ 320779]  DEBUG - tion.impl.SocketConnectionImpl -  
java.net.NoRouteToHostException: No route to host
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)

Once I saw that, I knew how to progress.  My /etc/hosts file had a couple of messed up entries in it. Those entries apparantly did not mess up other software (which I'm a little surprised about). Anyway, I fixed the /etc/hosts entries and everything worked fine thereafter.

Thank you so much!!

Joe

0

Please sign in to leave a comment.