[Clustering Development] - HASingletonDeployer is not registered
by Marcin Polak
Marcin Polak [http://community.jboss.org/people/polok] created the discussion
"HASingletonDeployer is not registered"
To view the discussion, visit: http://community.jboss.org/message/632924#632924
--------------------------------------------------------------
Hi All,
I have four jbosses working in one cluster. Sometimes when I stop or restart one of them I get following error:
ERROR [ ]
[org.springframework.scheduling.support.MethodInvokingRunnable] Invocation of
method 'myMethod' on target class [class
MyClass] failed
org.springframework.jmx.access.InvalidInvocationException:
jboss.ha:service=HASingletonDeployer is not registered.
at
org.springframework.jmx.access.MBeanClientInterceptor.doInvoke(MBeanClientInterceptor.java:445)
at
org.springframework.jmx.access.MBeanClientInterceptor.invoke(MBeanClientInterceptor.java:353)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy323.isMasterNode(Unknown Source)
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.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)
at
org.springframework.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:65)
at
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:51)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
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:619)
"myMethod" is a method which is activated every 10 seconds and I check thereif my jboss is a maaster node (I am using HA-Singleton).
I check this using something like isMasterNode() on HASingletonMBean.
I will be grateful for any help.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/632924#632924]
Start a new discussion in Clustering Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 11 months
[JBoss AS7 Development] - JBoss AS7: How Do I?
by Rostislav Svoboda
Rostislav Svoboda [http://community.jboss.org/people/rsvoboda] modified the document:
"JBoss AS7: How Do I?"
To view the document, visit: http://community.jboss.org/docs/DOC-17182
--------------------------------------------------------------
h1. General Questions
h2. How do I set system properties?
http://community.jboss.org/docs/DOC-17157 http://community.jboss.org/wiki/JBossAS7SystemProperties
h2. How can I list all system properties?
http://community.jboss.org/docs/DOC-17291 http://community.jboss.org/wiki/JBossAS7OverviewOfAllSystemProperties
h2. How do I change logging levels?
http://community.jboss.org/docs/DOC-16648 http://community.jboss.org/wiki/JBossAS7Logging
h2.
h2. Desktop SSO/Kerberos/Active Directory SSO/SPNego?
http://community.jboss.org/docs/DOC-16876 http://community.jboss.org/wiki/DRAFTUsingJBossNegotiationOnAS7
h2.
h1. Command Line Interface (CLI)
More information on using the CLI is at https://docs.jboss.org/author/display/AS7/Management+Clients https://docs.jboss.org/author/display/AS7/Management+Clients
h2. I want to take a snapshot of what the current domain is
You will have to use the CLI
bin$ ./jboss-admin.sh
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] connect
Connected to domain controller at localhost:9999
[domain@localhost:9999 /] :take-snapshot()
{
"outcome" => "success",
"result" => {
"domain-results" => {"step-1" => {"name" => "/home/anil/as7/jboss-as/build/target/jboss-as-7.1.0.Alpha1-SNAPSHOT/domain/configuration/domain_xml_history/snapshot/20110908-165222603domain.xml"}},
"server-operations" => undefined
}
}
[domain@localhost:9999 /] help
For a list of commands available in the current context execute
help --commands
The resulting listing may depend on the current context. I.g. some of the commands
require an established connection to a controller (standalone or domain).
These commands won't appear in the listing unless the connection has been established.
Here are some of the most common supported commands:
cn (or cd) - change the current node path to the argument;
connect - connect to the specified host and port;
deploy - deploy an application;
help (or h) - print this message;
history - print or disable/enable/clear the history expansion.
ls - list the contents of the node path;
pwn (or pwd) - prints the current working node;
quit (or q) - quit the command line interface;
undeploy - undeploy an application;
version - prints the version and environment information.
add-jms-queue - creates a new JMS queue
remove-jms-queue - removes an existing JMS queue
add-jms-topic - creates a new JMS topic
remove-jms-topic - removes an existing JMS topic
add-jms-cf - creates a new JMS connection factory
remove-jms-cf - removes an existing JMS connection factory
data-source - allows to add new, modify and remove existing data sources
xa-data-source - allows to add new, modify and remove existing XA data sources
For a more detailed description of a specific command, execute the command with '--help' as the argument.
Tab-completion is supported for the commands, just press the tab key to start.
To use tab completion for operations requests start with './' or '/' and press the tab key
which will list the available node types or names.
If the operation request doesn't require a node path then start with ':' and press the tab key
('/:' and './:' are also possible).
Operation requests are expected to follow the format:
[node-type=node-name (, node-type=node-name)*] : operation-name ['('[name=value [, name=value]*]')']
e.g. /subsystem=web/connector=http:read-attribute(name=protocol)
Whitespaces between the separators are insignificant.
If the operation doesn't require arguments then the brackets '()' are optional.
Tab-completion for operation requests supports node types and names, operation names and the property names.
[domain@localhost:9999 /]
h2.
h2. I want to take the latest snapshot of the host.xml for a particular host
Assume your host is called "master"
/bin$ ./jboss-admin.sh
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] connect
Connected to domain controller at localhost:9999
[domain@localhost:9999 /] /host=master:take-snapshot
{
"outcome" => "success",
"result" => {
"domain-results" => {"step-1" => {"name" => "/home/anil/as7/jboss-as/build/target/jboss-as-7.1.0.Alpha1-SNAPSHOT/domain/configuration/host_xml_history/snapshot/20110908-165640215host.xml"}},
"server-operations" => undefined
}
}
[domain@localhost:9999 /]
h2.
h2. I want to write the domain model or host model to the Command Line
Assume you have a host that is called master
[domain@localhost:9999 /] /host=master:read-config-as-xml
Just for the domain
[domain@localhost:9999 /] :read-config-as-xml
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-17182]
Create a new document in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
12 years, 11 months