lqzyc
lqzyc
在本地脚本运行模式下,protocol-s2jh插件的AbstractHtmlParseFilter类的getParseFilters方法在protocol-s2jh插件的HttpResponse类中被调用,protocol-s2jh这个插件加载了org.apache.nutch.parse.lq.AbstractHtmlParseFilter类,而parse-s2jh这个插件加载了org.apache.nutch.parse.s2jh.HuanqiuHtmlParseFilter,这使得在单机脚本模式下 instanceof判断一直为false 这个问题在ide环境下不会产生。
``` Stack: [0x00007f96199c6000,0x00007f9619ac7000], sp=0x00007f9619ac43d8, free space=1016k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libc.so.6+0x16a893] __memcmp_sse4_1+0x1603 C [librocksdbjni6838111898702664443.so+0x23286f] rocksdb::InternalKeyComparator::Compare(rocksdb::Slice const&, rocksdb::Slice const&) const+0x4f C [librocksdbjni6838111898702664443.so+0x29daff] rocksdb::MemTable::KeyComparator::operator()(char const*,...
``` java public void test_alphabetic_false() throws Exception { B b = new B(); b.setF0(101); b.setF1(102); JSON.DUMP_CLASS = "/Users/lq-pc/project/fastjson/AsmClassSerializer"; System.out.println(JSON.toJSONString(b)); } @JSONType(alphabetic = false,asm = false) public static class B {...
```java import com.alibaba.ttl.TransmittableThreadLocal; import com.alibaba.ttl.TtlRunnable; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; class Scratch { public static void main(String[] args) { TransmittableThreadLocal parent0 = new TransmittableThreadLocal(); TransmittableThreadLocal parent1 = new TransmittableThreadLocal(); parent0.set("parent0"); Runnable...
i d like to use stateMachine on micro service like this stateMachine.sendEvent(event); if (stateMachine.hasStateMachineError()) { throw stateMachine.getStateMachineError(); } else { return true; } Have any good Suggestions?
compile: [echo] Compiling plugin: parse-s2jh [javac] Compiling 7 source files to /home/lq/nutch-ajax/apache-nutch-2.3/build/parse-s2jh/classes [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6 [javac] /home/lq/nutch-ajax/apache-nutch-2.3/src/plugin/parse-s2jh/src/java/org/apache/nutch/parse/s2jh/AbstractHtmlParseFilter.java:38: error: package org.apache.nutch.protocol.htmlunit...