You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@streampipes.apache.org by GitBox <gi...@apache.org> on 2022/12/26 09:16:14 UTC

[GitHub] [streampipes] Praveenstein created a discussion: OPC UA Could not resolve runtime configurations Error

GitHub user Praveenstein created a discussion: OPC UA Could not resolve runtime configurations Error

I don't know why but this issues keeps popping up when creating opc ua adapter

Could not resolve runtime configurations from http://172.31.0.7:8090/api/v1/worker/resolvable/org.apache.streampipes.connect.iiot.adapters.opcua/configurations

Full Stack: 

org.apache.streampipes.connect.api.exception.AdapterException: Could not resolve runtime configurations from http://172.31.0.7:8090/api/v1/worker/resolvable/org.apache.streampipes.connect.iiot.adapters.opcua/configurations
	at org.apache.streampipes.connect.container.master.management.WorkerRestClient.getConfiguration(WorkerRestClient.java:175)
	at org.apache.streampipes.rest.impl.connect.RuntimeResolvableResource.fetchConfigurations(RuntimeResolvableResource.java:62)
	at jdk.internal.reflect.GeneratedMethodAccessor493.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52)
	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124)
	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167)
	at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176)
	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79)
	at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:475)
	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:397)
	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:81)
	at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:255)
	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)
	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)
	at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
	at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
	at org.glassfish.jersey.internal.Errors.process(Errors.java:244)
	at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265)
	at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:234)
	at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:684)
	at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:394)
	at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:346)
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:366)
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:319)
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:205)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:327)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:115)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:81)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:122)
	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:116)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:126)
	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:81)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:109)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:149)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	at org.apache.streampipes.rest.filter.TokenAuthenticationFilter.doFilterInternal(TokenAuthenticationFilter.java:84)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:103)
	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:89)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:91)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:90)
	at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:75)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110)
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:55)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:211)
	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183)
	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:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	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:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:890)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1743)
	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(Unknown Source)

GitHub link: https://github.com/apache/streampipes/discussions/895

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] tenthe added a comment to the discussion: OPC UA Could not resolve runtime configurations Error

Posted by GitBox <gi...@apache.org>.
GitHub user tenthe added a comment to the discussion: OPC UA Could not resolve runtime configurations Error

Hello @curichan,
that is a very good suggestion. We already have this on our roadmap.
In addition to partial node loading, we also plan to improve the configuration dialog for OPC UA.
If you have any other suggestions for improvements, please feel free to write them  here. We are always happy to receive feedback from the community.

GitHub link: https://github.com/apache/streampipes/discussions/895#discussioncomment-5877544

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] bossenti added a comment to the discussion: OPC UA Could not resolve runtime configurations Error

Posted by GitBox <gi...@apache.org>.
GitHub user bossenti added a comment to the discussion: OPC UA Could not resolve runtime configurations Error

@curichan thanks a lot for your feedback! 
Just out of interest, how long took the loading in your experience? 

GitHub link: https://github.com/apache/streampipes/discussions/895#discussioncomment-5884690

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] curichan edited a comment on the discussion: OPC UA Could not resolve runtime configurations Error

Posted by GitBox <gi...@apache.org>.
GitHub user curichan edited a comment on the discussion: OPC UA Could not resolve runtime configurations Error

Hi @bossenti,
I did dig around in the source code and seem to remember seeing a timeout setting of 100,000ms, which corresponds roughly to 1.7 minutes. My gut feeling is that this is the time it takes for the error message to appear when trying to get the information for "large" nodes. Smaller nodes with around 10 or 12 sub-nodes took around 10 to 15 seconds to load.

GitHub link: https://github.com/apache/streampipes/discussions/895#discussioncomment-5884761

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] tenthe added a comment to the discussion: OPC UA Could not resolve runtime configurations Error

Posted by GitBox <gi...@apache.org>.
GitHub user tenthe added a comment to the discussion: OPC UA Could not resolve runtime configurations Error

Hi @Praveenstein,
there seems to be a problem when the schema is guessed.
The actual connection to the OPC UA server is done via the `connect-worker` running in the service `extensions-all-jvm`.
Can you please check if this service is running? 
Another issue could be that no connection to the OPC UA server can be established, but then you should get another error message. 
If the service and the OPC UA server are running, you can try to restart StreamPipes via `docker-compose down` and start it with `docker-compose up -d` again.
Please let me know if it worked.

GitHub link: https://github.com/apache/streampipes/discussions/895#discussioncomment-4497135

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] curichan added a comment to the discussion: OPC UA Could not resolve runtime configurations Error

Posted by GitBox <gi...@apache.org>.
GitHub user curichan added a comment to the discussion: OPC UA Could not resolve runtime configurations Error

Hi all,
I observed the same error as reported by @Praveenstein. Both the OPC UA server and the service extensions-all-jvm are running. However, it turns our that this seems to be a problem with reading the schema of the OPC UA server. If I specify a node with only a small number of sub-nodes (of order 10 or so), the error message does not appear and the schema for that node is displayed correctly. Trying to read a "larger" node results in the reported error. I guess that Streampipes is trying to recursively read the entire schema below the specified node. For production-grade servers this can take a considerable time and so Streampipes runs into a timeout. Would it be possible to change this behaviour and make Streampipe only read the schema one level down from the specified node and only request deeper levels when the user expands a sub-node? This is how, for example, UaExpert provided by Unified Automation solves this problem. 

GitHub link: https://github.com/apache/streampipes/discussions/895#discussioncomment-5874887

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] curichan added a comment to the discussion: OPC UA Could not resolve runtime configurations Error

Posted by GitBox <gi...@apache.org>.
GitHub user curichan added a comment to the discussion: OPC UA Could not resolve runtime configurations Error

Hi @bossenti,
I did dig around in the source code and seem to remember seeing a timeout setting of 100,000ms, which corresponds roughly to 1,7 minutes. My gut feeling is that this is the time it takes for the error message to appear when trying to get the information for "large" nodes. Smaller nodes with around 10 or 12 sub-nodes took around 10 to 15 seconds to load.

GitHub link: https://github.com/apache/streampipes/discussions/895#discussioncomment-5884761

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org


[GitHub] [streampipes] curichan added a comment to the discussion: OPC UA Could not resolve runtime configurations Error

Posted by GitBox <gi...@apache.org>.
GitHub user curichan added a comment to the discussion: OPC UA Could not resolve runtime configurations Error

Hi @tenthe,
many thanks for the very quick reply! Yes, I think a speed-up of the OPC UA configuration dialogue would also be a very useful improvement as my personal impression is that even reading a "small" node takes quite a long time currently. But partial node loading would definitely be the way forward and enormously improve usability. 

GitHub link: https://github.com/apache/streampipes/discussions/895#discussioncomment-5880909

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@streampipes.apache.org