dave-csc opened a new issue, #4813:
URL: https://github.com/apache/hop/issues/4813

   ### Apache Hop version?
   
   2.11.0
   
   ### Java version?
   
   17.0.2
   
   ### Operating system
   
   Linux
   
   ### What happened?
   
   Choose a test file for the Web services lookup transform: if the WSDL file 
resides in the `${PROJECT_HOME}` folder, the transform fails because it tries 
to look for a folder with the URL-escaped braces, e.g. 
`file:/opt/apache/hop-2.11.0/$%7BPROJECT_HOME%7D/wsdl/my_wsdl_v2.8.wsdl`.
   
   Tentative workaround: select the file (without pressing Open) in the Test 
file GUI window, copy the composed path and paste it in the URL field. However, 
when pressing Load the following exception is raised:
   ```
   RuntimeException: Could not load WSDL file: 
   org.apache.http.client.ClientProtocolException
    at org.apache.hop.ui.hopgui.HopGui.main (HopGui.java:354)
    at org.apache.hop.ui.hopgui.HopGui.open (HopGui.java:476)
    at org.eclipse.swt.widgets.Display.readAndDispatch (Display.java:4517)
    at org.eclipse.swt.widgets.Display.runDeferredEvents (Display.java:5065)
    at org.eclipse.swt.widgets.Widget.sendEvent (Widget.java:1617)
    at org.eclipse.swt.widgets.Display.sendEvent (Display.java:5855)
    at org.eclipse.swt.widgets.EventTable.sendEvent (EventTable.java:91)
    at org.eclipse.swt.widgets.TypedListener.handleEvent 
(TypedListener.java:237)
    at org.apache.hop.ui.hopgui.file.pipeline.HopGuiPipelineGraph.mouseUp 
(HopGuiPipelineGraph.java:940)
    at org.apache.hop.ui.hopgui.file.pipeline.HopGuiPipelineGraph.editTransform 
(HopGuiPipelineGraph.java:3368)
    at 
org.apache.hop.ui.hopgui.file.pipeline.delegates.HopGuiPipelineTransformDelegate.editTransform
 (HopGuiPipelineTransformDelegate.java:195)
    at org.apache.hop.pipeline.transforms.webservices.WebServiceDialog.open 
(WebServiceDialog.java:1264)
    at org.apache.hop.ui.core.dialog.BaseDialog.defaultShellHandling 
(BaseDialog.java:528)
    at org.eclipse.swt.widgets.Display.readAndDispatch (Display.java:4517)
    at org.eclipse.swt.widgets.Display.runDeferredEvents (Display.java:5065)
    at org.eclipse.swt.widgets.Widget.sendEvent (Widget.java:1617)
    at org.eclipse.swt.widgets.Display.sendEvent (Display.java:5855)
    at org.eclipse.swt.widgets.EventTable.sendEvent (EventTable.java:91)
    at org.eclipse.swt.widgets.TypedListener.handleEvent 
(TypedListener.java:265)
    at 
org.apache.hop.pipeline.transforms.webservices.WebServiceDialog$3.widgetSelected
 (WebServiceDialog.java:889)
    at 
org.apache.hop.pipeline.transforms.webservices.WebServiceDialog.initTreeTabWebService
 (WebServiceDialog.java:331)
    at 
org.apache.hop.pipeline.transforms.webservices.WebServiceDialog.loadWebService 
(WebServiceDialog.java:170)
    at org.apache.hop.pipeline.transforms.webservices.wsdl.Wsdl.<init> 
(Wsdl.java:75)
    at org.apache.hop.pipeline.transforms.webservices.wsdl.Wsdl.parse 
(Wsdl.java:356)
    at org.apache.hop.pipeline.transforms.webservices.wsdl.Wsdl.readWsdl 
(Wsdl.java:365)
    at org.apache.hop.core.HttpProtocol.get (HttpProtocol.java:81)
    at org.apache.http.impl.client.CloseableHttpClient.execute 
(CloseableHttpClient.java:56)
    at org.apache.http.impl.client.CloseableHttpClient.execute 
(CloseableHttpClient.java:108)
    at org.apache.http.impl.client.CloseableHttpClient.execute 
(CloseableHttpClient.java:83)
    at org.apache.http.impl.client.InternalHttpClient.doExecute 
(InternalHttpClient.java:187)
   
   Root cause: ProtocolException: Target host is not specified
   ```
   
   Tentative workaround of workaround 😅 : add a `file://` marker before the 
composed path as explained above. This time the exception raised is:
   ```
   RuntimeException: Could not load WSDL file: 
   org.apache.http.client.ClientProtocolException: URI does not specify a valid 
host name: file:///work/hop/config/projects/my_project/wsdl/my_wsdl_v2.8.wsdl
   URI does not specify a valid host name: 
file:///work/hop/config/projects/my_project/wsdl/my_wsdl_v2.8.wsdl
   
   Root cause: ClientProtocolException: URI does not specify a valid host name: 
file:///work/hop/config/projects/my_project/wsdl/my_wsdl_v2.8.wsdl
   ```
   
   ### Issue Priority
   
   Priority: 2
   
   ### Issue Component
   
   Component: Hop Gui, Component: Transforms


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to