JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 12.04.2015, 10:11
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 7,972
Default java.lang.IllegalArgumentException

Why run one program
"C:\Program Files\Java\jre1.8.0_40\bin\javaw.exe" -Xmx4000M -jar V:\JDownloader2\JDownloader.jar

(2 processes) and show an error. Should may start only once. It rarely happens but should never is run two windows.

12.04.15 10.10.47to12.04.15 10.11.02 jdlog://1436414718241/


Last edited by djmakinera; 12.04.2015 at 22:38.
Reply With Quote
  #2  
Old 12.04.2015, 15:22
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 61,155
Default

the Second screenshot does not work. What exactly is the problem? What error message? Maybe new screenshot?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 12.04.2015, 15:49
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 7,972
Default

This error is very rare, but sometimes occur.
a. Restart JD2
b. The application does not correct start again(Runs in the background but the window does not appear)
c. When it does not start click on it again and I'm trying to initiate JDownloader.jar start the application and then open the double application
I had this error many times - I wrote in the forum, but I see that sometimes occurs again.
folder "TEMP/tmp *.tmp" is contains unspecified errors?

It can run multi-process (double, triple, quadruple, infinitely...) - if an error occurs

12.04.15 10.10.47to12.04.15 10.11.02 jdlog://1436414718241/
Code:
ShutdownController: start item->ShutdownEvent: Delete V:\Jdownloader2\tmp\exitcheck
http://jdownloader.org/pastebin/133549

Last edited by djmakinera; 12.04.2015 at 16:21.
Reply With Quote
  #4  
Old 13.04.2015, 10:00
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 61,155
Default

Do you use any cleanup util? To delete any Files in JDownloader folder. Looks like the instance FILE does not exist and JDownloader is unable to check fo running instance.

b.) create a thread dump for this case, like you did before
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 13.04.2015, 16:08
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 7,972
Default

Nothing removed/clean from the folder.
This error sometimes occurs when updating extensions.
Reply With Quote
  #6  
Old 13.04.2015, 16:46
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 61,155
Default

The logfile is error free. When JDownloader closes it starts a new process to install the updates. maybe it takes longer on your computer?
I cannot reproduce the issue as JDownloader prevents itself from running when already open. Maybe your firewall/av blocks this check?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 13.04.2015, 18:11
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 7,972
Default

You can not reproduce this error because it happens rarely.

Code:
Only 1 instance of javaw.exe(JDownloader2) is active?
Reply With Quote
  #8  
Old 13.04.2015, 18:43
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 61,155
Default

there can be 2 or more active
but only one jdownloader
__________________
JD-Dev & Server-Admin
Reply With Quote
  #9  
Old 13.04.2015, 19:23
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 7,972
Default

Run JDownloader.jar - Working

Restart JD2 - Not working

My test:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #10  
Old 13.04.2015, 19:35
editestowy's Avatar
editestowy editestowy is offline
Polish Supporter
 
Join Date: May 2009
Location: PL
Posts: 3,028
Default

DJ probably deletes jd2.port by himself or sth is deleting it while the first instance is still running, then it is possible to start the second JD2's instance and so there are his problems:
Attached Thumbnails
jd2x2.jpg  
Reply With Quote
  #11  
Old 13.04.2015, 19:43
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 7,972
Default

editestowy -
To nie ma nic współnego z jd2.port tylko niektórymi aktualizacjami!!!!
Ty jak zwykle zakręcasz kota worem...

java.lang.llegalArgumentException:File already exsists V:\Jdownloader2\update\versioninfo\JD\extensions.installed.json.tmp
java.lang.llegalArgumentException:File already exsists V:\Jdownloader2\tmp\exitcheck

Last edited by djmakinera; 13.04.2015 at 19:53.
Reply With Quote
  #12  
Old 13.04.2015, 19:54
editestowy's Avatar
editestowy editestowy is offline
Polish Supporter
 
Join Date: May 2009
Location: PL
Posts: 3,028
Default

Jak zwykle nie rozumiesz co robisz i masz kłopoty ze zrozumieniem tego co się do ciebie pisze.
Co możesz udowodnić? W pierwszym poście sygnalizowałeś błąd, bo 2 instancje próbowały operować na tym samym pliku! Więc twoje pseudo "dowody" zaprzeczają twoim własnym zgłoszeniom!
Reply With Quote
  #13  
Old 13.04.2015, 20:04
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 7,972
Default

del

Last edited by djmakinera; 13.04.2015 at 22:21.
Reply With Quote
  #14  
Old 13.04.2015, 20:25
editestowy's Avatar
editestowy editestowy is offline
Polish Supporter
 
Join Date: May 2009
Location: PL
Posts: 3,028
Default

Read again what I wrote: "or sth is deleting it while the first instance is still running"
sth = abbreviation for "something"

And if this file (jd2.port) is not present then it is possible to start the 2nd instance (while the first is still running - this is BTW another problem why it doesn't finish correctly) - so this is exactly the reason for your problems.

---
And stop writing in Polish here - this is English forum!
Reply With Quote
  #15  
Old 13.04.2015, 20:30
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 7,972
Default

@Jiaz


13.04.15 22.54.47to13.04.15 22.56.24 jdlog://1441514718241/
13.04.15 22.54.47to13.04.15 22.56.24 jdlog://6441514718241/


------------------------Thread: 1:GlobalIOErrors.log-----------------------
--ID:1TS:1428958490852-13.04.15 22:54:50 - [org.jdownloader.startup.Main$1(onWriteException)] -> An error occured while writing 17 bytes to Y:\JDownloader2\tmp\exitcheck
--ID:1TS:1428958490852-13.04.15 22:54:50 - [] -> java.lang.IllegalArgumentException: File already exists: Y:\JDownloader2\tmp\exitcheck
at org.appwork.utils.IO.writeToFile(IO.java:565)
at org.appwork.utils.IO.writeToFile(IO.java:559)
at jd.SecondLevelLaunch.exitCheck(SecondLevelLaunch.java:590)
at jd.SecondLevelLaunch.start(SecondLevelLaunch.java:617)
at jd.SecondLevelLaunch.mainStart(SecondLevelLaunch.java:396)
at org.jdownloader.startup.Main.main(Main.java:371)
at org.jdownloader.update.launcher.SecondLevelLauncher.launchJDownloader(SecondLevelLauncher.java:741)
at org.jdownloader.update.launcher.SecondLevelLauncher.init(SecondLevelLauncher.java:560)
at org.jdownloader.update.launcher.SecondLevelLauncher.runMain(SecondLevelLauncher.java:332)
at org.jdownloader.update.launcher.JDLauncher.main(JDLauncher.java:10)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)

------------------------Thread: 85:GlobalIOErrors.log-----------------------
--ID:85TS:1428958526836-13.04.15 22:55:26 - [org.jdownloader.startup.Main$1(onWriteException)] -> An error occured while writing 1755 bytes to Y:\JDownloader2\tmp\extensioncache\extensionInfos.json.tmp
--ID:85TS:1428958527111-13.04.15 22:55:27 - [] -> java.lang.IllegalArgumentException: File already exists: Y:\JDownloader2\tmp\extensioncache\extensionInfos.json.tmp
at org.appwork.utils.IO.writeToFile(IO.java:565)
at org.appwork.utils.IO.writeToFile(IO.java:559)
at org.appwork.storage.JSonStorage.saveTo(JSonStorage.java:409)
at org.appwork.storage.JSonStorage.saveTo(JSonStorage.java:432)
at org.jdownloader.extensions.ExtensionController.load(ExtensionController.java:258)
at org.jdownloader.extensions.ExtensionController.init(ExtensionController.java:138)
at jd.SecondLevelLaunch$10$1$2.run(SecondLevelLaunch.java:836)

------------------------Thread: 83:GlobalIOErrors.log-----------------------
--ID:83TS:1428958553246-13.04.15 22:55:53 - [org.jdownloader.startup.Main$1(onWriteException)] -> An error occured while writing 650 bytes to Y:\JDownloader2\cfg\org.jdownloader.updatev2.UpdateSettings.json.tmp
--ID:83TS:1428958553246-13.04.15 22:55:53 - [] -> java.lang.IllegalArgumentException: File already exists: Y:\JDownloader2\cfg\org.jdownloader.updatev2.UpdateSettings.json.tmp
at org.appwork.utils.IO.writeToFile(IO.java:565)
at org.appwork.utils.IO.writeToFile(IO.java:559)
at org.appwork.storage.JSonStorage.saveTo(JSonStorage.java:409)
at org.appwork.storage.JsonKeyValueStorage.save(JsonKeyValueStorage.java:332)
at org.appwork.storage.config.handler.StorageHandler.saveAll(StorageHandler.java:152)
at org.appwork.storage.config.handler.StorageHandler$1.delayedrun(StorageHandler.java:67)
at org.appwork.scheduler.DelayedRunnable$2.runNow(DelayedRunnable.java:171)
at org.appwork.scheduler.DelayedRunnable$2.run(DelayedRunnable.java:151)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Last edited by djmakinera; 13.04.2015 at 23:06.
Reply With Quote
  #16  
Old 14.04.2015, 09:19
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 61,155
Default

looks like
1.) either disk full
2.) something messes with your installation (deletes important files)
3.) you start jdownloader multiple times (eg force a new instance).
I think teamviewer is easiest and fastest way to solve this
__________________
JD-Dev & Server-Admin
Reply With Quote
  #17  
Old 14.04.2015, 11:17
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 7,972
Default

Now it works fine{today}
Reply With Quote
  #18  
Old 14.04.2015, 11:37
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 61,155
Default

We did not change a single thing
__________________
JD-Dev & Server-Admin
Reply With Quote
  #19  
Old 14.04.2015, 12:35
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 7,972
Default

Jiaz - editestowy:
Quote:
And if this file (jd2.port) is not present then it is possible to start the 2nd instance (while the first is still running - this is BTW another problem why it doesn't finish correctly) - so this is exactly the reason for your problems.
This is probably associated with the file port, if the program for a long time is closed(process still background) (eg. Under heavy load - handle, high-use RAM) and I want to restart JD2 or during restart (when it is "more" updated)
Reply With Quote
  #20  
Old 14.04.2015, 13:09
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 61,155
Default

Provide threaddumps for those cases where jd is in background but not working or its gui is frozen.

Btw, also any freedback about my optimizations from yesterday?
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 00:22.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.