Just downloaded and started working with Modeler yesterday so I may have
overlooked something simple but my Modeler Ant task [demo] is failing with
the following exception:
demo:
[java] Create configuration registry ...
[java] Jan 24, 2003 9:45:57 AM
org.apache.commons.modeler.Registry loadRegistry
[java] INFO: Loading registry information
[java] Jan 24, 2003 9:45:57 AM
org.apache.commons.modeler.Registry getRegistry
[java] INFO: Creating new Registry instance
[java] Creating MBeanServer ...
[java] Create managed object tree ...
[java] Creating MBeans ...
[java] Not a valid Java type name:
org.apache.commons.modeler.demo.Service[]
[java] java.lang.IllegalArgumentException: Not a valid Java type
name: org.apache.commons.modeler.demo.Service[]
[java] at
javax.management.MBeanInfo.mustBeValidJavaTypeName(MBeanInfo.java:470)
[java] at
javax.management.MBeanOperationInfo.<init>(MBeanOperationInfo.java:133)
[java] at
javax.management.modelmbean.ModelMBeanOperationInfo.<init>(ModelMBeanOperati
onInfo.java:223)
[java] at
org.apache.commons.modeler.OperationInfo.createOperationInfo(OperationInfo.j
ava:264)
[java] at
org.apache.commons.modeler.ManagedBean.createMBeanInfo(ManagedBean.java:442)
[java] at
org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:387)
[java] at
org.apache.commons.modeler.demo.Demo.createMBeans(Demo.java:193)
[java] at
org.apache.commons.modeler.demo.Demo.main(Demo.java:163)
[java] There are 1 registered MBeans
[java] objectName=JMImplementation:type=MBeanServerDelegate,
className=javax.management.MBeanServerDelegate
[java] Dump ModelMBeanInfo for Server:
[java] DefaultDomain:type=Server
[java] javax.management.InstanceNotFoundException:
DefaultDomain:type=Server
[java] at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanS
erverInterceptor.java:1011)
[java] at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBeanInfo(DefaultMB
eanServerInterceptor.java:1307)
[java] at
com.sun.jmx.mbeanserver.JmxMBeanServer.getMBeanInfo(JmxMBeanServer.java:910)
[java] at
org.apache.commons.modeler.demo.Demo.dumpServer(Demo.java:411)
[java] at
org.apache.commons.modeler.demo.Demo.main(Demo.java:165)
[java] ===========================================
[java] Test updating Server properties ...
[java] Retrieving current value of 'shutdown'
[java] DefaultDomain:type=Server
[java] javax.management.InstanceNotFoundException:
DefaultDomain:type=Server
[java] at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanS
erverInterceptor.java:1011)
[java] at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMB
eanServerInterceptor.java:630)
[java] at
com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:666)
[java] at
org.apache.commons.modeler.demo.Demo.updateServer(Demo.java:482)
[java] at
org.apache.commons.modeler.demo.Demo.main(Demo.java:166)
Although all Modeler Ant tasks work (including test) ? Any ideas for what
I should check?
thanks - John
********************
John E. Conlon
<mailto:[EMAIL PROTECTED]>mailto:[EMAIL PROTECTED]
<http://www.verticon.com/>www.verticon.com
tel: (608) 675-3865
cell: (608) 606-1292
********************
"None are more hopelessly enslaved than those who falsely believe
they are free." - Goethe
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>