xtuhcy / gecco-spring Goto Github PK
View Code? Open in Web Editor NEWgecco爬虫和spring结合使用
License: MIT License
gecco爬虫和spring结合使用
License: MIT License
SpringPipelineFactory缺少了@service注解
org.reflections.ReflectionsException: could not get type for name
at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:390) ~[reflections-0.9.11.jar:na]
at org.reflections.Reflections.expandSuperTypes(Reflections.java:381) [reflections-0.9.11.jar:na]
at org.reflections.Reflections.(Reflections.java:126) [reflections-0.9.11.jar:na]
at com.geccocrawler.gecco.spider.SpiderBeanFactory.(SpiderBeanFactory.java:72) [gecco-1.2.8.jar:1.2.8]
at com.geccocrawler.gecco.GeccoEngine.run(GeccoEngine.java:225) [gecco-1.2.8.jar:1.2.8]
Caused by: java.lang.ClassNotFoundException:
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_101]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_101]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[na:1.8.0_101]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_101]
at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:388) ~[reflections-0.9.11.jar:na]
... 4 common frames omitted
我debug进去后发现 store 中的nmap 有key 会出现空字符
Exception in thread "GeccoEngine" java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:669)
at java.util.zip.ZipFile.access$200(ZipFile.java:60)
at java.util.zip.ZipFile$ZipEntryIterator.hasNext(ZipFile.java:493)
at java.util.zip.ZipFile$ZipEntryIterator.hasMoreElements(ZipFile.java:488)
at java.util.jar.JarFile$JarEntryIterator.hasNext(JarFile.java:253)
at java.util.jar.JarFile$JarEntryIterator.hasMoreElements(JarFile.java:262)
at org.reflections.vfs.ZipDir$1$1.computeNext(ZipDir.java:30)
at org.reflections.vfs.ZipDir$1$1.computeNext(ZipDir.java:26)
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:145)
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:140)
at org.reflections.Reflections.scan(Reflections.java:243)
at org.reflections.Reflections.scan(Reflections.java:202)
at org.reflections.Reflections.(Reflections.java:123)
at com.geccocrawler.gecco.spider.SpiderBeanFactory.(SpiderBeanFactory.java:73)
at com.geccocrawler.gecco.GeccoEngine.run(GeccoEngine.java:225)
我现在是使用
geccoEngine.start(hash) .run();
来实现的,但是这样,每次都会创建一个实例。多谢解答,谢谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.