Translated message

A translation of this page exists in English.

Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

Twiddle 実行時に NameNotFoundException を出力して失敗します

Solution Unverified - Updated -

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 4.x
    • 5.x

Issue

  • Twiddle の実行に失敗し、コンソールにこの例外が記録されます
18:09:51,318 ERROR [Twiddle] Exec failed
org.jboss.util.NestedRuntimeException: jmx not bound; - nested throwable:(javax.naming.NameNotFoundException: jmx not bound)
        at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:144)
        at org.jboss.console.twiddle.command.MBeanServerCommand.getMBeanServer(MBeanServerCommand.java:59)
        at org.jboss.console.twiddle.command.MBeanServerCommand.queryMBeans(MBeanServerCommand.java:66)
        at org.jboss.console.twiddle.command.InvokeCommand.execute(InvokeCommand.java:283)
        at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:306)
Caused by: javax.naming.NameNotFoundException: jmx not bound
        at org.jnp.server.NamingServer.getBinding(NamingServer.java:581)
        at org.jnp.server.NamingServer.getBinding(NamingServer.java:589)
        at org.jnp.server.NamingServer.getObject(NamingServer.java:595)
        at org.jnp.server.NamingServer.lookup(NamingServer.java:313)
...

Resolution

  • deploy ディレクトリに jmx-invoker-service.xml はありますか? ない場合は、別のサーバー設定から現在の設定にこのファイルをコピーしてデプロイします。
  • JMX Invoker Service がデプロイに失敗していますか? JBoss のコンソールまたは log/server.log で、失敗したデプロイメントと、起動時に失敗した理由を確認できます。

Root Cause

Twiddle は、JBoss がデプロイする JMX Invoker Service と通信する JMX クライアントです。これがないと、Twiddle が期待されたとおりには機能しません。

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments