Bug 777777 (SOA-293) - twiddle don't support -u and -p options
Summary: twiddle don't support -u and -p options
Keywords:
Status: CLOSED NOTABUG
Alias: SOA-293
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: Tooling
Version: 4.2 Beta 1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.2 Beta 2
Assignee: Mark Little
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-08 13:46 UTC by Jehudi Castro Sierra
Modified: 2013-01-11 02:17 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
JBoss SOA Platform? ESB Embedded ESB Server - Version 4.2.0.beta1 Fedora 8
Last Closed: 2008-01-10 00:29:49 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-293 0 Major Closed twiddle don't support -u and -p options 2020-09-10 13:02:08 UTC

Description Jehudi Castro Sierra 2008-01-08 13:46:37 UTC
Date of First Response: 2008-01-09 07:20:54
project_key: SOA

According to JBAS-1736 should works.

The long version is OK:
$ ./twiddle.sh --user=admin --password=admin -s localhost query 'jboss:service=invoker,*'
jboss:service=invoker,type=jrmp
jboss:service=invoker,type=jrmpha
jboss:service=invoker,type=httpHA
jboss:service=invoker,type=local
jboss:service=invoker,type=pooled
jboss:service=invoker,type=unifiedha
jboss:service=invoker,type=iiop
jboss:service=invoker,type=http,target=Naming,readonly=true
jboss:service=invoker,type=pooledha
jboss:service=invoker,type=http,target=HAJNDI
jboss:service=invoker,type=unified
jboss:service=invoker,type=http
jboss:service=invoker,type=http,target=Naming

here is the error:
$ ./twiddle.sh -u=admin -p=admin -s localhost query 'jboss:service=invoker,*'
14:38:30,605 ERROR [Twiddle] Exec failed
java.lang.SecurityException: Failed to authenticate principal==admin, securityDomain=jmx-console
        at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97)
        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:659)
        at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
        at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
        at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
        at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
        at sun.rmi.transport.Transport$1.run(Transport.java:153)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
        at java.lang.Thread.run(Thread.java:595)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
        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:70)
        at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
        at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
        at $Proxy0.queryNames(Unknown Source)
        at org.jboss.console.twiddle.command.MBeanServerCommand.queryMBeans(MBeanServerCommand.java:68)
        at org.jboss.console.twiddle.command.QueryCommand.execute(QueryCommand.java:138)
        at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:305)

Comment 1 trev 2008-01-09 12:20:54 UTC
twiddle comes from EAP so I suspect JBAS-1736 didn't make it into that branch, investigating

Comment 2 Mark Little 2008-01-09 16:31:01 UTC
Did you get a response?

Comment 3 Dimitris Andreadis 2008-01-09 20:32:59 UTC
Most probably you must *not* use the equal sign '=' when providing the short version of arguments, i.e. try:

./twiddle.sh -u admin -p admin -s localhost query 'jboss:service=invoker,*' 

Comment 4 Mark Little 2008-01-10 00:29:49 UTC
Yes, this is standard Gnu Getopt processing, where --user=foo is equivalent to -ufoo or -u foo


Note You need to log in before you can comment on or make changes to this bug.