• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unmarshal exception  RSS feed

 
yadati chetan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do we get Unmarshal exception when wee try to bind the name of the server?
 
Anurag Mishra
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
usually u get this if your security poliscy is not seted properly
if ur getting this error pls follow the mentioned steps to correct it
Hi,
if ur still in problem pls try this.
1. The command prompt from where ur trying to run
ur RMI programm set classpath for tht current directory.
2. create a .polic file say its test.policy save this in ur directry
put these code in test.policy

3. After that start rmiregistry
4. start ur rmi server from command prompt after setting proper classpaths
using
java -Djava.security.policy=C:\test.policy URServerClassfile
5. for Client also use same as above like
java -Djava.security.policy=C:\test.policy CLIENTClassfile

it should work........
still if u have problem pls tell me.
thanks
Anurag
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Anurag",
You have an invalid display name and hae had multiple warnings.
Please check the warnings here.
If you do not update your display name immediately, your account will be deleted.
Dave
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!