You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampipes.apache.org by "Philipp Zehnder (Jira)" <ji...@apache.org> on 2020/11/30 20:46:00 UTC

[jira] [Commented] (STREAMPIPES-261) Error when using RuntimeResolvableStaticProperty in an alternative

    [ https://issues.apache.org/jira/browse/STREAMPIPES-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17241028#comment-17241028 ] 

Philipp Zehnder commented on STREAMPIPES-261:
---------------------------------------------

I created a branch STREAMPIPES-261 in the extensions project. It contains my implementation that triggers the error.

To reproduce use the *Merge Two Streams* processor. The error occurs when resolving the runtime options

> Error when using RuntimeResolvableStaticProperty in an alternative
> ------------------------------------------------------------------
>
>                 Key: STREAMPIPES-261
>                 URL: https://issues.apache.org/jira/browse/STREAMPIPES-261
>             Project: StreamPipes
>          Issue Type: Bug
>          Components: Backend, Pipeline Elements, UI
>            Reporter: Philipp Zehnder
>            Priority: Major
>
> When adding the this code to the declareModel:
> Alternatives.from(Labels.withId(ENABLE_GROUPING),
>  StaticProperties.group(Labels.withId(GROUP_CONFIG),
>  StaticProperties.singleValueSelectionFromContainer(Labels.withId(GROUP_ID_STREAM_1)),
>  StaticProperties.singleValueSelectionFromContainer(Labels.withId(GROUP_ID_STREAM_2)))))
>  
> the following error occurs when the UI tries to resolve the options:
> Caused by: org.apache.http.ProtocolException: Target host is not specifiedCaused by: org.apache.http.ProtocolException: Target host is not specified at org.apache.http.impl.conn.DefaultRoutePlanner.determineRoute(DefaultRoutePlanner.java:71) at org.apache.http.impl.client.InternalHttpClient.determineRoute(InternalHttpClient.java:125) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) ... 80 moreorg.apache.http.client.ClientProtocolException at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:187)
>  
> It seems that the variable this.pipelineElement in BaseRuntimeResolvableInput in the ui is not initialized correctly.
> All values of of the REST request in fetchRemoteOptionsForPipelineElement are undefined.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)