Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
co-supersonic with 1.3.0 unable to create session

Hello,

I wanted to try a new application with the latest co-supersonic template 1.3.0, but I get the following error, when I launch the app:

2022-09-12 11:05:45,569 ERROR [at.cam.pub.aut.api.res.imp.AuthSessionRestService] (executor-thread-0) Anonymous Auth-Service session creation failed: org.jboss.resteasy.client.exception.ResteasyWebApplicationException: Unknown error, status code 404
at org.jboss.resteasy.client.exception.WebApplicationExceptionWrapper.wrap(WebApplicationExceptionWrapper.java:107)
at org.jboss.resteasy.microprofile.client.DefaultResponseExceptionMapper.toThrowable(DefaultResponseExceptionMapper.java:21)
at org.jboss.resteasy.microprofile.client.ExceptionMapping$HandlerException.mapException(ExceptionMapping.java:41)
at org.jboss.resteasy.microprofile.client.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:153)
at jdk.proxy4/jdk.proxy4.$Proxy131.createSessionAnonymously(Unknown Source)
at at.campusonline.pub.auth.api.impl.quarkus.session.QuarkusRemoteUserSessionCreationService.createAnonymousSession(QuarkusRemoteUserSessionCreationService.java:40)
at at.campusonline.pub.auth.api.impl.quarkus.session.QuarkusRemoteUserSessionCreationService_Subclass.createAnonymousSession$$superforward1(Unknown Source)
at at.campusonline.pub.auth.api.impl.quarkus.session.QuarkusRemoteUserSessionCreationService_Subclass$$function$$1.apply(Unknown Source)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:54)
at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.proceed(InvocationInterceptor.java:62)
at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.monitor(InvocationInterceptor.java:49)
at io.quarkus.arc.runtime.devconsole.InvocationInterceptor_Bean.intercept(Unknown Source)
at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:41)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.perform(AroundInvokeInvocationContext.java:41)
at io.quarkus.arc.impl.InvocationContexts.performAroundInvoke(InvocationContexts.java:32)
at at.campusonline.pub.auth.api.impl.quarkus.session.QuarkusRemoteUserSessionCreationService_Subclass.createAnonymousSession(Unknown Source)
at at.campusonline.pub.auth.api.rest.impl.AuthSessionRestService.createAnonymousSession(AuthSessionRestService.java:182)
at at.campusonline.pub.auth.api.rest.impl.AuthSessionRestService.getUserSession(AuthSessionRestService.java:70)
at at.campusonline.pub.auth.api.rest.impl.AuthSessionRestService_Subclass.getUserSession$$superforward1(Unknown Source)
at at.campusonline.pub.auth.api.rest.impl.AuthSessionRestService_Subclass$$function$$5.apply(Unknown Source)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:54)
at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.proceed(InvocationInterceptor.java:62)
at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.monitor(InvocationInterceptor.java:49)
at io.quarkus.arc.runtime.devconsole.InvocationInterceptor_Bean.intercept(Unknown Source)
at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:41)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:50)
at io.quarkus.security.runtime.interceptor.SecurityHandler.handle(SecurityHandler.java:47)
at io.quarkus.security.runtime.interceptor.SecurityHandler_Subclass.handle$$superforward1(Unknown Source)
at io.quarkus.security.runtime.interceptor.SecurityHandler_Subclass$$function$$2.apply(Unknown Source)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:54)
at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.proceed(InvocationInterceptor.java:62)
at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.monitor(InvocationInterceptor.java:49)
at io.quarkus.arc.runtime.devconsole.InvocationInterceptor_Bean.intercept(Unknown Source)
at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:41)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.perform(AroundInvokeInvocationContext.java:41)
at io.quarkus.arc.impl.InvocationContexts.performAroundInvoke(InvocationContexts.java:32)
at io.quarkus.security.runtime.interceptor.SecurityHandler_Subclass.handle(Unknown Source)
at io.quarkus.security.runtime.interceptor.PermitAllInterceptor.intercept(PermitAllInterceptor.java:23)
at io.quarkus.security.runtime.interceptor.PermitAllInterceptor_Bean.intercept(Unknown Source)
at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:41)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.perform(AroundInvokeInvocationContext.java:41)
at io.quarkus.arc.impl.InvocationContexts.performAroundInvoke(InvocationContexts.java:32)
at at.campusonline.pub.auth.api.rest.impl.AuthSessionRestService_Subclass.getUserSession(Unknown Source)
at at.campusonline.pub.auth.api.rest.impl.AuthSessionRestService_ClientProxy.getUserSession(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:170)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:130)
at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:660)
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:524)
at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$2(ResourceMethodInvoker.java:474)
at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364)
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:476)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:434)
at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:192)
at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:141)
at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:32)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:492)
at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:261)
at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:161)
at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364)
at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:164)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:247)
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:249)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:60)
at io.quarkus.resteasy.runtime.ResteasyServlet.service(ResteasyServlet.java:19)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:63)
at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:67)
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLtionAssociationHandler.java:133)
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:65)
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.quarkus.undertow.runtime.RewriteCorrectingHandlerWrappers$PostWrapper$1.handleRequest(RewriteCorrectingHandlerWrappers.java:51)
at io.undertow.predicate.PredicatesHandler.handleRequest(PredicatesHandler.java:110)
at io.quarkus.undertow.runtime.RewriteCorrectingHandlerWrappers$PreWrapper$1.handleRequest(RewriteCorrectingHandlerWrappers.java:31)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:247)
at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:56)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:111)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:108)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$9$1.call(UndertowDeploymentRecorder.java:590)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
at io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:152)
at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$1.handleRequest(UndertowDeploymentRecorder.java:119)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:290)
at io.undertow.server.DefaultExchangeHandler.handle(DefaultExchangeHandler.java:18)
at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$5$1.run(UndertowDeploymentRecorder.java:412)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at io.quarkus.vertx.core.runtime.VertxCoreRecorder$13.runWith(VertxCoreRecorder.java:543)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:833)

  
  
Posted 2 years ago
Votes Newest

Answers 4


Hello nochmals, das mit der desktop api war ja einer falschen public-api-url in application.yaml. Bitte Frage dann auch schließen.

  
  
Posted 2 years ago

Hi Anand,

Hast du die Änderung in deiner application_custom.yaml lt.
https://www.campusonline.at/support/ee/ui/ca2/app/desktop/#/pl/ui/$ctx/wbRMT2.editRequestDetail?$ctx=design=ca2;header=max;lang=de&pReqNr=62424
durchgeführt.

Aktuell wurde der Endpoint zum erstellen einer Session deaktiviert,
weil die CAMPUSonline Abmeldung die Keycloak Abmeldung nicht triggert
und es dadurch auf Terminal PCs dazu kommt,
wenn man sich zwar bei CAMPUSonline abmeldet,
man immer noch am Keycloak angemeldet ist.

Folgende Änderung brauchst du:

"%dev":
  conx:
    auth:
      session-type: oidc

    desktop:
      desktop-api-mode: online
      login-type: oidc

Eine genau Beschreibung habe ich noch auf
https://gitlab.com/CoCommunity/conx-info/-/blob/main/ISSUES.md
hinzugefügt.

lg zoni

  
  
Posted 2 years ago

Hmm danke, ich habe an das komplett vergessen. Allerdings funktioniert nun die Desktop API nicht:

http://localhost:4200/coloc/checkin/api/user/desktop

{status: 404, title: "Unknown error, status code 404",…}
status
:
404
title
:
"Unknown error, status code 404"
type
:
"exception:org.jboss.resteasy.client.exception.ResteasyWebApplicationException"

2022-09-16 09:34:54,192 INFO [io.qua.htt.access-log] (executor-thread-0) 127.0.0.1 - - 16/Sep/2022:09:34:54 +0200 "GET /coloc/checkin/api/auth/session HTTP/1.1" 200 188
2022-09-16 09:34:54,401 WARN [at.cam.pub.jax.err.map.sha.ExceptionLogger] (executor-thread-0) [JAX-RS][404][exception:org.jboss.resteasy.client.exception.ResteasyWebApplicationException] Unknown error, status code 404 (cause: org.jboss.resteasy.client.exception.WebApplicationExceptionWrapper.wrap(WebApplicationExceptionWrapper.java:107))
2022-09-16 09:34:54,406 INFO [io.qua.htt.access-log] (executor-thread-0) 127.0.0.1 - - 16/Sep/2022:09:34:54 +0200 "GET /coloc/checkin/api/user/desktop HTTP/1.1" 404 142
2022-09-16 09:34:54,461 WARN [at.cam.pub.jax.err.map.sha.ExceptionLogger] (executor-thread-0) [JAX-RS][404][exception:org.jboss.resteasy.client.exception.ResteasyWebApplicationException] Unknown error, status code 404 (cause: org.jboss.resteasy.client.exception.WebApplicationExceptionWrapper.wrap(WebApplicationExceptionWrapper.java:107))
2022-09-16 09:34:54,463 INFO [io.qua.htt.access-log] (executor-thread-0) 127.0.0.1 - - 16/Sep/2022:09:34:54 +0200 "GET /coloc/checkin/api/user/desktop HTTP/1.1" 404 142

  
  
Posted 2 years ago

Here the problem was that when I was creating the application, I used
mvn archetype:generate
-DarchetypeGroupId=at.campusonline.conx
-DarchetypeArtifactId=co-supersonic-archetype
-DarchetypeVersion=1.3.0
-DgroupId=at.unigraz
-DartifactId=co-loc-checkin
-Dversion=1.3.0
-DurlPrefix=coloc/checkin
-DjdbcUrl=jdbc:oracle:thin:@ugo11.uni-graz.at:1521:kfuprod
-DdbUser=CO_LOC_CHECKIN
-DauthServerUrl=https://qline.uni-graz.at/QSYSTEM_KFU/co/public/sec/auth/realms/CAMPUSonline/
-DpublicApiUrl=https://qline.uni-graz.at/QSYSTEM_KFU/co/public**/api**
-Denvironment=co-public
-DaddExampleFeatures=true

Just this extra /api in the publicApiURL caused the 404, where the whole api than began to include https://qline.uni-graz.at/QSYSTEM_KFU/co/public**/api/api/**user/desktop

I learnt to debug this with Zoni, by setting all the HTTP Logs (Under conx settings) to true in the .env file.

  
  
Posted 2 years ago
2K Views
4 Answers
2 years ago
2 years ago
Tags