Java Security problems

Leibman, Alexander B (Alexander.Leibman@PSS.Boeing.com)
Tue, 21 Apr 1998 07:56:03 -0700

From: "Leibman, Alexander B" <Alexander.Leibman@PSS.Boeing.com>
To: "'java-security@java.sun.com'" <java-security@web1.javasoft.com>
Subject: Java Security problems
Date: Tue, 21 Apr 1998 07:56:03 -0700

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------ =_NextPart_000_01BD6CFA.F457F1F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Could you please to advise me how to run enclosed applet in Netscape=AE
Communicator 4.04=20
It works fine in appletviewer but not in Netscape.
I am just trying to read from text file which is going to be on host in
the same location as an applet.
I am not trying to write or read something that does not belong to me.
Just my own file
Why there are such difficulties?

=20
Thank you
Alexander.Leibman@pss.boeing.com
(425)266-4219
PS. Couple of articles on your web site did not help.=20

------ =_NextPart_000_01BD6CFA.F457F1F0
Content-Type: text/html;
name="a.html"
Content-Disposition: attachment;
filename="a.html"

stocks applet ------ =_NextPart_000_01BD6CFA.F457F1F0
Content-Type: application/octet-stream;
name="a1.java"
Content-Disposition: attachment;
filename="a1.java"

import java.awt.*;
import java.applet.*;
import java.net.*;
import java.io.*;
import java.lang.*;
import java.util.*;

public class a1 extends Applet
{ public void paint(Graphics g)
{ try
{ instream = a.class.getResourceAsStream("text.txt");
isr = new InputStreamReader(instream);
d = new BufferedReader(isr);
while (true)
{ try
{
symbol =readOneLine();
fullName=readOneLine();
}
catch (IOException e)
{g.drawString("writeFile: caught security exception", 10, 10);
}
catch (Exception e)
{g.drawString("writeFile: caught security exception", 10, 10);
}
System.out.println(symbol);
g.clearRect(0,0,100,25);
g.drawString(symbol, 50, 25);
System.out.println("Went asleep for sometime");
try
{Thread.sleep(500);
g.setColor(Color.black);
}
catch(InterruptedException e)
{System.out.println("Error during a sleep");
}
catch(Throwable e)
{System.out.println("Error ");
}
}
}
catch (SecurityException e)
{g.drawString("writeFile: caught security exception", 10, 10);
}
}

public static String readOneLine() throws Exception
{
try
{ str = (d.readLine()).trim();
}
catch (NullPointerException e)
{
isr.close();
}
return str;
}

public InputStream instream;
public static InputStreamReader isr;
public static BufferedReader d;
public String symbol;
public String fullName;
public static String str;
// static String stam;
public String inputLine;
// public static final Color black;
}

------ =_NextPart_000_01BD6CFA.F457F1F0
Content-Type: text/plain;
name="text.txt"
Content-Disposition: attachment;
filename="text.txt"

TDSC
3D Systems Corporation
THDO
3DO Company
SEVL
7th Level, Inc.
ADAM
A.D.A.M. Software, Inc.
AKLM
Acclaim Entertainment, Inc.
ATVI
Activision, Inc.
ALSI
Advantage Learning Systems, Inc.
ASDV
Aspect Development, Inc.
BDE
Brilliant Digital Entertainment, Inc.
BROD
Broderbund Software, Inc.
CDRM
Byron Preiss Multimedia Company, Inc.
CBTSY
CBT Group PLC
COMT
Coda Music Technology, Inc.
CSNTC
Compressent Corporation
COSFF
Corel Corporation
EDUSF
EduSoft Ltd.
EIDSY
Eidos PLC Adr
ERTS
Electronic Arts Inc.
ENTR
Enteractive, Inc.
EXCA
Excalibur Technologies Corporation
FMDAY
Futuremedia PLC
GTIS
GT Interactive Software Corp.
TLC
Learning Company, Inc.
LGCY
Legacy Software, Inc.
MACR
Macromedia, Inc.
MAPS
MapInfo Corporation
MERQ
Mercury Interactive Corporation
MCRE
MetaCreations Corporation
MGXI
Micrografx, Inc.
MODA
ModaCAD, Inc.
OMG
OMNI MultiMedia Group, Inc.
PRAN
Piranha Interactive Publishing, Inc.
PIXR
Pixar
RINT
Reality Interactive, Inc.
SGIC
Silicon Gaming, Inc.
SPCO
Software Publishing Corporation Holdings, Inc.
SSII
Sound Source Interactive, Inc.
VSIO
Visio Corporation
LUST
Wanderlust Interactive, Inc.
WARPF
Warp 10 Technologies Inc.
------ =_NextPart_000_01BD6CFA.F457F1F0--