Archived

This forum has been archived. Please start a new discussion on GitHub.

PermissionDeniedException ,reason is "internal server error"

PermissionDeniedException



I have learned connection 9,10,I writed a similar program,when router create session,PermissionDeniedException is thrown ,reason is "internal server error",
I enable Ice.Trace.Network and Ice.Trace.Protocol,

[ Network: ssl connection established
local address = 10.5.0.1:50883
remote address = 10.5.0.1:10005 ]
[New Thread -1218942032 (LWP 10514)]
[ Protocol: received validate connection
message type = 3 (validate connection)
compression status = 0 (not compressed; do not compress response, if any)
message size = 14 ]
[ Protocol: sending request
message type = 0 (request)
compression status = 0 (not compressed; do not compress response, if any)
message size = 70
request id = 1
identity = Glacier2/router
facet =
operation = ice_isA
mode = 1 (nonmutating)
context = ]
[ Protocol: received reply
message type = 2 (reply)
compression status = 0 (not compressed; do not compress response, if any)
message size = 26
request id = 1
reply status = 0 (ok) ]
[ Protocol: sending request
message type = 0 (request)
compression status = 0 (not compressed; do not compress response, if any)
message size = 75
request id = 2
identity = Glacier2/router
facet =
operation = createSession
mode = 0 (normal)
context = ]
[ Protocol: received reply
message type = 2 (reply)
compression status = 0 (not compressed; do not compress response, if any)
message size = 90
request id = 2
reply status = 1 (user exception) ]
permission denied
internal server error

I debuged Session server,It seem it had not runned to checkPermissions,
so it puzzled me ,who can give me a hand?

When does PermissionDeniedException is thrown with "internal server error" in Glacier2 ?

Regards,
ewiniar

Comments

  • benoit
    benoit Rennes, France
    Hi,

    It's thrown if the call to the PermissionVerifier::checkPermission method raises an exception. Is your permission verifier raising exceptions?

    If you want to see which exception is thrown, you should enable session tracing on the Glacier2 router with the Glacier2.Trace.Session property set to 1.

    Cheers,
    Benoit.
  • thanks!

    thanks,Benoit
    thanks your quick reply ,I try to trace it.


    Regards
    ewiniar