dcsimg
Error unmarshalling arguments; nested exception
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   rushikesh_vyas
Posted On:   Monday, August 27, 2007 07:32 AM

Hii all ,

I am trying to use a method of a stub class and getting the fallowing error , can anybody find find out the reason for it....Thanks in advance!!!!!


Error unmarshalling arguments; nested exception is:


Java.io.IOException : Src.MyProduct(no security manager: RMI class loader disabled)





Thanks,

Re: Error unmarshalling arguments; nested exception

Posted By:   rushikesh_vyas  
Posted On:   Tuesday, August 28, 2007 05:06 AM

Yes u r right may be their is no problem of security Manager.



I put ur code in myProduct constructor as it is called from
other code . But it gives me AccesControl Exception.


Then what shold be the problem ??
I am using serialized methods their ...readExternal, WriteExternal.
is there any problem



Thanks,

Re: Error unmarshalling arguments; nested exception

Posted By:   Edward_Harned  
Posted On:   Monday, August 27, 2007 11:27 AM

It's telling you what the problem is: no security mgr.



try {//
When not already set



  if
(System.getSecurityManager() ==

null
) {


     
// set a new security manager

      System.setSecurityManager(
new
RMISecurityManager());


  }

}
catch (SecurityException
e) {// whatever}


About | Sitemap | Contact