Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » OHF » Query Document Failure using the OHF
Query Document Failure using the OHF [message #586927] Wed, 20 August 2008 11:16
Jason is currently offline JasonFriend
Messages: 45
Registered: July 2009
Member
Hi there,

I am currently working on a solution to retrieve the document metadata
from the registry using the document UniqueId. I am behind a proxy. I
guess am not able to send a query to the registry using the following code
because of the exception. Does anybody know a solution how to fix this
problem because i set the proxy correctly and the transaction iti-14 works
also for this registry except the query. I did not find anything about
such a problem. It seems that invokeStoredQuery throws this exception.
Indeed, i guess its the sending part inside the invokeStoredQuery method.


Initializing:
--------------
...
String registryURI =
"http://129.6.24.109:9080/axis2/services/xdsregistryb";
java.net.URI regURI = new java.net.URI(registryURI);
bConsumer = new B_Consumer(regURI);
Config.start(true);
AtnaAgentFactory.getAtnaAgent().setDoAudit(false);
...

Sending:
--------
...
System.setProperty("http.proxySet", "true");
System.setProperty("http.proxyHost", proxyHost);
System.setProperty("http.proxyPort", proxyPort);
...
GetDocumentsQuery q = new GetDocumentsQuery(new String[]{"the document
uniqueid gets here"}, false);
XDSQueryResponseType response = null;
try {
response = this.bConsumer.invokeStoredQuery(q, true);
} catch (Exception e) {
logger.error(e.toString());
}
...


Failure caused after execution:
-------------------------------
org.eclipse.ohf.ihe.common.ws.OHFSOAPException: Error Sending SOAP Message
[Caused by java.net.SocketException: Socket retries exhausted. ]
at
org.eclipse.ohf.ihe.common.ws.AbstractOHFSOAPSender.executeS end(AbstractOHFSOAPSender.java:253)
at
org.eclipse.ohf.ihe.common.ws.AbstractOHFSOAPSender.send(Abs tractOHFSOAPSender.java:363)
at
org.eclipse.ohf.ihe.common.ws.AbstractOHFSOAPSender.send(Abs tractOHFSOAPSender.java:384)
at
org.eclipse.ohf.ihe.xds.soap.AbstractXDSSoapClient.send(Abst ractXDSSoapClient.java:148)
at
org.eclipse.ohf.ihe.xds.soap.AbstractXDSSoapClient.send(Abst ractXDSSoapClient.java:104)
at org.eclipse.ohf.ihe.xds.consumer.Consumer.sendQuery(Consumer .java:533)
at
org.eclipse.ohf.ihe.xds.consumer.Consumer.invokeStoredQuery( Consumer.java:314)
at
com.siemens.pse.ihe.source.ITI_18.testGetDocumentsByUniqueId (ITI_18.java:88)
at com.siemens.pse.ihe.source.ITI_18.main(ITI_18.java:167)
Caused by: java.net.SocketException: Socket retries exhausted.
at
org.eclipse.ohf.ihe.atna.transport.TransporterImpl.createSoc ket(TransporterImpl.java:306)
at
org.eclipse.ohf.ihe.atna.transport.TransporterImpl.getSocket (TransporterImpl.java:100)
at org.eclipse.ohf.ihe.atna.agent.AtnaAgent.getSocket(AtnaAgent .java:223)
at
org.eclipse.ohf.ihe.common.ws.AbstractOHFSOAPSender.configur eTransportProtocol(AbstractOHFSOAPSender.java:195)
at
org.eclipse.ohf.ihe.common.ws.AbstractOHFSOAPSender.executeS end(AbstractOHFSOAPSender.java:228)
... 8 more
Previous Topic:Async XDS.b - Questions for the OHF community
Next Topic:ProvideAndRegisterDocumentSetType --> OMElement
Goto Forum:
  


Current Time: Thu Apr 25 16:06:30 GMT 2024

Powered by FUDForum. Page generated in 0.02304 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top