Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-676

Proxies throw exception when used from many clients at the same time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.0.Beta2
    • 1.1.0.Beta1
    • Proxies
    • None

      This exception arises when running around 7+ clients. The HashComputer component is a stateless session bean.

      Stacktrace:

      2010/09/09 08:29:08:387 EDT [WARN ][Runner - 0] HOST qa05.mw.lab.eng.bos.redhat.com:rootProcess:weld-pastecode-perf - Error sampling data: <org.jboss.smartfrog.loaddriver.RequestProcessingException: Invalid response code: 500 Content: <html><head><title>JBoss Web/3.0.0-beta-6 - Error report</title><style><!--H1

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}

      H2

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}

      H3

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}

      BODY

      {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}

      B

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}

      P

      {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}

      A

      {color : black;}

      A.name

      {color : black;}

      HR

      {color : #525D76;}

      --></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: org.jboss.weld.examples.pastecode.session.org$jboss$weld$bean-flat-SessionBean-HashComputer_$$_WeldProxy cannot be cast to org.jboss.weld.conversation.ConversationImpl
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
      org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
      org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
      org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
      org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
      org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
      org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
      org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
      org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
      org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
      </pre></p><p><b>root cause</b> <pre>java.lang.ClassCastException: org.jboss.weld.examples.pastecode.session.org$jboss$weld$bean-flat-SessionBean-HashComputer_$$_WeldProxy cannot be cast to org.jboss.weld.conversation.ConversationImpl
      org.jboss.weld.servlet.BeanProvider.conversation(BeanProvider.java:65)
      org.jboss.weld.jsf.ConversationAwareViewHandler.getActionURL(ConversationAwareViewHandler.java:71)
      com.sun.faces.renderkit.html_basic.FormRenderer.getActionStr(FormRenderer.java:234)
      com.sun.faces.renderkit.html_basic.FormRenderer.encodeBegin(FormRenderer.java:137)
      javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:823)
      javax.faces.component.UIComponent.encodeAll(UIComponent.java:1611)
      javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616)
      com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:380)
      com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
      javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
      com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
      com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
      org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
      org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
      org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
      org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
      org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
      org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
      org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
      org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
      org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              mgencur Martin Gencur
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: