Hi. I'm trying to follow the guide here: http://developer.axonivy.com/doc/7.3.1/DesignerGuideHtml/ivy.integration.html#ivy.integration.rest and all I'm getting is a stacktrace:

java.lang.IllegalStateException: Request scope has been already shut down.
    at jersey.repackaged.com.google.common.base.Preconditions.checkState(Preconditions.java:173)
    at org.glassfish.jersey.process.internal.RequestScope.retrieveCurrent(RequestScope.java:239)
    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:314)
    at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)
    at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
    at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)
    at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)
    at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)
    at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)
    at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:126)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at ch.ivyteam.ivy.webserver.internal.filter.FilterChain.next(FilterChain.java:33)
    at ch.ivyteam.ivy.webserver.internal.exception.ExceptionFilter.doFilter(ExceptionFilter.java:55)
    at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at ch.ivyteam.ivy.webserver.internal.filter.FilterChain.next(FilterChain.java:33)
    at ch.ivyteam.ivy.webserver.internal.startup.IvyEngineUnavailableFilter.doFilter(IvyEngineUnavailableFilter.java:30)
    at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at ch.ivyteam.ivy.webserver.internal.filter.FilterChain.next(FilterChain.java:33)
    at ch.ivyteam.util.callable.AbstractExecutionContext.lambda$0(AbstractExecutionContext.java:28)
    at ch.ivyteam.util.callable.AbstractExecutionContext.callInContext(AbstractExecutionContext.java:16)
    at ch.ivyteam.util.callable.AbstractExecutionContext.executeInContext(AbstractExecutionContext.java:26)
    at ch.ivyteam.ivy.webserver.internal.filter.RemoteClientFilter.doFilter(RemoteClientFilter.java:18)
    at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at ch.ivyteam.ivy.webserver.internal.filter.FilterChain.next(FilterChain.java:33)
    at ch.ivyteam.util.callable.AbstractExecutionContext.lambda$0(AbstractExecutionContext.java:28)
    at ch.ivyteam.util.callable.AbstractExecutionContext.callInContext(AbstractExecutionContext.java:16)
    at ch.ivyteam.util.callable.AbstractExecutionContext.executeInContext(AbstractExecutionContext.java:26)
    at ch.ivyteam.ivy.webserver.internal.filter.IvyCurrentHttpRequestFilter.doFilter(IvyCurrentHttpRequestFilter.java:13)
    at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at ch.ivyteam.ivy.webserver.internal.filter.FilterChain.next(FilterChain.java:33)
    at ch.ivyteam.util.callable.AbstractExecutionContext.lambda$0(AbstractExecutionContext.java:28)
    at ch.ivyteam.util.callable.AbstractExecutionContext.callInContext(AbstractExecutionContext.java:16)
    at ch.ivyteam.util.callable.AbstractExecutionContext.executeInContext(AbstractExecutionContext.java:26)
    at ch.ivyteam.ivy.security.exec.Sudo.execute(Sudo.java:63)
    at ch.ivyteam.ivy.webserver.internal.filter.IvyExecuteAsSystemFilter.doFilter(IvyExecuteAsSystemFilter.java:11)
    at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)
    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:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
    at ch.ivyteam.ivy.webserver.internal.PerformanceLogValve.invoke(PerformanceLogValve.java:42)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:748)

None of the classes in the stacktrace belong to my project, so it doesn't seem to be an error with my code per se. Any idea what might be wrong?

asked 23.03.2020 at 17:40

sorin's gravatar image

sorin
(suspended)
accept rate: 100%

Sounds like a ManagedBean scope problem. Do you use one with just @RequestScope?

(24.03.2020 at 04:32) Andreas Rusch Andreas%20Rusch's gravatar image

I have followed the tutorial verbatim, I have a class in the src folder, annotated with @Path("something") and then 2 methods in the class annotated, one with @GET, one with @POST and both with @Produces(MediaType.APPLICATION_JSON). All annotations are from the JAX-RS package (java.ws.rs)

(24.03.2020 at 05:09) sorin sorin's gravatar image

By the way, I imported the ConnectivityDemos project from the welcome screen and I'm trying to call http://localhost:8081/ivy/api/designer/persons or http://localhost:8081/ivy/api/ConectivityDemos/persons and I get the same error

(24.03.2020 at 05:30) sorin sorin's gravatar image

I can't reproduce the issue with the ConnectivityDemos on the LTS train. So it could be dated leading edge version which contains an unknown bug.

But if none of the ConnectivityDemos work on your machine - I'd assume that it related to the Mac Designer. Or did you switch to a non BETA designer already?

(24.03.2020 at 07:25) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

I am on designer version 7.3.1 to match our customer's engine version. But the ConnectivityDemos are the one that come from the Designer welcome page, not the ones on your Git repo, so I would have expected them to work, as they were shipped with version of the designer.

(24.03.2020 at 07:27) sorin sorin's gravatar image

Yes, they should work as they did back then. To put things right, the welcome page project importer relies upon our public maven repositories - so in theory these artifacts could have changed. Even so, we run integration tests against are demos - so a fundamental break should be early detected and never reach a customer.

... that's why I am asking about the Mac Designer. There are/were issues on the Mac Betas related to the REST stack. (caused by path issues). So if there is a problem that persist in a recent LTS version, we can fix something.

(24.03.2020 at 08:28) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

It works in 8.0.3 on Mac, I've just downloaded it and tested. Is there a way to work in 8.0.3 designer and run on 7.3.1 engine afterwards? Are they compatible like that?

(24.03.2020 at 09:17) sorin sorin's gravatar image

Thanks for testing @sorin

No, working on LTS 8 towards a 7.3.1 engine is not recommended. Some models are not compatible (e.g. Process.mod format changed).

But I'd insist that the customers migrates to the LTS version. Leading Edge release are out of support when the next release is available. So only a switch to the LTS train gives you a stable tested version. Especially security issues will become an important issue in the near future...

(24.03.2020 at 10:24) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image
showing 5 of 8 show 3 more comments

Turns out it's a bug on Mac Designer v7 and it works on Windows

link

answered 15.04.2020 at 03:44

sorin's gravatar image

sorin
(suspended)
accept rate: 100%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×33

Asked: 23.03.2020 at 17:40

Seen: 1,363 times

Last updated: 15.04.2020 at 03:44