🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.java.gui
2 messages
2 total messages Started by Daniel Fri, 19 Mar 1999 00:00
NullPointerException???!!!
#24
Author: Daniel
Date: Fri, 19 Mar 1999 00:00
71 lines
2969 bytes
Hi,

I've problems to run an applet with netscape4.5 JDK1.1.2 Plugin.
I'm working with JBuilder1. Netscape only show me a part of the headbar,
but not the whole GUI-frame, what can be wrong?
Here are the html-File and the JavaConsoleWindow. If anybody can help
me, thanks a lot.
Daniel

html-file:

<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=iso-8859-1">
   <META NAME="GENERATOR" CONTENT="Mozilla/4.05 [en] (WinNT; I)
[Netscape]">
   <TITLE>HTML Test Page
</TITLE>
</HEAD>
<BODY>
The Graphical-User-Interface will appear below in a Java enabled
browser.
<BR><APPLET
  CODEBASE = "myclasses/archive"
  ARCHIVE  = "jbcl-rt.zip, jclass.zip, jgl.zip"
  CODE     = "GUI.class"
  NAME     = "TestApplet"
  WIDTH    = 400
  HEIGHT   = 300
  HSPACE   = 0
  VSPACE   = 0
  ALIGN    = middle
></APPLET>
</BODY>
</HTML>

JavaConsoleWindow:

java.lang.NullPointerException

  at sun.awt.windows.WToolkit.prepareScrImage(Compiled Code)

  at sun.awt.windows.WToolkit.prepareImage(Compiled Code)

  at java.awt.Component.prepareImage(Compiled Code)

  at java.awt.Component.prepareImage(Compiled Code)

  at borland.jbcl.control.ImageControl.setupImage(Compiled Code)

  at borland.jbcl.control.ImageControl.setImageName(Compiled Code)

* at Login.jbInit(Compiled Code)

  at Login.<init>(Compiled Code)

  at GUI.start(Compiled Code)

  at
netscape.applet.DerivedAppletFrame$StartAppletEvent.dispatch(Compiled
Code)

  at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled
Code)

  at java.awt.EventDispatchThread.run(Compiled Code)

  at
netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
Code)
Re: NullPointerException???!!!
#23
Author: Xinyi Xu
Date: Tue, 23 Mar 1999 00:00
80 lines
3210 bytes
It is because that you use borland.jbcl.control.ImageControl.* package which
is not supported by Java-Plugin 1.2.  After it throws the
NullPointerException, it stops to execute the remaining codes, that is why
you can only see partial your applet.

Xinyi

Daniel wrote:

> Hi,
>
> I've problems to run an applet with netscape4.5 JDK1.1.2 Plugin.
> I'm working with JBuilder1. Netscape only show me a part of the headbar,
> but not the whole GUI-frame, what can be wrong?
> Here are the html-File and the JavaConsoleWindow. If anybody can help
> me, thanks a lot.
> Daniel
>
> html-file:
>
> <HTML>
> <HEAD>
>    <META HTTP-EQUIV="Content-Type" CONTENT="text/html;
> charset=iso-8859-1">
>    <META NAME="GENERATOR" CONTENT="Mozilla/4.05 [en] (WinNT; I)
> [Netscape]">
>    <TITLE>HTML Test Page
> </TITLE>
> </HEAD>
> <BODY>
> The Graphical-User-Interface will appear below in a Java enabled
> browser.
> <BR><APPLET
>   CODEBASE = "myclasses/archive"
>   ARCHIVE  = "jbcl-rt.zip, jclass.zip, jgl.zip"
>   CODE     = "GUI.class"
>   NAME     = "TestApplet"
>   WIDTH    = 400
>   HEIGHT   = 300
>   HSPACE   = 0
>   VSPACE   = 0
>   ALIGN    = middle
> ></APPLET>
> </BODY>
> </HTML>
>
> JavaConsoleWindow:
>
> java.lang.NullPointerException
>
>   at sun.awt.windows.WToolkit.prepareScrImage(Compiled Code)
>
>   at sun.awt.windows.WToolkit.prepareImage(Compiled Code)
>
>   at java.awt.Component.prepareImage(Compiled Code)
>
>   at java.awt.Component.prepareImage(Compiled Code)
>
>   at borland.jbcl.control.ImageControl.setupImage(Compiled Code)
>
>   at borland.jbcl.control.ImageControl.setImageName(Compiled Code)
>
> * at Login.jbInit(Compiled Code)
>
>   at Login.<init>(Compiled Code)
>
>   at GUI.start(Compiled Code)
>
>   at
> netscape.applet.DerivedAppletFrame$StartAppletEvent.dispatch(Compiled
> Code)
>
>   at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled
> Code)
>
>   at java.awt.EventDispatchThread.run(Compiled Code)
>
>   at
> netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
> Code)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads