Regression
org.appng.core.model.ApplicationProviderTest.testUpdateExecute
Failing for the past 1 build
(Since Failed )
Error Message
XML does not match control XML org.custommonkey.xmlunit.Diff [different] Expected number of child nodes '2' but was '3' - comparing <page...> at /applicationReference[1]/pages[1]/page[1] to <page...> at /applicationReference[1]/pages[1]/page[1] <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <applicationReference xmlns="http://www.appng.org/schema/platform" id="demo-application" version="1.5.2"> <config> <title id="plugintitle">A Test-Plugin</title> <permissions> <permission ref="debug" mode="set"></permission> </permissions> <session> <session-params> <session-param name="sessionparam1"></session-param> <session-param name="sessionparam2"></session-param> </session-params> </session> </config> <pages> <page id="entity" type="index" executionTime="6"> <config> <title id="entity">Entity</title> <description></description> <permissions> <permission ref="page.entity" mode="set"></permission> </permissions> <url-schema> <url-params> <url-param name="action">update</url-param> <url-param name="entityId">1</url-param> <url-param name="entityAction"/> <url-param name="entityId">1</url-param> </url-params> <get-params> <get-param name="form_action"></get-param> </get-params> <post-params> <post-param name="form_action">update</post-param> </post-params> </url-schema> <linkpanel id="page-nav" location="top"> <link id="page-nav[1]" mode="intern" target="/page0"> <label id="page0">Page 0</label> </link> <link id="page-nav[2]" mode="intern" target="/page1"> <condition expression="${1==1}"/> <label id="page1">Page 1</label> </link> <link id="page-nav[4]" mode="intern" target="/page3"> <permissions> <permission ref="page3" mode="set"></permission> </permissions> <label id="page3">Page 3</label> </link> </linkpanel> </config> <messages ref="entity"> <message ref="update" class="ERROR">Internal error</message> <message class="ERROR">org.appng.api.ProcessingException: error performing action 'update' of event 'events', ID: 848397470 at org.appng.api.support.CallableAction.execute(CallableAction.java:456) at org.appng.api.support.CallableAction.perform(CallableAction.java:336) at org.appng.core.model.ActionElement.perform(ActionElement.java:75) at org.appng.core.model.ApplicationProvider.getActionSectionElement(ApplicationProvider.java:530) at org.appng.core.model.ApplicationProvider.access$000(ApplicationProvider.java:126) at org.appng.core.model.ApplicationProvider$2.perform(ApplicationProvider.java:422) at org.appng.core.model.ApplicationProvider.doMonitored(ApplicationProvider.java:462) at org.appng.core.model.ApplicationProvider.addElements(ApplicationProvider.java:430) at org.appng.core.model.ApplicationProvider.buildStructure(ApplicationProvider.java:350) at org.appng.core.model.ApplicationProvider.process(ApplicationProvider.java:279) at org.appng.core.model.ApplicationProviderTest.runMonitoredTest(ApplicationProviderTest.java:271) at org.appng.core.model.ApplicationProviderTest.testUpdateExecute(ApplicationProviderTest.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:364) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:237) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:158) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548) Caused by: java.lang.NullPointerException at org.appng.api.support.validation.DefaultValidationProvider.sortFieldMessages(DefaultValidationProvider.java:552) at org.appng.api.support.validation.DefaultValidationProvider.addFieldMessage(DefaultValidationProvider.java:503) at org.appng.api.support.validation.DefaultValidationProvider.validateFields(DefaultValidationProvider.java:476) at org.appng.api.support.validation.DefaultValidationProvider.validateBean(DefaultValidationProvider.java:452) at org.appng.api.support.ApplicationRequest.validateBean(ApplicationRequest.java:343) at org.appng.api.support.CallableAction.validateBindObject(CallableAction.java:492) at org.appng.api.support.CallableAction.execute(CallableAction.java:386) ... 44 more </message> </messages> <structure/> </page> </pages> </applicationReference> , org.custommonkey.xmlunit.Diff [different] Expected number of child nodes '2' but was '3' - comparing <page...> at /applicationReference[1]/pages[1]/page[1] to <page...> at /applicationReference[1]/pages[1]/page[1]
Stacktrace
junit.framework.AssertionFailedError: XML does not match control XML org.custommonkey.xmlunit.Diff [different] Expected number of child nodes '2' but was '3' - comparing <page...> at /applicationReference[1]/pages[1]/page[1] to <page...> at /applicationReference[1]/pages[1]/page[1] <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <applicationReference xmlns="http://www.appng.org/schema/platform" id="demo-application" version="1.5.2"> <config> <title id="plugintitle">A Test-Plugin</title> <permissions> <permission ref="debug" mode="set"></permission> </permissions> <session> <session-params> <session-param name="sessionparam1"></session-param> <session-param name="sessionparam2"></session-param> </session-params> </session> </config> <pages> <page id="entity" type="index" executionTime="6"> <config> <title id="entity">Entity</title> <description></description> <permissions> <permission ref="page.entity" mode="set"></permission> </permissions> <url-schema> <url-params> <url-param name="action">update</url-param> <url-param name="entityId">1</url-param> <url-param name="entityAction"/> <url-param name="entityId">1</url-param> </url-params> <get-params> <get-param name="form_action"></get-param> </get-params> <post-params> <post-param name="form_action">update</post-param> </post-params> </url-schema> <linkpanel id="page-nav" location="top"> <link id="page-nav[1]" mode="intern" target="/page0"> <label id="page0">Page 0</label> </link> <link id="page-nav[2]" mode="intern" target="/page1"> <condition expression="${1==1}"/> <label id="page1">Page 1</label> </link> <link id="page-nav[4]" mode="intern" target="/page3"> <permissions> <permission ref="page3" mode="set"></permission> </permissions> <label id="page3">Page 3</label> </link> </linkpanel> </config> <messages ref="entity"> <message ref="update" class="ERROR">Internal error</message> <message class="ERROR">org.appng.api.ProcessingException: error performing action 'update' of event 'events', ID: 848397470 at org.appng.api.support.CallableAction.execute(CallableAction.java:456) at org.appng.api.support.CallableAction.perform(CallableAction.java:336) at org.appng.core.model.ActionElement.perform(ActionElement.java:75) at org.appng.core.model.ApplicationProvider.getActionSectionElement(ApplicationProvider.java:530) at org.appng.core.model.ApplicationProvider.access$000(ApplicationProvider.java:126) at org.appng.core.model.ApplicationProvider$2.perform(ApplicationProvider.java:422) at org.appng.core.model.ApplicationProvider.doMonitored(ApplicationProvider.java:462) at org.appng.core.model.ApplicationProvider.addElements(ApplicationProvider.java:430) at org.appng.core.model.ApplicationProvider.buildStructure(ApplicationProvider.java:350) at org.appng.core.model.ApplicationProvider.process(ApplicationProvider.java:279) at org.appng.core.model.ApplicationProviderTest.runMonitoredTest(ApplicationProviderTest.java:271) at org.appng.core.model.ApplicationProviderTest.testUpdateExecute(ApplicationProviderTest.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:364) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:237) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:158) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548) Caused by: java.lang.NullPointerException at org.appng.api.support.validation.DefaultValidationProvider.sortFieldMessages(DefaultValidationProvider.java:552) at org.appng.api.support.validation.DefaultValidationProvider.addFieldMessage(DefaultValidationProvider.java:503) at org.appng.api.support.validation.DefaultValidationProvider.validateFields(DefaultValidationProvider.java:476) at org.appng.api.support.validation.DefaultValidationProvider.validateBean(DefaultValidationProvider.java:452) at org.appng.api.support.ApplicationRequest.validateBean(ApplicationRequest.java:343) at org.appng.api.support.CallableAction.validateBindObject(CallableAction.java:492) at org.appng.api.support.CallableAction.execute(CallableAction.java:386) ... 44 more </message> </messages> <structure/> </page> </pages> </applicationReference> , org.custommonkey.xmlunit.Diff [different] Expected number of child nodes '2' but was '3' - comparing <page...> at /applicationReference[1]/pages[1]/page[1] to <page...> at /applicationReference[1]/pages[1]/page[1] at org.appng.core.model.ApplicationProviderTest.runMonitoredTest(ApplicationProviderTest.java:278) at org.appng.core.model.ApplicationProviderTest.testUpdateExecute(ApplicationProviderTest.java:163)
Standard Output
2021-06-11 13:33:54,834 ERROR [main] org.appng.core.model.ApplicationProvider: [localhost:demo-application] error while building structure for page 'entity' org.appng.api.ProcessingException: error performing action 'update' of event 'events', ID: 848397470 at org.appng.api.support.CallableAction.execute(CallableAction.java:456) at org.appng.api.support.CallableAction.perform(CallableAction.java:336) at org.appng.core.model.ActionElement.perform(ActionElement.java:75) at org.appng.core.model.ApplicationProvider.getActionSectionElement(ApplicationProvider.java:530) at org.appng.core.model.ApplicationProvider.access$000(ApplicationProvider.java:126) at org.appng.core.model.ApplicationProvider$2.perform(ApplicationProvider.java:422) at org.appng.core.model.ApplicationProvider.doMonitored(ApplicationProvider.java:462) at org.appng.core.model.ApplicationProvider.addElements(ApplicationProvider.java:430) at org.appng.core.model.ApplicationProvider.buildStructure(ApplicationProvider.java:350) at org.appng.core.model.ApplicationProvider.process(ApplicationProvider.java:279) at org.appng.core.model.ApplicationProviderTest.runMonitoredTest(ApplicationProviderTest.java:271) at org.appng.core.model.ApplicationProviderTest.testUpdateExecute(ApplicationProviderTest.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:364) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:237) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:158) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548) Caused by: java.lang.NullPointerException at org.appng.api.support.validation.DefaultValidationProvider.sortFieldMessages(DefaultValidationProvider.java:552) at org.appng.api.support.validation.DefaultValidationProvider.addFieldMessage(DefaultValidationProvider.java:503) at org.appng.api.support.validation.DefaultValidationProvider.validateFields(DefaultValidationProvider.java:476) at org.appng.api.support.validation.DefaultValidationProvider.validateBean(DefaultValidationProvider.java:452) at org.appng.api.support.ApplicationRequest.validateBean(ApplicationRequest.java:343) at org.appng.api.support.CallableAction.validateBindObject(CallableAction.java:492) at org.appng.api.support.CallableAction.execute(CallableAction.java:386) ... 44 more