Hi All,
I have a MBean that is deployed fine. It can be seen in the
HTMLAdaptor but when I try to invoke the method loadData(String)
I get the following exception:
| RuntimeMBeanException: RuntimeException in MBean operation
'loadData(java.lang.String)'
| Cause: java.lang.ClassCastException
| at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:299)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
| at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:234)
| at org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:200)
|
| ... snip ...
|
It doesn't seem like it is even getting to my code. I'm running 3.2.3
my MBean looks like:
| public interface StaticLoaderMBean {
|
| public void loadData(String directory);
| }
|
My class looks like:
| public class StaticLoader extends LocalAgent implements StaticLoaderMBean{
|
| FileLoader loader;
| String dir;
| long startTime;
| MessageProcessor msgProcessor;
|
| public void loadData(String directory){
| dir = directory;
| startTime = new GregorianCalendar().getTimeInMillis();
| //msgProcessor = new MyMessageProcessor();
| StaticLoaderThread thread = new StaticLoaderThread();
| thread.run();
| }
|
|
When I call the method via webconsole or plain htmladaptor I enter
c:\data.xml I even put it in quotes to make sure it is a string but I
keep getting the same error.
Any suggestions? It seems pretty straight forward.
Thanks in advance,
Andrew
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829591#3829591
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829591
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user