Code Monkey home page Code Monkey logo

Comments (11)

RedSquirrel87 avatar RedSquirrel87 commented on July 17, 2024

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


Actually it is not an unexpected behavior, the updater should check if there are new versions available and then close itself and launch the main program. So it's not strange that it closes, the anomaly lies in the fact that it can not launch the program after closing. Please check if there is the "main.jar" file in the same folder and if so please try to type in a terminal (or cmd if you're on Windows) the command

#!java

java -jar path/to/main.jar

to see what error it returns (at the place of /path/to/ you need to insert the path where is the main.jar file of course)

from manga-downloader.

RedSquirrel87 avatar RedSquirrel87 commented on July 17, 2024

Original comment by Riccardo Bernori (Bitbucket: [riccardo bernori](https://bitbucket.org/riccardo bernori), ).


Hi Red Squirrel, i tried run trough the command prompt, but there is no message on the console. the program start, check for update, a popup saying that cannot verify the latest update, then closes without logging anything.
screenshot.jpg

screenshot2.jpg

there is any parameter to launch the program forcing it to log something?

from manga-downloader.

RedSquirrel87 avatar RedSquirrel87 commented on July 17, 2024

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


It seems that the updater can not write the main.jar in that folder, because there is no main.jar file listed in the screenshot. So move the files to another folder (for example the desktop) or just rename manually latest.jar file in main.jar

from manga-downloader.

RedSquirrel87 avatar RedSquirrel87 commented on July 17, 2024

Original comment by Riccardo Bernori (Bitbucket: [riccardo bernori](https://bitbucket.org/riccardo bernori), ).


renaming to main.jar permit the program to start normally (asking to use the local version without checking online version). it logs this message.screenshot3.jpg

from manga-downloader.

RedSquirrel87 avatar RedSquirrel87 commented on July 17, 2024

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


Da nome e screenshot del PC sembra tu sia Italiano, o quantomeno avendo il PC sulla lingua Italiana immagino tu la capisca xD Quindi meglio scrivere in Italiano così riusciamo a comprenderci meglio ;) In pratica quello che stavo dicendoti sopra è che sembra che il programma non riesca a scaricare l'eseguibile aggiornato, probabilmente perché non ha i permessi di scrittura nella cartella dove lo hai inserito (che dagli screenshot sempra essere "F:\programmi"). Infatti quello che scarichi dal sito è solo un updater che a sua volta, una volta avviato, andrà a scaricare l'eseguibile principale che è il programma vero e proprio (il main.jar per intenderci). Prova dunque a spostare MangaDownloader.jar/exe sul Desktop o in Documenti, e riavvialo da lì dentro. A quel punto sapremo se il problema è dovuto ai permessi di scrittura (perché il main.jar viene scaricato nella stessa cartella dove è l'updater) o magari il tuo PC ha un firewall/antivirus che blocca il collegamento al sito internet per la ricerca di aggiornamenti ed è quello a impossibilitare il controllo.

Fammi sapere ;)

from manga-downloader.

RedSquirrel87 avatar RedSquirrel87 commented on July 17, 2024

Original comment by Riccardo Bernori (Bitbucket: [riccardo bernori](https://bitbucket.org/riccardo bernori), ).


Ciao, si, sono italiano.
sulla cartella dovrei avere totale controllo (è un mio harddisk esterno) ed ho permessi di lettura/scrittura. tramite browser riesco a raggiungere sia il sito dei fumetti che devo scaricare sia il sito da cui ho scaricato lo zip di Manga Downloader. il primo jar (latest.jar) lo avevo scaricato a mano nella cartella per provare a farlo funzionare (poi rimonimato in .bak). in realtà il programma non scarica nemmeno quello da web (3° screenshot). Ho provato a metterlo in una cartella sul desktop e, come le altre volte, non riesce a scaricare i jar. Nella finestra dos non appare nessun messaggio.

from manga-downloader.

RedSquirrel87 avatar RedSquirrel87 commented on July 17, 2024

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


Allora, prova a sostituire la versione dell'updater che hai con questa: https://www.dropbox.com/s/vmdo5h336b6kw1d/MangaDownloader.jar?dl=0
è una versione con verbosità a livello superiore e con avviso in caso di impossibilità alla scrittura, questa scrive a terminale un log più ampio e così riusciamo a capire di preciso dove si intoppa e magari a risolvere ;)
Ad esempio mettendo l'updater in C:\Programmi ottengo questo errore (visto che non ha accesso in scrittura il programma): g9eBusI.png
In caso ti dia messaggio simile allora è lì il problema, altrimenti incollami il messaggio d'errore che vediamo come risolvere.

P.s.: ma non è che sei su una rete limitata? Tipo so che certi reti aziendali o universitarie bloccano di default l'accesso a siti Altervista (e visto che lo script per il controllo dell'ultima versione disponibile risiede sul mio sito web che è appunto su dominio altervista potrebbe essere quello il problema)

from manga-downloader.

RedSquirrel87 avatar RedSquirrel87 commented on July 17, 2024

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


Che poi mi sono accorto solo ora che a te dice che è impossibile proprio collegarsi al sito per verificare l'aggiornamento, non "errore durante il download" come a me. Dunque è più plausibile sia un problema di rete proprio, magari dovuto a limitazioni dette sopra per il dominio Altervista. Oltre a quanto ipotizzato sopra (se sei su rete limitata, tipo aziendali o universitarie) mica usi qualcosa di speciale nella tua configurazione (tipo proxy, VPN o cose così) per caso?

from manga-downloader.

RedSquirrel87 avatar RedSquirrel87 commented on July 17, 2024

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


Ottimo, almeno ora siamo sicuri che è un problema per l'appunto di connessione al sito e non di permessi di scrittura xD
Da quel che dice il log d'errore il problema è che non si riesce a connettere prima di raggiungere il timeout e dunque la connessione viene troncata. Se è un problema solo di lentezza, prova con questa versione (ho alzato il timeout a 60 secondi addirittura): https://www.dropbox.com/s/2sacum9slryzavj/MangaDownloader.jar?dl=0

from manga-downloader.

RedSquirrel87 avatar RedSquirrel87 commented on July 17, 2024

Original comment by Red Squirrel (Bitbucket: Red_Squirrel, GitHub: RedSquirrel87).


Ciao, non hai più provato con la nuova versione proposta? O non è cambiato nulla?

from manga-downloader.

RedSquirrel87 avatar RedSquirrel87 commented on July 17, 2024

Original comment by Riccardo Bernori (Bitbucket: [riccardo bernori](https://bitbucket.org/riccardo bernori), ).


scusa il ritardo, sono stato un po' preso.
ho provato il nuovo jar. lanciato col comando java, fa partire il programma senza fermarsi al controllo degli update. da un messaggio di Warning appena avviato:

apr 05, 2018 7:48:06 AM java.util.prefs.WindowsPreferences
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

ma dopo il programma sembra andare fino alla finestra di inserimento dell'url del manga da scaricare. inserito un manga, e fatto partire il download va in errore:

java.net.SocketTimeoutException: connect timed out
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.http.HttpClient.(HttpClient.java:242)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:357)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984)
at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:425)
at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:410)
at org.jsoup.helper.HttpConnection.execute(HttpConnection.java:164)
at org.jsoup.helper.HttpConnection.get(HttpConnection.java:153)
at mainpackage.NewJFrame.GetChaptersList_MangaEden(NewJFrame.java:2023)
at mainpackage.NewJFrame.access$7500(NewJFrame.java:90)
at mainpackage.NewJFrame$52.run(NewJFrame.java:3214)
at java.lang.Thread.run(Thread.java:748)

ho provato anche a impostare la variabile d'ambiente http_proxy con l'indirizzo del proxy ma non sembra cambiare l'esito, da sempre lo stesso errore.

from manga-downloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.