Name

StubNotFoundException

Where thrown

In the RMI Infrastructure on the server side.

When thrown

When an attempt is made to export an instance of RemoteServer that does not have an associated stub.

Why thrown

Stubs are necessary for RMI to function properly. The right point in time to signal this error is when the server is starting up (or just being exported), not when the stub is actually required.

What it means

This usually means you forgot to run rmic (or that you made a mistake when deploying your server).

Get Java Enterprise Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.