7 Replies Latest reply on Apr 10, 2007 9:30 AM by Fredrik Forsberg

    java.lang.ClassCastException in ContextImpl

    Fredrik Forsberg Newbie

      I am trying to retrieve a context for the portalobjectcontainer

      public class PortalService {
      
       private PortalObject po;
       private org.jboss.portal.core.model.portal.Context ctx;
       private org.jboss.portal.core.model.portal.PortalObjectContainer container;
       public PortalService(){
       try{
       MBeanServer mbeanServer = MBeanServerLocator.locateJBoss();
       container = (PortalObjectContainer)MBeanProxy.get(PortalObjectContainer.class, new ObjectName("portal:container=PortalObject"), mbeanServer);
       System.out.println("container=" + container);
       ctx = container.getContext();
       }catch ( Exception ex ) {
       ex.printStackTrace();
       }
       }
      }


      but the line

      ctx = container.getContext();


      gives me an

      java.lang.ClassCastException: org.jboss.portal.core.impl.model.portal.ContextImpl

      I got this code from a post in this forum some time ago and have made it work but when I tried it again in new class this happens.

      thanks

        • 1. Re: java.lang.ClassCastException in ContextImpl
          Fredrik Forsberg Newbie

          I am using portal 2.4.1 by the way and this is the source of the code part:

          http://www.jboss.com/index.html?module=bb&op=viewtopic&t=87304[/url]

          • 2. Re: java.lang.ClassCastException in ContextImpl
            Fredrik Forsberg Newbie

            I should mention that I get a reference to the container. The value when I do a System.out.print is

            MBeanProxy for portal:container=PortalObject (Agent ID: my.domain.com_1175577884662)


            but when I try to get the context with

            myContainer.getContext()


            I get the

            2007-04-03 07:26:38,434 ERROR [STDERR] java.lang.ClassCastException: org.jboss.portal.core.impl.model.portal.ContextImpl
            2007-04-03 07:26:38,437 ERROR [STDERR] at $Proxy177.getContext(Unknown Source)
            2007-04-03 07:26:38,437 ERROR [STDERR] at com.yourstardom.service.PortalService.createPortalPage(PortalService.java:70)
            2007-04-03 07:26:38,437 ERROR [STDERR] at com.yourstardom.action.PostAction.createuserhome(PostAction.java:78)
            2007-04-03 07:26:38,437 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            2007-04-03 07:26:38,437 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            2007-04-03 07:26:38,437 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-04-03 07:26:38,481 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            2007-04-03 07:26:38,481 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
            2007-04-03 07:26:38,482 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
            2007-04-03 07:26:38,482 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
            2007-04-03 07:26:38,482 ERROR [STDERR] at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:47)
            2007-04-03 07:26:38,482 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
            2007-04-03 07:26:38,482 ERROR [STDERR] at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:37)
            2007-04-03 07:26:38,482 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
            2007-04-03 07:26:38,482 ERROR [STDERR] at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34)
            2007-04-03 07:26:38,482 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
            2007-04-03 07:26:38,482 ERROR [STDERR] at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
            2007-04-03 07:26:38,482 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
            2007-04-03 07:26:38,482 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
            2007-04-03 07:26:38,482 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
            2007-04-03 07:26:38,483 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
            2007-04-03 07:26:38,483 ERROR [STDERR] at com.yourstardom.action.PostAction_$$_javassist_23.createuserhome(PostAction_$$_javassist_23.java)
            2007-04-03 07:26:38,483 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            2007-04-03 07:26:38,483 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            2007-04-03 07:26:38,483 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-04-03 07:26:38,483 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            2007-04-03 07:26:38,483 ERROR [STDERR] at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
            2007-04-03 07:26:38,483 ERROR [STDERR] at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58)
            2007-04-03 07:26:38,483 ERROR [STDERR] at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75)
            2007-04-03 07:26:38,483 ERROR [STDERR] at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
            2007-04-03 07:26:38,484 ERROR [STDERR] at javax.faces.component.UICommand.broadcast(UICommand.java:106)
            2007-04-03 07:26:38,484 ERROR [STDERR] at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
            2007-04-03 07:26:38,484 ERROR [STDERR] at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
            2007-04-03 07:26:38,484 ERROR [STDERR] at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
            2007-04-03 07:26:38,484 ERROR [STDERR] at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
            2007-04-03 07:26:38,484 ERROR [STDERR] at org.apache.myfaces.portlet.MyFacesGenericPortlet.processAction(MyFacesGenericPortlet.java:220)
            2007-04-03 07:26:38,484 ERROR [STDERR] at org.jboss.portal.portlet.container.PortletContainer.invokeAction(PortletContainer.java:493)
            2007-04-03 07:26:38,484 ERROR [STDERR] at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:429)
            2007-04-03 07:26:38,484 ERROR [STDERR] at org.jboss.portal.portlet.container.PortletContainerInvoker$1.dispatch(PortletContainerInvoker.java:144)
            2007-04-03 07:26:38,484 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:223)
            2007-04-03 07:26:38,484 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
            2007-04-03 07:26:38,485 ERROR [STDERR] at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:85)
            2007-04-03 07:26:38,485 ERROR [STDERR] at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
            2007-04-03 07:26:38,485 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
            2007-04-03 07:26:38,485 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:102)
            2007-04-03 07:26:38,485 ERROR [STDERR] at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
            2007-04-03 07:26:38,485 ERROR [STDERR] at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java)
            2007-04-03 07:26:38,485 ERROR [STDERR] at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
            2007-04-03 07:26:38,485 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
            2007-04-03 07:26:38,485 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,485 ERROR [STDERR] at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:50)
            2007-04-03 07:26:38,485 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
            2007-04-03 07:26:38,486 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,486 ERROR [STDERR] at org.jboss.portal.portlet.aspects.portlet.ProducerCacheInterceptor.invoke(ProducerCacheInterceptor.java:46)
            2007-04-03 07:26:38,486 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
            2007-04-03 07:26:38,486 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,486 ERROR [STDERR] at org.jboss.portal.portlet.aspects.portlet.ModesInterceptor.invoke(ModesInterceptor.java:60)
            2007-04-03 07:26:38,486 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
            2007-04-03 07:26:38,486 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,486 ERROR [STDERR] at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:46)
            2007-04-03 07:26:38,486 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
            2007-04-03 07:26:38,486 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,486 ERROR [STDERR] at org.jboss.portal.portlet.aspects.portlet.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:55)
            2007-04-03 07:26:38,486 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
            2007-04-03 07:26:38,487 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,487 ERROR [STDERR] at org.jboss.portal.portlet.aspects.portlet.PortletSessionSynchronizationInterceptor.invoke(PortletSessionSynchronizationInterceptor.java:77)
            2007-04-03 07:26:38,487 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
            2007-04-03 07:26:38,487 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,487 ERROR [STDERR] at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:141)
            2007-04-03 07:26:38,487 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            2007-04-03 07:26:38,487 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            2007-04-03 07:26:38,487 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-04-03 07:26:38,487 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            2007-04-03 07:26:38,487 ERROR [STDERR] at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:99)
            2007-04-03 07:26:38,487 ERROR [STDERR] at org.jboss.portal.server.servlet.CommandServlet.doPost(CommandServlet.java:156)
            2007-04-03 07:26:38,487 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            2007-04-03 07:26:38,488 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            2007-04-03 07:26:38,488 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            2007-04-03 07:26:38,488 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            2007-04-03 07:26:38,488 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
            2007-04-03 07:26:38,488 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
            2007-04-03 07:26:38,488 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
            2007-04-03 07:26:38,488 ERROR [STDERR] at org.jboss.portal.portlet.impl.spi.AbstractRequestContext.include(AbstractRequestContext.java:194)
            2007-04-03 07:26:38,488 ERROR [STDERR] at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$1.include(ContextDispatcherInterceptor.java:69)
            2007-04-03 07:26:38,488 ERROR [STDERR] at org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:79)
            2007-04-03 07:26:38,488 ERROR [STDERR] at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:75)
            2007-04-03 07:26:38,488 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
            2007-04-03 07:26:38,488 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,489 ERROR [STDERR] at org.jboss.portal.portlet.aspects.portlet.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:49)
            2007-04-03 07:26:38,489 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
            2007-04-03 07:26:38,489 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,489 ERROR [STDERR] at org.jboss.portal.portlet.aspects.portlet.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:65)
            2007-04-03 07:26:38,489 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
            2007-04-03 07:26:38,489 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,489 ERROR [STDERR] at org.jboss.portal.portlet.aspects.portlet.ValveInterceptor.invoke(ValveInterceptor.java:57)
            2007-04-03 07:26:38,489 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
            2007-04-03 07:26:38,489 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,489 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
            2007-04-03 07:26:38,489 ERROR [STDERR] at org.jboss.portal.portlet.container.PortletContainerInvoker.invoke(PortletContainerInvoker.java:115)
            2007-04-03 07:26:38,490 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            2007-04-03 07:26:38,490 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            2007-04-03 07:26:38,490 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-04-03 07:26:38,490 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            2007-04-03 07:26:38,490 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            2007-04-03 07:26:38,490 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            2007-04-03 07:26:38,490 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            2007-04-03 07:26:38,490 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-04-03 07:26:38,490 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            2007-04-03 07:26:38,490 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-04-03 07:26:38,490 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            2007-04-03 07:26:38,491 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-04-03 07:26:38,491 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            2007-04-03 07:26:38,491 ERROR [STDERR] at $Proxy64.invoke(Unknown Source)
            2007-04-03 07:26:38,491 ERROR [STDERR] at org.jboss.portal.portlet.state.producer.StatefulPortletInvoker.invoke(StatefulPortletInvoker.java:250)
            2007-04-03 07:26:38,491 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            2007-04-03 07:26:38,491 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            2007-04-03 07:26:38,491 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-04-03 07:26:38,491 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            2007-04-03 07:26:38,491 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            2007-04-03 07:26:38,491 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            2007-04-03 07:26:38,491 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            2007-04-03 07:26:38,492 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-04-03 07:26:38,492 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            2007-04-03 07:26:38,492 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-04-03 07:26:38,492 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            2007-04-03 07:26:38,492 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-04-03 07:26:38,492 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            2007-04-03 07:26:38,492 ERROR [STDERR] at $Proxy66.invoke(Unknown Source)
            2007-04-03 07:26:38,492 ERROR [STDERR] at org.jboss.portal.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:140)
            2007-04-03 07:26:38,492 ERROR [STDERR] at org.jboss.portal.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:156)
            2007-04-03 07:26:38,492 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            2007-04-03 07:26:38,492 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            2007-04-03 07:26:38,492 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-04-03 07:26:38,493 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            2007-04-03 07:26:38,493 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            2007-04-03 07:26:38,493 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            2007-04-03 07:26:38,493 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            2007-04-03 07:26:38,493 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-04-03 07:26:38,493 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            2007-04-03 07:26:38,493 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-04-03 07:26:38,493 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            2007-04-03 07:26:38,493 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-04-03 07:26:38,493 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            2007-04-03 07:26:38,493 ERROR [STDERR] at $Proxy68.invoke(Unknown Source)
            2007-04-03 07:26:38,493 ERROR [STDERR] at org.jboss.portal.portlet.test.TestPortletInvoker$1.dispatch(TestPortletInvoker.java:62)
            2007-04-03 07:26:38,493 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:223)
            2007-04-03 07:26:38,494 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
            2007-04-03 07:26:38,494 ERROR [STDERR] at org.jboss.portal.portlet.aspects.portlet.PortalSessionSynchronizationInterceptor.invoke(PortalSessionSynchronizationInterceptor.java:86)
            2007-04-03 07:26:38,494 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
            2007-04-03 07:26:38,494 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,494 ERROR [STDERR] at org.jboss.portal.portlet.aspects.portlet.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:167)
            2007-04-03 07:26:38,494 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
            2007-04-03 07:26:38,494 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,494 ERROR [STDERR] at org.jboss.portal.core.model.instance.InstanceSecurityInterceptor.invoke(InstanceSecurityInterceptor.java:78)
            2007-04-03 07:26:38,494 ERROR [STDERR] at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
            2007-04-03 07:26:38,494 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,495 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
            2007-04-03 07:26:38,495 ERROR [STDERR] at org.jboss.portal.portlet.test.TestPortletInvoker.invoke(TestPortletInvoker.java:122)
            2007-04-03 07:26:38,495 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            2007-04-03 07:26:38,495 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            2007-04-03 07:26:38,495 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-04-03 07:26:38,495 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            2007-04-03 07:26:38,495 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            2007-04-03 07:26:38,495 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            2007-04-03 07:26:38,495 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            2007-04-03 07:26:38,495 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-04-03 07:26:38,495 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            2007-04-03 07:26:38,496 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-04-03 07:26:38,496 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            2007-04-03 07:26:38,496 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-04-03 07:26:38,496 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            2007-04-03 07:26:38,496 ERROR [STDERR] at $Proxy50.invoke(Unknown Source)
            2007-04-03 07:26:38,496 ERROR [STDERR] at org.jboss.portal.core.impl.model.instance.InstanceImpl.invoke(InstanceImpl.java:274)
            2007-04-03 07:26:38,496 ERROR [STDERR] at org.jboss.portal.core.command.InvokeWindowActionCommand.execute(InvokeWindowActionCommand.java:120)
            2007-04-03 07:26:38,496 ERROR [STDERR] at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:84)
            2007-04-03 07:26:38,496 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
            2007-04-03 07:26:38,496 ERROR [STDERR] at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:168)
            2007-04-03 07:26:38,496 ERROR [STDERR] at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
            2007-04-03 07:26:38,497 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,497 ERROR [STDERR] at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:103)
            2007-04-03 07:26:38,497 ERROR [STDERR] at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
            2007-04-03 07:26:38,497 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,497 ERROR [STDERR] at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
            2007-04-03 07:26:38,497 ERROR [STDERR] at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
            2007-04-03 07:26:38,497 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,497 ERROR [STDERR] at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
            2007-04-03 07:26:38,497 ERROR [STDERR] at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
            2007-04-03 07:26:38,497 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,497 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
            2007-04-03 07:26:38,498 ERROR [STDERR] at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
            2007-04-03 07:26:38,498 ERROR [STDERR] at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:92)
            2007-04-03 07:26:38,498 ERROR [STDERR] at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:79)
            2007-04-03 07:26:38,498 ERROR [STDERR] at org.jboss.portal.core.CoreController.handle(CoreController.java:130)
            2007-04-03 07:26:38,498 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            2007-04-03 07:26:38,498 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            2007-04-03 07:26:38,498 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            2007-04-03 07:26:38,498 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
            2007-04-03 07:26:38,498 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
            2007-04-03 07:26:38,498 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            2007-04-03 07:26:38,498 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            2007-04-03 07:26:38,498 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-04-03 07:26:38,499 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            2007-04-03 07:26:38,499 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            2007-04-03 07:26:38,499 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            2007-04-03 07:26:38,499 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            2007-04-03 07:26:38,499 ERROR [STDERR] at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
            2007-04-03 07:26:38,499 ERROR [STDERR] at $Proxy175.handle(Unknown Source)
            2007-04-03 07:26:38,499 ERROR [STDERR] at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:80)
            2007-04-03 07:26:38,499 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
            2007-04-03 07:26:38,499 ERROR [STDERR] at org.jboss.portal.server.aspects.server.NavigationInterceptor.invoke(NavigationInterceptor.java:65)
            2007-04-03 07:26:38,499 ERROR [STDERR] at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
            2007-04-03 07:26:38,499 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,499 ERROR [STDERR] at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:65)
            2007-04-03 07:26:38,500 ERROR [STDERR] at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
            2007-04-03 07:26:38,500 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,500 ERROR [STDERR] at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:73)
            2007-04-03 07:26:38,500 ERROR [STDERR] at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
            2007-04-03 07:26:38,500 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,500 ERROR [STDERR] at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:175)
            2007-04-03 07:26:38,500 ERROR [STDERR] at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
            2007-04-03 07:26:38,500 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,500 ERROR [STDERR] at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:84)
            2007-04-03 07:26:38,500 ERROR [STDERR] at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
            2007-04-03 07:26:38,500 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,500 ERROR [STDERR] at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
            2007-04-03 07:26:38,500 ERROR [STDERR] at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
            2007-04-03 07:26:38,501 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
            2007-04-03 07:26:38,501 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
            2007-04-03 07:26:38,501 ERROR [STDERR] at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
            2007-04-03 07:26:38,501 ERROR [STDERR] at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
            2007-04-03 07:26:38,501 ERROR [STDERR] at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
            2007-04-03 07:26:38,501 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
            2007-04-03 07:26:38,501 ERROR [STDERR] at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
            2007-04-03 07:26:38,501 ERROR [STDERR] at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:295)
            2007-04-03 07:26:38,501 ERROR [STDERR] at org.jboss.portal.server.servlet.PortalServlet.doPost(PortalServlet.java:168)
            2007-04-03 07:26:38,501 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            2007-04-03 07:26:38,501 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            2007-04-03 07:26:38,502 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            2007-04-03 07:26:38,502 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            2007-04-03 07:26:38,502 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            2007-04-03 07:26:38,502 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            2007-04-03 07:26:38,502 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            2007-04-03 07:26:38,502 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            2007-04-03 07:26:38,502 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            2007-04-03 07:26:38,502 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
            2007-04-03 07:26:38,502 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
            2007-04-03 07:26:38,502 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
            2007-04-03 07:26:38,502 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            2007-04-03 07:26:38,502 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            2007-04-03 07:26:38,503 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
            2007-04-03 07:26:38,503 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            2007-04-03 07:26:38,503 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            2007-04-03 07:26:38,503 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
            2007-04-03 07:26:38,503 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
            2007-04-03 07:26:38,503 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
            2007-04-03 07:26:38,503 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
            2007-04-03 07:26:38,503 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
            




            • 3. conflict between org.jboss.mx.util packages?
              Fredrik Forsberg Newbie

              I noticed that the package org.jboss.mx.util is located in different jar files
              in my jboss installation.

              jboss/client/jbossall-client.jar
              jboss/client/jmx-client.jar
              jboss/lib/jboss-jmx.jar

              Because the container object is represented by a MBeanProxy object (located in these packages) and the ClassCastException occurs in that class, I am beginning to think that there is some sort of conflict going on. I tried to remove

              jboss/client/jbossall-client.jar
              jboss/client/jmx-client.jar

              to see what happened. No luck. Still the ClassCastException.

              Why this exception? I dont even have to assign the object to a reference. Just by doing

              container.getContext()


              an exception is thrown. How can I retrieve the context from the PortalObjectContainer?


              • 4. Re: java.lang.ClassCastException in ContextImpl
                Fredrik Forsberg Newbie

                I have debugged my code and jboss-jmx source code and found that there might be something with the transaction. I have not encapsulated the code in a transaction because there is already one started from jsf/jboss seam.



                here is a stack trace



                2007-04-06 00:58:19,495 INFO [STDOUT] CONTAINER=MBeanProxy for portal:container=PortalObject (Agent ID: swolly.abrahamsson.com_1175812642250)
                2007-04-06 00:59:46,703 DEBUG [org.hibernate.jdbc.JDBCContext] Transaction is marked for rollback; skipping Synchronization registration
                2007-04-06 00:59:46,704 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 4816134089535488
                2007-04-06 01:01:23,069 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000
                2007-04-06 01:03:45,534 ERROR [STDERR] org.hibernate.HibernateException: Unable to register cleanup Synchronization with TransactionManager
                 at org.hibernate.context.JTASessionContext.currentSession(JTASessionContext.java:92)
                 at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:542)
                 at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObject(PersistentPortalObjectContainer.java:241)
                 at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getContext(PersistentPortalObjectContainer.java:255)
                 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.JMXInvocationHandler.invoke(JMXInvocationHandler.java:225)
                 at $Proxy178.getContext(Unknown Source)
                 at com.yourstardom.service.PortalService.createPortalPage(PortalService.java:71)
                 at com.yourstardom.action.PostAction.createuserhome(PostAction.java:78)
                 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.seam.util.Reflections.invoke(Reflections.java:20)
                 at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
                 at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:47)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
                 at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:37)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
                 at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
                 at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
                 at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
                 at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
                 at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
                 at com.yourstardom.action.PostAction_$$_javassist_23.createuserhome(PostAction_$$_javassist_23.java)
                 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.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
                 at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58)
                 at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75)
                 at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
                 at javax.faces.component.UICommand.broadcast(UICommand.java:106)
                 at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
                 at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
                 at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
                 at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
                 at org.apache.myfaces.portlet.MyFacesGenericPortlet.processAction(MyFacesGenericPortlet.java:220)
                 at org.jboss.portal.portlet.container.PortletContainer.invokeAction(PortletContainer.java:493)
                 at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:429)
                 at org.jboss.portal.portlet.container.PortletContainerInvoker$1.dispatch(PortletContainerInvoker.java:144)
                 at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:223)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
                 at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:85)
                 at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
                 at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
                 at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:102)
                 at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
                 at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java)
                 at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:50)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.portlet.aspects.portlet.ProducerCacheInterceptor.invoke(ProducerCacheInterceptor.java:46)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.portlet.aspects.portlet.ModesInterceptor.invoke(ModesInterceptor.java:60)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:46)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.portlet.aspects.portlet.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:55)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.portlet.aspects.portlet.PortletSessionSynchronizationInterceptor.invoke(PortletSessionSynchronizationInterceptor.java:77)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:141)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 a
                2007-04-06 01:03:45,553 ERROR [STDERR] t java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:99)
                 at org.jboss.portal.server.servlet.CommandServlet.doPost(CommandServlet.java:156)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
                 at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
                 at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
                 at org.jboss.portal.portlet.impl.spi.AbstractRequestContext.include(AbstractRequestContext.java:194)
                 at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$1.include(ContextDispatcherInterceptor.java:69)
                 at org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:79)
                 at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:75)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.portlet.aspects.portlet.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:49)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.portlet.aspects.portlet.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:65)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.portlet.aspects.portlet.ValveInterceptor.invoke(ValveInterceptor.java:57)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
                 at org.jboss.portal.portlet.container.PortletContainerInvoker.invoke(PortletContainerInvoker.java:115)
                 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.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy64.invoke(Unknown Source)
                 at org.jboss.portal.portlet.state.producer.StatefulPortletInvoker.invoke(StatefulPortletInvoker.java:250)
                 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.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy66.invoke(Unknown Source)
                 at org.jboss.portal.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:140)
                 at org.jboss.portal.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:156)
                 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.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy68.invoke(Unknown Source)
                 at org.jboss.portal.portlet.test.TestPortletInvoker$1.dispatch(TestPortletInvoker.java:62)
                 at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:223)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
                 at org.jboss.portal.portlet.aspects.portlet.PortalSessionSynchronizationInterceptor.invoke(PortalSessionSynchronizationInterceptor.java:86)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.portlet.aspects.portlet.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:167)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.core.model.instance.InstanceSecurityInterceptor.invoke(InstanceSecurityInterceptor.java:78)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
                 at org.jboss.portal.portlet.test.TestPortletInvoker.invoke(TestPortletInvoker.java:122)
                 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.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy50.invoke(Unknown Source)
                 at org
                2007-04-06 01:03:45,562 ERROR [STDERR] .jboss.portal.core.impl.model.instance.InstanceImpl.invoke(InstanceImpl.java:274)
                 at org.jboss.portal.core.command.InvokeWindowActionCommand.execute(InvokeWindowActionCommand.java:120)
                 at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:84)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
                 at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:168)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:103)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
                 at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
                 at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:92)
                 at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:79)
                 at org.jboss.portal.core.CoreController.handle(CoreController.java:130)
                 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.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
                 at $Proxy175.handle(Unknown Source)
                 at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:80)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
                 at org.jboss.portal.server.aspects.server.NavigationInterceptor.invoke(NavigationInterceptor.java:65)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:65)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:73)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:175)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:84)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
                 at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
                 at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                 at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
                 at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
                 at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                 at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
                 at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:295)
                 at org.jboss.portal.server.servlet.PortalServlet.doPost(PortalServlet.java:168)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                 at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                 at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                 at java.lang.Thread.run(Thread.java:595)
                



                If I put this in a new transaction I get the "transaction already started" exception so I thought I could use the one already started.



                • 5. Re: java.lang.ClassCastException in ContextImpl
                  Fredrik Forsberg Newbie

                  I have realized that the transaction exception is not the issue. It happened due to time out when I was debugging the code. I increased it and now its not thrown anymore.

                  I still have no clue about the classcastexception because the exception is thrown inside the proxyObject for the "portal:container=PortalObject" mbean and the sourcecode is not available for that object. I think I need some serious guidance here. Where can I get it?

                  /Fredrik

                  • 6. Re: java.lang.ClassCastException in ContextImpl
                    Fredrik Forsberg Newbie

                    Can there be some sort of class loading problem?

                    Here's something I read just now
                    http://www.onjava.com/pub/a/onjava/2003/11/12/classloader.html

                    In the case of a classloader problem maybe the ContextImpl class exists in different packages loaded by different classloaders? I need to find out why the wrong version of ContextImpl is loaded and how to get the correct one to be loaded. I saw in the debugger that the server was referring to the "jboss-ejb3-all.jar" file (provided by seam library) for the mx.util package.
                    Maybe the MBean server tries to cast to this object but has another bytecode version?

                    Any experts here in this field that are willing to sort this out?

                    • 7. SOLVED
                      Fredrik Forsberg Newbie

                      Just as I thought. I had included the portal-api.jars in my portlet-war file. This made the code confused because the ContextImpl was already loaded from the jboss-portal.sar. Therefor the ClassCastException.