> IE returns FileNotFoundException when it can't connect
It's not IE that does this. URLConnection converts EVERY error code into a
FileNotFoundException
BTW why are you settin the Contenbt-Type header on the request, this is a
response header. For a request use the 'Accpet' header
>From your error code
> > Exception is =========>java.io.FileNotFoundException:
> > 192.168.0.97:8080//servlet/PWS_Submodule
This is a badly formed URL (note the //), looks like you've got your
concatenation wrong,
Kevin Jones
DevelopMentor
www.develop.com
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Rob
> Griffin
> Sent: 18 January 2001 04:33
> To: [EMAIL PROTECTED]
> Subject: Re: urgent...
>
>
> Donny,
>
> What is the URL that you used?
>
> IE returns FileNotFoundException when it can't connect
> to the given URL. Try typing the servlet URL directly
> into the browser and see what you get.
>
> Also I'd be inclined to set the content type to
> application/octet-stream.
>
> And on a final note it's better if you use a more
> meaningful subject. Urgent isn't going to make anyone
> reply, either they have time or they don't.
>
> Regards,
>
> Rob Griffin
> Quest Software
>
> E-mail: [EMAIL PROTECTED]
> Web site: http://www.quest.com
>
> > -----Original Message-----
> > From: A mailing list for discussion about Sun Microsystem's Java Servlet
> > API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Donny
> > Philip
> > Sent: Thursday, 18 January 2001 15:12
> > To: [EMAIL PROTECTED]
> > Subject: urgent...
> >
> >
> > Scenario.
> > Applet to servlet communication.
> > Protocol used is http.
> > Jdk 1.3 used for java
> > Servlets on Java Web Server
> >
> > Code.
> > ------------------------------------------------------------------
> > --------------------------------------------------------
> > URLConnection con = ser.openConnection();
> > try{
> > con.setRequestProperty("Content-Type","java-internal"+objs.getClass
> > ().getName());
> > ObjectOutputStream out = new ObjectOutputStream(con.getOutputStream
> > ());
> > out.writeObject(objs);
> > out.flush();
> > out.close();
> >
> > }
> > catch(Exception e)
> > {
> > System.out.println("Exception is =========>"+e);
> > e.printStackTrace();
> > }
> >
> >
> >
> > Exception is
> > (occours on the out.flush() statement)..
> > ------------------------------------------------------------------
> > --------------------------------------------------------------
> > Exception is =========>java.io.FileNotFoundException:
> > 192.168.0.97:8080//servlet/PWS_Submodule
> > java.io.FileNotFoundException: 192.168.0.97:8080//servlet/PWS_Submodule
> > at com/ms/net/wininet/http/HttpInputStream.connect
> > (HttpInputStream.java)
> > at com/ms/net/wininet/http/HttpInputStream.<init>
> > (HttpInputStream.java)
> > at
> > com/ms/net/wininet/http/HttpURLConnection.createInputStream
> > (HttpURLConnection.java)
> > at com/ms/net/wininet/WininetURLConnection.getInputStream
> > (WininetURLConnection.java)
> > at com/ms/net/wininet/http/HttpPostBufferStream.close
> > (HttpPostBufferStream.java)
> > at java/io/ObjectOutputStream.close (ObjectOutputStream.java)
> > at PWG_ServletWriter.postObjects (PWG_ServletWriter.java:37)
> > at PWG_DatabaseProxy.exchangeDataWithServlet
> > (PWG_DatabaseProxy.java:25)
> > at PWA_SubModule_Mnt.init (PWA_SubModule_Mnt.java:149)
> > at com/ms/applet/AppletPanel.securedCall0 (AppletPanel.java)
> > at com/ms/applet/AppletPanel.securedCall (AppletPanel.java)
> > at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
> > at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
> > at com/ms/applet/AppletPanel.run (AppletPanel.java)
> > at java/lang/Thread.run (Thread.java)
> >
> >
> > Could you pls help me out
> >
> >
> > thanks and regards
> > Donny.
> >
> > __________________________________________________________________
> > _________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include
> > in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html