[英]Running Jaunt (web-scraper) on Google App Engine: Java
I'm trying to submit a form through App Engine and Jaunt . 我正在尝试通过App Engine和Jaunt提交表单。 I get this error: 我收到此错误:
java.lang.NullPointerException
at com.jaunt.UserAgent.a(SourceFile:2337)
at com.jaunt.UserAgent.send(SourceFile:887)
at com.jaunt.component.Form.submit(SourceFile:1263)
at ewohnat.server.parse.MyServlet.doJaunt(MyServlet.java:118)
when I try to run this code: 当我尝试运行此代码时:
UserAgent userAgent = new UserAgent();
userAgent.visit("www.someurl.com");
Form form = userAgent.doc.forms[0];
form.setCheckBox("cb", true);
form.submit();
The exception is thrown on the last line. 在最后一行抛出异常。 Any ideas? 有任何想法吗?
form.submit();
Doesn't work properly. 不能正常工作。 Use method with argument instead 使用带参数的方法代替
form.submit(String value);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.