-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
beta3
-
sparc
-
solaris_7
-
Verified
Platform : IA Solaris 8 / Solaris Sparc 7
Browser : Netscape 4.x/
SUT : dnm-dtf-014, j2dsqe-lab-1, blueski
Steps to Reproduce
On a Solaris Sparc / IA solaris machine , Install the J2SE for merlin build 72 from :
/net/sqesvr/deployment3/merlin/beta/x86.b72/
2.) go to the below link and execute the testcases
http://sqesvr.eng.sun.com/deployment1/ws/doc/proc/JPI_https.html
3.)Go to Test case 3 (File Post ) --> Apache Web Server
Execute the test case
RESULT : It throws Java Null pointer exception.
--------------------------------------------------------------------------------
Java(TM) Plug-in: Version 1.4.0
Using JRE version 1.4.0-beta_refresh Java HotSpot(TM) Client VM
User home directory = /home/srinim
----------------------------------------------------
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
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
java.lang.NullPointerException
at sun.awt.SunToolkit.postEvent(SunToolkit.java:274)
at java.awt.DefaultKeyboardFocusManager.sendMessage(DefaultKeyboardFocusManager.java:167)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:297)
at java.awt.Component.dispatchEventImpl(Component.java:3379)
at java.awt.Container.dispatchEventImpl(Container.java:1440)
at java.awt.Window.dispatchEventImpl(Window.java:1531)
at java.awt.Component.dispatchEvent(Component.java:3349)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
https://129.144.85.140:8443/https/tests/post_only_Test.html
/**
* <APPLET CODE=DocBase.class HEIGHT=300 WIDTH=600>
* <param name=REQUEST-URL value="http://javaweb/~vmanda/https/DocBase.java">
* </APPLET>
*/
import java.awt.*;
import java.applet.*;
import java.io.*;
import java.net.*;
public class DocBase extends Applet {
TextArea t;
public void init() {
setLayout(new BorderLayout());
t = new TextArea();
add(t, BorderLayout.CENTER);
//show();
this.setVisible (true) ;
}
java.lang.NullPointerException
at sun.awt.SunToolkit.postEvent(SunToolkit.java:274)
at java.awt.DefaultKeyboardFocusManager.sendMessage(DefaultKeyboardFocusManager.java:167)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:487)
at java.awt.Component.dispatchEventImpl(Component.java:3379)
at java.awt.Container.dispatchEventImpl(Container.java:1440)
at java.awt.Window.dispatchEventImpl(Window.java:1531)
at java.awt.Component.dispatchEvent(Component.java:3349)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
at java.awt.SequencedEvent.dispatch(SequencedEvent.java:97)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:437)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
public void start() {
String requestStr = "" ;
try {
requestStr = getParameter ("REQUEST-URL") ;
if ((requestStr == null)
||
(! requestStr.startsWith ("http"))) {
System.out.println (" *** Request URL not set. ***") ;
}
URL url = new URL(requestStr);
System.out.println(getDocumentBase());
URLConnection conn = url.openConnection();
conn.setAllowUserInteraction(true);
conn.connect();
int i = 0;
String header;
do {
header = conn.getHeaderField(i);
if (header!=null) {
System.out.println("Header " + i + " " +
conn.getHeaderFieldKey(i) + " : " + header);
}
i++;
} while (header!=null);
InputStream in = conn.getInputStream();
BufferedInputStream din = new BufferedInputStream(in);
int ch;
while ((ch = din.read()) != -1)
{
t.append(String.valueOf((char)ch));
}
din.close();
in.close();
}
catch (Throwable e) {
e.printStackTrace();
}
}
}
/**
* <APPLET CODE=DocBase.class HEIGHT=300 WIDTH=600>