{"id":2201,"date":"2014-08-07T12:17:59","date_gmt":"2014-08-07T08:17:59","guid":{"rendered":"https:\/\/blog.alwawee.ru\/?p=2201"},"modified":"2014-08-07T12:34:11","modified_gmt":"2014-08-07T08:34:11","slug":"solving-google-app-engine-error-server-encountered-error-complete-request","status":"publish","type":"post","link":"https:\/\/blog.alwawee.ru\/?p=2201","title":{"rendered":"Solving Google App Engine : 500 Server Error"},"content":{"rendered":"<p>I started to learn Google App Engine. Everything was perfect &#8211; tutorials, easiness of testing on development server before I wanted to deploy it on server. I knew that I had to use <strong>Java 7<\/strong> instead of <strong>Java 8<\/strong>, which is currently supported by App Engine, but didn&#8217;t know, where I should change it easily to make this happen, since I used Maven. <\/p>\n<p>This error happened to me:<br \/>\n<em>Server Error The server encountered an error and could not complete your request. Please try again in 30 seconds. <\/em><\/p>\n<p>In errors of my app on <a href=\"https:\/\/appengine.google.com\" title=\"https:\/\/appengine.google.com\" target=\"_blank\">App Engine Console<\/a> I saw this:<br \/>\n<em>Uncaught exception from servlet java.lang.UnsupportedClassVersionError: org\/apache\/jsp\/guestbook_jsp : Unsupported major.minor version 52.0 at com.go<\/em><\/p>\n<p>You can see logs this way:<br \/>\n<a href=\"https:\/\/blog.alwawee.ru\/wp-content\/uploads\/2014\/08\/blogpost.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.alwawee.ru\/wp-content\/uploads\/2014\/08\/blogpost.png\" alt=\"blogpost\" width=\"1543\" height=\"394\" class=\"aligncenter size-full wp-image-2204\" srcset=\"https:\/\/blog.alwawee.ru\/wp-content\/uploads\/2014\/08\/blogpost.png 1543w, https:\/\/blog.alwawee.ru\/wp-content\/uploads\/2014\/08\/blogpost-300x76.png 300w, https:\/\/blog.alwawee.ru\/wp-content\/uploads\/2014\/08\/blogpost-1024x261.png 1024w\" sizes=\"auto, (max-width: 1543px) 100vw, 1543px\" \/><\/a><\/p>\n<p>You can check your java version: <\/p>\n<pre>\r\n    $ java -version\r\n<\/pre>\n<p>This is solution: <\/p>\n<p>Then go to profile: <\/p>\n<pre>\r\n    $ vim ~\/.bash_profile\r\n<\/pre>\n<p>And change your <strong>JAVA_HOME<\/strong> variable: <\/p>\n<pre>\r\n    export JAVA_HOME=`\/usr\/libexec\/java_home -v 1.7`\r\n<\/pre>\n<p>Update that variable: <\/p>\n<pre>\r\n    $ source ~\/.bash_profile\r\n<\/pre>\n<p>And now rebuild your AppEngine project and redeploy it on server: <\/p>\n<pre>\r\n    $ mvn clean install\r\n    $ cd guestbook-ear\r\n    $ mvn appengine:update\r\n<\/pre>\n<p>Now check your application on browser: https:\/\/your_app_id.appspot.com\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I started to learn Google App Engine. Everything was perfect &#8211; tutorials, easiness of testing on development server before I wanted to deploy it on server. I knew that I had to use Java 7 instead of Java 8, which is currently supported by App Engine, but didn&#8217;t know, where I should change it easily [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[74],"tags":[88,75],"class_list":["post-2201","post","type-post","status-publish","format-standard","hentry","category-web-development","tag-google-appengine","tag-web"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Solving Google App Engine : 500 Server Error - Denis Kutlubaev<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.alwawee.ru\/?p=2201\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Solving Google App Engine : 500 Server Error - Denis Kutlubaev\" \/>\n<meta property=\"og:description\" content=\"I started to learn Google App Engine. Everything was perfect &#8211; tutorials, easiness of testing on development server before I wanted to deploy it on server. I knew that I had to use Java 7 instead of Java 8, which is currently supported by App Engine, but didn&#8217;t know, where I should change it easily [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.alwawee.ru\/?p=2201\" \/>\n<meta property=\"og:site_name\" content=\"Denis Kutlubaev\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/alwaweemobile\" \/>\n<meta property=\"article:published_time\" content=\"2014-08-07T08:17:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-08-07T08:34:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.alwawee.ru\/wp-content\/uploads\/2014\/08\/blogpost.png\" \/>\n<meta name=\"author\" content=\"Denis Kutlubaev\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Denis Kutlubaev\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=2201#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=2201\"},\"author\":{\"name\":\"Denis Kutlubaev\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/#\\\/schema\\\/person\\\/58f1f1f57155b48afab83ba53b3e26a7\"},\"headline\":\"Solving Google App Engine : 500 Server Error\",\"datePublished\":\"2014-08-07T08:17:59+00:00\",\"dateModified\":\"2014-08-07T08:34:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=2201\"},\"wordCount\":173,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=2201#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.alwawee.ru\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/blogpost.png\",\"keywords\":[\"Google AppEngine\",\"Web\"],\"articleSection\":[\"Web Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/blog.alwawee.ru\\\/?p=2201#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=2201\",\"url\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=2201\",\"name\":\"Solving Google App Engine : 500 Server Error - Denis Kutlubaev\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=2201#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=2201#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.alwawee.ru\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/blogpost.png\",\"datePublished\":\"2014-08-07T08:17:59+00:00\",\"dateModified\":\"2014-08-07T08:34:11+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/#\\\/schema\\\/person\\\/58f1f1f57155b48afab83ba53b3e26a7\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=2201#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.alwawee.ru\\\/?p=2201\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=2201#primaryimage\",\"url\":\"https:\\\/\\\/blog.alwawee.ru\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/blogpost.png\",\"contentUrl\":\"https:\\\/\\\/blog.alwawee.ru\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/blogpost.png\",\"width\":1543,\"height\":394},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=2201#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.alwawee.ru\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Solving Google App Engine : 500 Server Error\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/#website\",\"url\":\"https:\\\/\\\/blog.alwawee.ru\\\/\",\"name\":\"Denis Kutlubaev\",\"description\":\"iOS Development\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.alwawee.ru\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/#\\\/schema\\\/person\\\/58f1f1f57155b48afab83ba53b3e26a7\",\"name\":\"Denis Kutlubaev\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg\",\"caption\":\"Denis Kutlubaev\"},\"description\":\"iOS Developer, creator of Tornado Browser and many other popular apps\",\"sameAs\":[\"http:\\\/\\\/dennis.alwawee.com\"],\"url\":\"https:\\\/\\\/blog.alwawee.ru\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Solving Google App Engine : 500 Server Error - Denis Kutlubaev","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.alwawee.ru\/?p=2201","og_locale":"en_US","og_type":"article","og_title":"Solving Google App Engine : 500 Server Error - Denis Kutlubaev","og_description":"I started to learn Google App Engine. Everything was perfect &#8211; tutorials, easiness of testing on development server before I wanted to deploy it on server. I knew that I had to use Java 7 instead of Java 8, which is currently supported by App Engine, but didn&#8217;t know, where I should change it easily [&hellip;]","og_url":"https:\/\/blog.alwawee.ru\/?p=2201","og_site_name":"Denis Kutlubaev","article_publisher":"https:\/\/www.facebook.com\/alwaweemobile","article_published_time":"2014-08-07T08:17:59+00:00","article_modified_time":"2014-08-07T08:34:11+00:00","og_image":[{"url":"https:\/\/blog.alwawee.ru\/wp-content\/uploads\/2014\/08\/blogpost.png","type":"","width":"","height":""}],"author":"Denis Kutlubaev","twitter_misc":{"Written by":"Denis Kutlubaev","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.alwawee.ru\/?p=2201#article","isPartOf":{"@id":"https:\/\/blog.alwawee.ru\/?p=2201"},"author":{"name":"Denis Kutlubaev","@id":"https:\/\/blog.alwawee.ru\/#\/schema\/person\/58f1f1f57155b48afab83ba53b3e26a7"},"headline":"Solving Google App Engine : 500 Server Error","datePublished":"2014-08-07T08:17:59+00:00","dateModified":"2014-08-07T08:34:11+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.alwawee.ru\/?p=2201"},"wordCount":173,"commentCount":1,"image":{"@id":"https:\/\/blog.alwawee.ru\/?p=2201#primaryimage"},"thumbnailUrl":"https:\/\/blog.alwawee.ru\/wp-content\/uploads\/2014\/08\/blogpost.png","keywords":["Google AppEngine","Web"],"articleSection":["Web Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.alwawee.ru\/?p=2201#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.alwawee.ru\/?p=2201","url":"https:\/\/blog.alwawee.ru\/?p=2201","name":"Solving Google App Engine : 500 Server Error - Denis Kutlubaev","isPartOf":{"@id":"https:\/\/blog.alwawee.ru\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.alwawee.ru\/?p=2201#primaryimage"},"image":{"@id":"https:\/\/blog.alwawee.ru\/?p=2201#primaryimage"},"thumbnailUrl":"https:\/\/blog.alwawee.ru\/wp-content\/uploads\/2014\/08\/blogpost.png","datePublished":"2014-08-07T08:17:59+00:00","dateModified":"2014-08-07T08:34:11+00:00","author":{"@id":"https:\/\/blog.alwawee.ru\/#\/schema\/person\/58f1f1f57155b48afab83ba53b3e26a7"},"breadcrumb":{"@id":"https:\/\/blog.alwawee.ru\/?p=2201#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.alwawee.ru\/?p=2201"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.alwawee.ru\/?p=2201#primaryimage","url":"https:\/\/blog.alwawee.ru\/wp-content\/uploads\/2014\/08\/blogpost.png","contentUrl":"https:\/\/blog.alwawee.ru\/wp-content\/uploads\/2014\/08\/blogpost.png","width":1543,"height":394},{"@type":"BreadcrumbList","@id":"https:\/\/blog.alwawee.ru\/?p=2201#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.alwawee.ru\/"},{"@type":"ListItem","position":2,"name":"Solving Google App Engine : 500 Server Error"}]},{"@type":"WebSite","@id":"https:\/\/blog.alwawee.ru\/#website","url":"https:\/\/blog.alwawee.ru\/","name":"Denis Kutlubaev","description":"iOS Development","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.alwawee.ru\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.alwawee.ru\/#\/schema\/person\/58f1f1f57155b48afab83ba53b3e26a7","name":"Denis Kutlubaev","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg","caption":"Denis Kutlubaev"},"description":"iOS Developer, creator of Tornado Browser and many other popular apps","sameAs":["http:\/\/dennis.alwawee.com"],"url":"https:\/\/blog.alwawee.ru\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=\/wp\/v2\/posts\/2201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2201"}],"version-history":[{"count":0,"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=\/wp\/v2\/posts\/2201\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}