1
0
-1

The form is a direct mapping to the activity. It is working fine in preview, and even as a standalone form inside an userview. But, as part of a process, when i run it, it gives the process variable list instead of the form attached to the activity. I even checked the monitoring of the process to check if some instance is stuck arbitrarily in some intermediate status, but it looked fine as well.

In the catalina logs, i see the below error - 

ERROR 25 May 2017 08:35:20 org.joget.apps.app.service.AppServiceImpl  - Unable to read XML
org.hibernate.InvalidMappingException: Unable to read XML
        at org.hibernate.internal.util.xml.MappingReader.legacyReadMappingDocument(MappingReader.java
:375)
        at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:304)
        at org.hibernate.cfg.Configuration.add(Configuration.java:518)
        at org.hibernate.cfg.Configuration.add(Configuration.java:514)
        at org.hibernate.cfg.Configuration.addFile(Configuration.java:509)
        at org.joget.apps.form.dao.FormDataDaoImpl.findSessionFactory(FormDataDaoImpl.java:741)
        at org.joget.apps.form.dao.FormDataDaoImpl.getHibernateSession(FormDataDaoImpl.java:700)
        at org.joget.apps.form.dao.FormDataDaoImpl.internalLoad(FormDataDaoImpl.java:183)
        at org.joget.apps.form.dao.FormDataDaoImpl.loadWithoutTransaction(FormDataDaoImpl.java:171)
        at sun.reflect.GeneratedMethodAccessor548.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMet
hodInvocation.java:190)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvoc
ation.java:157)

 

 

What might be causing this issue ?

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      Hi, based on the exception it looks like the hibernate mapping XML file for your form is invalid or corrupted. Perhaps earlier exceptions in the log may give an indication of the cause. You could try checking and/or clearing the generated XML files, which should be in your wflow/app_forms folder.

      1. Thejaswi Chindu

        Thanks Anders. After clearing the XML file, it started working. But i am not sure why the file got corrupted. Have to look for root-causing. Any scenarios which you know of, where this corruption can possibly happen ?

      2. Anders

        Not that I know of, you could check the earlier logs to search for any related exceptions.

      CommentAdd your comment...