0 Replies Latest reply on Aug 18, 2010 2:17 PM by Mike Fox

    Could not determine type for: org.jbpm.db.hibernate.ConverterEnumType

    Mike Fox Newbie

      I'm trying to convert an application using Seam 2.2 and jBPM 3.2.3 to run on Websphere 7 due to a company mandate.  I've found my way through several issues so far, but this one has me stuck.  When I start the application I run into a hibernate MappingException on the CONVERTER_ column in JBPM_VARIABLEINSTANCE.  The research I've done indicates that this type of error usually is caused by a missing @Transient annotation, but I don't believe this field should be a transient.  Has anyone out there run in to a stack trace that looks like the one below while trying to deploy jBPM?  If so, how did you get by it?

       

      com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E: Exception caught while initializing context: {0}
                                       org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.bpm.jbpm
              at org.jboss.seam.Component.newInstance(Component.java:2144)
              at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
              at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
              at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:116)
              at org.jboss.seam.init.Initialization.init(Initialization.java:740)
              at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
              at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1678)
              at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:371)
              at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:298)
              at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
              at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
              at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)
              at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)
              at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
              at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
              at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1122)
              at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1315)
              at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:619)
              at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:940)
              at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)
              at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2046)
              at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439)
              at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
              at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382)
              at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:110)
              at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:949)
              at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
              at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
      Caused by: java.lang.RuntimeException: Could not deploy a process definition.
              at uk.co.iblocks.jbpm.JbpmExtensions.installProcessDefinitions(JbpmExtensions.java:437)
              at uk.co.iblocks.jbpm.JbpmExtensions.startup(JbpmExtensions.java:352)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
              at java.lang.reflect.Method.invoke(Method.java:600)
              at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
              at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
              at org.jboss.seam.Component.callComponentMethod(Component.java:2249)
              at org.jboss.seam.Component.callCreateMethod(Component.java:2172)
              at org.jboss.seam.Component.newInstance(Component.java:2132)
              ... 27 more
      Caused by: org.hibernate.MappingException: Could not determine type for: org.jbpm.db.hibernate.ConverterEnumType, at table: JBPM_VARIABLEINSTANCE, for columns: [org.hibernate.mapping.Column(CONVERTER_)]
              at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:292)
              at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:276)
              at org.hibernate.mapping.Property.isValid(Property.java:207)
              at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:458)
              at org.hibernate.mapping.RootClass.validate(RootClass.java:215)
              at org.hibernate.cfg.Configuration.validate(Configuration.java:1135)
              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1320)
              at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
              at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95)
              at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:99)
              at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:341)
              at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:571)
              at uk.co.iblocks.jbpm.JbpmExtensions$ProcessDescriptor.<init>(JbpmExtensions.java:84)
              at uk.co.iblocks.jbpm.JbpmExtensions.installProcessDefinitions(JbpmExtensions.java:404)
              ... 37 more

       

       

      Thanks,

      Mike