dwr.xml errors for AtlasService, HTMLFormEntryService and EncounterService

42 views
Skip to first unread message

Craig A.

unread,
Feb 11, 2015, 11:41:16 AM2/11/15
to implem...@openmrs.org

Hi Everyone,

I'm getting a weird error in my logs and am not able to submit an HTMLForm. I just copied all of the concept tables from my local standalone version to a new demo site that uses the Enterprise version. Both are v2.1 of the reference application. I wanted to develop locally and transition the concepts and forms to the demo site. The HTML form renders appropriately but when I click save, I get the FragmentFactory.invokeFragmentAction(526) error. Additionally, the vitals form allows me to save the form without any problems. 

Thanks for your help with this!
Sincerely,
Craig

Error:
ERROR - CommonsLoggingOutput.error(75) |2015-02-11 10:34:36,454| Line=51 The content of element type "dwr" must match "(init?,allow?,signatures?)".
ERROR - CommonsLoggingOutput.error(75) |2015-02-11 10:34:36,461| Parameter mismatch parsing signatures section in dwr.xml on line: DWRAtlasService.disableAtlasModule()
ERROR - CommonsLoggingOutput.error(75) |2015-02-11 10:34:36,463| Parameter mismatch parsing signatures section in dwr.xml on line: DWRHtmlFormEntryService.checkIfLoggedIn()
ERROR - CommonsLoggingOutput.error(75) |2015-02-11 10:34:36,505| Parameter mismatch parsing signatures section in dwr.xml on line: DWREncounterService.findEncounters(String phrase, Integer patientId, boolean includeVoided)
WARN - CommonsLoggingOutput.warn(59) |2015-02-11 10:34:36,506| Setting extra type info to overloaded methods may fail with <parameter .../>
ERROR - CommonsLoggingOutput.error(75) |2015-02-11 10:34:36,506| Parameter mismatch parsing signatures section in dwr.xml on line: DWREncounterService.findBatchOfEncounters(String phrase, boolean includeVoided, Integer start, Integer length)
WARN - CommonsLoggingOutput.warn(59) |2015-02-11 10:34:36,506| Setting extra type info to overloaded methods may fail with <parameter .../>
INFO - SerializationServiceImpl.getDefaultSerializer(74) |2015-02-11 10:35:48,255| No default serializer specified - using builtin SimpleXStreamSerializer.
ERROR - FragmentFactory.invokeFragmentAction(526) |2015-02-11 10:36:11,765| Error invoking fragment action with parameters: 0: Expected: org.openmrs.module.appui.UiSessionContext (cl: {ModuleClassLoader: uid=13020853; appui}) | Actual: org.openmrs.module.appui.UiSessionContext (cl: {ModuleClassLoader: uid=13020853; appui}) 1: Expected: org.openmrs.Patient (cl: WebappClassLoader context: /openmrs delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: org.apache.catalina.loader.StandardClassLoader@15b24dd ) | Actual: org.openmrs.Patient (cl: WebappClassLoader context: /openmrs delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: org.apache.catalina.loader.StandardClassLoader@15b24dd ) 2: Expected: org.openmrs.module.htmlformentry.HtmlForm (cl: {ModuleClassLoader: uid=23458356; htmlformentry}) | Actual: org.openmrs.module.htmlformentry.HtmlForm (cl: {ModuleClassLoader: uid=23458356; htmlformentry}) 3: Expected: org.openmrs.Encounter (cl: WebappClassLoader context: /openmrs delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: org.apache.catalina.loader.StandardClassLoader@15b24dd ) | Actual: null 4: Expected: org.openmrs.Visit (cl: WebappClassLoader context: /openmrs delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: org.apache.catalina.loader.StandardClassLoader@15b24dd ) | Actual: org.openmrs.Visit (cl: WebappClassLoader context: /openmrs delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: org.apache.catalina.loader.StandardClassLoader@15b24dd ) 5: Expected: java.lang.Boolean (cl: null) | Actual: java.lang.Boolean (cl: null) 6: Expected: java.lang.String (cl: null) | Actual: java.lang.String (cl: null) 7: Expected: org.openmrs.module.emrapi.adt.AdtService (cl: {ModuleClassLoader: uid=25078514; emrapi}) | Actual: com.sun.proxy.$Proxy153 (cl: Openmrsorg.openmrs.util.OpenmrsClassLoader@13120df) 8: Expected: org.openmrs.module.appframework.feature.FeatureToggleProperties (cl: {ModuleClassLoader: uid=27168709; appframework}) | Actual: org.openmrs.module.appframework.feature.FeatureToggleProperties (cl: {ModuleClassLoader: uid=27168709; appframework}) 9: Expected: org.openmrs.ui.framework.UiUtils (cl: {ModuleClassLoader: uid=7333758; uiframework}) | Actual: org.openmrs.ui.framework.fragment.FragmentActionUiUtils (cl: {ModuleClassLoader: uid=7333758; uiframework}) 10: Expected: javax.servlet.http.HttpServletRequest (cl: org.apache.catalina.loader.StandardClassLoader@15b24dd) | Actual: org.apache.catalina.connector.RequestFacade (cl: org.apache.catalina.loader.StandardClassLoader@15b24dd)
ERROR - FragmentActionController.handlePath(157) |2015-02-11 10:36:11,766| error

Craig A.

unread,
Feb 15, 2015, 6:40:27 AM2/15/15
to implem...@openmrs.org
Hi Again,

I figured out the issue. My HTMLForm didn't have the hidden header material (Copied from the Vitals form) 

<div class="hidden" id="encounter-details" sectionTag="section" headerStyle="title" headerLabel="Encounter Details">
        <fieldset>
            <legend>When?</legend>
            <label>When?</label>

            <encounterDate default="now" showTime="false"/>
        </fieldset>

        <fieldset>
            <legend>Who?</legend>
            <label>Who?</label>

            <encounterProviderAndRole default="currentUser" encounterRole="240b26f9-dd88-4172-823d-4a8bfeb7841f" required="true"/>
        </fieldset>

        <fieldset>
            <legend>Where?</legend>
            <label>Where?</label>

            <encounterLocation default="SessionAttribute:emrContext.sessionLocationId"/>
        </fieldset>
    </div>

Sincerely,
Craig
Reply all
Reply to author
Forward
0 new messages