forum.netbsd.se - NetBSD Sweden

You are not logged in.

  • Index
  •  » Support
  •  » Exception when calling web service from Java Client

#1 2009-02-09 19:04:11

sravyen
Member
Registered: 2009-02-09
Posts: 1

Exception when calling web service from Java Client

I have proxy server set up and accessible from my Windows server(I can access the web client), but when I call the web service from Java client I get this error in the Console.

run:
===========================================
Project Name is:Test Project
Logging into the Project...
In Try Block
Have an Exception
Feb 9, 2009 11:00:03 AM ttsample.Engine Login
SEVERE: null
java.rmi.RemoteException: HTTP transport error: java.net.UnknownHostException: http; nested exception is:
        HTTP transport error: java.net.UnknownHostException: http
Logged in...
        at ttsample.TtsoapcgiPortType_Stub.databaseLogon(TtsoapcgiPortType_Stub.java:819)
        at ttsample.Engine.Login(Engine.java:74)
        at ttsample.Main.main(Main.java:30)
Caused by: HTTP transport error: java.net.UnknownHostException: http
        at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:140)
        at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:96)
        at ttsample.TtsoapcgiPortType_Stub.databaseLogon(TtsoapcgiPortType_Stub.java:802)
        ... 2 more
BUILD SUCCESSFUL (total time: 4 seconds)

I am using a WSDL to invoke a web operation in my program in NetBeans6.5 . I tried the -D option to set the Proxy host and port in the Project Properties Run option in VM Options as "-Dhttp.proxyHost=10.1.104.63 -Dhttp.proxyPort=8080"

Any help would be greatly appreciated.

Thanks,
Sravanthi.

Offline

 

#2 2009-05-10 08:56:46

mxb
Member
Registered: 2009-05-09
Posts: 1

Re: Exception when calling web service from Java Client

Javas' trace is self-explainable.
java.net.UnknownHostException: http

It is something with your setup. If you are forced to use proxy, then check out if you properly give params to java while executing.
If not - get ride of them then.

Offline

 
  • Index
  •  » Support
  •  » Exception when calling web service from Java Client

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB