[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.ohf] Re: Query Document Failure using the OHF

Hi Jason,

It looks from the stack trace that this request made it through all the OHF code and out. We'd have to see your logs to be sure (you can attach here or in a Bugzilla).

Does running one of the JUNITS in OHF for GetDocumentsQuery work by itself with this registry from your environment?? Maybe try setting your proxy settings in the runtime for your program (in case order is a problem here). A final thought, is that since OHf code is administering the connection for you to the registry URL, it may not permit proxy (or we don't expose it in a way for you to make this switch).

Another note, unrelated to your question, you don't need the line:

		Config.start(true);

This is only used if you want to work (backwards compatible) with XDS registry implementations prior to 2007 ... where patient id's required an assigning authority name in addition to the OID and ISO type. It's not documented too well ... so another thing to add to our list :-) The most recent set of test code is in the src_tests/org.eclipse.ohf.ihe.xds.consumer.test.mesa package. Here -- the Test configuration and the base tests (ConsumerMesaTest.java and B_ConsumerMesaTest.java) provide more up to date examples.

- Sarah




Jason wrote:
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.executeSend(AbstractOHFSOAPSender.java:253)


at org.eclipse.ohf.ihe.common.ws.AbstractOHFSOAPSender.send(AbstractOHFSOAPSender.java:363)

at org.eclipse.ohf.ihe.common.ws.AbstractOHFSOAPSender.send(AbstractOHFSOAPSender.java:384)

at org.eclipse.ohf.ihe.xds.soap.AbstractXDSSoapClient.send(AbstractXDSSoapClient.java:148)

at org.eclipse.ohf.ihe.xds.soap.AbstractXDSSoapClient.send(AbstractXDSSoapClient.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.createSocket(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.configureTransportProtocol(AbstractOHFSOAPSender.java:195)


at org.eclipse.ohf.ihe.common.ws.AbstractOHFSOAPSender.executeSend(AbstractOHFSOAPSender.java:228)

    ... 8 more