java.net.UnknownHostException: platform.healthvault-ppe.com

Aug 17, 2009 at 11:55 AM

Hi All,

I am trying to run the sample Ui application that comes along with java sdk.After succesful login to Haalthvault ,while I return back to the application i get the following error.Any help is appreciated.

ERROR [RequestCycle] Can't instantiate page using constructor public com.microsoft.hsg.applications.weight.AuthenticationPage(org.apache.wicket.PageParameters) and argument wctoken = "[ASAAAGqn95wyJApHq8YUaIVfeJOdrRZFoVThpRBN7Uv7h3/xsBLr7rW4VP8+woN2FTbfJjM7ITt3plD3u84Ehdt59f78jflTFR3+xizLO7nYT5b22Znd5an2w1rpoSTBg8x7Q2vT0wvTeVDKPvglnXu/Ltf4XGA8GgIUbKUeiwKnHANy2Joq9w==]" actionqs = "[/]" target = "[AppAuthSuccess]"

org.apache.wicket.WicketRuntimeException

at org.apache.wicket.session.DefaultPageFactory.newPage(

at org.apache.wicket.session.DefaultPageFactory.newPage(

at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(

at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(

at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(

at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(

at org.apache.wicket.RequestCycle.processEventsAndRespond(

at org.apache.wicket.RequestCycle.step(

at org.apache.wicket.RequestCycle.steps(

at org.apache.wicket.RequestCycle.request(

at org.apache.wicket.protocol.http.WicketFilter.doGet(

at org.apache.wicket.protocol.http.WicketFilter.doFilter(

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(

at org.apache.catalina.core.ApplicationFilterChain.doFilter(

at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(

at org.apache.catalina.core.ApplicationFilterChain.doFilter(

at org.apache.catalina.core.StandardWrapperValve.invoke(

at org.apache.catalina.core.StandardContextValve.invoke(

at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(

at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(

at org.jboss.web.tomcat.security.JaccContextValve.invoke(

at org.apache.catalina.core.StandardHostValve.invoke(

at org.apache.catalina.valves.ErrorReportValve.invoke(

at org.apache.catalina.core.StandardEngineValve.invoke(

at org.apache.catalina.connector.CoyoteAdapter.service(

at org.apache.coyote.http11.Http11Processor.process(

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(

at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(

at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(

at java.lang.Thread.run(

Caused by:

: Can't instantiate page using constructor public com.microsoft.hsg.applications.weight.AuthenticationPage(org.apache.wicket.PageParameters) and argument wctoken = "[ASAAAGqn95wyJApHq8YUaIVfeJOdrRZFoVThpRBN7Uv7h3/xsBLr7rW4VP8+woN2FTbfJjM7ITt3plD3u84Ehdt59f78jflTFR3+xizLO7nYT5b22Znd5an2w1rpoSTBg8x7Q2vT0wvTeVDKPvglnXu/Ltf4XGA8GgIUbKUeiwKnHANy2Joq9w==]" actionqs = "[/]" target = "[AppAuthSuccess]"DefaultPageFactory.java:175)DefaultPageFactory.java:96)BookmarkablePageRequestTarget.java:268)BookmarkablePageRequestTarget.java:283)BookmarkablePageRequestTarget.java:210)AbstractRequestCycleProcessor.java:90)RequestCycle.java:1094)RequestCycle.java:1169)RequestCycle.java:1245)RequestCycle.java:489)WicketFilter.java:354)WicketFilter.java:194)ApplicationFilterChain.java:202)ApplicationFilterChain.java:173)ReplyHeaderFilter.java:81)ApplicationFilterChain.java:202)ApplicationFilterChain.java:173)StandardWrapperValve.java:213)StandardContextValve.java:178)CustomPrincipalValve.java:39)SecurityAssociationValve.java:159)JaccContextValve.java:59)StandardHostValve.java:126)ErrorReportValve.java:105)StandardEngineValve.java:107)CoyoteAdapter.java:148)Http11Processor.java:856)Http11Protocol.java:744)PoolTcpEndpoint.java:527)MasterSlaveWorkerThread.java:112)Thread.java:595)java.lang.reflect.InvocationTargetException

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(

at sun.reflect.NativeConstructorAccessorImpl.newInstance(

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(

at java.lang.reflect.Constructor.newInstance(

at org.apache.wicket.session.DefaultPageFactory.newPage(

... 30 more

Caused by:

at com.microsoft.hsg.ConnectionFactory.getConnection(

at com.microsoft.hsg.applications.weight.AuthenticationPage.getSelectedRecordId(

at com.microsoft.hsg.applications.weight.AuthenticationPage.<init>(

... 35 more

Caused by:

at com.microsoft.hsg.Connection.send(

at com.microsoft.hsg.HVAccessor$1.send(

at com.microsoft.hsg.SimpleSendStrategy.doWithSender(

at com.microsoft.hsg.HVAccessor.send(

at com.microsoft.hsg.ApplicationAuthenticator.authenticate(

at com.microsoft.hsg.ApplicationAuthenticator.authenticate(

at com.microsoft.hsg.Connection.authenticate(

at com.microsoft.hsg.Connection.authenticate(

at com.microsoft.hsg.ConnectionFactory.getConnection(

... 37 more

Caused by:

at com.microsoft.hsg.URLConnectionTransport.doRequest(

at com.microsoft.hsg.Connection.makeRequest(

at com.microsoft.hsg.Connection.send(

... 45 more

Caused by:

at java.net.PlainSocketImpl.connect(

at java.net.Socket.connect(

at sun.net.NetworkClient.doConnect(

at sun.net.www.http.HttpClient.openServer(

at sun.net.www.http.HttpClient.openServer(

at sun.net.www.protocol.https.HttpsClient.<init>(

at sun.net.www.protocol.https.HttpsClient.New(

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(

at sun.net.www.protocol.http.HttpURLConnection.plainConnect(

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(

at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(

at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(

at com.microsoft.hsg.URLConnectionTransport.doRequest(

... 47 more

Native Method)NativeConstructorAccessorImpl.java:39)DelegatingConstructorAccessorImpl.java:27)Constructor.java:494)DefaultPageFactory.java:154)com.microsoft.hsg.HVException: com.microsoft.hsg.HVSystemException: Could not make requestConnectionFactory.java:56)AuthenticationPage.java:85)AuthenticationPage.java:40)com.microsoft.hsg.HVSystemException: Could not make requestConnection.java:141)HVAccessor.java:88)SimpleSendStrategy.java:15)HVAccessor.java:86)ApplicationAuthenticator.java:136)ApplicationAuthenticator.java:123)Connection.java:154)Connection.java:163)ConnectionFactory.java:50)com.microsoft.hsg.HVTransportException: java.net.UnknownHostException: platform.healthvault-ppe.comURLConnectionTransport.java:43)Connection.java:168)Connection.java:137)java.net.UnknownHostException: platform.healthvault-ppe.comPlainSocketImpl.java:177)Socket.java:507)NetworkClient.java:152)HttpClient.java:365)HttpClient.java:477)HttpsClient.java:278)HttpsClient.java:335)AbstractDelegateHttpsURLConnection.java:176)HttpURLConnection.java:744)AbstractDelegateHttpsURLConnection.java:162)HttpURLConnection.java:836)HttpsURLConnectionImpl.java:230)URLConnectionTransport.java:34)

 

 

Thanks

Shweta

Coordinator
Aug 26, 2009 at 4:10 PM

Hi Shweta,

This is caused by your machine being unable to resolve the host name of our ppe servers to an ip address.  Can you hit account.healthvault-ppe.com from your browser.  If so, then your machine can resolve the name and your network access is working. 

--Rob

Aug 27, 2009 at 3:55 AM

Hi Robmay,

Thanks fo the reply.Yes, I can hit the url account.healthvault-ppe.com from my browser.But in the application when I try connection to  <font size="2" color="#2a00ff"><font size="2" color="#2a00ff">https</font></font><font size="2" color="#2a00ff"></font>://platform.healthvault-ppe.com/platform/wildcat.ashx I get a connection time out error

The code that causes problem lies in the URLConnectionTransport class of the java sdk .Below  is the code that causes problem:

<font size="2">

URLConnection conn =

</font>

url.openConnection();

conn.setRequestProperty("Content-type", "text/xml");

<font size="2">

conn.setDoInput (

</font>

true);<font size="2">

conn.setDoOutput (

</font>

true);

 conn.setConnectTimeout(connectionTimeout);

conn.setReadTimeout(readTimeout);

 OutputStream out = conn.getOutputStream ();  //This line throws the Connection time out Exception<font size="2">

out.write(request.getBytes(

</font>

"UTF-8"));<font size="2">

 

</font>

OutputStream out = conn.getOutputStream (); 

 

out.write(request.getBytes(

"UTF-8"));

out.flush ();

out.close ();

Please help as I am stuck at this prblm since past two weeks

 

Thanks and Regards

Shweta

 

 

Coordinator
Sep 3, 2009 at 9:13 PM

Sorry, try to hit https://platform.healthvault-ppe.com/platform/wildcat.ashx from your browser.  That is HV web service endpoint.

It is clear that you have network issues.  Something in your network infrastructure is obstructing you.

Are you in an environment that requires a proxy to initiate outbound connection?  Your browser may be auto-configured for the proxy.  If you are required to traverse a proxy or firewall you will have to explicitly configure one.  I don't have much to go on from this end to help you track down your network configuration.