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.

Java RMI

Empfohlene Antworten

Veröffentlicht

Hallo ich habe einen Server gebaut, zuerst lasse ich die rmiregistry laufen, danach starte ich den Server: jetzt kommt folgende Exception:

Exception in thread "main" java.rmi.ServerException: Server RemoteException; nested exception is:

java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:

java.lang.ClassNotFoundException: TimeImpl_Stub

java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:

java.lang.ClassNotFoundException: TimeImpl_Stub

java.lang.ClassNotFoundException: TimeImpl_Stub

at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)

at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)

at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:354)

at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)

at java.rmi.Naming.rebind(Naming.java:160)

at TimeServer.main(TimeServer.java:21)

so kein Plan was der von mir jetzt will, wer könnte mir da helfen?

Schon mal Dank im vorraus.

Gruss

crain

Hi,

du hast die benötigten Stub und Skeleton Klassen nicht erzeugt oder sie liegen nicht im Classpath.

Diese Hilfsklassen erzeugt man über das Tool rmic was beim JDK dabei ist.

Falls du Eclipse nutzt, gibt es ein Plugin das nach jedem compilieren diese Klassen automatisch aktualisiert.

Der Aufruf müsste bei dir in etwa so aussehen:

rmic -keep -classpath XXX TimeImpl TimeMonitorImpl

Gruß Jaraz

so da bin ich wieder also;

ich habe den Server mit "java -cp Pfadwostudetc.drunterliegen TimeServer"

gestartet, leider kommt immer wieder diese Exception und der classpath stimmt und die Stub + Skeleton Klassen liegen dort auch!

Gruss

crainy

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.