2
回答
heritrix趴下网站产品页面后建立数据库索引遇到的麻烦
华为云数据库免费试用   

        根据《开发自己的搜索引擎》这本书,在做到运行ProductTextFileProcessor建立数据库索引这里控制台报错如下

F:\product\mobile\Palm-Treo-700p-1274165637841.txt
Exception in thread "main" java.lang.ClassFormatError: Truncated class file

at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at oracle.jdbc.driver.T4CDriverExtension.allocateStatement(T4CDriverExtension.java:50)
    at oracle.jdbc.driver.PhysicalConnection.createStatement(PhysicalConnection.java:729)
    at oracle.jdbc.driver.PhysicalConnection.createStatement(PhysicalConnection.java:697)
    at com.backSearch.database.ProductJDBC.getNextId(ProductJDBC.java:66)
    at com.backSearch.database.ProductJDBC.addProduct(ProductJDBC.java:28)
    at com.backSearch.core.ProductTextFileProcessor.insert2DB(ProductTextFileProcessor.java:135)
    at com.backSearch.core.ProductTextFileProcessor.traverse(ProductTextFileProcessor.java:124)
    at com.backSearch.core.ProductTextFileProcessor.process(ProductTextFileProcessor.java:67)
    at com.backSearch.core.ProductTextFileProcessor.main(ProductTextFileProcessor.java:177)

急求帮助,谢谢各位了,我QQ174271678 邮箱chenhao_xiong@163.com

 

举报
陈浩雄
发帖于8年前 2回/1K+阅
顶部