Why am i seeing the process variable list, and not the actual form mapped to an activity, when i run the process ?

Confluence User - 25 May, 2017

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 ?

forms;activity;process;instance;mapping;run-process;variables;assignments;userviews

3


26 May, 2017
confluenceUser
1
confluenceUser

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.

01 Jun, 2017
confluenceUser
confluenceUser

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 ?

01 Jun, 2017
confluenceUser
confluenceUser

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

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print