You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Wolfgang Korn <wo...@gmx.de> on 2004/12/01 16:44:13 UTC

[modeler] MBean problem on WebLogic

Hi everybody,
 
I'm having a problem using commons-modeler in combination with BEA 
WebLogic 8.1 and MC4J. For testing purposes I created a pretty simple 
MBean based on commons-modeler containing one attribute and one 
operation. Below you find the MBean's descriptor. I registered this 
MBean with WebLogic's MBean server as well MX4J's HTTPProtocolAdaptor. 
Accessing this MBean via the HTTP protocol adapter works fine. Trying to 
access it from the MC4J console produces the exception shown below. I 
also tried it with XtremeJ which produced exceptions as well. I have no 
idea what the reason for this behavior is. Thanks in advance for any hint.
 
-- Wolfgang


================ mbeans-descriptors.xml ====================
<?xml version="1.0"?>
<!DOCTYPE mbeans-descriptors PUBLIC
 "-//Apache Software Foundation//DTD Model MBeans Configuration File"
 "http://jakarta.apache.org/commons/dtds/mbeans-descriptors.dtd">

<mbeans-descriptors>
  <mbean name="ManagedBean"
          description="Example Managed Bean"
          type="de.conet.test.jmx.DemoManagedBean">
                
    <attribute   name="name"
          description="Simple Name"
          type="java.lang.String"/>

    <constructor name="ManagedBean"/>

    <operation name="printHello"
           description="Prints Hello world"
           impact="INFO"
           returnType="void"/>

  </mbean>
</mbeans-descriptors>


================ StackTrace ====================
java.lang.reflect.UndeclaredThrowableException
    at $Proxy9.queryMBeans(Unknown Source)
    at 
org.mc4j.console.connection.ConnectionNode.loadConnectionNodeChildren(ConnectionNode.java:200)
    at 
org.mc4j.console.connection.ConnectionNode.loadConnectionNodeChildren(ConnectionNode.java:186)
    at 
org.mc4j.console.connection.ConnectionNode.refresh(ConnectionNode.java:561)
    at 
org.mc4j.console.connection.ConnectionNode$2.run(ConnectionNode.java:534)
    at java.util.TimerThread.mainLoop(Timer.java:432)
    at java.util.TimerThread.run(Timer.java:382)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at 
org.mc4j.console.connection.proxy.GenericMBeanServerProxy.invoke(GenericMBeanServerProxy.java:79)
    ... 7 more
Caused by: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected 
Exception - with nested exception:
[java.rmi.UnmarshalException: failed to unmarshal interface 
java.util.Set; nested exception is:
    java.io.OptionalDataException]
    at 
weblogic.management.internal.RemoteMBeanServerImpl_812_WLStub.queryMBeans(Unknown 
Source)
[catch] ... 12 more
==>
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at 
org.mc4j.console.connection.proxy.GenericMBeanServerProxy.invoke(GenericMBeanServerProxy.java:79)
    at $Proxy9.queryMBeans(Unknown Source)
    at 
org.mc4j.console.connection.ConnectionNode.loadConnectionNodeChildren(ConnectionNode.java:200)
    at 
org.mc4j.console.connection.ConnectionNode.loadConnectionNodeChildren(ConnectionNode.java:186)
    at 
org.mc4j.console.connection.ConnectionNode.refresh(ConnectionNode.java:561)
    at 
org.mc4j.console.connection.ConnectionNode$2.run(ConnectionNode.java:534)
    at java.util.TimerThread.mainLoop(Timer.java:432)
    at java.util.TimerThread.run(Timer.java:382)
Caused by: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected 
Exception - with nested exception:
[java.rmi.UnmarshalException: failed to unmarshal interface 
java.util.Set; nested exception is:
    java.io.OptionalDataException]
    at 
weblogic.management.internal.RemoteMBeanServerImpl_812_WLStub.queryMBeans(Unknown 
Source)
[catch] ... 12 more
==>
java.rmi.UnmarshalException: failed to unmarshal interface 
java.util.Set; nested exception is:
    java.io.OptionalDataException
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:161)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:139)
    at 
weblogic.management.internal.RemoteMBeanServerImpl_812_WLStub.queryMBeans(Unknown 
Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at 
org.mc4j.console.connection.proxy.GenericMBeanServerProxy.invoke(GenericMBeanServerProxy.java:79)
    at $Proxy9.queryMBeans(Unknown Source)
    at 
org.mc4j.console.connection.ConnectionNode.loadConnectionNodeChildren(ConnectionNode.java:200)
    at 
org.mc4j.console.connection.ConnectionNode.loadConnectionNodeChildren(ConnectionNode.java:186)
    at 
org.mc4j.console.connection.ConnectionNode.refresh(ConnectionNode.java:561)
    at 
org.mc4j.console.connection.ConnectionNode$2.run(ConnectionNode.java:534)
    at java.util.TimerThread.mainLoop(Timer.java:432)
    at java.util.TimerThread.run(Timer.java:382)
Caused by: java.io.OptionalDataException
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1239)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at 
weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:119)
    at 
weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:112)
    at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
    ... 14 more
--------------- nested within: ------------------
weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - 
with nested exception:
[java.rmi.UnmarshalException: failed to unmarshal interface 
java.util.Set; nested exception is:
    java.io.OptionalDataException]
    at 
weblogic.management.internal.RemoteMBeanServerImpl_812_WLStub.queryMBeans(Unknown 
Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at 
org.mc4j.console.connection.proxy.GenericMBeanServerProxy.invoke(GenericMBeanServerProxy.java:79)
    at $Proxy9.queryMBeans(Unknown Source)
    at 
org.mc4j.console.connection.ConnectionNode.loadConnectionNodeChildren(ConnectionNode.java:200)
    at 
org.mc4j.console.connection.ConnectionNode.loadConnectionNodeChildren(ConnectionNode.java:186)
    at 
org.mc4j.console.connection.ConnectionNode.refresh(ConnectionNode.java:561)
    at 
org.mc4j.console.connection.ConnectionNode$2.run(ConnectionNode.java:534)
    at java.util.TimerThread.mainLoop(Timer.java:432)
[catch] at java.util.TimerThread.run(Timer.java:382)


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org