编写es自定义分词的时候,分词报这个错误
java.lang.ExceptionInInitializerError: null
at com.hankcs.hanlp.seg.common.Vertex.(Vertex.java:56) ~[?:?]
at com.hankcs.hanlp.seg.common.WordNet.(WordNet.java:71) ~[?:?]
at com.hankcs.hanlp.seg.Viterbi.ViterbiSegment.segSentence(ViterbiSegment.java:40) ~[?:?]
at com.hankcs.hanlp.seg.Segment.seg(Segment.java:422) ~[?:?]
at org.wltea.analyzer.core.HanlpSegmenter.analyze(HanlpSegmenter.java:61) ~[?:?]
at org.wltea.analyzer.core.Segmenter.next(Segmenter.java:115) ~[?:?]
at org.wltea.analyzer.lucene.HanlpTokenizer.incrementToken(HanlpTokenizer.java:86) ~[?:?]
at org.elasticsearch.action.admin.indices.analyze.TransportAnalyzeAction.simpleAnalyze(TransportAnalyzeAction.java:222) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.action.admin.indices.analyze.TransportAnalyzeAction.analyze(TransportAnalyzeAction.java:200) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.action.admin.indices.analyze.TransportAnalyzeAction.shardOperation(TransportAnalyzeAction.java:148) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.action.admin.indices.analyze.TransportAnalyzeAction.shardOperation(TransportAnalyzeAction.java:75) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$ShardTransportHandler.messageReceived(TransportSingleShardAction.java:294) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$ShardTransportHandler.messageReceived(TransportSingleShardAction.java:287) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.transport.TransportRequestHandler.messageReceived(TransportRequestHandler.java:33) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-5.1.1.jar:5.1.1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_112]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_112]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
Caused by: java.lang.SecurityException: java.lang.System#exit(-1) calls are not allowed
at org.elasticsearch.SecureSM$2.run(SecureSM.java:243) ~[securesm-1.1.jar:5.1.1]
at org.elasticsearch.SecureSM$2.run(SecureSM.java:208) ~[securesm-1.1.jar:5.1.1]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_112]
at org.elasticsearch.SecureSM.innerCheckExit(SecureSM.java:208) ~[securesm-1.1.jar:5.1.1]
at org.elasticsearch.SecureSM.checkExit(SecureSM.java:201) ~[securesm-1.1.jar:5.1.1]
at java.lang.Runtime.exit(Runtime.java:107) ~[?:1.8.0_112]
at java.lang.System.exit(System.java:971) ~[?:1.8.0_112]
at com.hankcs.hanlp.dictionary.CoreDictionary.(CoreDictionary.java:43) ~[?:?]
... 21 more
有大神遇到过么?