Skip to content

Failed

org.appng.application.manager.business.PlatformPropertiesTest.testCreate

Failing for the past 4 builds (Since Failed#134 )
Took 0.43 sec.

Error Message

XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected attribute value 'OK' but was 'ERROR' - comparing <message class="OK"...> at /messages[1]/message[1]/@class to <message class="ERROR"...> at /messages[1]/message[1]/@class

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages xmlns="http://www.appng.org/schema/platform" ref="create-platform-property">
    <message ref="create-platform-property" class="ERROR">Failed to create the property.</message>
</messages>
, org.custommonkey.xmlunit.Diff
[different] Expected attribute value 'OK' but was 'ERROR' - comparing <message class="OK"...> at /messages[1]/message[1]/@class to <message class="ERROR"...> at /messages[1]/message[1]/@class

Stacktrace

junit.framework.AssertionFailedError: 
XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected attribute value 'OK' but was 'ERROR' - comparing <message class="OK"...> at /messages[1]/message[1]/@class to <message class="ERROR"...> at /messages[1]/message[1]/@class

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages xmlns="http://www.appng.org/schema/platform" ref="create-platform-property">
    <message ref="create-platform-property" class="ERROR">Failed to create the property.</message>
</messages>
, org.custommonkey.xmlunit.Diff
[different] Expected attribute value 'OK' but was 'ERROR' - comparing <message class="OK"...> at /messages[1]/message[1]/@class to <message class="ERROR"...> at /messages[1]/message[1]/@class

	at org.appng.application.manager.business.PlatformPropertiesTest.testCreate(PlatformPropertiesTest.java:54)

Standard Output

2021-06-10 16:10:06,751 INFO  [main] org.hibernate.jpa.internal.util.LogHelper: HHH000204: Processing PersistenceUnitInfo [name: default]
2021-06-10 16:10:06,916 INFO  [main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.HSQLDialect
2021-06-10 16:10:06,924 INFO  [main] org.hibernate.envers.boot.internal.EnversServiceImpl: Envers integration enabled? : true
2021-06-10 16:10:07,406 INFO  [main] org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator: HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]

Standard Error

[main] INFO org.springframework.test.context.support.DefaultTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
[main] INFO org.springframework.test.context.support.DefaultTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@3a560610, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@22ee5386, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@74dc5ac6, org.springframework.test.context.support.DirtiesContextTestExecutionListener@7cbf1f64, org.springframework.test.context.transaction.TransactionalTestExecutionListener@76d3e065, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@2671ef5a]
[main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [file:application-home/beans.xml]
[main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext.xml]
[main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext-core.xml]
[main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext-jpa.xml]
[main] INFO org.springframework.context.support.GenericApplicationContext - Refreshing org.springframework.context.support.GenericApplicationContext@342df66e: startup date [Thu Jun 10 16:10:06 CEST 2021]; root of context hierarchy
[main] INFO org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
[main] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Building JPA container EntityManagerFactory for persistence unit 'default'
[main] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Initialized JPA EntityManagerFactory for persistence unit 'default'
[main] WARN org.appng.api.support.RequestFactoryBean - invalid value for platform property 'uploadDir', folder 'null/target/uploads' does not exist!
[main] WARN org.springframework.context.support.ResourceBundleMessageSource - ResourceBundle [manager-messages] not found for MessageSource: Can't find bundle for base name manager-messages, locale en
[main] WARN org.springframework.context.support.ResourceBundleMessageSource - ResourceBundle [manager-messages] not found for MessageSource: Can't find bundle for base name manager-messages, locale en
[main] WARN org.springframework.context.support.ResourceBundleMessageSource - ResourceBundle [manager-messages] not found for MessageSource: Can't find bundle for base name manager-messages, locale en
[main] WARN org.springframework.context.support.ResourceBundleMessageSource - ResourceBundle [manager-messages] not found for MessageSource: Can't find bundle for base name manager-messages, locale en
[main] WARN org.springframework.context.support.ResourceBundleMessageSource - ResourceBundle [manager-messages] not found for MessageSource: Can't find bundle for base name manager-messages, locale en
[main] WARN org.springframework.context.support.ResourceBundleMessageSource - ResourceBundle [manager-messages] not found for MessageSource: Can't find bundle for base name manager-messages, locale en
[main] WARN org.springframework.context.support.ResourceBundleMessageSource - ResourceBundle [manager-messages] not found for MessageSource: Can't find bundle for base name manager-messages, locale en
[main] WARN org.springframework.context.support.ResourceBundleMessageSource - ResourceBundle [manager-messages] not found for MessageSource: Can't find bundle for base name manager-messages, locale en
[main] WARN org.springframework.context.support.ResourceBundleMessageSource - ResourceBundle [manager-messages] not found for MessageSource: Can't find bundle for base name manager-messages, locale en
[main] WARN org.springframework.context.support.ResourceBundleMessageSource - ResourceBundle [manager-messages] not found for MessageSource: Can't find bundle for base name manager-messages, locale en
[main] WARN org.springframework.context.support.ResourceBundleMessageSource - ResourceBundle [manager-messages] not found for MessageSource: Can't find bundle for base name manager-messages, locale en
[main] WARN org.springframework.context.support.ResourceBundleMessageSource - ResourceBundle [manager-messages] not found for MessageSource: Can't find bundle for base name manager-messages, locale en
[main] ERROR org.appng.application.manager.business.Properties - Failed to create the property.
org.appng.api.BusinessException: org.springframework.dao.InvalidDataAccessApiUsageException: org.springframework.context.support.GenericApplicationContext@3cc2931c has been closed already; nested exception is java.lang.IllegalStateException: org.springframework.context.support.GenericApplicationContext@3cc2931c has been closed already
	at org.appng.api.support.RequestSupportImpl.handleException(RequestSupportImpl.java:200)
	at org.appng.api.support.ApplicationRequest.handleException(ApplicationRequest.java:134)
	at org.appng.application.manager.service.ManagerService.createProperty(ManagerService.java:1512)
	at org.appng.application.manager.service.ManagerService$$FastClassBySpringCGLIB$$bbf10b1e.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:737)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:283)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:672)
	at org.appng.application.manager.service.ManagerService$$EnhancerBySpringCGLIB$$e337a3a8.createProperty(<generated>)
	at org.appng.application.manager.business.Properties.perform(Properties.java:128)
	at org.appng.application.manager.business.Properties.perform(Properties.java:50)
	at org.appng.api.support.CallableAction.execute(CallableAction.java:438)
	at org.appng.api.support.CallableAction.perform(CallableAction.java:336)
	at org.appng.api.support.CallableAction.perform(CallableAction.java:308)
	at org.appng.application.manager.business.PlatformPropertiesTest.testCreate(PlatformPropertiesTest.java:53)
	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:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	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:325)
	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$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	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.run(ParentRunner.java:363)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: org.springframework.context.support.GenericApplicationContext@3cc2931c has been closed already; nested exception is java.lang.IllegalStateException: org.springframework.context.support.GenericApplicationContext@3cc2931c has been closed already
	at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:387)
	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:526)
	at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:59)
	at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:209)
	at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:147)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:140)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$ExposeRepositoryInvocationInterceptor.invoke(CrudMethodMetadataPostProcessor.java:347)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:57)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
	at com.sun.proxy.$Proxy313.save(Unknown Source)
	at org.appng.core.service.CoreService.saveProperty(CoreService.java:397)
	at org.appng.core.service.CoreService.createProperty(CoreService.java:340)
	at org.appng.application.manager.service.ManagerService.createProperty(ManagerService.java:1509)
	... 48 more
Caused by: java.lang.IllegalStateException: org.springframework.context.support.GenericApplicationContext@3cc2931c has been closed already
	at org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1066)
	at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1189)
	at org.appng.core.domain.PlatformEventListener.getEventProvider(PlatformEventListener.java:143)
	at org.appng.core.domain.PlatformEventListener.createEvent(PlatformEventListener.java:114)
	at org.appng.core.domain.PlatformEventListener.createEvent(PlatformEventListener.java:106)
	at org.appng.core.domain.PlatformEventListener.createEvent(PlatformEventListener.java:100)
	at org.appng.core.domain.PlatformEventListener.beforeCreate(PlatformEventListener.java:86)
	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.hibernate.jpa.event.internal.ListenerCallback.performCallback(ListenerCallback.java:35)
	at org.hibernate.jpa.event.internal.CallbackRegistryImpl.callback(CallbackRegistryImpl.java:95)
	at org.hibernate.jpa.event.internal.CallbackRegistryImpl.preCreate(CallbackRegistryImpl.java:55)
	at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:108)
	at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:185)
	at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:128)
	at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:55)
	at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:99)
	at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:720)
	at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:706)
	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.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:301)
	at com.sun.proxy.$Proxy304.persist(Unknown Source)
	at org.springframework.data.jpa.repository.support.SimpleJpaRepository.save(SimpleJpaRepository.java:531)
	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.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:515)
	at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:500)
	at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:477)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:56)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:283)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)
	... 62 more