kriegaex / Galileo-Openbook-Cleaner

HTML cleaner for Galileo Computing's openbooks, implemented in Java
Other
64 stars 6 forks source link

Cannot download behind proxy #9

Closed deraendi closed 11 years ago

deraendi commented 11 years ago

I have this error with every book - ID...

Again an error with galileo-repositories?

   1         Extracting excel_2007/bilderklein/Thumbs.db
    1       Unzipping done
    1       Downloading http://cover.galileo-press.de/9783898428644.jpg ...
Exception in thread "main" java.lang.reflect.InvocationTargetException
        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 org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.NullPointerException
        at de.scrum_master.util.FileDownloader.download(FileDownloader.java:107)
        at de.scrum_master.galileo.Downloader.downloadCoverImage(Downloader.java:104)
        ...
kriegaex commented 11 years ago

I cannot reproduce the problem. Can you please tell me your platform, exact command line and Java version (output of java -version)?

deraendi commented 11 years ago

WIN XP 32bit

java -jar c:\openBook\galileo_openbook_cleaner-1.0.1.jar -d c:\openBook -l 2 apps_iphone

java version "1.7.0_09" Java(TM) SE Runtime Environment (build 1.7.0_09-b05) Java HotSpot(TM) Client VM (build 23.5-b02, mixed mode, sharing)

kriegaex commented 11 years ago

This exact command line works fine for me on the very same platform (WinXP 32bit, Java 7).

Does the download problem persist or was it temporary?

deraendi commented 11 years ago

hmmm, the problem is still reproducable!? Perhaps I should test this issue at home. Probably we have some obstructive proxy settings or some firewall issues here at my company!?

I'll post my efforts!

greets

kriegaex commented 11 years ago

So? Any results from home?

kriegaex commented 11 years ago

Maybe you need to set proxy name and port for Java? See https://github.com/kriegaex/Galileo-Openbook-Cleaner/issues/10#issuecomment-12883467

deraendi commented 11 years ago

Indeed! AT home everything works fine. I try it again with the suggested solution of #10 when Im back @work!

kriegaex commented 11 years ago

I have uploaded a new version supporting web proxies with or without authentication, see https://github.com/kriegaex/Galileo-Openbook-Cleaner/issues/10#issuecomment-12996792 for download and usage instructions.

kriegaex commented 11 years ago

No feedback, so I am assuming the issue is fixed. You can download the latest release v1.0.3 if you like.