Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

IO Exception, using remote copy

Empfohlene Antworten

Veröffentlicht

Holla,

ich habe ein Ticker Applet geschrieben und zwar mit JDK 1.3.1.

Leider muss dass jetzt mit JRE 1.3.0C funzen, da gibt's aber folgendes

Problem in Mozilla (1.0 & 1.1 / Java Console):

Opening http://...server.../ScrollTicker.class with cookie ...

IO Exception, using remote copy

java.lang.NullPointerException

at ScrollTicker.init(ScrollTicker.java:282)

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

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

Die Zeile in der die NullPointerException auftritt lautet wie folgt:

bgGraphics = createImage(width, height).getGraphics();

Mit JRE 1.3.1 & 1.4.1 gibt's keine Probleme.

Weiss jemand, ob das ein Bug im JRE 1.3.0C ist?

Hallo,

versuche vor der Zeile mal ein deinFrame.addNotify(); aufzurufen.

Gruß Jaraz

Original geschrieben von Jaraz

versuche vor der Zeile mal ein deinFrame.addNotify(); aufzurufen.

Dadurch verschiebt sich die NullPointerException nur auf das addNotity().

Hmm, das createImage(...) wird in der init() Methode aufgerufen, aber das sollte doch kein Problem sein, oder?

Das erzeugt jedenfalls das Background Image und ich weiss auch nicht wo das sonst rein sollte.

Ach, ja, noch ein Nachtrag: Beim lokalen Test (mit 1.3.0C) gibt es auch keine Probleme, nur wenn ich das Teil vom WebServer lade.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.