I spawn rmiregistry.exe on Windows as a separate process, and each
of my instances registers a unique name for its services. All
access is localhost, for purposes of this discussion.
Again, the primary exception is class not found exception, so
if this is a bug, it affects class loading of the _Stub class
I'd say.
I guess I can construct some sort of test case. But doesn't
the exception give enough information? Why would the _Stub
class loading be the issue? It's in the jar.
OK, it's a signed jar, and OK, it's run by Java Web Start; there
are quite a few variables here, but it's a straightforward usage
of RMI which has worked forever without any issues until Update
10 came along.
On Nov 2, 2:42*pm, Lew <no...@lewscanon.com> wrote:
> FutureScalper wrote:
> > No, code is way too complex. *In a nutshell, this is a standalone
>
> Please do not top-post. *Without some clue of your code it is awfully hard to
> diagnose what you're seeing.
>
> > Java application which permits a portion of the code to be accessed
> > externally as an RMI server. *Thus, two instances of my executable
> > can "talk" to each other via RMI. *Pretty straight forward, really;
> > and has been working for years.
>
> Are you absolutely sure you cannot construct a short, self-contained
> compilable example (SSCCE) of an RMI call that demonstrates your problem?
> <http://sscce.org/>
>
> > Previously, I instantiated the Impl and, in the constructor
> > simply called Naming.rebind("servicename", this). *I've separated
> > this out to make it much cleaner, and made SURE that all RMI handles
> > are STATIC variables so they do not disappear prior/during the binding
> > process, etc.
>
> Static variables are an antipattern.
>
> FutureScalper wrote:
> >>> My RMI code has worked perfectly prior to Update 10.
> >>> The _Stub class, which is in my jar, could not be loaded by the
> >>> classloader, and it was not a security problem.
> >>> What has changed in RMI for update 10 ? *I doubt I am the only one
> >>> with this problem.
>
> Is this relevant?
> <http://java.sun.com/javase/6/docs/technotes/guides/rmi/relnotes.html>
>
> > Dynamic Generation of Stub Classes (since 5.0)
> > This release adds support for the dynamic generation of stub classes at
> > runtime, obviating the need to use the Java Remote Method Invocation (Java
> > RMI) stub compiler, rmic, to pregenerate stub classes for remote objects. Note
> > that rmic must still be used to pregenerate stub classes for remote objects
> > that need to support clients running on earlier versions.
>
> I reviewed
> <http://java.sun.com/javase/6/docs/technotes/guides/rmi/index.html>
> but didn't find anything that seems to help.
>
> It would help to have an SSCCE.
>
> --
> Lew
|