[Management, JMX/JBoss] - twiddle fails on listMessageCounter of DestinationManager
by dhondts
Does anyone have an idea why the below twiddle call is failing?
$ ./twiddle.sh invoke jboss.mq:service=DestinationManager listMessageCounter
10:14:47,830 ERROR [Twiddle] Exec failed
java.lang.NullPointerException
at javax.management.modelmbean.DescriptorSupport.readObject(DescriptorSu
pport.java:1354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919
)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
713)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:19
12)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:46
8)
at javax.management.modelmbean.ModelMBeanAttributeInfo.readObject(ModelM
BeanAttributeInfo.java:514)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919
)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
713)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:19
12)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
713)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvo
kerProxy.java:119)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerIntercep
tor.java:227)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
a:167)
at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientIntercepto
r.invoke(InvokerAdaptorClientInterceptor.java:51)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:5
5)
at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodIntercepto
r.java:59)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
at $Proxy0.getMBeanInfo(Unknown Source)
at org.jboss.console.twiddle.command.InvokeCommand.invoke(InvokeCommand.
java:166)
at org.jboss.console.twiddle.command.InvokeCommand.execute(InvokeCommand
.java:270)
at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:293)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136550#4136550
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136550
18 years, 1 month
[JBoss jBPM] - Re: Deployment order of dependent process definitions
by syedtaj
I tried this as well, with no effect.
anonymous wrote :
| JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| try {
| ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("AutomationService/processdefinition.xml");
| ProcessInstance instance = new ProcessInstance(processDefinition);
| jbpmContext.deployProcessDefinition(processDefinition);
| .......
Thus, how do we make available to the process, a sub process? How do we bind both of them?
Is it mandatory to deploy in JBOSS to make this happen? It should not be the case, but anyhows, I have hit a dead end.
The code in that is causing the exception is in DbSubProcessResolver.java -
anonymous wrote : subProcessDefinition = jbpmContext.getGraphSession().findLatestProcessDefinition(subProcessName);
This subProcessDefinition is null, how do we make sure its available. The subProcessName is correct when I print it - AutomationService.
Any help will be appreciated, I am stuck for a while in this one. I am sure it is a simple configuration somewhere, but I am unable to figure it out.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136540#4136540
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136540
18 years, 1 month