Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: What's wrong with me server?

 
Nick Lee
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,I meet some problems when I run my Server.
java -Djava.security.policy=test.policy
suncertify.server.CSRSServer
The result is:
CSRSServer error: access denied (java.io.FilePermission db-1x3.db
write)
Does anybody know what this problem is,or met the same problem before?
It seems like sth wrong with my RemoteData.
[ June 04, 2003: Message edited by: Nick Lee ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well your problem resloves around your RMISecurityManager and your policy file.
We have determined here that you do not need to use a SecurityManager and therefore no policy file either. If you remove them both you will not the the File Permission error.
If you were to use a policy file just add the all permissions permission and it would work too.
However, I highly suggest you do without the Security Manager, etc.
Mark
 
Nick Lee
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mark,problem resolved after I copy the policy file into the proper folder,but another exception pop up:
CSRSServer error: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: connect
Do u know what is it for?
 
Qusay Jaafar
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is within where you start rmiregistry.
let us say:
C:\Assignment>
which contains classes and source folders. sorry, I am not familiar with the new assignment but if it is like the old one which contains:
package suncertify.db;
Then you need to start rmiregistry within this path:
C:\Assignment\classes>start rmiregistry
everything will work fine ( and I hope you will not get another Exception about Serialization !)
Please, let me know if it works
 
Nick Lee
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Qusay,
The problem is within where you start rmiregistry.
let us say:
C:\Assignment>
which contains classes and source folders. sorry, I am not familiar with the new assignment but if it is like the old one which contains:
package suncertify.db;
Then you need to start rmiregistry within this path:
C:\Assignment\classes>start rmiregistry
everything will work fine ( and I hope you will not get another Exception about Serialization !)
Please, let me know if it works

I know what's wrong with my server
I use 1125 as the port of registry,but the haven't point it out in the command line:
rmiregistry 1125
so,after I change it to 1099 or use "rmiregistry 1125",it can work well.
thanks for ur comments,thanks alot.
 
Qusay Jaafar
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
best thing is to start it programatically.
 
SrinivasMA Srini
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Its beetter if you start & bind the registry prgrametically. I followed that approach in SCJD.
Cheers
Srinivas
SCJP,SCJD
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic