Name: rlT66838 Date: 02/26/2000
java version "1.2.2"
Classic VM (build JDK-1.2.2-004, native threads, symcjit)
loading an HTML page containing the following DHTML code, using Netscape
4.7. The exact same page loads perfectly well using Netscape v4.6. The same
error is also encountered for Java PlugIn Version 1.3.0rc1-T.
Here is the error in JDK v1.3, in v1.2.2 I get line numbers as well.
=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-==-=-=-=-=-=-=-=
java.net.MalformedURLException: unknown protocol: about
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at sun.plugin.navig.win32.PluginObject.setDocumentURL(Unknown Source)
=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-==-=-=-=-=-=-=-=
Here is the web page where the error occured. I cannot send the jar right now.
Contact me if needed.
=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-==-=-=-=-=-=-=-=
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<SCRIPT type="text/javascript" language="JavaScript">
// Designer
will set the next variable - theTitle
var theTitle = "ArcIMS 3.0 Viewer";
if (theTitle.indexOf("###TITLE##")!=-1) theTitle = "ArcIMS 3.0 Java Viewer";
document.writeln("<TITLE>" + theTitle + "</TITLE>");
function reloadApp() {
document.location = "frame.htm";
}
</script>
</head>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
var browser =
navigator.appName;
var moreStuff = "";
var addNS = 0;
if
(browser.indexOf("Explorer")==-1) {
moreStuff =
'onresize="reloadApp()"';
addNS = 5;
}
document.writeln('<FRAMESET ROWS="' + (35+addNS) + ',*,30" FRAMEBORDER="No"
FRAMESPACING="0" BORDER=0 ' + moreStuff + '>');
</SCRIPT>
<!-- <FRAMESET
ROWS="40,*,40" FRAMESPACING="0" FRAMEBORDER="0"> -->
<FRAME SRC="title.htm"
NAME="titleFrame" FRAMEBORDER="0" SCROLLING="No" NORESIZE MARGINWIDTH="0"
MARGINHEIGHT="0" FRAMESPACING="0">
<FRAME SRC="viewer.htm" NAME="mainFrame"
FRAMEBORDER="0" SCROLLING="No" MARGINWIDTH="0" MARGINHEIGHT="0"
FRAMESPACING="0">
<FRAME SRC="bottom.htm" NAME="bottomFrame" FRAMEBORDER="0"
SCROLLING="No" NORESIZE MARGINWIDTH="0" MARGINHEIGHT="0" FRAMESPACING="0">
</FRAMESET>
<noframes>
<body>
<p>This page uses frames, but your browser
doesn't support them.</p>
</body>
</noframes>
</html>
=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-==-=-=-=-=-=-=-=
(Review ID: 101758)
======================================================================
Instruction of reproduce the bug:
Actually, our software is bit more complicated than one jar, so I think the easiest way to setup for the problem
will be to visit our web site and install the software using an automated download that is setup there. Here is
what you need to do - be careful about the order of things, it's important.
1.ensure you have a Windows NT (sp#4 or later) system with JDK 1.2.2 or later installed. Also, either Internet
Explorer v4/v5 or Netscape v4.6 should be installed (don't try using Netscape v4.7 just yet).
2.using either IE or NS v4.6, go visit this site:
http://corleone.esri.com/website/testjava
3.this web page will detect that you do not have the ESRI software installed and will guide you through the
process of downloading and installing it. The installation process will load several JARs into the JRE's
lib/ext folder, as well as a public key since our software is signed.
4.once you've installed our software, use IE or NS 4.6 to once more visit the above site - you may have to
clear the browser's cache beforehand, to avoid getting the download/install page once more. You should
eventually see the applet start and show a cool map of the world - this is what is supposed to happen.
5.now install, or use NS v4.7 to visit the same page. Make sure the PlugIn console is visible, so that you see
the messages.
--------------------------------------------------------------------------
natalie.wang@eng 2000-03-03
The customer offers a new test case. See attachments.
From the customer:
We've now isolated the problem to JavaScript/Java, and prepared a very simple demo. Please save the attached HTML pages and java class code. Compile
the code and place them altogether under some web site. Open each of the web pages using NS v4.7 in turn.
- HelloNoJS.html uses no JavaScript - it shows a web page with "Hello World"
- HelloUsesJS.html has identical content but uses JavaScript - it fails with this message
java.net.MalformedURLException: unknown protocol: about
at java.net.URL.<init>(URL.java:497)
at java.net.URL.<init>(URL.java:364)
at java.net.URL.<init>(URL.java:308)
at sun.plugin.navig.win32.PluginObject.setDocumentURL(PluginObject.java:378)
The JavaScript makes frequent use of Document.write, which I think is fairly typical for dynamic content within an HTML page.
We really need to get this resolved, or if you could suggest a workaround, we'd really appreciate it, because our product goes final in about two weeks time.
- duplicates
-
JDK-4329891 Javascript in Frames Causes MalFormed URL in Plug-in
- Closed