{"id":396,"date":"2016-03-21T15:40:23","date_gmt":"2016-03-21T14:40:23","guid":{"rendered":"http:\/\/blog.daghosoft.com\/WP\/?p=396"},"modified":"2016-04-19T16:04:07","modified_gmt":"2016-04-19T14:04:07","slug":"websphere-8-with-war-java-lang-nosuchmethoderror-exception","status":"publish","type":"post","link":"https:\/\/blog.daghosoft.com\/WP\/websphere-8-with-war-java-lang-nosuchmethoderror-exception\/","title":{"rendered":"Websphere 8 with war java.lang.NoSuchMethodError Exception"},"content":{"rendered":"<p>Using a war under websphere 8.0 can sometimes throw this exception (In my specific case with jtopen libs) solved with the screen configuration:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"397\" data-permalink=\"https:\/\/blog.daghosoft.com\/WP\/websphere-8-with-war-java-lang-nosuchmethoderror-exception\/war-config\/\" data-orig-file=\"https:\/\/i0.wp.com\/blog.daghosoft.com\/WP\/wp-content\/uploads\/2016\/03\/war-config.png?fit=400%2C302&amp;ssl=1\" data-orig-size=\"400,302\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"war-config\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/blog.daghosoft.com\/WP\/wp-content\/uploads\/2016\/03\/war-config.png?fit=300%2C227&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/blog.daghosoft.com\/WP\/wp-content\/uploads\/2016\/03\/war-config.png?fit=400%2C302&amp;ssl=1\" class=\"size-medium wp-image-397 alignleft\" src=\"https:\/\/i0.wp.com\/blog.daghosoft.com\/WP\/wp-content\/uploads\/2016\/03\/war-config.png?resize=300%2C227\" alt=\"war-config\" width=\"300\" height=\"227\" srcset=\"https:\/\/i0.wp.com\/blog.daghosoft.com\/WP\/wp-content\/uploads\/2016\/03\/war-config.png?resize=300%2C227&amp;ssl=1 300w, https:\/\/i0.wp.com\/blog.daghosoft.com\/WP\/wp-content\/uploads\/2016\/03\/war-config.png?w=400&amp;ssl=1 400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service Uncaught service() exception thrown by servlet main: java.lang.NoSuchMethodError: com\/ibm\/as400\/data\/ProgramCallDocument.__jr_selector__(I[Ljava\/lang\/Object;)Ljava\/lang\/Object;<br \/>\nat com.fakeclass.genericinvokerweb.beprogram.BEProgram.output(BEProgram.java:217)<br \/>\nat com.fakeclass.genericinvokerweb.PCMLutils.buildOutPut(PCMLutils.java:128)<br \/>\nat com.fakeclass.genericinvokerweb.MainServlet.executeCallAs400(MainServlet.java:104)<br \/>\nat com.fakeclass.genericinvokerweb.MainServlet.doPost(MainServlet.java:86)<br \/>\nat javax.servlet.http.HttpServlet.service(HttpServlet.java:595)<br \/>\nat javax.servlet.http.HttpServlet.service(HttpServlet.java:668)<br \/>\nat com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230)<br \/>\nat com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)<br \/>\nat com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)<br \/>\nat com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)<br \/>\nat com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1071)<br \/>\nat com.ibm.ws.webcontainer.webapp.WebApp.__handleRequest(WebApp.java:3815)<br \/>\nat com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java)<br \/>\nat com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)<br \/>\nat com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:981)<br \/>\nat com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)<br \/>\nat com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)<br \/>\nat com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:453)<br \/>\nat com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)<br \/>\nat com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:306)<br \/>\nat com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:84)<br \/>\nat com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)<br \/>\nat com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)<br \/>\nat com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)<br \/>\nat com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)<br \/>\nat com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)<br \/>\nat com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)<br \/>\nat com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)<br \/>\nat com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1702)<\/p>\n<p>[17\/03\/16 16.41.28:730 CET] 00000050 SystemErr R 17-mar-2016 16.41.28 com.ibm.ws.webcontainer.servlet.ServletWrapper service<br \/>\nSEVERE: Uncaught service() exception thrown by servlet main: java.lang.NoSuchMethodError: com\/ibm\/as400\/data\/ProgramCallDocument.__jr_selector__(I[Ljava\/lang\/Object;)Ljava\/lang\/Object;<br \/>\nat com.fakeclass.genericinvokerweb.beprogram.BEProgram.output(BEProgram.java:217)<br \/>\nat com.fakeclass.genericinvokerweb.PCMLutils.buildOutPut(PCMLutils.java:128)<br \/>\nat com.fakeclass.genericinvokerweb.MainServlet.executeCallAs400(MainServlet.java:104)<br \/>\nat com.fakeclass.genericinvokerweb.MainServlet.doPost(MainServlet.java:86)<br \/>\nat javax.servlet.http.HttpServlet.service(HttpServlet.java:595)<br \/>\nat javax.servlet.http.HttpServlet.service(HttpServlet.java:668)<br \/>\nat com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230)<br \/>\nat com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)<br \/>\nat com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)<br \/>\nat com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)<br \/>\nat com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1071)<br \/>\nat com.ibm.ws.webcontainer.webapp.WebApp.__handleRequest(WebApp.java:3815)<br \/>\nat com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java)<br \/>\nat com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)<br \/>\nat com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:981)<br \/>\nat com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)<br \/>\nat com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)<br \/>\nat com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:453)<br \/>\nat com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)<br \/>\nat com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:306)<br \/>\nat com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:84)<br \/>\nat com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)<br \/>\nat com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)<br \/>\nat com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)<br \/>\nat com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)<br \/>\nat com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)<br \/>\nat com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)<br \/>\nat com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)<br \/>\nat com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1702)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using a war under websphere 8.0 can sometimes throw this exception (In my specific case with jtopen libs) solved with the screen configuration: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service Uncaught service() exception thrown by servlet main: java.lang.NoSuchMethodError: com\/ibm\/as400\/data\/ProgramCallDocument.__jr_selector__(I[Ljava\/lang\/Object;)Ljava\/lang\/Object; at com.fakeclass.genericinvokerweb.beprogram.BEProgram.output(BEProgram.java:217) at com.fakeclass.genericinvokerweb.PCMLutils.buildOutPut(PCMLutils.java:128) at com.fakeclass.genericinvokerweb.MainServlet.executeCallAs400(MainServlet.java:104) at com.fakeclass.genericinvokerweb.MainServlet.doPost(MainServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) &hellip; <a href=\"https:\/\/blog.daghosoft.com\/WP\/websphere-8-with-war-java-lang-nosuchmethoderror-exception\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Websphere 8 with war java.lang.NoSuchMethodError Exception<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[75],"tags":[80,76,77,79,78],"class_list":["post-396","post","type-post","status-publish","format-standard","hentry","category-developing","tag-developing","tag-java","tag-jdk","tag-war","tag-websphere8"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p77gJg-6o","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/posts\/396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/comments?post=396"}],"version-history":[{"count":5,"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/posts\/396\/revisions"}],"predecessor-version":[{"id":419,"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/posts\/396\/revisions\/419"}],"wp:attachment":[{"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/media?parent=396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/categories?post=396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.daghosoft.com\/WP\/wp-json\/wp\/v2\/tags?post=396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}