Layer7 API Management

 View Only
  • 1.  Exception configuring gateway: Unexpected error saving configuration 'Could not send Message.

    Posted Jul 31, 2020 04:19 AM
    Edited by Prasantha Sivabalasunderam Jul 31, 2020 04:19 AM
    I am getting below error when I run this command .  Appreciate any help on resolving this. Installing on one node.
    command: cat create-node.properties | /opt/SecureSpan/Gateway/config/ssgconfig.sh -headless create

    Error: Exception configuring gateway: Unexpected error saving configuration 'Could not send Message.

    config log: /opt/SecureSpan/Gateway/config/logs/config.log

    [2020/07/31 at 03:23:10] - [WARNING]: Interceptor for {http://node.api.management.server.l7tech.com/}NodeManagementApiService#{http://node.api.management.server.l7tech.com/}createDatabase
    has thrown exception, unwinding now
    org.apache.cxf.interceptor.Fault: Could not send Message.
    at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
    at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:542)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:473)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:376)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:329)
    at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:95)
    at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
    at com.sun.proxy.$Proxy42.createDatabase(Unknown Source)
    at com.l7tech.gateway.config.client.beans.NodeConfigurationBeanProvider.storeConfiguration(Unknown Source)
    at com.l7tech.gateway.config.client.beans.f.call(Unknown Source)
    at com.l7tech.gateway.config.client.beans.f.call(Unknown Source)
    at com.l7tech.gateway.config.client.beans.HeadlessConfigBean.configure(Unknown Source)
    at com.l7tech.gateway.config.client.HeadlessConfig.a(Unknown Source)
    at com.l7tech.gateway.config.client.HeadlessConfig.main(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.l7tech.util.ApplicationLauncher.main(Unknown Source)
    Caused by: java.net.ConnectException: ConnectException invoking https://[::1]:8765/services/nodeManagementApi: Connection refused (Connection refused)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1446)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1431)
    at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
    at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:650)
    at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
    ... 19 more
    Caused by: java.net.ConnectException: Connection refused (Connection refused)
    at java.net.PlainSocketImpl.socketConnect(Native Method)


  • 2.  RE: Exception configuring gateway: Unexpected error saving configuration 'Could not send Message.
    Best Answer

    Broadcom Employee
    Posted Aug 02, 2020 07:09 PM
    Sounds like a firewall issue -- connection refused for port 8765.
    What's the form factor of gateway? Software gateway? 
    You may double check if port 8765 is opened.

    Regards,
    Mark


  • 3.  RE: Exception configuring gateway: Unexpected error saving configuration 'Could not send Message.

    Posted Nov 21, 2020 05:40 AM

    Hi, I am still getting this error when I run `cat /tmp/ssg/create-node.properties | /opt/SecureSpan/Gateway/config/ssgconfig.sh -headless create`. I shutdown and disabled my firewall. This happens when I try to setup in local VM ( Vmware ). 

    What is this running on https://[::1]:8765/services/nodeManagementApi:

    If I run setup manually then I don't get the same error




  • 4.  RE: Exception configuring gateway: Unexpected error saving configuration 'Could not send Message.

    Broadcom Employee
    Posted Nov 23, 2020 11:06 AM
    Hello,

    It appears  you are running the wrong command.

    https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-api-management/api-gateway/10-0/install-configure-upgrade/auto-provision-a-gateway/auto-provision-a-gateway-node.html

    this is the command that I have used in the past as per the documentation. 

    # cat create-node.properties | /opt/SecureSpan/Gateway/config/bin/ssgconfig-headless create