So the applet is not the issue, there is something wrong in the code. Try
writing an app that does a simple http get on a static resource that you
know is reachable. Once that works, use the same app to get the URL that's
failing here, if that fails then the error must be elsewhere,

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 Donny
> Philip
> Sent: 18 January 2001 16:15
> To: [EMAIL PROTECTED]
> Subject: Re: Doubt JDK1.3 and JDK1.1.8 and servlets
>
>
> Hello Kevin and All,
> Thankx for the reply.
> Its JSDK is 2.0 for me.
>
> HAs anyone worked in such a combination(JDK1.3 and JSDK2.0)
> Is raising the problem here good enough?
> Do i have to mail sun support site??
>
>
>
> > Its working with JDK1.1.8 and not JDK1.3
> which bits work/don't work
>
>
> Are you sure the browser is not caching the applet?
> --------->Yes, i delete all cached files before running applet
>
>
> Have you tried this in different browsers?
> ----------> No just IE
>
>
> Hava you tried this code outside an applet?
> Have you tried appletviewer?
> ---------> Yes same error..
>
> Thanks
> Donny.
>
>
>
>
>
>
>
> Kevin Jones <[EMAIL PROTECTED]>@java.sun.com> on 01/18/2001 08:38:57
> PM
>
> Please respond to "A mailing list for discussion about Sun
>       Microsystem's Java Servlet API Technology."
>       <[EMAIL PROTECTED]>
>
> Sent by:  "A mailing list for discussion about Sun Microsystem's Java
>       Servlet API Technology." <[EMAIL PROTECTED]>
>
>
> To:   [EMAIL PROTECTED]
> cc:
> Subject:  Re: Doubt JDK1.3 and JDK1.1.8 and servlets
>
>
> > Hello,
> > Does the working of servlets have any connection with the version of
> > Java.
>
> Different containers might rely on different versions on the JDK, but
> the
> servlet spec has no dependencies that I'm aware of
>
> > Its working with JDK1.1.8 and not JDK1.3
> which bits work/don't work
>
>
> Are you sure the browser is not caching the applet?
> Have you tried this in different browsers?
> Hava you tried this code outside an applet?
> Have you tried appletviewer?
>
> 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
> Donny
> > Philip
> > Sent: 18 January 2001 11:28
> > To: [EMAIL PROTECTED]
> > Subject: Doubt JDK1.3 and JDK1.1.8 and servlets
> >
> >
> > Hello,
> > Does the working of servlets have any connection with the version of
> > Java.
> > Its working with JDK1.1.8 and not JDK1.3
> >
> >
> > Scenario
> > 1.Applet in client
> > 2.Servlets in Java Web Server
> >
> > Error
> > ------------------------------------------------------------------
> > ----------------------------------------------
> > Class:ONE(PWG_DatabaseProxy)
> > ------------------------------------------------------------------
> > ----------------------------------------
> > import java.io.*;
> > import java.net.*;
> > import java.util.*;
> >
> > public class PWG_DatabaseProxy
> > {
> >   URL servletadd;  // The fully-qualified URL to the called servlet.
> >   URL webBase;  // The complete URL to the servlet web server (ex.
> > 'http://www.sun.com:8080').
> >   ObjectInputStream in; // Input stream from the servlet.
> >   ObjectOutputStream out; // Input stream from the servlet.
> >
> >
> >   public PWG_DatabaseProxy(URL web)
> >   {
> >    webBase = web;
> >   }
> >
> >     public Serializable[] exchangeDataWithServlet(String
> > strServletName,Serializable objs[])throws Exception
> >     {
> >        String def = "http://192.168.0.97:8080/servlet/PWS_Submodule"
> > ;>>>>>>>>(Different address coming in Stack Trace)
> >         servletadd = new URL(def);
> >         in = PWG_ServletWriter.postObjects(servletadd,objs);
> >         Serializable[] data = (Serializable [])in.readObject();
> >         System.out.println("Data======"+data);
> >         in.close();
> >         return data;
> >     }
> > }
> > -----------------------------------------------
> > CLASS:TWO(PWG_ServletWriter invoked by CLASS ONE)
> > ------------------------------------------------------------------
> > --------------------------
> >
> > import java.net.*;
> > import java.io.*;
> > public class PWG_ServletWriter
> > {
> >   static public ObjectInputStream postObjects(URL ser,Serializable
> > objs[]) throws Exception
> >   {
> >
> >    URLConnection con = ser.openConnection();
> >    con.setDoInput(true);
> >    con.setDoOutput(true);
> >    con.setUseCaches(false);
> >    con.setRequestProperty("Application","octet-stream"+objs.getClass
> > ().getName());
> >    ObjectOutputStream out = new
> ObjectOutputStream(con.getOutputStream
> > ());
> >     out.writeObject(objs);
> >     out.flush();---------------------------->>>>>>>>>>>>>>>Error
> > causing ststement please refer below
> >    out.close();
> >    return new ObjectInputStream( con.getInputStream() );
> >   }
> > }
> > -----------------------------------------------------
> > SYSTEM RESPONSE
> > -----------------------------------------------------
> >
> > 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:155)
> >      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)
> >
> >
> > at ststement----------------------->>>>>>>>>>>>>>>>with this symbol
> above
> >
> >
> >
> >
> > thanks
> > 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

___________________________________________________________________________
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

Reply via email to