-
Notifications
You must be signed in to change notification settings - Fork 35
javax.servlet.UnavailableException when trying to run Endpoints v1.1 locally using the Cloud SDK Java tooling #43
Comments
Is there a way to set remote debugging up with the new plugin? Last time I saw this error it was because the gcloud dev server has very different error handling, causing different Java exceptions to be thrown. That was fixed in another library so this is a different issue. |
@tangiel as long as you're only debugging one module there is. You can use our IntelliJ or Eclipse integration : If you're using maven or gradle with the com.google.cloud.tools appengine plugins you can specify the debugger args via the jvmFlags property. I believe the raw flag to the dev_appserver.py is --jvm_flag. |
Where does jvmFlags go? With the new plugin, I get:
|
+appu
…On Fri, Jan 27, 2017 at 2:19 PM, Daniel T ***@***.***> wrote:
Where does jvmFlags go? With the new plugin, I get:
> Could not set unknown property 'jvmFlags' for object of type com.google.cloud.tools.gradle.appengine.model.AppEngineStandardExtension.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHf5HamNcyowawh1kJwvPGMy_PyIhpuLks5rWkMygaJpZM4Lroa1>
.
|
For reference : |
@tangiel Any thoughts on this? Let me know if we can do anything to help. |
@patflynn I'm unable to catch the original exception for some reason, still trying to figure that out. The exception as is is not helpful since it's a bunch of garbled junk. |
Is this something we should bring up with the devappserver2 team? What's
up with that weird stacktrace?
…On Thu, Feb 2, 2017 at 4:43 PM, Daniel T ***@***.***> wrote:
@patflynn <https://github.com/patflynn> I'm unable to catch the original
exception for some reason, still trying to figure that out. The exception
as is is not helpful since it's a bunch of garbled junk.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHf5HWF0TjLobHIPQGFQVL1aRjfzFHDrks5rYk4GgaJpZM4Lroa1>
.
|
@patflynn I think this might be mysteriously fixed by the changes since 2.0.0. I think they should be aware of this issue. The weird stacktrace is a Python pickled object but I don't think I'm getting the correct information out of it. |
@tangiel |
My guess is that there is an issue on both sides. My current hypothesis from the fixes past 2.0.0 is that we're calling a legacy GAE service that isn't available in dev server. For their side, the unhelpful error message is the error. |
I added version to the appengine-web.xml and this magically started working. version in appengine-web.xml is deprecated on the toolchain. |
b/33657599 |
Is the requirement there because of a faulty assumption on the framework side or something is up with dev server? Guessing the former, might be because we were using the dev module server to construct a hostname and that might be trying to get the version out of appengine-web.xml? |
Can someone look at the endpoints code/libs to see if version/appid is accessed from the appengine-web.xml? |
I don't think it's accessed directly, maybe through the dev modules service, which I believe I recently removed. Once I release 1.0.1, it may work. |
This should now be fixed. |
Steps to reproduce:
`PS C:\Users\patrick\Projects\appengine-potpourri-gradle> .\gradlew.bat :endpoints-frontend:appengineRun
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doL
ast(Action) instead.
at build_6t335i7cz5p80m7el4p825c7o.run(C:\Users\patrick\Projects\appengine-potpourri-gradle\jdo-backend\build.gr
adle:26)
:endpoints-frontend:compileJava UP-TO-DATE
:endpoints-frontend:processResources UP-TO-DATE
:endpoints-frontend:classes UP-TO-DATE
:endpoints-frontend:war UP-TO-DATE
:endpoints-frontend:explodeWar UP-TO-DATE
:endpoints-frontend:assemble UP-TO-DATE
:endpoints-frontend:appengineRun
INFO 2017-01-23 17:28:45,980 devappserver2.py:764] Skipping SDK update check.
INFO 2017-01-23 17:28:46,048 api_server.py:268] Starting API server at: http://localhost:49832
INFO 2017-01-23 17:28:46,052 dispatcher.py:199] Starting module "default" running at: http://localhost:8080
INFO 2017-01-23 17:28:46,053 admin_server.py:116] Starting admin server at: http://localhost:8000
Jan 23, 2017 10:28:47 PM com.google.appengine.tools.development.AbstractContainerService configure
WARNING: Null value for containerConfigProperties.get(devappserver.portMappingProvider)
Jan 23, 2017 10:28:47 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Jan 23, 2017 10:28:47 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: jetty-6.1.x
Jan 23, 2017 10:28:48 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Started SelectChannelConnector@localhost:49833
Jan 23, 2017 10:28:48 PM com.google.appengine.tools.development.AbstractModule startup
INFO: Module instance default is running at http://localhost:49833/
Jan 23, 2017 10:28:48 PM com.google.appengine.tools.development.AbstractModule startup
INFO: The admin console is running at http://localhost:49833/_ah/admin
Jan 23, 2017 10:28:48 PM com.google.appengine.tools.development.devappserver2.DevAppServer2Impl doStart
INFO: Dev App Server is now running
Jan 23, 2017 10:28:51 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /_ah/warmup
INFO 2017-01-23 17:28:51,055 module.py:806] default: "GET /_ah/warmup HTTP/1.1" 404 83
Jan 23, 2017 10:29:09 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /favicon.ico
Jan 23, 2017 10:29:09 PM com.google.appengine.tools.development.devappserver2.RemoteApiDelegate log
SEVERE: [1485210549900000] javax.servlet.ServletContext log: unavailable
com.google.appengine.tools.remoteapi.RemoteApiException: response was a python exception:
cgoogle.appengine.runtime.apiproxy_errors
ApplicationError
p0
(I1
tp1
Rp2
(dp3
S'application_error'
p4
I1
sS'error_detail'
p5
S''
p6
sb.
)
Jan 23, 2017 10:29:09 PM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: /_ah/api/discovery/v1/apis/potApi/v1/rest
com.google.appengine.tools.remoteapi.RemoteApiException: response was a python exception:
cgoogle.appengine.runtime.apiproxy_errors
ApplicationError
p0
(I1
tp1
Rp2
(dp3
S'application_error'
p4
I1
sS'error_detail'
p5
S''
p6
sb.
)
`
The text was updated successfully, but these errors were encountered: