search cancel

GMU browse command not working : Unexpected end of file from server

book

Article ID: 188673

calendar_today

Updated On:

Products

CA API Gateway API SECURITY CA API Gateway Precision API Monitoring Module for API Gateway (Layer 7) CA API Gateway Enterprise Service Manager (Layer 7) STARTER PACK-7 CA Microgateway

Issue/Introduction

Using GMU browse  command locally on the  gateway ( Destination gateway  ) , gave us misleading error that we usually see with proxy/firewall in between us (client)  and gateway. 

/GatewayMigrationUtility.sh browse -h test.local.com -u gmuUser -password hashedPASSWORD.ZcxxxxxxxxxxxxxxxxxxFFdUXqqbxE7V5XnCR2Ky8 --trustCertificate true

Warning: TLS hostname verification has been disabled
Warning: TLS server certificate check has been disabled
Running..
Execution failed. Reason: Unexpected end of file from server


Apr 08, 2020 2:28:23 PM com.ca.gateway.rest.commandline.command.Command runCommand

INFO: Running Command: browse

Apr 08, 2020 2:28:24 PM com.ca.gateway.rest.commandline.command.Command runCommand

WARNING: Error executing command

javax.ws.rs.ProcessingException: java.net.SocketException: Unexpected end of file from server

        at org.glassfish.jersey.client.HttpUrlConnector.apply(HttpUrlConnector.java:184)

        at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:227)

        at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:655)

        at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:652)

        at org.glassfish.jersey.internal.Errors.process(Errors.java:315)

        at org.glassfish.jersey.internal.Errors.process(Errors.java:297)

        at org.glassfish.jersey.internal.Errors.process(Errors.java:228)

        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:422)

        at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:652)

        at com.ca.gateway.rest.api.GatewayManagementGatewayClient$IP10Folders$IdDependencies.getAsItemReferenceType(Unknown Source)

        at com.ca.gateway.rest.api.resource.impl.FolderEntityResource.getDependencies(Unknown Source)

        at com.ca.gateway.rest.api.resource.impl.FolderEntityResource.getPaletteTree(Unknown Source)

        at com.ca.gateway.rest.commandline.command.BrowseCommand.run(Unknown Source)

        at com.ca.gateway.rest.commandline.command.GatewayCommand.run(Unknown Source)

        at com.ca.gateway.rest.commandline.command.Command.runCommand(Unknown Source)

        at com.ca.gateway.rest.commandline.Main.main(Unknown Source)

Caused by: java.net.SocketException: Unexpected end of file from server

        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:851)

        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)

        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:848)

        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)

        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587)

        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)

        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)

        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:347)

        at org.glassfish.jersey.client.HttpUrlConnector._apply(HttpUrlConnector.java:276)

        at org.glassfish.jersey.client.HttpUrlConnector.apply(HttpUrlConnector.java:182)

        ... 15 more

 

Environment

Release : 9.4

Component : API GATEWAY

GMU : 1.6.00-729  

Cause

even though error in this case is pointing for possible networking issue  due to "Execution failed. Reason: Unexpected end of file from server" in our case error was misleading and issue was in encoded password 

Resolution

issue was with the encoded password. 
password that was encoded was wrong. 
so to eliminate it, please try with clear text password first.