[BUG] FlashGot & JDownloader 2 (Beta) in Mac OSX
-
- Posts: 18
- Joined: Fri Jan 02, 2015 12:10 am
[BUG] FlashGot & JDownloader 2 (Beta) in Mac OSX
I've figured out how to enable JDownloader 2 with FlashGot under Mac OSX 10.9.5, which is to modify the value of the preference name "flashgot.dmsopts.JDownloader.path" (in Firefox about:config) from the JDownloader 2 path of the *.jar file to the actual executable of JDownloader. In other words I've changed the value of the "flashgot.dmsopts.JDownloader.path" preference from "/Applications/JDownloader 2.0/JDownloader.jar" (which comes pre-set from FlashGot) to "/Applications/JDownloader 2.0/JDownloader2".
In this case FlashGot and JDownloader 2 work fine together as long as JDownloader is already open before starting a download but there are serious problems in case JDownloader is closed. In this last case, if I try to download a file using FlashGot with JDownloader, Firefox gives me back the message "Cannot launch JDownloader. Please launch it manually or ensure java is enabled in your browser" and the preference "flashgot.dmsopts.JDownloader.path" get erased to an empty value. In this case I need to reset it to "/Applications/JDownloader 2.0/JDownloader2" before having the possibility to use JDownloader again (still by opening it before starting the download with FlashGot).
Could you please take a look at this issue?
Many thanks
In this case FlashGot and JDownloader 2 work fine together as long as JDownloader is already open before starting a download but there are serious problems in case JDownloader is closed. In this last case, if I try to download a file using FlashGot with JDownloader, Firefox gives me back the message "Cannot launch JDownloader. Please launch it manually or ensure java is enabled in your browser" and the preference "flashgot.dmsopts.JDownloader.path" get erased to an empty value. In this case I need to reset it to "/Applications/JDownloader 2.0/JDownloader2" before having the possibility to use JDownloader again (still by opening it before starting the download with FlashGot).
Could you please take a look at this issue?
Many thanks
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:34.0) Gecko/20100101 Firefox/34.0
Re: [BUG] FlashGot & JDownloader 2 (Beta) in Mac OSX
What does the log say? FlashGot Options -> Advanced tab -> Log (at the bottom) -> uncheck Disable.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 SeaMonkey/2.25
-
- Posts: 18
- Joined: Fri Jan 02, 2015 12:10 am
Re: [BUG] FlashGot & JDownloader 2 (Beta) in Mac OSX
Sorry for the late reply.
Given that I cannot copy paste the log (the forum is rejecting my post), I've uploaded an image:

Given that I cannot copy paste the log (the forum is rejecting my post), I've uploaded an image:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:34.0) Gecko/20100101 Firefox/34.0
Re: [BUG] FlashGot & JDownloader 2 (Beta) in Mac OSX
Cool. And now the log for the case when you get the error message, i.e. when JDownloader is not running and FlashGot fails to launch it.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 SeaMonkey/2.25
Re: [BUG] FlashGot & JDownloader 2 (Beta) in Mac OSX
Starting point is to try wrapping it in [ code ] tags.SergeGardien wrote:I cannot copy paste the log (the forum is rejecting my post)
Or you can always send it to a moderator via private message.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.
True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.
True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
-
- Posts: 18
- Joined: Fri Jan 02, 2015 12:10 am
Re: [BUG] FlashGot & JDownloader 2 (Beta) in Mac OSX
Sorry for the late reply.user wrote:Cool. And now the log for the case when you get the error message, i.e. when JDownloader is not running and FlashGot fails to launch it.
I've basically found where the problem lies. It's in the Java call to the Jar file.
I give you the whole picture.
Given that I've had some further issues with Firefox, I've decided to reset it (guide at: https://support.mozilla.org/en-US/kb/re ... t-problems).
After having done this step I've got some improvements given that I've been able to set the value of the "flashgot.dmsopts.JDownloader.path" preference to "/Applications/JDownloader 2.0/JDownloader.jar" and the java problem mentioned earlier disappeared.
Now I've got the following error:
"JDownloader not responding on http://127.0.0.1:9666/flashgot!
Please check your firewall settings."
I've pasted the FG log post JD call on PasteBin: http://pastebin.com/zeruS906
The problem lies in the Java call made by FG:
2015-01-19T21:02:57.869Z Running /usr/bin/java /Applications/JDownloader 2.0/JDownloader.jar -- async
First of all I've changed the name of the folder from "/Applications/JDownloader 2.0/" to "/Applications/JDownloader_2.0/" but the FG java call should have the -jar option.
Summarizing, instead of making the call:
/usr/bin/java /Applications/JDownloader_2.0/JDownloader.jar -- async
FG needs to make the call:
/usr/bin/java -jar /Applications/JDownloader_2.0/JDownloader.jar -- async
(I've tried this on Terminal and it works).
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:35.0) Gecko/20100101 Firefox/35.0
-
- Posts: 18
- Joined: Fri Jan 02, 2015 12:10 am
Re: [BUG] FlashGot & JDownloader 2 (Beta) in Mac OSX
Tried that with no luckThrawn wrote:Starting point is to try wrapping it in [ code ] tags.SergeGardien wrote:I cannot copy paste the log (the forum is rejecting my post)
I prefer PasteBinThrawn wrote:Or you can always send it to a moderator via private message.

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:35.0) Gecko/20100101 Firefox/35.0
Re: [BUG] FlashGot & JDownloader 2 (Beta) in Mac OSX
You're right about the "-jar" part. What I don't understand is the underscore/no underscore part. Does the actual path to JDownloader has an underscore or not? If it does, why are you setting the preference to a path that doesn't have an underscore? And if it doesn't, why are you using a path with an underscore in Terminal? And how does it even work - does your /usr/bin/java (or shell/Terminal) replace underscores with spaces or what?
BTW, the "-- async" (or "-- blocking") string at the end is not part of the command line, it's just for the log.
Here's a version that fixes the "-jar" part (and a couple other JDownloader and YouTube related things):
BTW, the "-- async" (or "-- blocking") string at the end is not part of the command line, it's just for the log.
Here's a version that fixes the "-jar" part (and a couple other JDownloader and YouTube related things):
Code: Select all
http://rghost.net/private/60457246/82354dbc444c1a7b1c5607cf155aa2a9
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 SeaMonkey/2.25
-
- Posts: 18
- Joined: Fri Jan 02, 2015 12:10 am
Re: [BUG] FlashGot & JDownloader 2 (Beta) in Mac OSX
Cool that was the issue. Just tested and it is working fine.
Many thanks
The underscore/no underscore part is because I've made a test on the Terminal, if the folder name is without underscore and I execute the command with such a path I receive back an error, if instead I fix the folder name by adding the underscore and I execute the Terminal command with such a fixed path (folder name with underscore) everything is fine and JDownload starts.
To answer your specific questions:
Does the actual path to JDownloader has an underscore or not?
Earlier no, there wasn't an underscore but I've added it after I've discovered the issue by making the tests in the Terminal (so I've modified the folder name and the path wherever I was using it).
If it does, why are you setting the preference to a path that doesn't have an underscore?
I've changed that contextually with the change of the folder name: folder name with underscore => FG path with underscore
And if it doesn't, why are you using a path with an underscore in Terminal? And how does it even work - does your /usr/bin/java (or shell/Terminal) replace underscores with spaces or what?
Nope, /usr/bin/java (or shell/Terminal) doesn't change anything, I'm the one that made the changes.
Many thanks

The underscore/no underscore part is because I've made a test on the Terminal, if the folder name is without underscore and I execute the command with such a path I receive back an error, if instead I fix the folder name by adding the underscore and I execute the Terminal command with such a fixed path (folder name with underscore) everything is fine and JDownload starts.
To answer your specific questions:
Does the actual path to JDownloader has an underscore or not?
Earlier no, there wasn't an underscore but I've added it after I've discovered the issue by making the tests in the Terminal (so I've modified the folder name and the path wherever I was using it).
If it does, why are you setting the preference to a path that doesn't have an underscore?
I've changed that contextually with the change of the folder name: folder name with underscore => FG path with underscore
And if it doesn't, why are you using a path with an underscore in Terminal? And how does it even work - does your /usr/bin/java (or shell/Terminal) replace underscores with spaces or what?
Nope, /usr/bin/java (or shell/Terminal) doesn't change anything, I'm the one that made the changes.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:35.0) Gecko/20100101 Firefox/35.0
Re: [BUG] FlashGot & JDownloader 2 (Beta) in Mac OSX
Ah, spaces, I see. You can enslose a string with spaces in double quotes if you want it to be interpreted as a single argument. For example:
Code: Select all
/usr/bin/java -jar "/Applications/JDownloader 2.0/JDownloader.jar"
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 SeaMonkey/2.25
-
- Posts: 18
- Joined: Fri Jan 02, 2015 12:10 am
Re: [BUG] FlashGot & JDownloader 2 (Beta) in Mac OSX
Yes, sure. Sorry for the misunderstanding, I haven't been that clear. I know that "normally" I need to use the quotas "..." in case the path/string has a space. I was just trying to replicate FG behavior manually in the Terminal and then trying to accommodate its needs by changing the folder name 
One last thing. It's not urgent but could you please increase the timer for JD to answer back to FG? Sometimes it happens that I receive back from FG the error mentioned earlier ("JDownloader not responding on http://127.0.0.1:9666/flashgot! Please check your firewall settings.") even though JD starts.
Thanks again

One last thing. It's not urgent but could you please increase the timer for JD to answer back to FG? Sometimes it happens that I receive back from FG the error mentioned earlier ("JDownloader not responding on http://127.0.0.1:9666/flashgot! Please check your firewall settings.") even though JD starts.
Thanks again
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:35.0) Gecko/20100101 Firefox/35.0
Re: [BUG] FlashGot & JDownloader 2 (Beta) in Mac OSX
FlashGot tries to contact JD 6 times (the number is hardcoded), and there's a preference called flashgot.dmsopts.JDownloader.delay that sets the interval (in seconds) between retries. It's 8 by default, so JD has 40 seconds to become ready before FlashGot gives up and shows you the error message.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 SeaMonkey/2.25
-
- Posts: 18
- Joined: Fri Jan 02, 2015 12:10 am
Re: [BUG] FlashGot & JDownloader 2 (Beta) in Mac OSX
Ok. Thanks again.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:35.0) Gecko/20100101 Firefox/35.0
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: [BUG] FlashGot & JDownloader 2 (Beta) in Mac OSX
Changes merged in 1.5.6.9, thanks user.
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0