NonUniqueResultException: Query did not return a unique result: 2 results were returned #7

Open
opened 2024-06-13 10:51:32 +02:00 by ansv7779 · 0 comments
Owner
2024-06-10 19:34:49 [INFO] AdditionalExceptionLogger: Current user: User(id=28864, identifier=172235, firstName=Sara, lastName=Laroussi Salah, emailAddress=sarasalahs@hotmail.com, deceased=false, degreeType=BACHELOR) (28864)
2024-06-10 19:34:49 [INFO] AdditionalExceptionLogger: Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
2024-06-10 19:34:49 [INFO] AdditionalExceptionLogger: Request url: GET project/details?pid=7961
2024-06-10 19:34:49 [INFO] AdditionalExceptionLogger: Request parameter: pid=[7961]
2024-06-10 19:34:49 [ERROR] DefaultExceptionMapper: Unexpected error occurred
org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor 'public se.su.dsv.scipro.project.pages.ProjectDetailsPage(org.apache.wicket.request.mapper.parameter.PageParameters)' and argument 'pid=[7961]'. An exception has been thrown during construction!
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:194)
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:99)
        at org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:94)
        at org.apache.wicket.core.request.handler.PageProvider$Provision.getPage(PageProvider.java:369)
        at org.apache.wicket.core.request.handler.PageProvider.getPageInstance(PageProvider.java:170)
        at org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
        at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:231)
        at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:202)
        at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:910)
        at org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:63)
        at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:294)
        at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:255)
        at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:277)
        at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:208)
        at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:307)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
        at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:94)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
        at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121)
        at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:166)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:676)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)
        at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:440)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:894)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
        at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
        at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.reflect.InvocationTargetException
        at jdk.internal.reflect.GeneratedConstructorAccessor1836.newInstance(Unknown Source)
        at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:480)
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:171)
        ... 38 more
Caused by: org.apache.wicket.WicketRuntimeException: An error occurred while getting the model object for Component: [PublicationMetadataFormComponentPanel [Component id = publication_metadata_components, page = <No Page>, path = publication_metadata_components.PublicationMetadataFormComponentPanel], children =  [TextArea [Component id = abstract_en]]]
        at org.apache.wicket.Component.getDefaultModelObject(Component.java:1599)
        at org.apache.wicket.IGenericComponent.getModelObject(IGenericComponent.java:70)
        at se.su.dsv.scipro.grading.PublicationMetadataFormComponentPanel.inSwedish(PublicationMetadataFormComponentPanel.java:53)
        at se.su.dsv.scipro.grading.PublicationMetadataFormComponentPanel.<init>(PublicationMetadataFormComponentPanel.java:25)
        at se.su.dsv.scipro.project.panels.FinalStepsPanel$FinalStepsForm.<init>(FinalStepsPanel.java:116)
        at se.su.dsv.scipro.project.panels.FinalStepsPanel.<init>(FinalStepsPanel.java:58)
        at se.su.dsv.scipro.project.pages.ProjectDetailsPage.<init>(ProjectDetailsPage.java:110)
        at jdk.internal.reflect.GeneratedConstructorAccessor1836.newInstance(Unknown Source)
        at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:480)
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:171)
        ... 38 more
Caused by: com.querydsl.core.NonUniqueResultException: jakarta.persistence.NonUniqueResultException: Query did not return a unique result: 2 results were returned
        at com.querydsl.jpa.impl.AbstractJPAQuery.fetchOne(AbstractJPAQuery.java:331)
        at se.su.dsv.scipro.grading.PublicationMetadataRepositoryImpl.findByProject(PublicationMetadataRepositoryImpl.java:33)
        at se.su.dsv.scipro.grading.PublicationMetadataServiceImpl.getByProject(PublicationMetadataServiceImpl.java:19)
        at jdk.internal.reflect.GeneratedMethodAccessor4322.invoke(Unknown Source)
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:568)
        at org.apache.wicket.proxy.jdk.JdkProxyFactory$JdkHandler.invoke(JdkProxyFactory.java:172)
        at jdk.proxy4.$Proxy413.getByProject(Unknown Source)
        at se.su.dsv.scipro.project.panels.FinalStepsPanel$FinalStepsForm.lambda$new$df775e33$1(FinalStepsPanel.java:113)
        at org.apache.wicket.model.LoadableDetachableModel$1.load(LoadableDetachableModel.java:216)
        at org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:128)
        at org.apache.wicket.Component.getDefaultModelObject(Component.java:1592)
        at org.apache.wicket.IGenericComponent.getModelObject(IGenericComponent.java:70)
        at se.su.dsv.scipro.grading.PublicationMetadataFormComponentPanel.inSwedish(PublicationMetadataFormComponentPanel.java:53)
        at se.su.dsv.scipro.grading.PublicationMetadataFormComponentPanel.<init>(PublicationMetadataFormComponentPanel.java:25)
        at se.su.dsv.scipro.project.panels.FinalStepsPanel$FinalStepsForm.<init>(FinalStepsPanel.java:116)
        at se.su.dsv.scipro.project.panels.FinalStepsPanel.<init>(FinalStepsPanel.java:58)
        at se.su.dsv.scipro.project.pages.ProjectDetailsPage.<init>(ProjectDetailsPage.java:110)
        at jdk.internal.reflect.GeneratedConstructorAccessor1836.newInstance(Unknown Source)
        at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:480)
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:171)
        ... 38 more
Caused by: jakarta.persistence.NonUniqueResultException: Query did not return a unique result: 2 results were returned
        at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:131)
        at org.hibernate.query.spi.AbstractSelectionQuery.getSingleResult(AbstractSelectionQuery.java:564)
        at com.querydsl.jpa.impl.AbstractJPAQuery.getSingleResult(AbstractJPAQuery.java:214)
        at com.querydsl.jpa.impl.AbstractJPAQuery.fetchOne(AbstractJPAQuery.java:326)
        at se.su.dsv.scipro.grading.PublicationMetadataRepositoryImpl.findByProject(PublicationMetadataRepositoryImpl.java:33)
        at se.su.dsv.scipro.grading.PublicationMetadataServiceImpl.getByProject(PublicationMetadataServiceImpl.java:19)
        at jdk.internal.reflect.GeneratedMethodAccessor4322.invoke(Unknown Source)
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:568)
        at org.apache.wicket.proxy.jdk.JdkProxyFactory$JdkHandler.invoke(JdkProxyFactory.java:172)
        at jdk.proxy4.$Proxy413.getByProject(Unknown Source)
        at se.su.dsv.scipro.project.panels.FinalStepsPanel$FinalStepsForm.lambda$new$df775e33$1(FinalStepsPanel.java:113)
        at org.apache.wicket.model.LoadableDetachableModel$1.load(LoadableDetachableModel.java:216)
        at org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:128)
        at org.apache.wicket.Component.getDefaultModelObject(Component.java:1592)
        at org.apache.wicket.IGenericComponent.getModelObject(IGenericComponent.java:70)
        at se.su.dsv.scipro.grading.PublicationMetadataFormComponentPanel.inSwedish(PublicationMetadataFormComponentPanel.java:53)
        at se.su.dsv.scipro.grading.PublicationMetadataFormComponentPanel.<init>(PublicationMetadataFormComponentPanel.java:25)
        at se.su.dsv.scipro.project.panels.FinalStepsPanel$FinalStepsForm.<init>(FinalStepsPanel.java:116)
        at se.su.dsv.scipro.project.panels.FinalStepsPanel.<init>(FinalStepsPanel.java:58)
        at se.su.dsv.scipro.project.pages.ProjectDetailsPage.<init>(ProjectDetailsPage.java:110)
        at jdk.internal.reflect.GeneratedConstructorAccessor1836.newInstance(Unknown Source)
        at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:480)
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:171)
        ... 38 more
Caused by: org.hibernate.NonUniqueResultException: Query did not return a unique result: 2 results were returned
        at org.hibernate.query.spi.AbstractSelectionQuery.uniqueElement(AbstractSelectionQuery.java:578)
        at org.hibernate.query.spi.AbstractSelectionQuery.getSingleResult(AbstractSelectionQuery.java:561)
        at com.querydsl.jpa.impl.AbstractJPAQuery.getSingleResult(AbstractJPAQuery.java:214)
        at com.querydsl.jpa.impl.AbstractJPAQuery.fetchOne(AbstractJPAQuery.java:326)
        at se.su.dsv.scipro.grading.PublicationMetadataRepositoryImpl.findByProject(PublicationMetadataRepositoryImpl.java:33)
        at se.su.dsv.scipro.grading.PublicationMetadataServiceImpl.getByProject(PublicationMetadataServiceImpl.java:19)
        at jdk.internal.reflect.GeneratedMethodAccessor4322.invoke(Unknown Source)
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:568)
        at org.apache.wicket.proxy.jdk.JdkProxyFactory$JdkHandler.invoke(JdkProxyFactory.java:172)
        at jdk.proxy4.$Proxy413.getByProject(Unknown Source)
        at se.su.dsv.scipro.project.panels.FinalStepsPanel$FinalStepsForm.lambda$new$df775e33$1(FinalStepsPanel.java:113)
        at org.apache.wicket.model.LoadableDetachableModel$1.load(LoadableDetachableModel.java:216)
        at org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:128)
        at org.apache.wicket.Component.getDefaultModelObject(Component.java:1592)
        at org.apache.wicket.IGenericComponent.getModelObject(IGenericComponent.java:70)
        at se.su.dsv.scipro.grading.PublicationMetadataFormComponentPanel.inSwedish(PublicationMetadataFormComponentPanel.java:53)
        at se.su.dsv.scipro.grading.PublicationMetadataFormComponentPanel.<init>(PublicationMetadataFormComponentPanel.java:25)
        at se.su.dsv.scipro.project.panels.FinalStepsPanel$FinalStepsForm.<init>(FinalStepsPanel.java:116)
        at se.su.dsv.scipro.project.panels.FinalStepsPanel.<init>(FinalStepsPanel.java:58)
        at se.su.dsv.scipro.project.pages.ProjectDetailsPage.<init>(ProjectDetailsPage.java:110)
        at jdk.internal.reflect.GeneratedConstructorAccessor1836.newInstance(Unknown Source)
        at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:480)
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:171)
        ... 38 more
``` 2024-06-10 19:34:49 [INFO] AdditionalExceptionLogger: Current user: User(id=28864, identifier=172235, firstName=Sara, lastName=Laroussi Salah, emailAddress=sarasalahs@hotmail.com, deceased=false, degreeType=BACHELOR) (28864) 2024-06-10 19:34:49 [INFO] AdditionalExceptionLogger: Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 2024-06-10 19:34:49 [INFO] AdditionalExceptionLogger: Request url: GET project/details?pid=7961 2024-06-10 19:34:49 [INFO] AdditionalExceptionLogger: Request parameter: pid=[7961] 2024-06-10 19:34:49 [ERROR] DefaultExceptionMapper: Unexpected error occurred org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor 'public se.su.dsv.scipro.project.pages.ProjectDetailsPage(org.apache.wicket.request.mapper.parameter.PageParameters)' and argument 'pid=[7961]'. An exception has been thrown during construction! at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:194) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:99) at org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:94) at org.apache.wicket.core.request.handler.PageProvider$Provision.getPage(PageProvider.java:369) at org.apache.wicket.core.request.handler.PageProvider.getPageInstance(PageProvider.java:170) at org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78) at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:231) at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:202) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:910) at org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:63) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:294) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:255) at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:277) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:208) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:307) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:94) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:166) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:676) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:440) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:894) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:840) Caused by: java.lang.reflect.InvocationTargetException at jdk.internal.reflect.GeneratedConstructorAccessor1836.newInstance(Unknown Source) at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.lang.reflect.Constructor.newInstance(Constructor.java:480) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:171) ... 38 more Caused by: org.apache.wicket.WicketRuntimeException: An error occurred while getting the model object for Component: [PublicationMetadataFormComponentPanel [Component id = publication_metadata_components, page = <No Page>, path = publication_metadata_components.PublicationMetadataFormComponentPanel], children = [TextArea [Component id = abstract_en]]] at org.apache.wicket.Component.getDefaultModelObject(Component.java:1599) at org.apache.wicket.IGenericComponent.getModelObject(IGenericComponent.java:70) at se.su.dsv.scipro.grading.PublicationMetadataFormComponentPanel.inSwedish(PublicationMetadataFormComponentPanel.java:53) at se.su.dsv.scipro.grading.PublicationMetadataFormComponentPanel.<init>(PublicationMetadataFormComponentPanel.java:25) at se.su.dsv.scipro.project.panels.FinalStepsPanel$FinalStepsForm.<init>(FinalStepsPanel.java:116) at se.su.dsv.scipro.project.panels.FinalStepsPanel.<init>(FinalStepsPanel.java:58) at se.su.dsv.scipro.project.pages.ProjectDetailsPage.<init>(ProjectDetailsPage.java:110) at jdk.internal.reflect.GeneratedConstructorAccessor1836.newInstance(Unknown Source) at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.lang.reflect.Constructor.newInstance(Constructor.java:480) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:171) ... 38 more Caused by: com.querydsl.core.NonUniqueResultException: jakarta.persistence.NonUniqueResultException: Query did not return a unique result: 2 results were returned at com.querydsl.jpa.impl.AbstractJPAQuery.fetchOne(AbstractJPAQuery.java:331) at se.su.dsv.scipro.grading.PublicationMetadataRepositoryImpl.findByProject(PublicationMetadataRepositoryImpl.java:33) at se.su.dsv.scipro.grading.PublicationMetadataServiceImpl.getByProject(PublicationMetadataServiceImpl.java:19) at jdk.internal.reflect.GeneratedMethodAccessor4322.invoke(Unknown Source) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at org.apache.wicket.proxy.jdk.JdkProxyFactory$JdkHandler.invoke(JdkProxyFactory.java:172) at jdk.proxy4.$Proxy413.getByProject(Unknown Source) at se.su.dsv.scipro.project.panels.FinalStepsPanel$FinalStepsForm.lambda$new$df775e33$1(FinalStepsPanel.java:113) at org.apache.wicket.model.LoadableDetachableModel$1.load(LoadableDetachableModel.java:216) at org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:128) at org.apache.wicket.Component.getDefaultModelObject(Component.java:1592) at org.apache.wicket.IGenericComponent.getModelObject(IGenericComponent.java:70) at se.su.dsv.scipro.grading.PublicationMetadataFormComponentPanel.inSwedish(PublicationMetadataFormComponentPanel.java:53) at se.su.dsv.scipro.grading.PublicationMetadataFormComponentPanel.<init>(PublicationMetadataFormComponentPanel.java:25) at se.su.dsv.scipro.project.panels.FinalStepsPanel$FinalStepsForm.<init>(FinalStepsPanel.java:116) at se.su.dsv.scipro.project.panels.FinalStepsPanel.<init>(FinalStepsPanel.java:58) at se.su.dsv.scipro.project.pages.ProjectDetailsPage.<init>(ProjectDetailsPage.java:110) at jdk.internal.reflect.GeneratedConstructorAccessor1836.newInstance(Unknown Source) at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.lang.reflect.Constructor.newInstance(Constructor.java:480) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:171) ... 38 more Caused by: jakarta.persistence.NonUniqueResultException: Query did not return a unique result: 2 results were returned at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:131) at org.hibernate.query.spi.AbstractSelectionQuery.getSingleResult(AbstractSelectionQuery.java:564) at com.querydsl.jpa.impl.AbstractJPAQuery.getSingleResult(AbstractJPAQuery.java:214) at com.querydsl.jpa.impl.AbstractJPAQuery.fetchOne(AbstractJPAQuery.java:326) at se.su.dsv.scipro.grading.PublicationMetadataRepositoryImpl.findByProject(PublicationMetadataRepositoryImpl.java:33) at se.su.dsv.scipro.grading.PublicationMetadataServiceImpl.getByProject(PublicationMetadataServiceImpl.java:19) at jdk.internal.reflect.GeneratedMethodAccessor4322.invoke(Unknown Source) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at org.apache.wicket.proxy.jdk.JdkProxyFactory$JdkHandler.invoke(JdkProxyFactory.java:172) at jdk.proxy4.$Proxy413.getByProject(Unknown Source) at se.su.dsv.scipro.project.panels.FinalStepsPanel$FinalStepsForm.lambda$new$df775e33$1(FinalStepsPanel.java:113) at org.apache.wicket.model.LoadableDetachableModel$1.load(LoadableDetachableModel.java:216) at org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:128) at org.apache.wicket.Component.getDefaultModelObject(Component.java:1592) at org.apache.wicket.IGenericComponent.getModelObject(IGenericComponent.java:70) at se.su.dsv.scipro.grading.PublicationMetadataFormComponentPanel.inSwedish(PublicationMetadataFormComponentPanel.java:53) at se.su.dsv.scipro.grading.PublicationMetadataFormComponentPanel.<init>(PublicationMetadataFormComponentPanel.java:25) at se.su.dsv.scipro.project.panels.FinalStepsPanel$FinalStepsForm.<init>(FinalStepsPanel.java:116) at se.su.dsv.scipro.project.panels.FinalStepsPanel.<init>(FinalStepsPanel.java:58) at se.su.dsv.scipro.project.pages.ProjectDetailsPage.<init>(ProjectDetailsPage.java:110) at jdk.internal.reflect.GeneratedConstructorAccessor1836.newInstance(Unknown Source) at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.lang.reflect.Constructor.newInstance(Constructor.java:480) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:171) ... 38 more Caused by: org.hibernate.NonUniqueResultException: Query did not return a unique result: 2 results were returned at org.hibernate.query.spi.AbstractSelectionQuery.uniqueElement(AbstractSelectionQuery.java:578) at org.hibernate.query.spi.AbstractSelectionQuery.getSingleResult(AbstractSelectionQuery.java:561) at com.querydsl.jpa.impl.AbstractJPAQuery.getSingleResult(AbstractJPAQuery.java:214) at com.querydsl.jpa.impl.AbstractJPAQuery.fetchOne(AbstractJPAQuery.java:326) at se.su.dsv.scipro.grading.PublicationMetadataRepositoryImpl.findByProject(PublicationMetadataRepositoryImpl.java:33) at se.su.dsv.scipro.grading.PublicationMetadataServiceImpl.getByProject(PublicationMetadataServiceImpl.java:19) at jdk.internal.reflect.GeneratedMethodAccessor4322.invoke(Unknown Source) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:568) at org.apache.wicket.proxy.jdk.JdkProxyFactory$JdkHandler.invoke(JdkProxyFactory.java:172) at jdk.proxy4.$Proxy413.getByProject(Unknown Source) at se.su.dsv.scipro.project.panels.FinalStepsPanel$FinalStepsForm.lambda$new$df775e33$1(FinalStepsPanel.java:113) at org.apache.wicket.model.LoadableDetachableModel$1.load(LoadableDetachableModel.java:216) at org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:128) at org.apache.wicket.Component.getDefaultModelObject(Component.java:1592) at org.apache.wicket.IGenericComponent.getModelObject(IGenericComponent.java:70) at se.su.dsv.scipro.grading.PublicationMetadataFormComponentPanel.inSwedish(PublicationMetadataFormComponentPanel.java:53) at se.su.dsv.scipro.grading.PublicationMetadataFormComponentPanel.<init>(PublicationMetadataFormComponentPanel.java:25) at se.su.dsv.scipro.project.panels.FinalStepsPanel$FinalStepsForm.<init>(FinalStepsPanel.java:116) at se.su.dsv.scipro.project.panels.FinalStepsPanel.<init>(FinalStepsPanel.java:58) at se.su.dsv.scipro.project.pages.ProjectDetailsPage.<init>(ProjectDetailsPage.java:110) at jdk.internal.reflect.GeneratedConstructorAccessor1836.newInstance(Unknown Source) at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.lang.reflect.Constructor.newInstance(Constructor.java:480) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:171) ... 38 more ```
ansv7779 added this to the SciPro project 2024-11-28 10:14:08 +01:00
ansv7779 removed this from the SciPro project 2024-11-28 15:50:51 +01:00
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DMC/scipro#7
No description provided.