This content has been marked as final. Show 5 replies
Kayaman wrote:Yeah normally you get vague error messages but this one is quite definitive if you ask me. Its also something that you can easily copy/paste into Google.
972727 wrote:So you're in a method that's not a webservice endpoint method?
One utility class is getting...
getMessageContext not allowed from Non-WebService Endpoint method
Thx gimbal2, yes it is definitive enough, but when i look for the solution in other forums whenever i search in google, almostly the answer is the same: "session context is in a wrong state and because of that it can not invoke getMessageContext method". So, i am making a step by step debugging and i am inspecting session context variable in the code, and changing state info. of session context to other possible states, but i am getting the same error, what can i do else ?
972727 wrote:You're trying to do something that isn't allowed. Using a debugger to try to get around it will probably result in a crash.
So, i am making a step by step debugging and i am inspecting session context variable in the code, and changing state info.
So you can't do what you're trying to do. Find another way to do it.