GistLabs / mechanize

mechanize for java
http://gistlabs.com/software/mechanize-for-java/
Mozilla Public License 2.0
78 stars 21 forks source link

JSoup version needs updating #35

Closed wr0ngway closed 12 years ago

wr0ngway commented 12 years ago

I get a trace when running with jsoup 1.6.4 which goes away with 1.7.1 (from the code posted in #34)

java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:686) at org.jsoup.helper.DataUtil.parseByteData(DataUtil.java:98) at org.jsoup.helper.DataUtil.load(DataUtil.java:54) at org.jsoup.Jsoup.parse(Jsoup.java:118) at com.gistlabs.mechanize.html.HtmlPage.loadPage(HtmlPage.java:44) at com.gistlabs.mechanize.Page.(Page.java:60) at com.gistlabs.mechanize.html.HtmlPage.(HtmlPage.java:39) at com.gistlabs.mechanize.html.HtmlPageFactory.buildPage(HtmlPageFactory.java:28) at com.gistlabs.mechanize.MechanizeAgent.toPage(MechanizeAgent.java:151) at com.gistlabs.mechanize.MechanizeAgent.request(MechanizeAgent.java:90) at com.gistlabs.mechanize.RequestBuilder.post(RequestBuilder.java:122) at com.gistlabs.mechanize.form.Form.submit(Form.java:296) at com.gistlabs.mechanize.form.Form.submit(Form.java:276) at com.gistlabs.mechanize.integration.test.AmazonSignInIT.testSignIn(AmazonSignInIT.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

jheintz commented 12 years ago

This was a quick fix. I've pushed a new 0.10.0-SNAPSHOT, and released 0.9.2