2 Replies Latest reply on Jan 5, 2010 9:08 AM by dagokent

    Email validation: java.lang.ClassCastException: org.jbpm.byt

      We are using the portal 2.7.2 (jdk 1.5) and jbp_identity_validation_workflow as subscription-mode.We get often an exception during the email validation process. Anyone else with this problem?

      We've tried with a new fresh portal installation (both 2.7.2 and 2.7.1) and we get the same exception.


      thanks
      Dago

      http://localhost:8080/portal/validateEmail/13/8a9917bff87ace8e26c0150bc150bed3

      exception

      javax.servlet.ServletException: java.lang.ClassCastException: org.jbpm.bytes.ByteArray_$$_javassist_56
      org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:278)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      root cause

      java.lang.ClassCastException: org.jbpm.bytes.ByteArray_$$_javassist_56
      org.jboss.portal.core.identity.services.workflow.impl.CreateUserAction.execute(CreateUserAction.java:51)
      org.jbpm.graph.def.Action.execute(Action.java:122)
      org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
      org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220)
      org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:190)
      org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174)
      org.jbpm.graph.def.Transition.take(Transition.java:138)
      org.jbpm.graph.def.Node.leave(Node.java:394)
      ...


        • 1. Re: Email validation: java.lang.ClassCastException: org.jbpm

          Hello DagoKent,

          i had this Exception when there's a wrong configuration in the identity-modul.

          exception
          
          javax.servlet.ServletException: java.lang.ClassCastException: org.jbpm.bytes.ByteArray_$$_javassist_52 cannot be cast to org.jboss.portal.core.identity.services.workflow.UserContainer
           org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:278)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
           org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          
          root cause
          
          java.lang.ClassCastException: org.jbpm.bytes.ByteArray_$$_javassist_52 cannot be cast to org.jboss.portal.core.identity.services.workflow.UserContainer
           org.jboss.portal.core.identity.services.workflow.impl.CreateUserAction.execute(CreateUserAction.java:51)
           org.jbpm.graph.def.Action.execute(Action.java:122)
           org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
           org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220)
           org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:190)
           org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174)
           org.jbpm.graph.def.Transition.take(Transition.java:138)
           org.jbpm.graph.def.Node.leave(Node.java:394)
          
          


          This files were the cause:

          base-path: jboss-portal-2.7.2/server/default/deploy/jboss-portal.sar

          files:
          /portal-identity.sar/conf/identity-ui-configuration.xml
          /portal-identity.sar/portal-identity.war/jsf/common/editProfileInfo.xhtml
          /portal-identity.sar/portal-identity.war/jsf/common/profile.xhtml
          /conf/identity/profile-config.xml



          I found that it is a bad idea to remove fields from identity-ui-configuration.xml.
          If you remove fields the data JBoss saves temporarly is damaged and is not useable to activate the user, even if you change your configuration to a working one. You hve to reregister to test if it is working.

          With a fresh installation this should not happen, but perhaps it helps to solve your problem.

          • 2. Re: Email validation: java.lang.ClassCastException: org.jbpm

            Thank you Andre!