Import test cases only works the first time

Thomas Hilbert, modified 11 Years ago.

Import test cases only works the first time

Youngling Posts: 7 Join Date: 8/10/12 Recent Posts
Hi everyone,

I've just testing the new klaros version (demo and locally installed) and stumpled across a small issue when importing a output file from JUnit or the like.

I've created a new project, test environment and system.
I used the import test results to import some demo JUnit results (see attached file). The first time all went well, klaros created a new issue per testcase and logged the failed tests.

But if I import the same (or a slightly modified) version of the file, I get the exception below.

Do I do something wrong or is it a bug in klaros?

I've also two other questions:
1. Is it possible to import/create the testsuite automatically in klaros? What I've seen, the import test results only creates testcases.
We have several testsuites which have a lot of testcases below them, so it would be great if the suites could also be imported/created.
2. The second time I imported the results (names of the testcases where the same), I thought klaros could automatically determine which JUnit testcase belongs to which klaros testcase, isn't it?

Thanks in advance.

Regards,
Thomas

Here's the exception mentioned above:

[Fatal Error] :1:75: The markup in the document following the root element must be well-formed.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
[Fatal Error] :-1:-1: Premature end of file.
2012-08-10 20:08:06: WARN, com.icesoft.faces.webapp.xmlhttp.PersistentFacesState, http-18080-4 Running in 'synchronous mode'. The page updates were queued but not sent.
10.08.2012 20:08:22 com.sun.faces.application.ActionListenerImpl processAction
SCHWERWIEGEND: org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2
javax.faces.el.EvaluationException: org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at javax.faces.component.UICommand.broadcast(UICommand.java:387)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at de.verit.klaros.web.beans.application.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:55)
at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:132)
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:74)
at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:31)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:26)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at de.verit.klaros.web.servlet.ExceptionHandlingPersistentFacesServlet.service(ExceptionHandlingPersistentFacesServlet.java:47)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:197)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:171)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:659)
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
at de.verit.klaros.core.dao.hibernate.HibernateDAO.findUnique(HibernateDAO.java:600)
at de.verit.klaros.core.dao.hibernate.HibernateDAO.findUnique(HibernateDAO.java:580)
at de.verit.klaros.core.dao.hibernate.HibernateDAO.findUnique(HibernateDAO.java:49)
at de.verit.klaros.web.service.importer.result.BaseResultImportService.getOrCreateTestCase(BaseResultImportService.java:94)
at de.verit.klaros.web.service.importer.result.JUnitResultImportService.importTestCaseResult(JUnitResultImportService.java:153)
at de.verit.klaros.web.service.importer.result.JUnitResultImportService.importJUnitResultData(JUnitResultImportService.java:98)
at de.verit.klaros.web.service.importer.result.TransformingJUnitResultImportService.importResultData(TransformingJUnitResultImportService.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
at de.verit.klaros.web.service.importer.result.TransformingJUnitResultImportService_$$_javassist_seam_126.importResultData(TransformingJUnitResultImportService_$$_javassist_seam_126.java)
at de.verit.klaros.web.beans.pages.execute.ImportResultsBean.importFile(ImportResultsBean.java:377)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
at de.verit.klaros.web.beans.pages.execute.ImportResultsBean_$$_javassist_seam_125.importFile(ImportResultsBean_$$_javassist_seam_125.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335)
at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348)
at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
... 39 more
Caused by: org.hibernate.NonUniqueResultException: query did not return a unique result: 2
... 94 more
10.08.2012 20:08:22 com.sun.faces.lifecycle.InvokeApplicationPhase execute
WARNUNG: #{importResultsBean.importFile}: org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2
javax.faces.FacesException: #{importResultsBean.importFile}: org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
at javax.faces.component.UICommand.broadcast(UICommand.java:387)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at de.verit.klaros.web.beans.application.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:55)
at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:132)
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:74)
at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:31)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:26)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at de.verit.klaros.web.servlet.ExceptionHandlingPersistentFacesServlet.service(ExceptionHandlingPersistentFacesServlet.java:47)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:197)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:171)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.faces.el.EvaluationException: org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
... 38 more
Caused by: org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:659)
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
at de.verit.klaros.core.dao.hibernate.HibernateDAO.findUnique(HibernateDAO.java:600)
at de.verit.klaros.core.dao.hibernate.HibernateDAO.findUnique(HibernateDAO.java:580)
at de.verit.klaros.core.dao.hibernate.HibernateDAO.findUnique(HibernateDAO.java:49)
at de.verit.klaros.web.service.importer.result.BaseResultImportService.getOrCreateTestCase(BaseResultImportService.java:94)
at de.verit.klaros.web.service.importer.result.JUnitResultImportService.importTestCaseResult(JUnitResultImportService.java:153)
at de.verit.klaros.web.service.importer.result.JUnitResultImportService.importJUnitResultData(JUnitResultImportService.java:98)
at de.verit.klaros.web.service.importer.result.TransformingJUnitResultImportService.importResultData(TransformingJUnitResultImportService.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
at de.verit.klaros.web.service.importer.result.TransformingJUnitResultImportService_$$_javassist_seam_126.importResultData(TransformingJUnitResultImportService_$$_javassist_seam_126.java)
at de.verit.klaros.web.beans.pages.execute.ImportResultsBean.importFile(ImportResultsBean.java:377)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
at de.verit.klaros.web.beans.pages.execute.ImportResultsBean_$$_javassist_seam_125.importFile(ImportResultsBean_$$_javassist_seam_125.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335)
at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348)
at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
... 39 more
Caused by: org.hibernate.NonUniqueResultException: query did not return a unique result: 2
... 94 more
10.08.2012 20:08:23 com.sun.faces.lifecycle.Phase doPhase
SCHWERWIEGEND: JSF1054: (Phase ID: INVOKE_APPLICATION 5, View ID: /pages/subviews/execute/import/importResultDetails.jspx) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@1b88891]
2012-08-10 20:08:23: ERROR, com.icesoft.faces.webapp.http.core.ReceiveSendUpdates, http-18080-3 Exception occured during rendering on http://localhost:18080/klaros-web/block/send-receive-updates [/pages/subviews/execute/import/importResultDetails.jspx]
javax.faces.FacesException: javax.faces.FacesException: #{importResultsBean.importFile}: org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2
at de.verit.klaros.web.beans.application.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66) ~[LifecycleImpl.class:na]
at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18) ~[icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:132) ~[icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:74) ~[icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:31) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:26) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131) [icefaces-1.8.2-1.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java) [servlet-api.jar:na]
at de.verit.klaros.web.servlet.ExceptionHandlingPersistentFacesServlet.service(ExceptionHandlingPersistentFacesServlet.java:47) [ExceptionHandlingPersistentFacesServlet.class:na]
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56) [icefaces-1.8.2-1.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java) [catalina.jar:6.0.32]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java) [catalina.jar:6.0.32]
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:197) [javamelody-core-1.37.0.jar:1.37.0]
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:171) [javamelody-core-1.37.0.jar:1.37.0]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java) [catalina.jar:6.0.32]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java) [catalina.jar:6.0.32]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java) [catalina.jar:6.0.32]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java) [catalina.jar:6.0.32]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java) [catalina.jar:6.0.32]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java) [catalina.jar:6.0.32]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java) [catalina.jar:6.0.32]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java) [catalina.jar:6.0.32]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java) [catalina.jar:6.0.32]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java) [tomcat-coyote.jar:6.0.32]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java) [tomcat-coyote.jar:6.0.32]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java) [tomcat-coyote.jar:6.0.32]
at java.lang.Thread.run(Thread.java:662) [na:1.6.0_29]
Caused by: javax.faces.FacesException: #{importResultsBean.importFile}: org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:90) ~[jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) ~[jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) ~[jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
at de.verit.klaros.web.beans.application.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:55) ~[LifecycleImpl.class:na]
... 31 common frames omitted
Caused by: javax.faces.FacesException: #{importResultsBean.importFile}: org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118) ~[jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
at javax.faces.component.UICommand.broadcast(UICommand.java:387) ~[jsf-api-1.2_14.jar:1.2_14-b01-FCS]
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) ~[jsf-api-1.2_14.jar:1.2_14-b01-FCS]
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756) ~[jsf-api-1.2_14.jar:1.2_14-b01-FCS]
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) ~[jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
... 34 common frames omitted
Caused by: javax.faces.el.EvaluationException: org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) ~[jsf-api-1.2_14.jar:1.2_14-b01-FCS]
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) ~[jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
... 38 common frames omitted
Caused by: org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:659) ~[spring-orm-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412) ~[spring-orm-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at de.verit.klaros.core.dao.hibernate.HibernateDAO.findUnique(HibernateDAO.java:600) ~[klaros-migration-3.6.8.jar:3.6.8]
at de.verit.klaros.core.dao.hibernate.HibernateDAO.findUnique(HibernateDAO.java:580) ~[klaros-migration-3.6.8.jar:3.6.8]
at de.verit.klaros.core.dao.hibernate.HibernateDAO.findUnique(HibernateDAO.java:49) ~[klaros-migration-3.6.8.jar:3.6.8]
at de.verit.klaros.web.service.importer.result.BaseResultImportService.getOrCreateTestCase(BaseResultImportService.java:94) ~[BaseResultImportService.class:na]
at de.verit.klaros.web.service.importer.result.JUnitResultImportService.importTestCaseResult(JUnitResultImportService.java:153) ~[JUnitResultImportService.class:na]
at de.verit.klaros.web.service.importer.result.JUnitResultImportService.importJUnitResultData(JUnitResultImportService.java:98) ~[JUnitResultImportService.class:na]
at de.verit.klaros.web.service.importer.result.TransformingJUnitResultImportService.importResultData(TransformingJUnitResultImportService.java:61) ~[TransformingJUnitResultImportService.class:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_29]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_29]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_29]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_29]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at de.verit.klaros.web.service.importer.result.TransformingJUnitResultImportService_$$_javassist_seam_126.importResultData(TransformingJUnitResultImportService_$$_javassist_seam_126.java) ~[TransformingJUnitResultImportService.class:na]
at de.verit.klaros.web.beans.pages.execute.ImportResultsBean.importFile(ImportResultsBean.java:377) ~[ImportResultsBean.class:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_29]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_29]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_29]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_29]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) ~[jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at de.verit.klaros.web.beans.pages.execute.ImportResultsBean_$$_javassist_seam_125.importFile(ImportResultsBean_$$_javassist_seam_125.java) ~[ImportResultsBean.class:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_29]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_29]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_29]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_29]
at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335) ~[jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348) ~[jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58) ~[jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
at org.jboss.el.parser.AstValue.invoke(AstValue.java:96) ~[jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) ~[jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) ~[icefaces-facelets-1.8.2.jar:na]
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) ~[jsf-api-1.2_14.jar:1.2_14-b01-FCS]
... 39 common frames omitted
Caused by: org.hibernate.NonUniqueResultException: query did not return a unique result: 2
... 94 common frames omitted

Attachments:

thumbnail
Torsten Stolpmann, modified 11 Years ago.

RE: Import test cases only works the first time

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Thomas,

I've created a new project, test environment and system.
I used the import test results to import some demo JUnit results (see attached file). The first time all went well, klaros created a new issue per testcase and logged the failed tests.

But if I import the same (or a slightly modified) version of the file, I get the exception below.

Do I do something wrong or is it a bug in klaros?


Nothing wrong on your side, this is a regression bug introduce in one of the 3.6 releases. Tracked as KLAROS-1703, the fix is now here and will be available with the 3.6.9 release, tomorrow latest.

1. Is it possible to import/create the testsuite automatically in klaros? What I've seen, the import test results only creates testcases.


This sure makes sense. I opened enhancement request KLAROS-1704 to add an option for test suite generation here. The release window for 3.7 is closing, so chances are that it won't make it into the 3.7.0 release, but one of the later maintenance releases.

2. The second time I imported the results (names of the testcases where the same), I thought klaros could automatically determine which JUnit testcase belongs to which klaros testcase, isn't it?


This should work again once KLAROS-1703 has been resolved.

Thanks for your feedback!

Regards,

Torsten
Thomas Hilbert, modified 11 Years ago.

RE: Import test cases only works the first time

Youngling Posts: 7 Join Date: 8/10/12 Recent Posts
Hi Torsten,

thank you for your fast response. I'm looking forward to see the next release.

One other question. Where can I find those requests KLAROS-1703 and KLAROS-1704 you mentioned. I searched the klaros website and forum, but did not find anything about it. Are they viewable for "normal" users?

Regards,
Thomas
thumbnail
Torsten Stolpmann, modified 11 Years ago.

RE: Import test cases only works the first time

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Thomas,

we are currently not exposing our JIRA instance to the outside, so these ids are given as a reference to upcoming release notes.

Regards,

Torsten
Thomas Hilbert, modified 11 Years ago.

RE: Import test cases only works the first time

Youngling Posts: 7 Join Date: 8/10/12 Recent Posts
Hi Torsten,

just seen that you released a new version of klaros, so I tried the import test results feature.

The good news first, it works if I import a xml with the same or less number of testcases :-)
But when I try to import a xml with existing testcases and one or more new ones, I get the exception below.

I tested it with the online demo of klaros.

Regards,
Thomas

#{importResultsBean.importFile}: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: de.verit.klaros.core.persistent.Configuration.classInitialStates, no session or session was closed
       at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:90)
       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
       at de.verit.klaros.web.beans.application.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:55)
       at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
       at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:132)
       at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:74)
       at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:31)
       at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
       at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
       at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
       at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
       at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:26)
       at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
       at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:-1)
       at de.verit.klaros.web.servlet.ExceptionHandlingPersistentFacesServlet.service(ExceptionHandlingPersistentFacesServlet.java:47)
       at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:-1)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:-1)
       at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:197)
       at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:171)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:-1)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:-1)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:-1)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:-1)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:-1)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:-1)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:-1)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:-1)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:-1)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:-1)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:-1)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:-1)
       at java.lang.Thread.run(Thread.java:662)
Caused by: #{importResultsBean.importFile}: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: de.verit.klaros.core.persistent.Configuration.classInitialStates, no session or session was closed
       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
       at javax.faces.component.UICommand.broadcast(UICommand.java:387)
       at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
       at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
       at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
       at de.verit.klaros.web.beans.application.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:55)
       at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
       at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:132)
       at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:74)
       at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:31)
       at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
       at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
       at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
       at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
       at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:26)
       at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
       at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:-1)
       at de.verit.klaros.web.servlet.ExceptionHandlingPersistentFacesServlet.service(ExceptionHandlingPersistentFacesServlet.java:47)
       at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:-1)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:-1)
       at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:197)
       at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:171)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:-1)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:-1)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:-1)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:-1)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:-1)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:-1)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:-1)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:-1)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:-1)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:-1)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:-1)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:-1)
       at java.lang.Thread.run(Thread.java:662)
Caused by: #{importResultsBean.importFile}: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: de.verit.klaros.core.persistent.Configuration.classInitialStates, no session or session was closed
       at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
       at javax.faces.component.UICommand.broadcast(UICommand.java:387)
       at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
       at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
       at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
       at de.verit.klaros.web.beans.application.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:55)
       at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
       at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:132)
       at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:74)
       at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:31)
       at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
       at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
       at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
       at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
       at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:26)
       at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
       at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:-1)
       at de.verit.klaros.web.servlet.ExceptionHandlingPersistentFacesServlet.service(ExceptionHandlingPersistentFacesServlet.java:47)
       at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:-1)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:-1)
       at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:197)
       at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:171)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:-1)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:-1)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:-1)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:-1)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:-1)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:-1)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:-1)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:-1)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:-1)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:-1)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:-1)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:-1)
       at java.lang.Thread.run(Thread.java:662)
Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: de.verit.klaros.core.persistent.Configuration.classInitialStates, no session or session was closed
       at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383)
       at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:375)
       at org.hibernate.collection.AbstractPersistentCollection.readElementByIndex(AbstractPersistentCollection.java:176)
       at org.hibernate.collection.PersistentMap.get(PersistentMap.java:169)
       at de.verit.klaros.core.persistent.base.BaseConfiguration.getClassInitialStates(BaseConfiguration.java:722)
       at de.verit.klaros.web.service.importer.result.BaseResultImportService.getOrCreateTestCase(BaseResultImportService.java:182)
       at de.verit.klaros.web.service.importer.result.JUnitResultImportService.importTestCaseResult(JUnitResultImportService.java:153)
       at de.verit.klaros.web.service.importer.result.JUnitResultImportService.importJUnitResultData(JUnitResultImportService.java:98)
       at de.verit.klaros.web.service.importer.result.TransformingJUnitResultImportService.importResultData(TransformingJUnitResultImportService.java:61)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
       at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
       at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
       at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
       at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
       at de.verit.klaros.web.service.importer.result.TransformingJUnitResultImportService_$$_javassist_seam_151.importResultData(TransformingJUnitResultImportService_$$_javassist_seam_151.java:-1)
       at de.verit.klaros.web.beans.pages.execute.ImportResultsBean.importFile(ImportResultsBean.java:377)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
       at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
       at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
       at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
       at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
       at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
       at de.verit.klaros.web.beans.pages.execute.ImportResultsBean_$$_javassist_seam_150.importFile(ImportResultsBean_$$_javassist_seam_150.java:-1)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335)
       at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348)
       at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
       at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
       at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
       at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
       at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
       at javax.faces.component.UICommand.broadcast(UICommand.java:387)
       at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
       at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
       at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
       at de.verit.klaros.web.beans.application.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:55)
       at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
       at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:132)
       at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:74)
       at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:31)
       at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
       at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
       at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
       at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
       at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:26)
       at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
       at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:-1)
       at de.verit.klaros.web.servlet.ExceptionHandlingPersistentFacesServlet.service(ExceptionHandlingPersistentFacesServlet.java:47)
       at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:-1)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:-1)
       at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:197)
       at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:171)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:-1)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:-1)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:-1)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:-1)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:-1)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:-1)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:-1)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:-1)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:-1)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:-1)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:-1)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:-1)
       at java.lang.Thread.run(Thread.java:662)
thumbnail
Torsten Stolpmann, modified 11 Years ago.

RE: Import test cases only works the first time (Answer)

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Thomas,

We were just in the middle of updating the website - can you confirm that this is still the case?

Regards,

Torsten
Thomas Hilbert, modified 11 Years ago.

RE: Import test cases only works the first time

Youngling Posts: 7 Join Date: 8/10/12 Recent Posts
Hi Torsten,

works just fine now.

Thanks.

Regards,
Thomas