padeoe / nju-lib-downloader

超星和书香中国的电子书PDF下载器(pdf downloader for sslibrary and chineseall)
Other
150 stars 41 forks source link

java.lang.NullPointerException #8

Closed NT5182 closed 4 years ago

NT5182 commented 4 years ago

PS D:> java -jar libpdf.jar -t 8 http://www.chineseall.cn/v3/book/detail/Hpayj java.lang.NullPointerException at cn.chineseall.CoreService.getCookie(CoreService.java:70) at cn.chineseall.CoreService.getSession(CoreService.java:25) at cn.chineseall.Downloader.viewBookPageWeb(Downloader.java:174) at cn.chineseall.Downloader.initBookPara(Downloader.java:126) at cn.chineseall.Downloader.downloadBook(Downloader.java:182) at Starter.run(Starter.java:40) at picocli.CommandLine.executeUserObject(CommandLine.java:1769) at picocli.CommandLine.access$900(CommandLine.java:145) at picocli.CommandLine$RunLast.handle(CommandLine.java:2141) at picocli.CommandLine$RunLast.handle(CommandLine.java:2108) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:1975) at picocli.CommandLine.execute(CommandLine.java:1904) at Starter.main(Starter.java:24)

NT5182 commented 4 years ago

您好,我在使用的过程中遇到这个问题,能不能麻烦解决一下,万分感谢!

padeoe commented 4 years ago

你好,这是因为你的ip可能被服务器墙了,导致cookie获取失败

padeoe commented 4 years ago

建议换用新ip后把线程数量设置为1,频繁下载会被服务器封禁。我写好了一个配置http代理的版本,近期更新一下代码

NT5182 commented 4 years ago

我知道了,谢谢!

------------------ 原始邮件 ------------------ 发件人: "padeoe"<notifications@github.com>; 发送时间: 2020年2月23日(星期天) 中午11:14 收件人: "padeoe/nju-lib-downloader"<nju-lib-downloader@noreply.github.com>; 抄送: "Alex"<1731877332@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [padeoe/nju-lib-downloader] java.lang.NullPointerException (#8)

建议换用新ip后把线程数量设置为1,频繁下载会被服务器封禁。我写好了一个配置http代理的版本,近期更新一下代码

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.