Will do it in when I'm back at my dev machine.

-- Calum

Sent from my iPhone

On 14 Feb 2011, at 20:07, Peter Firmstone <[email protected]> wrote:

> Well spotted Calum,
> 
> Can you raise a Jira and link it to River-292?
> 
> Cheers,
> 
> Peter.
> 
> Calum Shaw-Mackay wrote:
>> All -
>> 
>> I believe this may be tied to RIVER-292, but I'll just outline the issue
>> 
>> The UIDescriptor is being asked to load the UIFactory via the current
>> thread's Context Class Loader rather than the
>> classloader that the service itself is being loaded with.
>> 
>> Thus the code:
>> 
>> try {
>>    JFrameFactory uiFactory = (JFrameFactory)
>> uiDescriptor.getUIFactory(Thread.currentThread().getContextClassLoader());
>>    JFrame frame = uiFactory.getJFrame(item);
>>    frame.validate();
>>    frame.setVisible(true);
>> }
>> 
>> should be
>> 
>> try {
>>    JFrameFactory uiFactory = (JFrameFactory)
>> uiDescriptor.getUIFactory(item.service.getClass().getClassLoader());
>>    JFrame frame = uiFactory.getJFrame(item);
>>    frame.validate();
>>    frame.setVisible(true);
>> }
>> 
>> as per http://www.artima.com/jini/serviceui/doc11/index.html
>> 
>> Also I think the restriction of just JFrameFactory might require new
>> additional code to support the other UIFactory types.
>> 
>> Thanks
>> 
>> Calum
>> 
>>  
> 

Reply via email to