Closed Bug 8298 Opened 26 years ago Closed 25 years ago

Java doesn't work for 4.x style signed java.

Categories

(Core Graveyard :: Java: OJI, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: morse, Assigned: jeff.dyer)

References

()

Details

dp wanted to know why we are not eating dogfood and encouraged us to spend an hour using it to do such things as look up AOL stock price. OK, I tried it and went to http://people.netscape.com/morse/stocks/jchart.htm to see the AOL price. Nothing happened! All I got was a blank screen.
Assignee: amusil → drapeau
You need to run the latest JRE/OJI installer.
Status: NEW → ASSIGNED
Assignee: drapeau → edburns
Status: ASSIGNED → NEW
I tried to load this applet into nav4.5, and get this error. Applet JEChart2 class JEChart2 got a security violation. Could not resolve IP for host people.netscape.com. See the trustProxy property. Is it possible for me to view this applet in a site that only uses a NS proxy server for the firewall? Also, is Proxy support working in the current mozilla build?
Status: NEW → ASSIGNED
I don't know the answer to either of your questions. But I do know that it works for me under 4.x both inside and outside the netscape firewall.
Depends on: 8559
Well, the applet loads and displays the UI with the "Chart", "Top", "Go!" buttons. I can modify the setting in the combo box. However, nothing displays in the main UI area. I think it may have something to do with this: Document: Done (119.031 secs) created stream for http://people.netscape.com/morse/stocks/JEChart9.jar killing stream for http://people.netscape.com/morse/stocks/JEChart9.jar Live!Charts 990203.1a (204.71.198.40) (c) 1998,1999 Quote.com by Eric Scott Hunsader (livecharts@quote.com) java.security.AccessControlException: access denied (java.net.SocketPermission 2 04.71.198.40 resolve) failed to set the page title. Reload(http://cvs-mirror.mozilla.org/webtools/tinderbox/SeaMonkey/flash.rdf, 300 ) Perhaps I have to modify the security settings. Can we call this fixed or do you still think it doesn't work?
If nothing displays in the main area, I wouldn't call this working. Try it under 4.x and you'll see what it is supposed to be doing. If it's not doing that, then it's not working.
I tried specifying the SOCKS server using the JDK 1.3 Java Control Panel, and now I get this:load: class JEChart2.class not found. java.lang.ClassNotFoundException: java.net.SocketException: SOCKS server cannot conect to identd at sun.plugin.protocol.http.SocksSocket.connect(Unknown Source) at sun.plugin.protocol.http.SocksSocket.<init>(Unknown Source) at sun.plugin.protocol.http.SocksSocket.<init>(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.http.HttpClient.privilegedOpenServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.<init>(Unknown Source) at sun.net.www.http.HttpClient.<init>(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpClient.<init>(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpClient.New(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.privBlock(Unknown So urce) at sun.plugin.protocol.jdk12.http.HttpURLConnection$PrivilegedBlockActio n.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin.protocol.jdk12.http.HttpURLConnection.connect(Unknown Sour ce) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unkno wn Source) at java.net.HttpURLConnection.getResponseCode(Unknown Source) 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) 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) I'm going to see if this is a JDK problem. Ed
Summary: Java doesn't work (or: Why I'm not eating dogfood yet) → Java doesn't work
Editing out this comment from the bug title: "(or: Why I'm not eating dogfood yet") since the 5.0 project mananagement team searches titles for the word dogfood. It's fine to mention your need to have this for mozilla dogfood but please try to keep in the description portion of the bug. Thanks.
I'm still getting the SOCKS can't connect to identd error
The SOCKS error is because Ed's SOCKS server doesn't permit HTTP traffic.
I now get this error: Live!Charts 990203.1a (204.71.198.40) (c) 1998,1999 Quote.com by Eric Scott Hunsader (livecharts@quote.com) java.security.AccessControlException: access denied (java.net.SocketPermission 2 04.71.198.40 resolve)
My understanding is that this exception is a result of Java 2 security when accessing an applet from behind a firewall in which local DNS cannot resolve the requested hostname. In order to prevent IP spoofing outside the firewall, the JRE first attempts to resolve the requested hostname to an IP address using local DNS. If that fails, a security exception of the kind you've noted is thrown. There are two ways to get around this, as follows : (1) Put the requested hostname into the local machine's hosts file. This will be under \winnt\system32\drivers\etc on NT4, and \windows under Win'95/98. (2) Use a .java.policy file to give the local machine necessary permissions. The suggested solution is item (1) above.
Believe me Robert, I tried adding 204.71.198.40 to the HOSTS file, but got the same result.
I should have mentioned that the line you should add to your hosts file should look as follows : <ip address> <hostname> For example : 131.252.220.22 www.cs.pdx.edu Then after you've saved the file, ping the host and make sure that the system can resolve the hostname - this is the critical part. Success in pinging probably won't work, since you're behind the firewall, but that doesn't matter. Here's one you can try with the above line : http://www.cs.pdx.edu/~ryang/JarTestApplet.html I apologize for the confusion.
morse: is this a signed applet?
Summary: Java doesn't work → [DOGFOOD] Java doesn't work
Yes, it is definitely a signed applet. Is that why it doesn't work yet -- becausing signing is not yet implemented in 5.0?
Whiteboard: [PDT-]
Java is not needed for dogfood. Putting on the PDT- radar.
Java should be required for dogfood. There are plenty of sites out there that use java. Now the problem here might be more restrictive it that it has to do with signed java. In which case there are fewer sites affected. But this particular applet is one of my favorite and one that I use frequently. It's the best stock-charting applet around. If this applet can't run on M12, then I'll be forced to remain with 4.7 a little while longer.
puttin' on the beta1 radar.. removing the pdt- for the dogfood designation
Keywords: beta1
Whiteboard: [PDT-]
Putting on PDT- radar for beta1. Java need to work, but not a critical beta stopper to signed java.
Summary: [DOGFOOD] Java doesn't work → [DOGFOOD] Java doesn't work for signed java.
Whiteboard: [PDT-]
Putting dogfood in the keyword field.
Keywords: dogfood
Dear morse: Signed applets are top on our list, after getting java working again AT ALL. We have been depending on the stability of daily builds in order to work on OJI features, but this approach doesn't work. From now on, the OJI team at Sun will work only with milestone builds. When a new milestone comes out, we'll take the hit and upgrade to it. We STRONGLY believe that this is the only way we can make any progress implementing features like signed applets.
Summary: [DOGFOOD] Java doesn't work for signed java. → Java doesn't work for signed java.
We still believe that we won't be able to implement this until the OJI team just depends on milestone builds.
We won't be doing this for beta 1. Can the PDT team please revise this accordingly? Thanks, Ed
Assigning to jeff.dyer
Assignee: edburns → jeff.dyer
Status: ASSIGNED → NEW
Adding 27664 poster, kdean, to CC list.
Status: NEW → ASSIGNED
Jeff Dyer is working on it. We expect to have this for Beta 2, and I'm nominating this as a key feature to be put in.
Keywords: nsbeta2
Clearing [PDT-] to trigger re-evaluation by PDT for nsbeta2. Java broken-->nsbeta2. Java on b2 list.
Whiteboard: [PDT-]
We are not going to be backvwards compatible and support Java API defined by Netscape in 4.x. Each JVM will have *some* security model, and it will be up to JavaSoft to defined that *java* api and usage. Unless their is a sudden change, the precise *java* api will be distinct from Netscape's 4.x calls. Signed Java/JS will be supported... just not backwards compatible with 4.x. If the test case shown above is removed, then the summary could be changed to "get some signed Java support," and *that* would be a significant mozilla bug.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
Summary: Java doesn't work for signed java. → Java doesn't work for 4.x style signed java.
Keywords: beta1, dogfood, nsbeta2verifyme
Verified wontfix.
Status: RESOLVED → VERIFIED
Keywords: verifyme
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.