4 Replies Latest reply on Nov 8, 2005 7:35 AM by Ronald van Kuijk

    integrating webapp changes into 3.1a1

    Ronald van Kuijk Master

      Hi,

      I'm integrating my webapp enhancements into 3.1a1. this is comming along nice, but when I try to deploy my own process from the gpd to 3.1a1, I get the following error:

      04:48:23,406 DEBUG [ProcessArchiveDeployer] starting transaction to deploy process ProcessDefinition(dpaanvraag)
      04:48:23,421 INFO [STDOUT] org.hibernate.PropertyAccessException: could not get a field value by reflection getter of org.jb
      pm.graph.def.ProcessDefinition.events
       at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:34)
       at org.hibernate.tuple.AbstractTuplizer.getPropertyValue(AbstractTuplizer.java:195)
       at org.hibernate.persister.entity.BasicEntityPersister.getPropertyValue(BasicEntityPersister.java:2915)
       at org.hibernate.engine.Cascades.cascade(Cascades.java:817)
       at org.hibernate.event.def.AbstractSaveEventListener.cascadeBeforeSave(AbstractSaveEventListener.java:331)
       at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:213)
       at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:159)
       at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:104)
       at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventLi
      stener.java:184)
       at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
       at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:1
      73)
       at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
       at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:69)
       at org.hibernate.impl.SessionImpl.save(SessionImpl.java:467)
       at org.hibernate.impl.SessionImpl.save(SessionImpl.java:462)
       at org.jbpm.db.GraphSession.saveProcessDefinition(GraphSession.java:51)
       at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployProcessDefinition(ProcessArchiveDeployer.java:87)
       at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployZipInputStream(ProcessArchiveDeployer.java:50)
       at org.jbpm.webapp.servlet.DeployServlet.doGet(DeployServlet.java:47)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       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.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:25)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jbpm.webapp.filter.PersistenceFilter.doFilter(PersistenceFilter.java:28)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jbpm.webapp.filter.ContextFilter.doFilter(ContextFilter.java:19)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:38)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
       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.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       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:856)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
       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(Unknown Source)
      Caused by: java.lang.IllegalArgumentException
       at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(Unknown Source)
       at sun.reflect.UnsafeObjectFieldAccessorImpl.get(Unknown Source)
       at java.lang.reflect.Field.get(Unknown Source)
       at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:31)
       ... 51 more
      04:48:23,421 ERROR [GraphSession] org.hibernate.PropertyAccessException: could not get a field value by reflection getter of
      org.jbpm.graph.def.ProcessDefinition.events
      04:48:23,421 INFO [STDOUT] java.lang.RuntimeException: couldn't save process definition 'ProcessDefinition(dpaanvraag)'
      04:48:23,421 INFO [STDOUT] at org.jbpm.db.GraphSession.saveProcessDefinition(GraphSession.java:55)
      04:48:23,421 INFO [STDOUT] at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployProcessDefinition(ProcessArchiveDeployer.ja
      va:87)
      04:48:23,421 INFO [STDOUT] at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployZipInputStream(ProcessArchiveDeployer.java:
      50)
      04:48:23,421 INFO [STDOUT] at org.jbpm.webapp.servlet.DeployServlet.doGet(DeployServlet.java:47)
      04:48:23,421 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      04:48:23,421 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.ja
      va:252)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      04:48:23,421 INFO [STDOUT] at org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:25)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.ja
      va:202)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      04:48:23,421 INFO [STDOUT] at org.jbpm.webapp.filter.PersistenceFilter.doFilter(PersistenceFilter.java:28)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.ja
      va:202)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      04:48:23,421 INFO [STDOUT] at org.jbpm.webapp.filter.ContextFilter.doFilter(ContextFilter.java:19)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.ja
      va:202)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      04:48:23,421 INFO [STDOUT] at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:38)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.ja
      va:202)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      04:48:23,421 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.ja
      va:202)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      04:48:23,421 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      04:48:23,421 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.jav
      a:153)
      04:48:23,421 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      04:48:23,421 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      04:48:23,421 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      04:48:23,421 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Pr
      otocol.java:744)
      04:48:23,421 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      04:48:23,421 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      04:48:23,421 INFO [STDOUT] at java.lang.Thread.run(Unknown Source)
      04:48:23,421 INFO [STDOUT] Caused by: org.hibernate.PropertyAccessException: could not get a field value by reflection gette
      r of org.jbpm.graph.def.ProcessDefinition.events
      04:48:23,421 INFO [STDOUT] at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java
      :34)
      04:48:23,421 INFO [STDOUT] at org.hibernate.tuple.AbstractTuplizer.getPropertyValue(AbstractTuplizer.java:195)
      04:48:23,421 INFO [STDOUT] at org.hibernate.persister.entity.BasicEntityPersister.getPropertyValue(BasicEntityPersister.
      java:2915)
      04:48:23,437 INFO [STDOUT] at org.hibernate.engine.Cascades.cascade(Cascades.java:817)
      04:48:23,437 INFO [STDOUT] at org.hibernate.event.def.AbstractSaveEventListener.cascadeBeforeSave(AbstractSaveEventListe
      ner.java:331)
      04:48:23,437 INFO [STDOUT] at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEvent
      Listener.java:213)
      04:48:23,437 INFO [STDOUT] at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.ja
      va:159)
      04:48:23,437 INFO [STDOUT] at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventLis
      tener.java:104)
      04:48:23,437 INFO [STDOUT] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(De
      faultSaveOrUpdateEventListener.java:184)
      04:48:23,437 INFO [STDOUT] at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSav
      eEventListener.java:33)
      04:48:23,437 INFO [STDOUT] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUp
      dateEventListener.java:173)
      04:48:23,437 INFO [STDOUT] at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListe
      ner.java:27)
      04:48:23,437 INFO [STDOUT] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdat
      eEventListener.java:69)
      04:48:23,437 INFO [STDOUT] at org.hibernate.impl.SessionImpl.save(SessionImpl.java:467)
      04:48:23,437 INFO [STDOUT] at org.hibernate.impl.SessionImpl.save(SessionImpl.java:462)
      04:48:23,437 INFO [STDOUT] at org.jbpm.db.GraphSession.saveProcessDefinition(GraphSession.java:51)
      04:48:23,437 INFO [STDOUT] ... 36 more
      04:48:23,437 INFO [STDOUT] Caused by: java.lang.IllegalArgumentException
      04:48:23,437 INFO [STDOUT] at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(Unknown Source)
      04:48:23,437 INFO [STDOUT] at sun.reflect.UnsafeObjectFieldAccessorImpl.get(Unknown Source)
      04:48:23,437 INFO [STDOUT] at java.lang.reflect.Field.get(Unknown Source)
      04:48:23,437 INFO [STDOUT] at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java
      :31)
      04:48:23,437 INFO [STDOUT] ... 51 more
      04:48:23,437 DEBUG [PersistenceContext] committing transaction


      I'm kind of stuck now testing things. Is it because it is an alpha version? Or can there be any other cause?

      Ronald

        • 1. Re: integrating webapp changes into 3.1a1
          Tom Baeyens Master

          did you change the hibernate mapping files ?

          seems as if you changed the field access from field to property. meaning that your stacktrace indicates that hibernate is using a getter where i would expect that hibernate should use direct field access...

          let me know how it goes.

          regards, tom.

          • 2. Re: integrating webapp changes into 3.1a1
            Ronald van Kuijk Master

            afaik, no changes in the hibernate config. To make sure I'll compare with the version in cvs.

            Now I think of it, there is neither a property called event, nor a getter/setter with that name. I'll look further in this direction

            • 3. Re: integrating webapp changes into 3.1a1
              Ronald van Kuijk Master

              There is more with this ProcessDefinition. A clean checkout of 3.1a1 (or head) gives me the following error when just logging in.

              12:51:41,781 WARN [PARSER] *** WARNING: Keyword 'end' is being intepreted as an identifier due to: expecting IDENT, found '
              end'
              12:51:41,812 INFO [STDOUT] java.lang.ClassCastException: org.jbpm.graph.def.ProcessDefinition
              12:51:41,812 INFO [STDOUT] at org.jbpm.db.GraphSession.findLatestProcessDefinitions(GraphSession.java:134)
              12:51:41,812 INFO [STDOUT] at org.jbpm.webapp.bean.HomeBean.getLatestProcessDefinitions(HomeBean.java:31)
              12:51:41,812 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              12:51:41,812 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              12:51:41,812 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              12:51:41,812 INFO [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
              12:51:41,812 INFO [STDOUT] at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:400)
              12:51:41,812 INFO [STDOUT] at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:71)
              12:51:41,812 INFO [STDOUT] at org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532)
              12:51:41,812 INFO [STDOUT] at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
              12:51:41,812 DEBUG [JbpmSessionInterceptor] removing jbpm sessions from the context
              12:51:41,843 INFO [STDOUT] at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:380)
              12:51:41,843 DEBUG [HibernateSessionInterceptor] removing hibernate session from the context
              12:51:41,843 INFO [STDOUT] at javax.faces.component.UIData.getValue(UIData.java:779)
              12:51:41,843 DEBUG [HibernateSessionInterceptor] removing connection from the context
              12:51:41,843 INFO [STDOUT] at javax.faces.component.UIData.createDataModel(UIData.java:545)
              12:51:41,843 DEBUG [HibernateSessionInterceptor] closing hibernate session
              12:51:41,843 INFO [STDOUT] at javax.faces.component.UIData.getDataModel(UIData.java:534)
              12:51:41,843 DEBUG [HibernateSessionFactoryInterceptor] removing hibernate session factory from context
              12:51:41,843 INFO [STDOUT] at javax.faces.component.UIData.getRowCount(UIData.java:103)
              12:51:41,843 DEBUG [CommandExecutor] waiting for more messages
              12:51:41,843 INFO [STDOUT] at org.apache.myfaces.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererB
              ase.java:124)
              12:51:41,843 DEBUG [StaticNotifier] going to wait for (EXECUTE, java.lang.Object@19dbc3b)

              • 4. Re: integrating webapp changes into 3.1a1
                Ronald van Kuijk Master

                ok, there is definately something wrong with how the db is populated with the websale example from the ant tasks. If I leave it out, the ui works and I can even deploy my own process from the gpd (the initial report in this topic).

                There is no difference whether I build from within eclipse or from the commandline. Both jdk1.4.2_08 and 1.5.0 give the same result.