2019独角兽企业重金招聘Python工程师标准>>>

jboss的执行关闭时报错:

Exception in thread "main" java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:89)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:855)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:422)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)
at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
at $Proxy0.invoke(Unknown Source)
at org.jboss.Shutdown$ServerProxyHandler.invoke(Shutdown.java:271)
at $Proxy1.shutdown(Unknown Source)
at org.jboss.Shutdown.main(Shutdown.java:242)

是因为在deploy目录下的jmx-invoker-service.xml中有下面这么一句:

<!-- Interceptor to require authenticated users -->
                  <interceptor code="org.jboss.jmx.connector.invoker.AuthenticationInterceptor"
                     securityDomain="java:/jaas/jmx-console"/>
这个拦截器在jboss EAP中默认是打开的,也就是说默认必须设置jmx-console的用户名和密码,并且用shutdown.sh -s 127.0.0.1:1099 -u admin -p admin才能关闭(-u -p 后面的就是jmx-console的用户名和密码)

可以注释掉这个拦截器,然后就可以解决这个错误

转载于:https://my.oschina.net/topeagle/blog/98561

JBoss关闭时报Failed to authenticate principal=null,...相关推荐

  1. 使用命令导入sql文件到mysql数据库时报Failed to open file错误的解决方案

    使用命令导入sql文件到mysql数据库时报Failed to open file错误的解决方案 参考文章: (1)使用命令导入sql文件到mysql数据库时报Failed to open file错 ...

  2. open*** 结合pam_mysql认证 failed to authenticate: Permission denied

    open***的认证有很多方式,比如证书认证,用户名密码认证,而用户名密码认证也可用通过两种方式实现,一是使用pam_mysql实现open***利用mysql认证,二是使用radius实现open* ...

  3. esp32,基于阿里云平台,配置实现Node.js SDK接入示例出现description: ‘Failed to authenticate: 4‘ BUG

    项目场景: 需要esp32板子一块,一个wifi热点,最好是自己手机的 问题描述 当你配置好阿里云官方文档所需要的信息后,出现报错:description: 'Failed to authentica ...

  4. 文件和文件流——文件转码失败conversion failed: input document is null after loading

    今天文件转码碰到个文件: 文件转码的时候抛出异常(conversion failed: input document is null after loading), 从服务器当下文件查看,发现文件大小 ...

  5. 操作无效:已关闭 Lob。 ERRORCODE=-4470, SQLSTATE=null

    参数值是CLOB类型,从表中取出CLOB转String报错 [操作无效:已关闭 Lob. ERRORCODE=-4470, SQLSTATE=null] 解决方式: 1.jdbc URL链接为:jdb ...

  6. DB2读取CLOB字段-was报错:操作无效:已关闭 Lob。 ERRORCODE=-4470, SQLSTATE=null

    DB2读取CLOB字段-was报错:操作无效:已关闭 Lob. ERRORCODE=-4470, SQLSTATE=null 解决方法,在WAS中要用的数据源里面配置连个定制属性: progressi ...

  7. 树莓派OpenCV警告libEGL warning: DRI2: failed to authenticate(待续)

    文章目录 学习记录 设备 代码 原因 解决方案 学习记录 树莓派系列 设备 树莓派3B OpenCV3.4.1 代码 #include "iostream" #include &q ...

  8. Java应用/JDBC/Squirrel在Kerberos认证时报Unable to obtain Principal Name for authentication的解决方法

    关于如何在Windows本地安装配置Kerberos客户端,以及进行相关的配置,网上有很多现成的文档可以参考,其中: https://841809077.github.io/2018/12/19/Wi ...

  9. 关于文件保存/关闭时报错:文件正由另一进程使用,因此该进程无法访问此文件。...

    起因:最近给Unity上的游戏写关于存档的脚本,使用了xml.然后发现每次文件保存时,也就是调用XmlDocument.Save()对象方法的时候就会报错说该文件路径分享异常啥的我也不记得了.然后搞了 ...

最新文章

  1. Python压缩目录文件夹,解压目录文件夹及耗时效率统计
  2. C# 可访问性不一致问题(修改成员的访问修饰符)。
  3. C++ Primer 第9章 顺序容器 第一次学习笔记
  4. C#中Escape编码的加密、解密
  5. Python实现简单的购物车
  6. spring 之 lookup-method replaced-method II
  7. android 等待动画 库,android--AnimationDrawable实现等待动画效果
  8. python自动化测试常用库_Python自动化测试常用库整理
  9. java Switch里面的类型问题
  10. 利用RTMP或RTSP实现跨平台一对一互动功能
  11. HTML在线颜色代码选取器源码
  12. linux arm寄存器,ARM寄存器总结
  13. 嘿,我造了个代码高亮的插件
  14. Android WindowManager简析
  15. 2021年好看高考倒计时源码
  16. 智能制造数字化车间的实施策略(上)
  17. 实用,开源,生成朋友圈转发点赞截图小工具一枚
  18. Android——excise(用线性布局、表格布局、相对布局做发送邮件界面)
  19. 自然人机交互到底“自然”在哪儿?
  20. SHH could not initialize proxy - the owning Session was closed 和延迟加载问题

热门文章

  1. django第三次(转自刘江)
  2. Android相关面试题---初识
  3. 创新课程管理系统数据库设计心得
  4. nginx bind() to 0.0.0.0:**** failed (13: Permission denied)
  5. jmeter—操作数据库
  6. 常见浏览器兼容问题、盒模型2种模式以及css hack知识讲解
  7. 1091 线段的重叠
  8. 快评 美国软件开发杂志的最新jolt大奖!
  9. 利用逻辑回归进行简单的人群分类解决广告推荐问题
  10. 安装kafka过程及出现的问题解决