SOAP UI Test Fails - CONNECT 4.7 - Connection Refused

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

SOAP UI Test Fails - CONNECT 4.7 - Connection Refused

valogin
Hi,

Just warming up with CONNECT and currently installed 4.7 on JB7. Soap UI validation fails ...i know that i am missing something with certs. I am able to run using maven with embedded WildFly...but no luck running with external JB7 and Soup UI and I followed same instruction on the page
https://connectopensource.atlassian.net/wiki/spaces/CONNECTWIKI/pages/113311930/Deploying+CONNECT+from+Binaries. Here is the server log output



21:36:58,733 ERROR [gov.hhs.fha.nhinc.auditrepository.nhinc.proxy.AuditRepositoryProxyWebServiceSecuredImpl] (default-workqueue-1) Failed to call the web service(auditrepositorysecured). An unexpected exception occurred. Exception: Connection refused: javax.xml.ws.soap.SOAPFaultException: Connection refused
        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:155)
        at com.sun.proxy.$Proxy278.logEvent(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 gov.hhs.fha.nhinc.webserviceproxy.WebServiceProxyHelper.invokeTheMethod(WebServiceProxyHelper.java:271)
        at gov.hhs.fha.nhinc.webserviceproxy.WebServiceProxyHelper.invokePort(WebServiceProxyHelper.java:351)
        at gov.hhs.fha.nhinc.webserviceproxy.WebServiceProxyHelper.invokePortWithRetry(WebServiceProxyHelper.java:399)
        at gov.hhs.fha.nhinc.webserviceproxy.WebServiceProxyHelper.invokePort(WebServiceProxyHelper.java:325)
        at gov.hhs.fha.nhinc.messaging.client.CONNECTBaseClient.invokePort(CONNECTBaseClient.java:54)
        at gov.hhs.fha.nhinc.auditrepository.nhinc.proxy.AuditRepositoryProxyWebServiceSecuredImpl.auditLog(AuditRepositoryProxyWebServiceSecuredImpl.java:73)
        at gov.hhs.fha.nhinc.admindistribution.AdminDistributionAuditLogger.audit(AdminDistributionAuditLogger.java:55)
        at gov.hhs.fha.nhinc.admindistribution.AdminDistributionAuditLogger.auditNhinAdminDist(AdminDistributionAuditLogger.java:135)
        at gov.hhs.fha.nhinc.admindistribution.nhin.proxy.NhinAdminDistributionProxyWebServiceSecuredImpl.auditMessage(NhinAdminDistributionProxyWebServiceSecuredImpl.java:171)
        at gov.hhs.fha.nhinc.admindistribution.nhin.proxy.NhinAdminDistributionProxyWebServiceSecuredImpl.sendAlertMessage(NhinAdminDistributionProxyWebServiceSecuredImpl.java:131)
        at gov.hhs.fha.nhinc.admindistribution.nhin.proxy.NhinAdminDistributionProxyWebServiceSecuredImpl$$FastClassByCGLIB$$62acc32.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
        at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
        at gov.hhs.fha.nhinc.admindistribution.nhin.proxy.NhinAdminDistributionProxyWebServiceSecuredImpl$$EnhancerByCGLIB$$68d82cb1.sendAlertMessage(<generated>)
        at gov.hhs.fha.nhinc.admindistribution.entity.OutboundAdminDistributionStrategyImpl_g1.execute(OutboundAdminDistributionStrategyImpl_g1.java:71)
        at gov.hhs.fha.nhinc.admindistribution.entity.OutboundAdminDistributionStrategyImpl_g1.execute(OutboundAdminDistributionStrategyImpl_g1.java:50)
        at gov.hhs.fha.nhinc.orchestration.OrchestrationContext.execute(OrchestrationContext.java:40)
        at gov.hhs.fha.nhinc.admindistribution.entity.OutboundAdminDistributionDelegate.process(OutboundAdminDistributionDelegate.java:73)
        at gov.hhs.fha.nhinc.admindistribution.outbound.StandardOutboundAdminDistribution.sendToNhinProxy(StandardOutboundAdminDistribution.java:198)
        at gov.hhs.fha.nhinc.admindistribution.outbound.StandardOutboundAdminDistribution.sendAlertMessage(StandardOutboundAdminDistribution.java:104)
        at gov.hhs.fha.nhinc.admindistribution.outbound.StandardOutboundAdminDistribution$$FastClassByCGLIB$$68638277.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
        at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
        at gov.hhs.fha.nhinc.admindistribution.outbound.StandardOutboundAdminDistribution$$EnhancerByCGLIB$$787966d8.sendAlertMessage(<generated>)
        at gov.hhs.fha.nhinc.admindistribution._20.entity.EntityAdministrativeDistribution_g1.sendAlertMessage(EntityAdministrativeDistribution_g1.java:55)
        at gov.hhs.fha.nhinc.admindistribution._20.entity.EntityAdministrativeDistribution_g1$$FastClassByCGLIB$$7c8f2b89.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
        at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
        at gov.hhs.fha.nhinc.admindistribution._20.entity.EntityAdministrativeDistribution_g1$$EnhancerByCGLIB$$1b70487e.sendAlertMessage(<generated>)
        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 org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
        at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:178)
        at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:68)
        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:107)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
        at org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:241)
        at org.apache.cxf.interceptor.OneWayProcessorInterceptor$1.run(OneWayProcessorInterceptor.java:144)
        at org.apache.cxf.workqueue.AutomaticWorkQueueImpl$3.run(AutomaticWorkQueueImpl.java:426)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at org.apache.cxf.workqueue.AutomaticWorkQueueImpl$AWQThreadFactory$1.run(AutomaticWorkQueueImpl.java:351)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.ctc.wstx.exc.WstxIOException: Connection refused
        at com.ctc.wstx.sw.BaseNsStreamWriter.doWriteStartTag(BaseNsStreamWriter.java:621)
        at com.ctc.wstx.sw.SimpleNsStreamWriter.writeStartOrEmpty(SimpleNsStreamWriter.java:265)
        at com.ctc.wstx.sw.BaseNsStreamWriter.writeStartElement(BaseNsStreamWriter.java:317)
        at org.apache.cxf.staxutils.StaxUtils.writeStartElement(StaxUtils.java:638)
        at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:574)
        at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:562)
        at org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor$SAAJOutEndingInterceptor.handleMessage(SAAJOutInterceptor.java:212)
        at org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor$SAAJOutEndingInterceptor.handleMessage(SAAJOutInterceptor.java:172)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
        at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:366)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319)
        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:133)
        ... 80 more
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
Reply | Threaded
Open this post in threaded view
|

Re: SOAP UI Test Fails - CONNECT 4.7 - Connection Refused

valogin
Adding some more logs....any help..much appreciated.

018-01-26 22:39:59 TRACE DefaultListableBeanFactory:527 - No bean named '{urn:ihe:iti:xcpd:2009}RespondingGateway_PortTypePort.http-conduit' found in org.springframework.beans.factory.support.DefaultListableBeanFactory@389439ab: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,securityConfigInInterceptor,timestampInInterceptor,attachmentFaultOutInterceptor,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,cxf.config10,AdapterDocQuery,AdapterDocQuerySecured,SOAPHeaderHandler]; root of factory hierarchy
22:40:00,847 WARN  [gov.hhs.fha.nhinc.callback.openSAML.HOKSAMLAssertionBuilder] (EJB default - 1) Not a Valid Distinguished Name, setting the value from Certificate: Invalid name: wanderson
22:40:00,865 WARN  [gov.hhs.fha.nhinc.callback.openSAML.HOKSAMLAssertionBuilder] (EJB default - 1) Not a Valid Distinguished Name, setting the value from Certificate: Invalid name: wanderson
22:40:00,878 WARN  [gov.hhs.fha.nhinc.callback.PurposeOfForDecider] (EJB default - 1) Could not read purpose of / for action: No enum constant null
22:40:00,890 WARN  [gov.hhs.fha.nhinc.callback.openSAML.HOKSAMLAssertionBuilder] (pool-22-thread-1) Not a Valid Distinguished Name, setting the value from Certificate: Invalid name: wanderson
22:40:00,891 WARN  [gov.hhs.fha.nhinc.callback.openSAML.HOKSAMLAssertionBuilder] (pool-22-thread-1) Not a Valid Distinguished Name, setting the value from Certificate: Invalid name: wanderson
Reply | Threaded
Open this post in threaded view
|

Re: SOAP UI Test Fails - CONNECT 4.7 - Connection Refused

johnhd_at_zen
I don't think you're encountering a certificate issue for your original stacktrace. (If you are I'd expect at least an ADDITIONAL stacktrace with some kind of SAAJ error or similar. Do you have one?)

It looks to me like you're actually successfully receiving the initiating message from whichever SOAPUI test you're doing, but the gateway is failing on its own internal audit web service call.

Failed to call the web service(auditrepositorysecured)

This could be a network issue, but let's check configuration first.

In AuditRepositoryProxyConfig.xml can I confirm the value you have for the "alias" of "auditRepository"? I'm guessing you have this:

    
<!--
        Beans defined for auditrepository
    -->
    <alias alias="auditrepository" name="auditrepositorywssecured" />

Then, go ahead and check your internalConnectionInfo.xml for the businessService with a serviceKey of uddi:nhincnode:auditrepositorysecured. This is what the stacktrace is complaining about trying to hit.

Here's what mine looks like:

  <businessService serviceKey="uddi:nhincnode:auditrepositorysecured">
                <name xml:lang="en">auditrepositorysecured</name>
                <bindingTemplates>
                    <bindingTemplate bindingKey="uddi:nhincnode:auditrepositorysecured" serviceKey="uddi:nhincnode:auditrepositorysecured">
                        <accessPoint useType="endPoint">https://<myInternalIp>:4437/CONNECTGateway/GatewayService/AuditRepositoryManagerSecuredService</accessPoint>
                        <categoryBag>
                            <keyedReference tModelKey="uddi:nhin:versionofservice" keyName="" keyValue="1.0"/>
                        </categoryBag>
                    </bindingTemplate>
                </bindingTemplates>
                <categoryBag>
                    <keyedReference tModelKey="uddi:nhin:standard-servicenames" keyName="auditrepositorysecured" keyValue="auditrepositorysecured"/>
                </categoryBag>
            </businessService>


If you can, from the server itself, try telnetting that port to see if it's open. Easiest thing to check. Next would be whether this service is down for some reason (maybe all kinds of reasons, hunch being a MYSQL issue). It *could* be a certificate issue if these first two don't work, but I'd really expect to see a more specific log entry. With a little coaxing we can CURL this endpoint to make sure it's up but that will take some configuration changes. Let's start with this?
Ask The Experts! Free 15 minute live Q&A sessions with one of Zen's Expert Integrators @ https://consultzen.com/integration-service-desk-solutions/

www.consultzen.com
Reply | Threaded
Open this post in threaded view
|

Re: SOAP UI Test Fails - CONNECT 4.7 - Connection Refused

valogin
Hi John,
Thanks for the reply and much appreciated. It looks like i goofed up the installation first time(looks certs were not properly installed)..I reinstalled it from the scratch(good documents...my bad I didn't follow properly) and was able to run SOAP UI Test successfully.

Just followed an old thread

http://forums.connectopensource.org/HELP-Trying-to-run-PatientDiscovery-After-Initial-Install-td7579424.html#a7579425


Cheers,
Sen