{"id":396,"date":"2010-10-08T07:24:30","date_gmt":"2010-10-08T07:24:30","guid":{"rendered":"http:\/\/apollo89.com\/wordpress\/?p=396"},"modified":"2013-02-01T23:15:32","modified_gmt":"2013-02-01T14:15:32","slug":"can-not-read-response-from-server-expected-to-read-4-bytes-read-0-bytes-before-connection-was-unexpectedly-lost","status":"publish","type":"post","link":"https:\/\/apollo89.com\/wordpress\/?p=396","title":{"rendered":"Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost."},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>mysql \uc811\uc18d\uc2dc\uc5d0 \uc790\uafb8 \uc544\ub798\uc640 \uac19\uc740 \uc5d0\ub7ec\uac00 \ub098\uc11c..<\/p>\n<pre class=\"lang:default decode:true \" >Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.\r\n<\/pre>\n<p>context.xml\uc758 \uc124\uc815\uc744 \uc544\ub798\uc640 \uac19\uc774 \ubc14\uafd4\uc8fc\ub2c8 \ud574\uacb0\ub41c\ub4ef\ud558\ub2e4.<\/p>\n<pre class=\"lang:default decode:true \" >    &lt;Resource auth=\"Container\"\r\n              driverClassName=\"com.mysql.jdbc.Driver\"\r\n              url=\"jdbc:mysql:\/\/xxx.xxx.xxx.xxx:3306\/dbname?characterEncoding=utf-8&amp;amp;interactiveClient=true&amp;amp;autoReconnect=true&amp;amp;autoReconnectForPools=true&amp;amp;useUnicode=true&amp;amp;characterSetResults=UTF-8\"\r\n              type=\"javax.sql.DataSource\"\r\n              name=\"jdbc\/xxxxx\"\r\n              username=\"userid\"\r\n              password=\"userpw\"\r\n              initialSize=\"0\"\r\n              maxActive=\"20\"\r\n              maxIdle=\"10\"\r\n              minIdle=\"0\"\r\n              maxWait=\"-1\"\r\n              validationQuery=\"SELECT 1\"\r\n              testOnBorrow=\"true\"\r\n              poolPreparedStatements=\"true\"\r\n              removeAbandoned=\"true\"\r\n              removeAbandonedTimeout=\"60\"\r\n              logAbandoned=\"true\"\r\n              loginTimeout=\"10\"\r\n    \/&gt;\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; mysql \uc811\uc18d\uc2dc\uc5d0 \uc790\uafb8 \uc544\ub798\uc640 \uac19\uc740 \uc5d0\ub7ec\uac00 \ub098\uc11c.. Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. context.xml\uc758 \uc124\uc815\uc744 \uc544\ub798\uc640 \uac19\uc774 \ubc14\uafd4\uc8fc\ub2c8 \ud574\uacb0\ub41c\ub4ef\ud558\ub2e4. &lt;Resource auth=&#8221;Container&#8221; driverClassName=&#8221;com.mysql.jdbc.Driver&#8221; url=&#8221;jdbc:mysql:\/\/xxx.xxx.xxx.xxx:3306\/dbname?characterEncoding=utf-8&amp;amp;interactiveClient=true&amp;amp;autoReconnect=true&amp;amp;autoReconnectForPools=true&amp;amp;useUnicode=true&amp;amp;characterSetResults=UTF-8&#8243; type=&#8221;javax.sql.DataSource&#8221; name=&#8221;jdbc\/xxxxx&#8221; username=&#8221;userid&#8221; &hellip; <a href=\"https:\/\/apollo89.com\/wordpress\/?p=396\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[685,662],"tags":[429,483,90,178,337],"class_list":["post-396","post","type-post","status-publish","format-standard","hentry","category-database-","category-java-jsp","tag-connection","tag-context","tag-mysql","tag-error","tag-tomcat"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. - Apollo89.com<\/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:\/\/apollo89.com\/wordpress\/?p=396\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. - Apollo89.com\" \/>\n<meta property=\"og:description\" content=\"&nbsp; mysql \uc811\uc18d\uc2dc\uc5d0 \uc790\uafb8 \uc544\ub798\uc640 \uac19\uc740 \uc5d0\ub7ec\uac00 \ub098\uc11c.. Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. context.xml\uc758 \uc124\uc815\uc744 \uc544\ub798\uc640 \uac19\uc774 \ubc14\uafd4\uc8fc\ub2c8 \ud574\uacb0\ub41c\ub4ef\ud558\ub2e4. &lt;Resource auth=&quot;Container&quot; driverClassName=&quot;com.mysql.jdbc.Driver&quot; url=&quot;jdbc:mysql:\/\/xxx.xxx.xxx.xxx:3306\/dbname?characterEncoding=utf-8&amp;amp;interactiveClient=true&amp;amp;autoReconnect=true&amp;amp;autoReconnectForPools=true&amp;amp;useUnicode=true&amp;amp;characterSetResults=UTF-8&quot; type=&quot;javax.sql.DataSource&quot; name=&quot;jdbc\/xxxxx&quot; username=&quot;userid&quot; &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/apollo89.com\/wordpress\/?p=396\" \/>\n<meta property=\"og:site_name\" content=\"Apollo89.com\" \/>\n<meta property=\"article:published_time\" content=\"2010-10-08T07:24:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-02-01T14:15:32+00:00\" \/>\n<meta name=\"author\" content=\"apollo89\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"apollo89\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=396#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=396\"},\"author\":{\"name\":\"apollo89\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/93f56825cac3b2f18e5f107995066c82\"},\"headline\":\"Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.\",\"datePublished\":\"2010-10-08T07:24:30+00:00\",\"dateModified\":\"2013-02-01T14:15:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=396\"},\"wordCount\":22,\"commentCount\":0,\"keywords\":[\"Connection\",\"context\",\"mysql\",\"\uc5d0\ub7ec\",\"\ud1b0\ucf13\"],\"articleSection\":[\"Database\",\"Java\\\/JSP\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=396#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=396\",\"url\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=396\",\"name\":\"Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. - Apollo89.com\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#website\"},\"datePublished\":\"2010-10-08T07:24:30+00:00\",\"dateModified\":\"2013-02-01T14:15:32+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/93f56825cac3b2f18e5f107995066c82\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=396#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=396\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=396#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\\\/\\\/apollo89.com\\\/wordpress\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#website\",\"url\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/\",\"name\":\"Apollo89.com\",\"description\":\"\uc544\ud3f4\ub85c\uc528\uc758 \uc7a1\ub2e4\ud55c \uacbd\ud5d8\ub4e4..\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/93f56825cac3b2f18e5f107995066c82\",\"name\":\"apollo89\",\"description\":\"\uc544\ud3f4\ub85c89 \uc785\ub2c8\ub2e4.\",\"url\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. - Apollo89.com","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:\/\/apollo89.com\/wordpress\/?p=396","og_locale":"ko_KR","og_type":"article","og_title":"Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. - Apollo89.com","og_description":"&nbsp; mysql \uc811\uc18d\uc2dc\uc5d0 \uc790\uafb8 \uc544\ub798\uc640 \uac19\uc740 \uc5d0\ub7ec\uac00 \ub098\uc11c.. Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. context.xml\uc758 \uc124\uc815\uc744 \uc544\ub798\uc640 \uac19\uc774 \ubc14\uafd4\uc8fc\ub2c8 \ud574\uacb0\ub41c\ub4ef\ud558\ub2e4. &lt;Resource auth=\"Container\" driverClassName=\"com.mysql.jdbc.Driver\" url=\"jdbc:mysql:\/\/xxx.xxx.xxx.xxx:3306\/dbname?characterEncoding=utf-8&amp;amp;interactiveClient=true&amp;amp;autoReconnect=true&amp;amp;autoReconnectForPools=true&amp;amp;useUnicode=true&amp;amp;characterSetResults=UTF-8\" type=\"javax.sql.DataSource\" name=\"jdbc\/xxxxx\" username=\"userid\" &hellip; Continue reading &rarr;","og_url":"https:\/\/apollo89.com\/wordpress\/?p=396","og_site_name":"Apollo89.com","article_published_time":"2010-10-08T07:24:30+00:00","article_modified_time":"2013-02-01T14:15:32+00:00","author":"apollo89","twitter_card":"summary_large_image","twitter_misc":{"\uae00\uc4f4\uc774":"apollo89"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/apollo89.com\/wordpress\/?p=396#article","isPartOf":{"@id":"https:\/\/apollo89.com\/wordpress\/?p=396"},"author":{"name":"apollo89","@id":"https:\/\/apollo89.com\/wordpress\/#\/schema\/person\/93f56825cac3b2f18e5f107995066c82"},"headline":"Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.","datePublished":"2010-10-08T07:24:30+00:00","dateModified":"2013-02-01T14:15:32+00:00","mainEntityOfPage":{"@id":"https:\/\/apollo89.com\/wordpress\/?p=396"},"wordCount":22,"commentCount":0,"keywords":["Connection","context","mysql","\uc5d0\ub7ec","\ud1b0\ucf13"],"articleSection":["Database","Java\/JSP"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/apollo89.com\/wordpress\/?p=396#respond"]}]},{"@type":"WebPage","@id":"https:\/\/apollo89.com\/wordpress\/?p=396","url":"https:\/\/apollo89.com\/wordpress\/?p=396","name":"Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. - Apollo89.com","isPartOf":{"@id":"https:\/\/apollo89.com\/wordpress\/#website"},"datePublished":"2010-10-08T07:24:30+00:00","dateModified":"2013-02-01T14:15:32+00:00","author":{"@id":"https:\/\/apollo89.com\/wordpress\/#\/schema\/person\/93f56825cac3b2f18e5f107995066c82"},"breadcrumb":{"@id":"https:\/\/apollo89.com\/wordpress\/?p=396#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/apollo89.com\/wordpress\/?p=396"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/apollo89.com\/wordpress\/?p=396#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/apollo89.com\/wordpress"},{"@type":"ListItem","position":2,"name":"Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost."}]},{"@type":"WebSite","@id":"https:\/\/apollo89.com\/wordpress\/#website","url":"https:\/\/apollo89.com\/wordpress\/","name":"Apollo89.com","description":"\uc544\ud3f4\ub85c\uc528\uc758 \uc7a1\ub2e4\ud55c \uacbd\ud5d8\ub4e4..","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/apollo89.com\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Person","@id":"https:\/\/apollo89.com\/wordpress\/#\/schema\/person\/93f56825cac3b2f18e5f107995066c82","name":"apollo89","description":"\uc544\ud3f4\ub85c89 \uc785\ub2c8\ub2e4.","url":"https:\/\/apollo89.com\/wordpress\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=396"}],"version-history":[{"count":0,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/396\/revisions"}],"wp:attachment":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}