使用 man ascii 来查看 ASCII 表。

java使用elasticsearch时,resin启动报错:failed scanning class../Netty4MessageChannelHandler.class

Elasticsearch | 作者 张涛 | 发布于2019年10月24日 | 阅读数:140

项目中使用的是7.4版本;项目启动后报错三个:
1、Caused by: java.lang.NoClassDefFoundError: org/elasticsearch/transport/Netty4Plugin
                        at org.elasticsearch.transport.client.PreBuiltTransportClient.<clinit>(PreBuiltTransportClient.java:89)
                        at com._21cn.research.elasticsearch.utils.ElasticSearchHelper.<clinit>(ElasticSearchHelper.java:69)
                       Caused by: java.lang.ClassNotFoundException: org.elasticsearch.transport.Netty4Plugin (in EnvironmentClassLoader[web-app:production/webapp/default/ROOT])
                        at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1527)
                        at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1497)
                        ... 32 more
这个包我有导入,类也存在,但仍然提示找不到类;
2、
[19-10-24 10:42:00.308] {resin-port-8899-22} failed scanning class org/elasticsearch/transport/netty4/Netty4MessageChannelHandler.class
                       java.lang.IllegalStateException: org/elasticsearch/transport/netty4/Netty4MessageChannelHandler.class: '18' is an unknown constant pool type.
                       java.lang.IllegalStateException: org/elasticsearch/transport/netty4/Netty4MessageChannelHandler.class: '18' is an unknown constant pool type.
                        at com.caucho.bytecode.ByteCodeClassScanner.error(ByteCodeClassScanner.java:562)
                        at com.caucho.bytecode.ByteCodeClassScanner.parseConstantPool(ByteCodeClassScanner.java:283)
                        at com.caucho.bytecode.ByteCodeClassScanner.scan(ByteCodeClassScanner.java:100)
                        at com.caucho.loader.enhancer.ScanManager.scanForJarClasses(ScanManager.java:207)
                        at com.caucho.loader.enhancer.ScanManager.scan(ScanManager.java:116)
                        at com.caucho.loader.enhancer.ScanManager.scan(ScanManager.java:77)
                        at com.caucho.loader.EnvironmentClassLoader.scan(EnvironmentClassLoader.java:903)
 
3、{resin-port-8899-22} failed scanning class org/elasticsearch/transport/netty4/ByteBufBytesReference.class
                       java.lang.IllegalStateException: org/elasticsearch/transport/netty4/ByteBufBytesReference.class: '18' is an unknown constant pool type.
                       java.lang.IllegalStateException: org/elasticsearch/transport/netty4/ByteBufBytesReference.class: '18' is an unknown constant pool type.
                        at com.caucho.bytecode.ByteCodeClassScanner.error(ByteCodeClassScanner.java:562)
                        at com.caucho.bytecode.ByteCodeClassScanner.parseConstantPool(ByteCodeClassScanner.java:283)
                        at com.caucho.bytecode.ByteCodeClassScanner.scan(ByteCodeClassScanner.java:100)
                        at com.caucho.loader.enhancer.ScanManager.scanForJarClasses(ScanManager.java:207)
                        at com.caucho.loader.enhancer.ScanManager.scan(ScanManager.java:116)
 
 
希望有大神指点一下
已邀请:

a1158139810

赞同来自:

a1158139810

赞同来自:

@1232312412dfsafas

要回复问题请先登录注册