Re: java.rmi.UnmarshalException

liang li <[email protected]> Sat, 17 May 2008 09:58:21 +0800
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
hi, bob
i am sorry for waht i said last letter, i saw your another answer(
http://www.opensubscriber.com/message/[email protected]/6329042.html)
 then i coded a small program for getting all interfaces
implemented by my service, like this:

Exporter exporter = (Exporter) new
BasicJeriExporter(TcpServerEndpoint.getInstance("X.X.X.X", 0), new
BasicILFactory());

            AuthenImpl impl = new My Impl();

            // export an object of this class
            Authen proxy = (Authen) exporter.export(impl);

            interfaces = ReflectUtil.getInterfaces(proxy.getClass());

            for (int i = 0; i < interfaces.length; i++)
            {
                System.out.println(interfaces[i].getName());
            }

so i got all interfaces , then i modify browser.config

uninterestingInterfaces = new String[]
                              {"java.io.Serializable",

"net.jini.lookup.ServiceIDListener",
"net.jini.security.proxytrust.ServerProxyTrust",

"java.rmi.Remote",
"net.jini.admin.Administrable",
"net.jini.core.constraint.RemoteMethodControl",
"net.jini.security.proxytrust.TrustEquivalence"};
}
so i saw the right class name not proxy!

thank you very much!
best regards
byron lee


2008/5/16, Bob Scheifler <[email protected]>:
>
> liang li wrote:
>
>>   i mock the hello example,you know hello example display normal
>> class name like ***.***.***.hello.Hello.
>>   i tried your way, the problem still.
>>
>
> Since you didn't explain what you tried, it's kinda hard to figure
> out why it didn't help.  What interfaces does the Proxy class implement?
> If you changed the uninterestingInterfaces configuration entry of
> the browser, can you show how you did that?
>
> - Bob
>

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]