JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #241  
Old 30.03.2015, 20:07
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

Kannst du nen neues Logfile geben?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #242  
Old 30.03.2015, 20:24
Enqueue90 Enqueue90 is offline
JD Alpha
 
Join Date: Apr 2014
Location: Austria
Posts: 21
Default

Hi everybody.
After some months I'm back here and it's awesome to see that JD finally managed to include a headless mode out of the box. I'm curious if you have some special GhostAWT solution or did you just clean up your code to not depend on AWT components?

I just tried the latest installer and encountered some exceptions. JD runs fine until it comes to adding links and downloading.

Exception Log
Spoiler:

Code:
Try to register API namespace / = interface org.jdownloader.api.cnl2.Cnl2APIBasics
Try to register API namespace /flash = interface org.jdownloader.api.cnl2.Cnl2APIFlash
 set  PENDING
Mar 30, 2015 6:09:58 PM org.jdownloader.extensions.ExtensionController.loadJared ExtensionController.java:321
SEVERE: Utils>ExtractionExtension.log>SEVERE Exception occurred
java.lang.UnsatisfiedLinkError: no awt in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
        at java.lang.Runtime.loadLibrary0(Runtime.java:849)
        at java.lang.System.loadLibrary(System.java:1088)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.loadLibraries(Toolkit.java:1646)
        at java.awt.Toolkit.<clinit>(Toolkit.java:1668)
        at java.awt.Color.<clinit>(Color.java:275)
        at org.jdownloader.extensions.extraction.ExtractionListenerList.<init>(ExtractionListenerList.java:243)
        at org.jdownloader.extensions.extraction.ExtractionExtension.lazyInitOnceOnStart(ExtractionExtension.java:497)
        at org.jdownloader.extensions.extraction.ExtractionExtension.start(ExtractionExtension.java:380)
        at org.jdownloader.extensions.AbstractExtension.setEnabled(AbstractExtension.java:80)
        at org.jdownloader.extensions.AbstractExtension.init(AbstractExtension.java:322)
        at org.jdownloader.extensions.LazyExtension.create(LazyExtension.java:65)
        at org.jdownloader.extensions.ExtensionController.initModule(ExtensionController.java:480)
        at org.jdownloader.extensions.ExtensionController.loadJared(ExtensionController.java:316)
        at org.jdownloader.extensions.ExtensionController.load(ExtensionController.java:254)
        at org.jdownloader.extensions.ExtensionController.init(ExtensionController.java:122)
        at jd.SecondLevelLaunch$11$1$2.run(SecondLevelLaunch.java:860)
...
Handle a direct MyJDownloader connection:28
java.lang.NoClassDefFoundError: Could not initialize class org.appwork.utils.images.IconIO
        at org.appwork.resources.Theme.getIcon(Theme.java:163)
        at org.appwork.resources.Theme.getIcon(Theme.java:141)
        at org.jdownloader.images.AbstractIcon.update(AbstractIcon.java:49)
        at org.jdownloader.images.AbstractIcon.<init>(AbstractIcon.java:42)
        at org.jdownloader.api.content.v2.ContentAPIImplV2.getIcon(ContentAPIImplV2.java:160)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.appwork.remoteapi.InterfaceHandler.invoke(InterfaceHandler.java:280)
        at org.appwork.remoteapi.RemoteAPI._handleRemoteAPICall(RemoteAPI.java:273)
        at org.appwork.remoteapi.SessionRemoteAPI.onGetSessionRequest(SessionRemoteAPI.java:53)
        at org.appwork.utils.net.httpserver.session.HttpSessionController.onGetRequest(HttpSessionController.java:99)
        at org.appwork.utils.net.httpserver.HttpConnection.run(HttpConnection.java:384)
        at org.jdownloader.api.myjdownloader.MyJDownloaderDirectServer$3.run(MyJDownloaderDirectServer.java:311)
java.lang.NoClassDefFoundError: java.awt.Toolkit
        at sun.awt.AppContext$2.run(AppContext.java:271)
        at sun.awt.AppContext$2.run(AppContext.java:260)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.AppContext.initMainAppContext(AppContext.java:260)
        at sun.awt.AppContext.access$200(AppContext.java:133)
        at sun.awt.AppContext$3.run(AppContext.java:314)
        at sun.awt.AppContext$3.run(AppContext.java:298)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.AppContext.getAppContext(AppContext.java:297)
        at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:154)Handle a direct MyJDownloader connection:29

        at javax.imageio.ImageIO.<clinit>(ImageIO.java:65)
        at org.appwork.utils.images.IconIO.<clinit>(IconIO.java:122)
        at org.appwork.resources.Theme.getIcon(Theme.java:163)
        at org.appwork.resources.Theme.getIcon(Theme.java:141)
        at org.jdownloader.images.AbstractIcon.update(AbstractIcon.java:49)
        at org.jdownloader.images.AbstractIcon.<init>(AbstractIcon.java:42)
        at org.jdownloader.api.content.v2.ContentAPIImplV2.getIcon(ContentAPIImplV2.java:160)Handle a direct MyJDownloader connection:30

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.appwork.remoteapi.InterfaceHandler.invoke(InterfaceHandler.java:280)
        at org.appwork.remoteapi.RemoteAPI._handleRemoteAPICall(RemoteAPI.java:273)
        at org.appwork.remoteapi.SessionRemoteAPI.onGetSessionRequest(SessionRemoteAPI.java:53)
        at org.appwork.utils.net.httpserver.session.HttpSessionController.onGetRequest(HttpSessionController.java:99)
        at org.appwork.utils.net.httpserver.HttpConnection.run(HttpConnection.java:384)
        at org.jdownloader.api.myjdownloader.MyJDownloaderDirectServer$3.run(MyJDownloaderDirectServer.java:311)
java.lang.NoClassDefFoundError: Could not initialize class org.appwork.utils.images.IconIO
        at org.appwork.resources.Theme.getIcon(Theme.java:163)
        at org.appwork.resources.Theme.getIcon(Theme.java:141)
        at org.jdownloader.images.AbstractIcon.update(AbstractIcon.java:49)
        at org.jdownloader.images.AbstractIcon.<init>(AbstractIcon.java:42)
        at org.jdownloader.api.content.v2.ContentAPIImplV2.getIcon(ContentAPIImplV2.java:160)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.appwork.remoteapi.InterfaceHandler.invoke(InterfaceHandler.java:280)
        at org.appwork.remoteapi.RemoteAPI._handleRemoteAPICall(RemoteAPI.java:273)
        at org.appwork.remoteapi.SessionRemoteAPI.onGetSessionRequest(SessionRemoteAPI.java:53)
        at org.appwork.utils.net.httpserver.session.HttpSessionController.onGetRequest(HttpSessionController.java:99)
        at org.appwork.utils.net.httpserver.HttpConnection.run(HttpConnection.java:384)
        at org.jdownloader.api.myjdownloader.MyJDownloaderDirectServer$3.run(MyJDownloaderDirectServer.java:311)
... 
java.lang.NoClassDefFoundError: Could not initialize class org.appwork.utils.images.IconIO
        at org.appwork.resources.Theme.getIcon(Theme.java:163)
        at org.appwork.resources.Theme.getIcon(Theme.java:141)
        at jd.controlling.faviconcontroller.FavIcons.getFavIcon(FavIcons.java:145)
        at org.jdownloader.DomainInfo.getFavIcon(DomainInfo.java:52)
        at org.jdownloader.api.content.ContentAPIImpl.favicon(ContentAPIImpl.java:26)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.appwork.remoteapi.InterfaceHandler.invoke(InterfaceHandler.java:280)
        at org.appwork.remoteapi.RemoteAPI._handleRemoteAPICall(RemoteAPI.java:273)
        at org.appwork.remoteapi.SessionRemoteAPI.onGetSessionRequest(SessionRemoteAPI.java:53)
        at org.appwork.utils.net.httpserver.session.HttpSessionController.onGetRequest(HttpSessionController.java:99)
        at org.appwork.utils.net.httpserver.HttpConnection.run(HttpConnection.java:384)
        at org.jdownloader.api.myjdownloader.MyJDownloaderDirectServer$3.run(MyJDownloaderDirectServer.java:311)
...
java.lang.NoClassDefFoundError: Could not initialize class org.appwork.utils.images.IconIO
        at org.appwork.resources.Theme.getIcon(Theme.java:163)
        at org.appwork.resources.Theme.getIcon(Theme.java:141)
        at org.jdownloader.images.AbstractIcon.update(AbstractIcon.java:49)
        at org.jdownloader.images.AbstractIcon.<init>(AbstractIcon.java:42)
        at org.jdownloader.api.content.v2.ContentAPIImplV2.getIcon(ContentAPIImplV2.java:160)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.appwork.remoteapi.InterfaceHandler.invoke(InterfaceHandler.java:280)
        at org.appwork.remoteapi.RemoteAPI._handleRemoteAPICall(RemoteAPI.java:273)
        at org.appwork.remoteapi.SessionRemoteAPI.onGetSessionRequest(SessionRemoteAPI.java:53)
        at org.appwork.utils.net.httpserver.session.HttpSessionController.onGetRequest(HttpSessionController.java:99)
        at org.appwork.utils.net.httpserver.HttpConnection.run(HttpConnection.java:384)
        at org.jdownloader.api.myjdownloader.MyJDownloaderDirectServer$3.run(MyJDownloaderDirectServer.java:311)
java.lang.NoClassDefFoundError: Could not initialize class org.appwork.utils.images.IconIO
        at org.appwork.resources.Theme.getIcon(Theme.java:163)
        at org.appwork.resources.Theme.getIcon(Theme.java:141)
        at org.jdownloader.images.AbstractIcon.update(AbstractIcon.java:49)
        at org.jdownloader.images.AbstractIcon.<init>(AbstractIcon.java:42)
        at org.jdownloader.api.content.v2.ContentAPIImplV2.getIcon(ContentAPIImplV2.java:160)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.appwork.remoteapi.InterfaceHandler.invoke(InterfaceHandler.java:280)
        at org.appwork.remoteapi.RemoteAPI._handleRemoteAPICall(RemoteAPI.java:273)
        at org.appwork.remoteapi.SessionRemoteAPI.onGetSessionRequest(SessionRemoteAPI.java:53)
        at org.appwork.utils.net.httpserver.session.HttpSessionController.onGetRequest(HttpSessionController.java:99)
        at org.appwork.utils.net.httpserver.HttpConnection.run(HttpConnection.java:384)
        at org.jdownloader.api.myjdownloader.MyJDownloaderDirectServer$3.run(MyJDownloaderDirectServer.java:311)

The icon exception seems to be caused by the FavIcon handler and also on my.jdownloader the FavIcon of my premium account is broken.Also when adding new links using OneClick it crashes because of the FavIcon. I also bet the extracting will fail of the first exception where the ExtractionExtension failed to initialize.

This is the command I used for startup:
Code:
java -DsevenzipLibID=Linux-arm -Djava.awt.headless=true -jar JDownloader.jar -norestart
Looking forward to your response.

Last edited by Enqueue90; 30.03.2015 at 20:28.
Reply With Quote
  #243  
Old 30.03.2015, 20:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

What java version do you use? It seems its missing some java classes? eg awt.
We changed code to differ between gui/headless version and not call any gui/dialog stuff.

java.lang.NoClassDefFoundError: java.awt.Toolkit
What JVM do you use? Seems either buggy or reduced one.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #244  
Old 30.03.2015, 20:40
Enqueue90 Enqueue90 is offline
JD Alpha
 
Join Date: Apr 2014
Location: Austria
Posts: 21
Default

I am using the default Java Manager that comes for my Synology DiskStation DS213j via package manager:
Code:
DiskStation> java -version
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) Client VM (build 24.55-b03, mixed mode)
If read the exception log carefully you'll see that he the real cause is some awt.Toolkit initialization. This fails for the Synology because this Java-Version is not shipped with any native-AWT lib. This was the initial cause why I created GhostAWT.

This UnsatisfiedLinkError later causes some NoClassDefFoundError since the static initializer fails to execute. All the Java2D stuff (like loading Icons in this case) is also based on AWT and fails if no proper native implementation is available (GDI for Windows, XServer for Linux ).

Last edited by Enqueue90; 30.03.2015 at 20:45.
Reply With Quote
  #245  
Old 30.03.2015, 21:02
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

You must differ between headless mode and headless jre. headless jre is stripped for all awt stuff while normal headless mode is allowed to use lightweight awt classes. lightweight awt does not need any os support (XServer,GDI). It works perfectly with with normal java under complete headless environment.
see http://www.oracle.com/technetwork/ar...ss-136834.html
Only heavy components needs os support.

Maybe try to install java for arm yourself?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #246  
Old 30.03.2015, 21:16
Enqueue90 Enqueue90 is offline
JD Alpha
 
Join Date: Apr 2014
Location: Austria
Posts: 21
Default

I'll check if there's a full JRE available for my DiskStation. For now I moved back to GhostAWT as it is working with my headless JRE.
Reply With Quote
  #247  
Old 30.03.2015, 21:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

can you check size of your jre? just to confirm if its really headless or just missing some classes?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #248  
Old 30.03.2015, 21:40
Spawny Spawny is offline
Super Loader
 
Join Date: Feb 2015
Posts: 25
Default

Quote:
Originally Posted by Jiaz View Post
Kannst du nen neues Logfile geben?
Bitte:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #249  
Old 30.03.2015, 22:05
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

Account seit dem nochmal entfernt, neu hinzugefügt? Kein Logfile zeigt nen Premium Download
__________________
JD-Dev & Server-Admin
Reply With Quote
  #250  
Old 30.03.2015, 22:13
Spawny Spawny is offline
Super Loader
 
Join Date: Feb 2015
Posts: 25
Default

ah, das hatte ich nicht nochmal versucht^^
Funktioniert, vielen Dank!
Reply With Quote
  #251  
Old 03.04.2015, 21:37
mensa mensa is offline
JD Beta
 
Join Date: Nov 2012
Posts: 50
Default

Do downloads start automatically after a reboot after your NAS?
I set the option "General - Auto Start Download Option" to "Always", but if I reboot the NAS I have to start the downloads manually.
Is that a bug or is it the wrong configuration parameter?
Reply With Quote
  #252  
Old 04.04.2015, 08:16
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

@mensa: does your JDownloader automatically start?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #253  
Old 05.04.2015, 17:36
Horst Kevin
Guest
 
Posts: n/a
Default

hi,
ich bin grad am testen wie der jd so remote läuft. genaueres kann ich aber erst später berichten.
was schon mal schwierigkeiten macht, ist der unpacker. in der web-ui sind die punkte ausgegraut und auto-extract geht aucht nicht. cpu ist ein armv5. irgendwelche ideen? hat vielleicht einer eine kompilierte 7zip lib für den v5?

Quote:
Synology-DS212j> uname -a
Linux Synology-DS212j 2.6.32.12 #5022 Wed Jan 7 14:19:44 CST 2015 armv5tel GNU/Linux synology_88f6281_212j
das hier klappt schon mal nicht:
Quote:
Originally Posted by Jiaz View Post
In case your NAS/Device has an ARM Processor and extraction does not work,
please update your jdownloader and try following parameters
-DsevenzipLibID=Linux-arm
or
-DsevenzipLibID=Linux-armpi
eg
java -DsevenzipLibID=Linux-armpi .... -jar JDownloader.jar
Reply With Quote
  #254  
Old 05.04.2015, 20:38
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

Die Library muss für die Architektur compiliert worden sein. Leider konnte ich das bis jetzt nur für RasperryPI/Odroid/Cubox machen. Ein Armv5 Kernel <=2.6.32 hab ich noch nicht selbst compilen können.

@All: Help with cross/native compiling for armv5 would be appreciated!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #255  
Old 05.04.2015, 20:50
Horst Kevin
Guest
 
Posts: n/a
Default

ok, ich schau später selbst mal und lade es hoch, falls ich es kompiliert bekomme.

was mir mehr sorgen bereitet ist, dass meine nas nicht mehr in den stand-by geht, solange jd läuft.

@all, has someone else problems with stand-by while jd is running (without active downloads of course)?
Reply With Quote
  #256  
Old 05.04.2015, 20:56
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

@Horst: sevenzipjbind.sourceforge.net diese library musst du compilen
StandBy: Evtl irgendeine Schwelle in der NAS wann der Rechner in Standby geht. /zb bestehende TCP verbindungen, festplattenzugriffe oder so. Prüf erstmal ab WANN die NAS in den standby geht (muss ja irgendwie festgelegt sein)
__________________
JD-Dev & Server-Admin
Reply With Quote
  #257  
Old 05.04.2015, 21:12
Horst Kevin
Guest
 
Posts: n/a
Default

ich werde es mal heute nacht testen und alle anderen "verbraucher" ausstecken, die drauf zugreifen (könnten). bin mir aber zimlich sicher, dass es der jd ist. die müsste normalerweise nach 15min in den stand-by, lief jetzt aber die letzten zwei tage komplett durch.

7zip:
ja sollte ich hinbekommen, bin entwickler
Reply With Quote
  #258  
Old 05.04.2015, 22:12
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

@Horst: kann gut der JD sein, aber von JD aus können wir da wenig machen. Müssen schon wissen woran deine NAS/Linux erkennt wann/ob es in Standby geht. Da muss es ja Regeln geben die einstellbar/einsehbar sind.
Mir fällt auf Anhieb nur die Verbindung zum MyJDownloader Server ein.

7z: wenn du bei der Library helfen kannst wäre das perfekt Hab es bisher nur direkt auf raspberrypi/odroid und cubox compiled. warum diese versionen (liegen dem jd bei) nicht auf deiner NAS gehen, keine ahnung. dazu fehlt mir derzeit die Zeit , aber für jede Hilfe bin ich sehr dankbar! und viele andere JDownloader Nutzer sicherlich auch
__________________
JD-Dev & Server-Admin
Reply With Quote
  #259  
Old 06.04.2015, 16:52
Horst Kevin
Guest
 
Posts: n/a
Default ARMv5 Zip JBinding

im anhang das binding für armv5

getested auf synology ds212j und sollte auch auf allen vorgängern und natürlich anderen v5 geräten lauffähig sein.

ich hab allerdings das problem, dass nur das automatische entpacken nach dem download funktioniert. bei vorhandenen downloads tut sich nichts. ich habe im kontext menü die entsprechende option und auch die meldung "Extraction started (hide)" nach dem klicken, allerdings passiert eben nichts. der jd spuckt auf der console auch keinerlei meldungen aus.

myjd wird hier dann wohl das problem sein
Reply With Quote
  #260  
Old 06.04.2015, 18:31
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

Wow COOL! wäre es möglich mir (evl per email) ein schritt für schritt (mit links was du so genutzt hast) geben könntest? an support@jdownloader.org
Dann kann ich neuere Versionen in Zukunft auch selbst compilen
Ich teste die Lib gleich morgen mal auf den Geräten im Office und wenn alles klappt leg ich sie mit ins offizielle package.
__________________
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 03:38.
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 - 2020, Jelsoft Enterprises Ltd.