Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

It was Applet Notinited Now it's this message?

5 views
Skip to first unread message

John

unread,
Feb 9, 2003, 1:29:08 PM2/9/03
to
I posted yesterday that I was having trouble logging on to a java site. I
was getting the message "applet notinited." Now, after fooling around, I get
the message below. I have no idea what it means. Any ideas?

Thanks.

Java(TM) Plug-in: Version 1.4.1_01
Using JRE version 1.4.1_01 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\my computer

Proxy Configuration: No proxy

----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
java.util.zip.ZipException: ZIP file must have at least one entry

at java.util.zip.ZipOutputStream.finish(Unknown Source)

at java.util.zip.DeflaterOutputStream.close(Unknown Source)

at java.util.zip.ZipOutputStream.close(Unknown Source)

at sun.plugin.cache.CachedJarLoader.decompress(Unknown Source)

at sun.plugin.cache.CachedJarLoader.access$500(Unknown Source)

at sun.plugin.cache.CachedJarLoader$5.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at sun.plugin.cache.Cache.privileged(Unknown Source)

at sun.plugin.cache.CachedJarLoader.download(Unknown Source)

at sun.plugin.cache.CachedJarLoader.load(Unknown Source)

at sun.plugin.cache.JarCache.get(Unknown Source)

at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown
Source)

at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown
Source)

at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)

at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)

at sun.misc.URLClassPath$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at sun.misc.URLClassPath.getLoader(Unknown Source)

at sun.misc.URLClassPath.getLoader(Unknown Source)

at sun.misc.URLClassPath.getResource(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at sun.applet.AppletClassLoader.findClass(Unknown Source)

at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadCode(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

load: class lotus.notes.apps.viewapplet.ViewApplet.class not found.

java.lang.ClassNotFoundException:
lotus.notes.apps.viewapplet.ViewApplet.class

at sun.applet.AppletClassLoader.findClass(Unknown Source)

at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadCode(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.io.IOException: open HTTP connection failed.

at sun.applet.AppletClassLoader.getBytes(Unknown Source)

at sun.applet.AppletClassLoader.access$100(Unknown Source)

at sun.applet.AppletClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

... 11 more

java.lang.ClassNotFoundException:
lotus.notes.apps.viewapplet.ViewApplet.class

at sun.applet.AppletClassLoader.findClass(Unknown Source)

at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadCode(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.io.IOException: open HTTP connection failed.

at sun.applet.AppletClassLoader.getBytes(Unknown Source)

at sun.applet.AppletClassLoader.access$100(Unknown Source)

at sun.applet.AppletClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

... 11 more

Donald Lau 糂煎番

unread,
Feb 14, 2003, 10:49:46 AM2/14/03
to
The output is display 10 words with highest frequency of occurence in the
input data in alphabetical order.
The another output of words that have more than seven and less than thirteen
characters from the input file.
Thank you very much. Then sent the code to dona...@netvigator.com
=========================================================================
For example:
output : Show in dos and output file
----------
a
boy
cat
dog
girl
flower
iron
jean
lion
milk
============================================================================
====
correct it that just display the 10 words but no sorting
--------------------------------------------------------------------------
import java.util.*;
import java.io.*;


public class token {


public static void main(String[] args) throws IOException {

FileReader file = new FileReader("input.txt");
BufferedReader buff = new BufferedReader(file);


FileWriter out = new FileWriter("out.txt");
Vector vAll = new Vector();
Vector vTop = new Vector();

TopWord top = new TopWord();


String line = buff.readLine();
String outLine="";
String all="";
String topList="\r\n";


//this is the same
while( line != null || line == ""){

StringTokenizer str = new StringTokenizer(line);
while (str.hasMoreTokens()) {
String token = str.nextToken();
outLine = token + " " +outLine;

}

all += outLine + "\r\n";
outLine="";
line = buff.readLine();

}

//i add this
StringTokenizer str = new StringTokenizer(all);

while(str.hasMoreTokens()){

String temp = str.nextToken();

//this make a collection of no repeating words
if(!vAll.contains(temp)){
vAll.add(temp);
vTop.add(new TopWord(temp));
}

//this couts how much times one word repeat oneself
for(int i=0; i<vAll.size(); i++){
top = (TopWord)vTop.get(i);

if(top.name.equals(temp)){
top.i++; //cout occurrence of the word
}
}
}

for(int z=0;z<vTop.size();z++){
TopWord tp1 = new TopWord(), //this is just for a little help
tp2 = new TopWord(),
tmp = new TopWord();
int where=0; //position of word in the sorted list

tp1 = (TopWord)vTop.get(z);

for(int x=0;x<vTop.size();x++){
tp2 = (TopWord)vTop.get(x);
if(tp1.i < tp2.i){
where++;
}
}


tmp = (TopWord)vTop.get(where);


//and now sorting but only by the occurence (why not ;-) ?)
if( tmp.i < tp1.i){ //This suffices if every word is diffrend times than
oters
int a = vTop.indexOf(tp1);
vTop.set(where,tp1);
vTop.set(a,tmp);
}else{ //but smoe words can occurrence repeat the same number

while(tmp.i == tp1.i && (vTop.indexOf(tp1) > vTop.indexOf(tmp))){

where++;
if(where==vTop.size()){break;}

tmp = (TopWord)vTop.get(where);
if(tmp.i == tp1.i){continue;}

int a = vTop.indexOf(tp1);
vTop.set(where,tp1);
vTop.set(a,tmp);
}
}
where=0;

}


//now just sort alphabetical order
boolean end=false;

while(!end){

TopWord tp1 = new TopWord(), //this is just for a little help
tp2 = new TopWord();

for(int z=0;z<vTop.size()-1;z++){
end = true;
tp1 = (TopWord)vTop.get(z);
tp2 = (TopWord)vTop.get(z+1);

if(tp1.i == tp2.i){
if(tp1.name.compareToIgnoreCase(tp2.name) > 0){
vTop.set(z+1,tp1);
vTop.set(z,tp2);
end = false;
break;
}
}
}
}


for(int z=0;z<10;z++){
top = (TopWord)vTop.get(z);
topList+=top.name + " " + "\r\n";
//topList+=top.name + " "+ top.i+ "\r\n";
}
System.out.println(topList);
// Collections.sort(vec);
//System.out.println(vec);
out.write(all);
out.write(topList);
out.close();
}
}

class TopWord {
TopWord(){}

TopWord(String n){
name = n;
}

String name;
int i=0;
}

Michiel Konstapel

unread,
Feb 14, 2003, 2:30:21 PM2/14/03
to
"Donald Lau 糂煎番" <dona...@netvigator.com> wrote in message
news:b2j2n7$2q...@imsp212.netvigator.com...

> The output is display 10 words with highest frequency of occurence in
the
> input data in alphabetical order.
> The another output of words that have more than seven and less than
thirteen
> characters from the input file.
> Thank you very much. Then sent the code to dona...@netvigator.com

Will you just do the bloody assignment and get lost, instead of spamming
every damn thread in every Java newsgroup on earth? Jeesh...
Michiel


Christopher Blunck

unread,
Feb 15, 2003, 1:35:47 AM2/15/03
to
The number of reposts does not improve your likelihood of receiving a
technical response. In fact, the more times you repost the less
likely you are of receiving any technical help.

Maybe you should just consider dropping the class. It's only February
so it's probably before the drop date isn't it?


-c

0 new messages