On Wed, Jan 11, 2012 at 12:30 PM, Millies, Sebastian
<[email protected]> wrote:
>
>> -----Original Message-----
>> From: Simon Nash [mailto:[email protected]]
>> Sent: Wednesday, January 11, 2012 9:47 AM
>> To: [email protected]
>> Subject: Re: RMIBinding does not work with ContributionClassLoader
>>
> [snip]
>> >
>> I suspect that RMI is searching the thread context class loader (TCCL)
>> when looking for the parameter types.  The Java launcher gives TCCL an
>> initial value of the application classloader.
>>
>> There's an API in the Thread class to change TCCL, but doing this is
>> an evil hack and I'd be hesitant to recommend it.
>>
>> As an experiment, you could try setting TCCL to the contribution
>> classloader before making the RMI invocation and resetting it to its
>> previous value when the invocation returns.  It would be interesting
>> to know whether that resolves the problem.
>>
>>    Simon
>
> I have put the classes that occur as parameter types on the application
> class path. Although not nice from an aesthetic point of view, it does
> solve the immediate problem.
>
> -- Sebastian

Is there any chance you could create a simple app or test to
demonstrate this to give us to experiment with?

   ...ant

Reply via email to