- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个 Java Spring 应用程序 war 文件连接到 JBoss EAP 7.0 中的 JMS 队列。阿尔忒弥斯
一旦我发送消息日志就会显示以下消息:
java.lang.NoSuchMethodError:io.netty.util.internal.ObjectUtil.checkPositiveOrZero(ILjava/lang/String;)I
我的调查指出了 Maven 依赖关系。有些文章提到可能是 Netty 的重复 jar。我运行了 maven dependency:tree
来检查,在我看来,没有重复的 jars
[INFO] Scanning for projects...
[INFO]
[INFO] ------------< com.cts.t24.transaction.screening:middleware >------------
[INFO] Building middleware 0.0.1-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ middleware ---
[INFO] com.cts.t24.transaction.screening:middleware:war:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter-artemis:jar:2.1.9.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.1.9.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot:jar:2.1.9.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.1.9.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.1.9.RELEASE:compile
[INFO] | | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.11.2:compile
[INFO] | | | | \- org.apache.logging.log4j:log4j-api:jar:2.11.2:compile
[INFO] | | | \- org.slf4j:jul-to-slf4j:jar:1.7.28:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.23:runtime
[INFO] | +- org.springframework:spring-jms:jar:5.1.10.RELEASE:compile
[INFO] | | +- org.springframework:spring-beans:jar:5.1.10.RELEASE:compile
[INFO] | | +- org.springframework:spring-messaging:jar:5.1.10.RELEASE:compile
[INFO] | | \- org.springframework:spring-tx:jar:5.1.10.RELEASE:compile
[INFO] | +- org.apache.activemq:artemis-jms-client:jar:2.6.4:compile
[INFO] | | \- org.apache.activemq:artemis-selector:jar:2.6.4:compile
[INFO] | +- javax.jms:javax.jms-api:jar:2.0.1:compile
[INFO] | \- javax.json:javax.json-api:jar:1.1.4:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.1.9.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.1.9.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.9.3:compile
[INFO] | | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[INFO] | | | \- com.fasterxml.jackson.core:jackson-core:jar:2.9.9:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.9:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.9:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.9:compile
[INFO] | +- org.hibernate.validator:hibernate-validator:jar:6.0.17.Final:compile
[INFO] | | +- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] | | \- com.fasterxml:classmate:jar:1.4.0:compile
[INFO] | +- org.springframework:spring-web:jar:5.1.10.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.1.10.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.1.10.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:5.1.10.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:5.1.10.RELEASE:compile
[INFO] +- org.apache.activemq:artemis-jms-server:jar:2.10.1:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.3.3.Final:compile
[INFO] | +- org.apache.activemq:artemis-core-client:jar:2.6.4:compile
[INFO] | | +- org.jgroups:jgroups:jar:3.6.13.Final:compile
[INFO] | | +- org.apache.johnzon:johnzon-core:jar:1.1.13:compile
[INFO] | | +- io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.39.Final:compile
[INFO] | | | \- io.netty:netty-transport-native-unix-common:jar:4.1.39.Final:compile
[INFO] | | +- io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.1.39.Final:compile
[INFO] | | +- io.netty:netty-codec-http:jar:4.1.39.Final:compile
[INFO] | | +- io.netty:netty-buffer:jar:4.1.39.Final:compile
[INFO] | | +- io.netty:netty-transport:jar:4.1.39.Final:compile
[INFO] | | | \- io.netty:netty-resolver:jar:4.1.39.Final:compile
[INFO] | | +- io.netty:netty-handler:jar:4.1.39.Final:compile
[INFO] | | +- io.netty:netty-codec:jar:4.1.39.Final:compile
[INFO] | | \- io.netty:netty-common:jar:4.1.39.Final:compile
[INFO] | +- org.apache.activemq:artemis-server:jar:2.6.4:compile
[INFO] | | +- org.jboss.logmanager:jboss-logmanager:jar:2.0.3.Final:compile
[INFO] | | +- org.apache.activemq:artemis-jdbc-store:jar:2.6.4:compile
[INFO] | | +- org.apache.activemq:artemis-native:jar:2.6.4:compile
[INFO] | | +- commons-beanutils:commons-beanutils:jar:1.9.3:compile
[INFO] | | | \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | | \- commons-io:commons-io:jar:2.6:compile
[INFO] | +- org.apache.activemq:artemis-journal:jar:2.6.4:compile
[INFO] | +- org.apache.activemq:artemis-commons:jar:2.6.4:compile
[INFO] | +- org.apache.activemq:artemis-service-extensions:jar:2.6.4:compile
[INFO] | +- org.apache.geronimo.specs:geronimo-jms_2.0_spec:jar:1.0-alpha-2:compile
[INFO] | \- org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.1.9.RELEASE:provided
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.26:provided
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.26:provided
[INFO] | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.26:provided
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.1.9.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.1.9.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.1.9.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | | +- net.minidev:json-smart:jar:2.3:test
[INFO] | | | \- net.minidev:accessors-smart:jar:1.2:test
[INFO] | | | \- org.ow2.asm:asm:jar:5.0.4:test
[INFO] | | \- org.slf4j:slf4j-api:jar:1.7.28:compile
[INFO] | +- junit:junit:jar:4.12:test
[INFO] | +- org.assertj:assertj-core:jar:3.11.1:test
[INFO] | +- org.mockito:mockito-core:jar:2.23.4:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.9.16:test
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.9.16:test
[INFO] | | \- org.objenesis:objenesis:jar:2.6:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-core:jar:5.1.10.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.1.10.RELEASE:compile
[INFO] | +- org.springframework:spring-test:jar:5.1.10.RELEASE:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.6.3:test
[INFO] \- commons-logging:commons-logging:jar:1.2:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.891 s
[INFO] Finished at: 2019-10-10T17:23:18-04:00
[INFO] ------------------------------------------------------------------------
io.netty:netty-common:jar:4.1.39.Final:compile 包含正在查找的方法的类
public static int checkPositiveOrZero(int i, String name) {
if (i < 0) {
throw new IllegalArgumentException(name + ": " + i + " (expected: >= 0)");
}
return i;
}
/**
* Checks that the given argument is positive or zero. If it is not, throws {@link IllegalArgumentException}.
* Otherwise, returns the argument.
*/
public static long checkPositiveOrZero(long i, String name) {
if (i < 0) {
throw new IllegalArgumentException(name + ": " + i + " (expected: >= 0)");
}
return i;
}
据我了解,日志正在被调用:WriteBufferWaterMark 类包含在netty-transport:jar:4.1.39.Final:编译。
/**
* This constructor is needed to keep backward-compatibility.
*/
WriteBufferWaterMark(int low, int high, boolean validate) {
if (validate) {
checkPositiveOrZero(low, "low");
if (high < low) {
throw new IllegalArgumentException(
"write buffer's high water mark cannot be less than " +
" low water mark (" + low + "): " +
high);
}
}
this.low = low;
this.high = high;
}
对我来说,该类似乎是兼容的,但我关心的是日志显示 checkPositiveOrZero(ILjava/lang/String;)I
。就像它期待一个 String
数组一样。我不是 Maven 依赖项方面的专家,请知道为什么会出现 NoSuchMethodError
,我将不胜感激。
完整日志:
2019-10-10 17:56:28,526 INFO [com.cts.t24.transaction.screening.controller.TestConnectionLegacyR] (default task-1) Attempting to acquire connection factory "jms/RemoteConnectionFactory"
2019-10-10 17:56:29,041 INFO [com.cts.t24.transaction.screening.controller.TestConnectionLegacyR] (default task-1) Found connection factory "jms/RemoteConnectionFactory" in JNDI
2019-10-10 17:56:29,041 INFO [com.cts.t24.transaction.screening.controller.TestConnectionLegacyR] (default task-1) Attempting to acquire destination "jms/queue/requestQueue"
2019-10-10 17:56:29,119 INFO [com.cts.t24.transaction.screening.controller.TestConnectionLegacyR] (default task-1) Found destination "jms/queue/requestQueue" in JNDI
2019-10-10 17:56:29,151 INFO [stdout] (default task-1) 2019-10-10 17:56:29.151 DEBUG 4112 --- [ default task-1] io.netty.util.ResourceLeakDetector : -Dio.netty.leakDetection.level: simple
2019-10-10 17:56:29,151 INFO [stdout] (default task-1) 2019-10-10 17:56:29.151 DEBUG 4112 --- [ default task-1] io.netty.util.ResourceLeakDetector : -Dio.netty.leakDetection.maxRecords: 4
2019-10-10 17:56:29,166 INFO [stdout] (default task-1) 2019-10-10 17:56:29.166 DEBUG 4112 --- [ default task-1] i.n.channel.MultithreadEventLoopGroup : -Dio.netty.eventLoopThreads: 8
2019-10-10 17:56:29,182 INFO [stdout] (default task-1) 2019-10-10 17:56:29.182 DEBUG 4112 --- [ default task-1] io.netty.channel.nio.NioEventLoop : -Dio.netty.noKeySetOptimization: false
2019-10-10 17:56:29,182 INFO [stdout] (default task-1) 2019-10-10 17:56:29.182 DEBUG 4112 --- [ default task-1] io.netty.channel.nio.NioEventLoop : -Dio.netty.selectorAutoRebuildThreshold: 512
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) ERROR 2019-10-10 17:56:29 org.springframework.boot.web.servlet.support.ErrorPageFilter - Forwarding to error page from request [/testReq] due to exception [io.netty.util.internal.ObjectUtil.checkPositiveOrZero(ILjava/lang/String;)I]
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) java.lang.NoSuchMethodError: io.netty.util.internal.ObjectUtil.checkPositiveOrZero(ILjava/lang/String;)I
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.netty.channel.WriteBufferWaterMark.<init>(WriteBufferWaterMark.java:59)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.netty.channel.WriteBufferWaterMark.<init>(WriteBufferWaterMark.java:51)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector.start(NettyConnector.java:490)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.openTransportConnection(ClientSessionFactoryImpl.java:1045)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createTransportConnection(ClientSessionFactoryImpl.java:1096)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.establishNewConnection(ClientSessionFactoryImpl.java:1307)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.getConnection(ClientSessionFactoryImpl.java:902)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:798)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:241)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:782)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:844)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createContext(ActiveMQConnectionFactory.java:304)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createContext(ActiveMQConnectionFactory.java:297)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at com.cts.t24.transaction.screening.controller.TestConnectionLegacyR.TestConnect(TestConnectionLegacyR.java:61)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at com.cts.t24.transaction.screening.controller.TransactionController.testRequestQueue(TransactionController.java:33)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at java.lang.reflect.Method.invoke(Method.java:498)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:893)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:798)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:94)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:128)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.boot.web.servlet.support.ErrorPageFilter.access$000(ErrorPageFilter.java:66)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.boot.web.servlet.support.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:103)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:121)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
2019-10-10 17:56:29,229 INFO [stdout] (default task-1) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:285)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:264)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:175)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:792)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
2019-10-10 17:56:29,244 INFO [stdout] (default task-1) at java.lang.Thread.run(Thread.java:748)
最佳答案
看起来 JBoss 发行版中包含另一个 netty jar,它是用来代替您的应用程序开发的。
根据https://access.redhat.com/articles/112673 - 应该有版本4.0.35.Final,但ObjectUtil类只出现在4.1.0.Beta4-SNAPSHOT中(根据此提交https://github.com/netty/netty/commit/04f77b76f802a5bb30447eb0e3580f6ba0e1f2db#diff-3898ecbaeae93ec4a50462f60da1840b)
关于java - Maven 依赖 Netty - NoSuchMethodError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58334313/
我正在用来自JSON文件的一些数据填充Flutter中的列表。 但是,我的代码不断抛出异常"NoSuchMethodError (NoSuchMethodError: The method 'add'
通过eclipse运行Tomcat 7报错是: javax.servlet.ServletException: java.lang.NoSuchMethodError: org.eclipse.jdt
这是我的错误行: 这是我的代码: 最佳答案 final jobs= json.decode(response.body)['name_database_table']; 关于mobile - NoSu
很难说出这里问的是什么。这个问题是模棱两可的、模糊的、不完整的、过于宽泛的或修辞的,无法以目前的形式得到合理的回答。为了帮助澄清这个问题以便可以重新打开它,visit the help center
我已经被这个错误困扰了几个小时。。我的pom.xml。应用程序未启动。所有的Spring框架依赖于相同的版本,但仍然得到相同的错误。。更新。MVN依赖的结果:树。看起来这里一切都很好。
我得到: NoSuchMethodError: com.foo.SomeService.doSmth()Z 我是否正确理解这个'Z'意味着doSmth()方法的返回类型是 boolean 值?如果为
我在 Speed 类中引用 PlayerUtil.getMovementSpeed(player);,在我的 PlayerUtil 类中,我将方法定义为: public static double g
我得到: NoSuchMethodError: com.foo.SomeService.doSmth()Z 我是否正确理解这个 'Z' 意味着 doSmth() 方法的返回类型是 boolean 值?
我在使用 Spark 和 Scala 时遇到了一个奇怪的错误。我有一段代码声明了一个变量: var offset = 0 这会导致以下异常: java.lang.NoSuchMethodError:
我已经成功实现了 reflectionEquals 方法,其中包含一个排除字段列表。 return EqualsBuilder.reflectionEquals(this, obj, new Str
我正在使用 Spring 框架和 Maven 开发 Java Enterprise 应用程序。我正在为此学习一门类(class),并且一直坚持集成 Hibernate JPA。当我运行项目时,它返回以
I/flutter ( 8282): The following NoSuchMethodError was thrown building Meme(dirty, state: _MemeState
运行以下代码时出现 NoSuchMethodError - 我想从 JSON url 打印出轨道标题 - 我错过了什么吗? import 'dart:async'; import 'dart:conv
我正在做 Searchview flutter 中的例子 https://github.com/MageshPandian20/Flutter-SearchView 但我想对 进行更改子项类有一个 最
尝试从Eclipse中的简单Java程序连接到Hive时出现以下错误。看起来好像连接,然后引发此错误。我可以通过beeline在本地连接到Hive Thrift服务器,而不会出现问题。 两个libth
当我向安全资源发出请求时,会发生NoSuchMethodError。 基于基于Spring Boot 1.4.4的Grails 3.2.5的项目 AppConfig: @EnableWebSecuri
这个问题已经有答案了: Differences between Exception and Error (11 个回答) 已关闭 7 年前。 我的印象是 Exception 非常适合捕获所有可能的异常
祝大家有美好的一天!我使用 google Vision API,当我在 IntelliJ Idea 中运行我的程序时,它工作得很好,但是当我编译 jar 文件时,它在处理照片时给出错误 java.la
我一直在为这个问题苦苦挣扎。我正在开发一个包含很多包的 netbeans java 项目,起初我更改了 gui,但是当我运行代码时,它没有反射(reflect)任何更改,即使我在保存、清理、清理和编译
我一直在寻找问题的解决方案,但没有得到足够的答案。 我正在开发 Bukkit插件的更新系统。因此,我必须自己编写这些类的代码。但我一直想从 debug(String) 调用一个方法(具体来说: ano
我是一名优秀的程序员,十分优秀!