You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but when clicking the "AdapQuest-Example" survey, the screen shows an error message of "internal server error". This is the stack trace I've found in the logs---hope this helps :-)
2023-04-06 10:30:28.342 INFO ch.idsia.adaptive.backend.controller.SurveyController User with token=ebec1de4-fc1c-4db2-9374-fffb414a7fed request a new question
2023-04-06 10:30:28.443 ERROR org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/aq].[dispatcherServlet] Servlet.service() for servlet [dispatcherServlet] in context with path [/aq] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: no such vertex in graph: -1] with root cause
java.lang.IllegalArgumentException: no such vertex in graph: -1
at org.jgrapht.graph.AbstractGraph.assertVertexExist(AbstractGraph.java:131)
at org.jgrapht.graph.AbstractBaseGraph.outgoingEdgesOf(AbstractBaseGraph.java:484)
at ch.idsia.crema.model.graphical.DAGModel.getChildren(DAGModel.java:257)
at ch.idsia.crema.search.impl.DepthFirst.visit(DepthFirst.java:34)
at ch.idsia.crema.search.impl.DepthFirst.visitAll(DepthFirst.java:25)
at ch.idsia.crema.search.impl.DepthFirst.visit(DepthFirst.java:21)
at ch.idsia.crema.preprocess.RemoveBarren.cutIndependent(RemoveBarren.java:131)
at ch.idsia.crema.preprocess.RemoveBarren.executeInPlace(RemoveBarren.java:32)
at ch.idsia.crema.inference.bp.LoopyBeliefPropagation.preprocess(LoopyBeliefPropagation.java:90)
at ch.idsia.crema.inference.bp.LoopyBeliefPropagation.query(LoopyBeliefPropagation.java:185)
at ch.idsia.crema.inference.bp.LoopyBeliefPropagation.query(LoopyBeliefPropagation.java:181)
at ch.idsia.adaptive.backend.services.commons.inference.precise.InferenceLBP.query(InferenceLBP.java:21)
at ch.idsia.adaptive.backend.services.commons.inference.precise.InferenceLBP.query(InferenceLBP.java:16)
at ch.idsia.adaptive.backend.services.commons.agents.AgentPreciseAdaptive.nextQuestion(AgentPreciseAdaptive.java:152)
at ch.idsia.adaptive.backend.services.commons.agents.AgentGeneric.next(AgentGeneric.java:219)
at ch.idsia.adaptive.backend.services.SurveyManagerService.nextQuestion(SurveyManagerService.java:120)
at ch.idsia.adaptive.backend.controller.SurveyController.nextQuestion(SurveyController.java:341)
at ch.idsia.adaptive.backend.controller.SurveyController$$FastClassBySpringCGLIB$$544da7d.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)
at ch.idsia.adaptive.backend.controller.SurveyController$$EnhancerBySpringCGLIB$$8d27981f.nextQuestion(<generated>)
at ch.idsia.adaptive.backend.controller.DemoController.survey(DemoController.java:171)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:502)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:186)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:354)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:267)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:492)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:768)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:389)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
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.base/java.lang.Thread.run(Thread.java:833)
The text was updated successfully, but these errors were encountered:
This happens in our Kitt4sme cloud deployment, but since it's a demo we don't need a fix. I reported this issue just in case you needed to know.
Anyway, here's some more detail about it. I've just managed to reproduce the issue, so it looks like it happens all the time in our cloud deployment. You can try that yourself
you should see an error message: "Internal Server Error"
if you look at the logs kubectl logs svc/aq, you'll see the same stack trace as above. (Not sure you have access to the Kitt4sme logs, but some of your colleagues at SUPSI should.)
For reference, here's what AQ's cloud deployment looks like at the moment:
We've deployed version
1.6.3
but when clicking the "AdapQuest-Example" survey, the screen shows an error message of "internal server error". This is the stack trace I've found in the logs---hope this helps :-)
The text was updated successfully, but these errors were encountered: