-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customer try to call RoleEnviroment failed. #239
Comments
I think the root cause is that customer's code is not running as a Azure Worker Role. He(She) needs to run it from within the worker role. Let me try to repro his issue. |
validated, following the tutorial on the msdn, the RoleEnviroment works properly. |
The reason is that the named pipe would only exists if the process is started from ProgramEntryPoint. Otherwise, .NET program has a different mechanism to obtain the RoleEnviroment. |
tried to use AzureRunMe, wrote a blog to record AzureRunMe, it can do some unique tasks. . |
I validated that Java SDK ServiceRuntime RoleEnviroment is working properly. |
I answered the question according to Service Runtime team's recommendation(s) here http://stackoverflow.com/questions/9415237/java-sdk-for-azure-error-with-roleenvironment-getcurrentroleinstance/14900834#14900834 |
Looks good! Good writeup too! |
Make ExpectedResponses annotation not required
Dev estimate: 3
Test estimate: 3
http://stackoverflow.com/questions/9415237/java-sdk-for-azure-error-with-roleenvironment-getcurrentroleinstance
I'm using the Azure SDK for java (github.com/WindowsAzure/azure-sdk-for-java)
Problem is that Tomcat throws an error when I call the following:
RoleEnvironment.getCurrentRoleInstance().getId()
The text was updated successfully, but these errors were encountered: