This discussion is archived
3 Replies Latest reply: Jan 25, 2013 11:55 AM by btm RSS

Permission Denied

987225 Newbie
Currently Being Moderated
I am getting this exception trying to start the nosql server with this command: java -jar lib/kvstore-2.0.23.jar kvlite


KVLite: exception in start: java.rmi.RemoteException: Can't rebind snaService at
<machine name here>:5000 csf: null ssf: null; nested exception is:
java.rmi.ConnectIOException: Exception creating connection to: <machine name here> ; nested exception is:
java.net.SocketException: Permission denied: connect

This is on windows 7. Is there something special I need to do?
  • 1. Re: Permission Denied
    btm Newbie
    Currently Being Moderated
    java -jar lib/kvstore-2.0.23.jar kvlite

    KVLite: exception in start: java.rmi.RemoteException: Can't rebind snaService at
    <machine name here>:5000 csf: null ssf: null; nested exception is:
    java.rmi.ConnectIOException: Exception creating connection to: <machine name here> ; nested exception is:
    java.net.SocketException: Permission denied: connect

    This is on windows 7.
    There's more to the stack trace than what you posted, right? Although
    it appears you posted the pertinent lines from the stack trace, for
    completeness, could you post the whole trace?

    Are you using Java 6 or Java 7?

    Do you get the same error if you add the following system property to the command
    you executed?

    java -Djava.net.preferIPv4Stack=true -jar lib/kvstore-2.0.23.jar kvlite

    Brian
  • 2. Re: Permission Denied
    987225 Newbie
    Currently Being Moderated
    Brian -

    It works if I use your command:

    java -Djava.net.preferIPv4Stack=true -jar lib/kvstore-2.0.23.jar kvlite

    I am using Java 7. Would you still like me to paste the entire stack trace or do you know what the problem is/was?
  • 3. Re: Permission Denied
    btm Newbie
    Currently Being Moderated
    It works if I use your command:

    java -Djava.net.preferIPv4Stack=true -jar lib/kvstore-2.0.23.jar kvlite
    Good to hear. It appears that there is a bug in Windows7 Firewall and/or the
    IPv6 stack; not Java (similar issues have been encountered by native C apps).
    It's my understanding that Microsoft is aware of this issue; for details,
    see <http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7077696>.
    Would you still like me to paste the entire stack trace or do you know what the problem is/was?
    No need, since it appears that you've got a work around. But for future reference, it's
    usually best to include the whole stack trace.

    Regards,
    Brian

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points