0 Replies Latest reply on Aug 31, 2006 10:00 AM by William Louth

    JBoss Portal JMX Issues - Published Attributes Should Not Be

    William Louth Newbie

      It looks like some of the JMX attributes associated with the Portal MBeans are expected to be called during portal request processing and not by a JMX console. The following stack traces appear in our log files when performing an inventory on the runtime state of the MBeanServer and registered MBeans. The same errors also occur when trying to use the JBoss Web Console to access the same attributes.

      15:53:07,385 ERROR [ServiceObjectFactory] Cannot create service
      org.jboss.ws.metadata.wsdl.WSDLException: java.io.IOException: Server returned HTTP response code: 503 for URL: http://0.0.0.0:8080/portal-wsrp/ServiceDescriptionService?wsdl
      at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefinitionsFactory.java:198)
      at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:106)
      at org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:273)
      at org.jboss.ws.metadata.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:106)
      at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:112)
      at org.jboss.ws.jaxrpc.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:182)
      at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      at javax.naming.InitialContext.lookup(Unknown Source)
      at org.jboss.portal.wsrp.services.AbstractJNDIServiceFactory.getService(AbstractJNDIServiceFactory.java:121)
      at org.jboss.portal.wsrp.services.AbstractSOAPServiceFactory.getService(AbstractSOAPServiceFactory.java:84)
      at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getService(WSRPConsumerImpl.java:476)
      at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getServiceDescriptionService(WSRPConsumerImpl.java:452)
      at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getServiceDescriptionAndRegisterIfNeeded(WSRPConsumerImpl.java:494)
      at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.updateCachesIfNeeded(WSRPConsumerImpl.java:361)
      at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getPortletMap(WSRPConsumerImpl.java:275)
      at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getPortlets(WSRPConsumerImpl.java:141)
      at org.jboss.portal.federation.impl.FederatedPortletInvokerService.getPortlets(FederatedPortletInvokerService.java:77)
      at org.jboss.portal.federation.impl.FederatingPortletInvokerService.getPortlets(FederatingPortletInvokerService.java:117)
      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:585)
      at org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:99)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:197)
      at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.getAttribute(AbstractMBeanInvoker.java:362)
      at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:556)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:140)
      at $Proxy67.getPortlets(Unknown Source)
      at org.jboss.portal.portlet.test.TestPortletInvoker.getPortlets(TestPortletInvoker.java:110)
      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:585)
      at org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:99)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:197)
      at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.getAttribute(AbstractMBeanInvoker.java:362)
      at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:556)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.attributeinfo(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.process(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.spi.AbstractCollector.process(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.mbeanserver(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.process(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.spi.AbstractCollector.process(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.collect(Unknown Source)
      at com.jinspired.jdbinsight.server.profiler.BasicProfiler.getRepositoryModel(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:585)
      at com.jinspired.jdbinsight.server.profiler.DefaultDispatcher.dispatch(Unknown Source)
      at com.jinspired.jdbinsight.common.net.invocation.RequestHandler.service(Unknown Source)
      at com.jinspired.jdbinsight.common.net.events.ServiceHandler.handle(Unknown Source)
      at com.jinspired.jdbinsight.common.net.events.Reactor.handle(Unknown Source)
      at com.jinspired.jdbinsight.common.net.events.Reactor.handleEvents(Unknown Source)
      at com.jinspired.jdbinsight.common.net.events.Reactor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:613)
      Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL: http://0.0.0.0:8080/portal-wsrp/ServiceDescriptionService?wsdl
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1149)
      at java.net.URL.openStream(URL.java:1007)
      at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefinitionsFactory.java:181)
      ... 67 more
      15:53:07,397 WARN [FederatingPortletInvokerService] PortletInvoker with id: self is not available.
      Reason: Problem getting service description for producer self
      Caused by:
      javax.naming.NamingException: Could not dereference object [Root exception is org.jboss.ws.metadata.wsdl.WSDLException: java.io.IOException: Server returned HTTP response code: 503 for URL: http://0.0.0.0:8080/portal-wsrp/ServiceDescriptionService?wsdl]
      15:53:07,576 ERROR [UserModuleImpl] Cannot count users
      org.hibernate.HibernateException: Unable to locate current JTA transaction
      at org.hibernate.context.JTASessionContext.currentSession(JTASessionContext.java:61)
      at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:541)
      at org.jboss.portal.identity.db.UserModuleImpl.getCurrentSession(UserModuleImpl.java:327)
      at org.jboss.portal.identity.db.UserModuleImpl.getUserCount(UserModuleImpl.java:304)
      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:585)
      at org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:99)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:197)
      at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.getAttribute(AbstractMBeanInvoker.java:362)
      at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:556)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.attributeinfo(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.process(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.spi.AbstractCollector.process(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.mbeanserver(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.process(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.spi.AbstractCollector.process(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.collect(Unknown Source)
      at com.jinspired.jdbinsight.server.profiler.BasicProfiler.getRepositoryModel(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:585)
      at com.jinspired.jdbinsight.server.profiler.DefaultDispatcher.dispatch(Unknown Source)
      at com.jinspired.jdbinsight.common.net.invocation.RequestHandler.service(Unknown Source)
      at com.jinspired.jdbinsight.common.net.events.ServiceHandler.handle(Unknown Source)
      at com.jinspired.jdbinsight.common.net.events.Reactor.handle(Unknown Source)
      at com.jinspired.jdbinsight.common.net.events.Reactor.handleEvents(Unknown Source)
      at com.jinspired.jdbinsight.common.net.events.Reactor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:613)
      15:53:07,729 ERROR [RoleModuleImpl] Cannot count roles
      org.hibernate.HibernateException: Unable to locate current JTA transaction
      at org.hibernate.context.JTASessionContext.currentSession(JTASessionContext.java:61)
      at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:541)
      at org.jboss.portal.identity.db.RoleModuleImpl.getCurrentSession(RoleModuleImpl.java:416)
      at org.jboss.portal.identity.db.RoleModuleImpl.getRolesCount(RoleModuleImpl.java:286)
      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:585)
      at org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:99)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:197)
      at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.getAttribute(AbstractMBeanInvoker.java:362)
      at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:556)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.attributeinfo(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.process(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.spi.AbstractCollector.process(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.mbeanserver(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.process(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.spi.AbstractCollector.process(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.collect(Unknown Source)
      at com.jinspired.jdbinsight.server.profiler.BasicProfiler.getRepositoryModel(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:585)
      at com.jinspired.jdbinsight.server.profiler.DefaultDispatcher.dispatch(Unknown Source)
      at com.jinspired.jdbinsight.common.net.invocation.RequestHandler.service(Unknown Source)
      at com.jinspired.jdbinsight.common.net.events.ServiceHandler.handle(Unknown Source)
      at com.jinspired.jdbinsight.common.net.events.Reactor.handle(Unknown Source)
      at com.jinspired.jdbinsight.common.net.events.Reactor.handleEvents(Unknown Source)
      at com.jinspired.jdbinsight.common.net.events.Reactor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:613)
      15:53:07,907 ERROR [ServiceObjectFactory] Cannot create service
      org.jboss.ws.metadata.wsdl.WSDLException: java.io.IOException: Server returned HTTP response code: 503 for URL: http://0.0.0.0:8080/portal-wsrp/ServiceDescriptionService?wsdl
      at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefinitionsFactory.java:198)
      at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:106)
      at org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:273)
      at org.jboss.ws.metadata.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:106)
      at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:112)
      at org.jboss.ws.jaxrpc.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:182)
      at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      at javax.naming.InitialContext.lookup(Unknown Source)
      at org.jboss.portal.wsrp.services.AbstractJNDIServiceFactory.getService(AbstractJNDIServiceFactory.java:121)
      at org.jboss.portal.wsrp.services.AbstractSOAPServiceFactory.getService(AbstractSOAPServiceFactory.java:84)
      at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getService(WSRPConsumerImpl.java:476)
      at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getServiceDescriptionService(WSRPConsumerImpl.java:452)
      at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getServiceDescriptionAndRegisterIfNeeded(WSRPConsumerImpl.java:494)
      at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.updateCachesIfNeeded(WSRPConsumerImpl.java:361)
      at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getPortletMap(WSRPConsumerImpl.java:275)
      at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getPortlets(WSRPConsumerImpl.java:141)
      at org.jboss.portal.federation.impl.FederatedPortletInvokerService.getPortlets(FederatedPortletInvokerService.java:77)
      at org.jboss.portal.federation.impl.FederatingPortletInvokerService.getPortlets(FederatingPortletInvokerService.java:117)
      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:585)
      at org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:99)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:197)
      at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.getAttribute(AbstractMBeanInvoker.java:362)
      at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:556)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.attributeinfo(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.process(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.spi.AbstractCollector.process(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.mbeanserver(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.process(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.spi.AbstractCollector.process(Unknown Source)
      at com.jinspired.jxinsight.server.cmdb.ext.jmx.Collector.collect(Unknown Source)
      at com.jinspired.jdbinsight.server.profiler.BasicProfiler.getRepositoryModel(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:585)
      at com.jinspired.jdbinsight.server.profiler.DefaultDispatcher.dispatch(Unknown Source)
      at com.jinspired.jdbinsight.common.net.invocation.RequestHandler.service(Unknown Source)
      at com.jinspired.jdbinsight.common.net.events.ServiceHandler.handle(Unknown Source)
      at com.jinspired.jdbinsight.common.net.events.Reactor.handle(Unknown Source)
      at com.jinspired.jdbinsight.common.net.events.Reactor.handleEvents(Unknown Source)
      at com.jinspired.jdbinsight.common.net.events.Reactor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:613)
      Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL: http://0.0.0.0:8080/portal-wsrp/ServiceDescriptionService?wsdl
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1149)
      at java.net.URL.openStream(URL.java:1007)
      at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefinitionsFactory.java:181)
      ... 52 more
      15:53:07,915 WARN [FederatingPortletInvokerService] PortletInvoker with id: self is not available.
      Reason: Problem getting service description for producer self
      Caused by:
      javax.naming.NamingException: Could not dereference object [Root exception is org.jboss.ws.metadata.wsdl.WSDLException: java.io.IOException: Server returned HTTP response code: 503 for URL: http://0.0.0.0:8080/portal-wsrp/ServiceDescriptionService?wsdl]


      Kind regards,

      William