当前位置: 代码迷 >> Java Web开发 >> java报Exception in thread "http-bio-8090-AsyncTimeout" ,求解决的方法,具体的异常在下面
  详细解决方案

java报Exception in thread "http-bio-8090-AsyncTimeout" ,求解决的方法,具体的异常在下面

热度:211   发布时间:2016-04-16 21:55:47.0
java报Exception in thread "http-bio-8090-AsyncTimeout" ,求解决的方法,具体的错误在下面
Exception in thread "http-bio-8090-AsyncTimeout" Exception in thread "JS executo
r for com.gargoylesoftware.htmlunit.WebClient@becf73" Exception in thread "Threa
d-13" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
        at java.util.HashMap.newKeyIterator(HashMap.java:840)
        at java.util.HashMap$KeySet.iterator(HashMap.java:874)
        at java.util.HashSet.iterator(HashSet.java:153)
        at sun.nio.ch.SelectorImpl.processDeregisterQueue(SelectorImpl.java:127)

        at sun.nio.ch.WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java:149)

        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
        at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute
(AbstractMultiworkerIOReactor.java:305)
        at org.apache.http.impl.nio.client.BasicAsyncHttpClient.doExecute(BasicA
syncHttpClient.java:142)
        at org.apache.http.impl.nio.client.BasicAsyncHttpClient.access$0(BasicAs
yncHttpClient.java:133)
        at org.apache.http.impl.nio.client.BasicAsyncHttpClient$1.run(BasicAsync
HttpClient.java:157)
java.lang.OutOfMemoryError: Java heap space
java.lang.NullPointerException: -----------fetcher----crawlBoardHtml(): html is
null!------------URL:http://s.weibo.com/weibo/%E6%B5%99%E6%B1%9F%E6%A3%80%E5%AF%
9F%E9%99%A2&xsort=time
        at com.weibo.engine.logic.component.loader.AbstractWeiboLoader.crawlItem
Html(AbstractWeiboLoader.java:86)
        at com.weibo.engine.logic.component.loader.executor.Loader.callOuterTask
(Loader.java:156)
        at com.weibo.engine.logic.component.loader.executor.Loader.call(Loader.j
ava:85)
        at com.weibo.engine.logic.component.loader.executor.Loader.call(Loader.j
ava:1)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
        at java.lang.Thread.run(Thread.java:619)
callOuterTask() Loader priority = 32 done! URL ---- http://s.weibo.com/weibo/%E6
%B5%99%E6%B1%9F%E6%A3%80%E5%AF%9F%E9%99%A2&xsort=time
2014-09-17 19:24:28新浪微博采集链接:http://s.weibo.com/weibo/%E6%B5%99%E6%B1%9F
%E6%A3%80%E5%AF%9F%E9%99%A2&xsort=time
html:null
Exception in thread "Thread-29" java.lang.NullPointerException
        at java.util.regex.Matcher.getTextLength(Matcher.java:1140)
        at java.util.regex.Matcher.reset(Matcher.java:291)
        at java.util.regex.Matcher.<init>(Matcher.java:211)
        at java.util.regex.Pattern.matcher(Pattern.java:888)
        at com.engine.utils.RegexUtil.getMatchGroupRegex(RegexUtil.java:125)
        at com.weibo.engine.logic.component.parser.SinaWeiboLoginSearch.extractS
inaweiboExpose(SinaWeiboLoginSearch.java:151)
        at com.weibo.engine.logic.component.parser.SinaWeiboLoginSearch.search(S
inaWeiboLoginSearch.java:63)
        at com.instantSearch.service.SingleKeywordSearch$1SinaSearchThread.run(S
ingleKeywordSearch.java:259)
------解决思路----------------------
Exception in thread "Thread-29" java.lang.NullPointerException
at com.instantSearch.service.SingleKeywordSearch$1SinaSearchThread.run(S
ingleKeywordSearch.java:259)
这个线程是空的
  相关解决方案