1 Reply Latest reply on Jul 19, 2011 1:25 PM by Dino Trump

    jbpm5.x compatability with Sybase

    Sasi R Newbie

      While using Sybase as the underlying , we are getting the below issue as there is a BLOB column in ProcessInstanceInfo table. Is this a known issue and please let me know if you know the work around

       

      I understand its an issue of Sybase/Hibernate but its tied with jBPM 5.x usage

       

      1. javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not insert: [org.jbpm.persistence.processinstance.ProcessInstanceInfo]

            at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)

            at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:226)

            at org.jbpm.persistence.JpaProcessPersistenceContext.persist(JpaProcessPersistenceContext.java:22)

            at org.jbpm.persistence.processinstance.JPAProcessInstanceManager.addProcessInstance(JPAProcessInstanceManager.java:33)

            at org.jbpm.process.instance.AbstractProcessInstanceFactory.createProcessInstance(AbstractProcessInstanceFactory.java:36)

            at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:139)

            at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:119)

            at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1099)

            at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:302)

            at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:119)

            at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:38)

            at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:295)

            at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:219)

            at com.jbpm.sample.StartupServlet.init(StartupServlet.java:129)

            at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)

            at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:777)

            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)

            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:189)

            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:91)

            at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:92)

            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:325)

            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)

            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)

            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

            at java.lang.Thread.run(Thread.java:619)

      Caused by: org.hibernate.exception.GenericJDBCException: could not insert: [org.jbpm.persistence.processinstance.ProcessInstanceInfo]

            at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)

            at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)

            at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)

            at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:64)

            at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2186)

            at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2666)

            at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:71)

            at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)

            at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:321)

            at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)

            at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:130)

            at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:49)

            at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:154)

            at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:110)

            at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:61)

            at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:645)

            at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:619)

            at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:623)

            at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:220)

            ... 28 more

      Caused by: java.sql.SQLException: JZ006: Caught IOException: java.io.IOException: JZ0SL: Unsupported SQL type 2004.

            at com.sybase.jdbc3.jdbc.ErrorMessage.raiseError(Unknown Source)

            at com.sybase.jdbc3.jdbc.ErrorMessage.raiseErrorCheckDead(Unknown Source)

            at com.sybase.jdbc3.tds.Tds.a(Unknown Source)

            at com.sybase.jdbc3.tds.Tds.a(Unknown Source)

            at com.sybase.jdbc3.tds.Tds.language(Unknown Source)

            at com.sybase.jdbc3.jdbc.SybStatement.sendQuery(Unknown Source)

            at com.sybase.jdbc3.jdbc.SybPreparedStatement.sendQuery(Unknown Source)

            at com.sybase.jdbc3.jdbc.SybStatement.executeUpdate(Unknown Source)

            at com.sybase.jdbc3.jdbc.SybPreparedStatement.executeUpdate(Unknown Source)

            at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:365)

            at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:94)

            at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:57)

            ... 43 more