2013年7月25日星期四

Exception occurred during processing request: null seeking help Daniel

Help me find the rookie Daniel it really does not know that there is a problem





------ Solution ------- -------------------------------------
configuration file header information is not
 
Should be
"- / / Apache Software Foundation / / DTD Struts Configuration 2.0 / / EN" "Http://struts.apache.org/dtds/struts-2.0.dtd">
You are

One less s

------ Solution ------------------------------------ --------
addition to your namespace = "/ hello".
your form in the form of action can not be hello it. You can change the namespace = "/", or action = "hello.hello"
------ Solution ------------------- -------------------------
if namespace = "/" then hello.action
--- --- Solution --------------------------------------------
Since you changed over the namespace to "/", then the form of the action = "hello.action" a.
------ For reference only ------------- --------------------------
are you seeing this
------ For reference only ---------------------------------------


strong Oh this I change overnight, 3L proposal also heard, but still the same error amount, why
------ For reference only ---- -----------------------------------


Here I also changed, but still the same error
------ For reference only ----------------------- ----------------
I affix bar codes in order to facilitate
 package com; 

public class HelloAction {
private String message; public String getMessage ()
{ return message; }
public void setMessage (String message)
{ this.message = message; }
public String execute ()
{ System.out.println ("............"); if ((this.message.equals ("")) | | (this.message == null))
{ message = "Please enter the greeting"; }
return "success";
}
}

  
 
"- / / Apache Software Foundation / / DTD Struts Configuration 2.0 / / EN" 
"Http://struts.apache.org/dtds/struts-2.0.dtd"> 
 
 

/ hello.jsp

  
 
  
index.jsp struts2Filter org.apache.struts2.dispatcher.FilterDispatcher
struts2Filter / *

 <% @ page language = "java" import = "java.util. *" pageEncoding = "utf-8"%> 
<% @ Taglib prefix = "s" uri = "/ struts-tags"%> 

Greetings Program </ title> <br /> </ Head> <body> <s:property value="message"/> <s:form action="hello"> <s:textfield name="message" label="问候语 "value=""/> <br> <s:submit value="提交"/> <br /> <br /> </ S: form> </ Body> </ Html> </Pre> <br /> <br /> <br /> <br /> error code :2013-3-14 13:59:17 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error <br /> Serious: Exception occurred during processing request: null <br /> java.lang.NullPointerException <br /> at org.apache.struts2.impl.StrutsActionProxy.getErrorMessage (StrutsActionProxy.java: 69) <br /> at com.opensymphony.xwork2.DefaultActionProxy.prepare (DefaultActionProxy.java: 185) <br /> at org.apache.struts2.impl.StrutsActionProxy.prepare (StrutsActionProxy.java: 63) <br /> at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy (StrutsActionProxyFactory.java: 39) <br /> at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy (DefaultActionProxyFactory.java: 58) <br /> at org.apache.struts2.dispatcher.Dispatcher.serviceAction (Dispatcher.java: 534) <br /> at org.apache.struts2.dispatcher.FilterDispatcher.doFilter (FilterDispatcher.java: 434) <br /> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java: 235) <br /> at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java: 206) <br /> at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java: 233) <br /> at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java: 191) <br /> at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java: 127) <br /> at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java: 102) <br /> at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java: 109) <br /> at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java: 298) <br /> at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java: 859) <br /> at org.apache.coyote.http11.Http11Protocol $ Http11ConnectionHandler.process (Http11Protocol.java: 588) <br /> at org.apache.tomcat.util.net.JIoEndpoint $ Worker.run (JIoEndpoint.java: 489) <br /> at java.lang.Thread.run (Thread.java: 619) <br /> <br> ------ For reference only ---------------------------------- ----- <br> <br /> +1 <br> ------ For reference only ----------------------- ---------------- <br> <br /> turning it into hello.action eh? ? <br> ------ For reference only -------------------------------------- - <br> <br /> I get on your way and then you see a warning message is still the same error <br /> <br /> <br /> 2013-3-14 20:21:56 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn <br /> WARNING: No configuration found for the specified action: 'hello.action' in namespace:''. Form action defaulting to 'action' attribute's literal value. <br /> 2013-3-14 20:21:56 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn <br /> WARNING: No configuration found for the specified action: 'hello.action' in namespace:''. Form action defaulting to 'action' attribute's literal value. <br /> 2013-3-14 20:21:57 org.apache.catalina.startup.HostConfig checkResources <br /> Information: Reloading context [/ ssts] <br> ------ For reference only ---------------------- ----------------- <br> find hello.action directory, is not action configuration problem <br> ------ For reference only --------------------------------------- <br> change <s: form ; action = "hello"> <br /> <br /> In addition to your struts.xml in line with a warning <package> do? <br> ------ For reference only -------------------------------------- - <br> <br /> without warning is a problem I have details <br> ------ For reference only ---------------- ----------------------- <br> Thank you solve the problem <br> ------ For reference only --------------------------------------- <br> how to solve? <br> ------ For reference only -------------------------------------- - <br> <br /> How can we solve the <br> ------ For reference only -------------------------- ------------- <br> this post pit father <br> ------ For reference only ----------------- ---------------------- <br> I appear this error struts.xml I originally wrote structs.xml. . . . . . . . . . . . . . . <br> ------ For reference only -------------------------------------- - <br> parade, brother to curse, you can not be so shameless landlord does not, fuck <br> <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'> <meta content='https://www.blogger.com/profile/03297126993249364078' itemprop='url'/> <a href='https://www.blogger.com/profile/03297126993249364078' rel='author' title='author profile'> <span itemprop='name'>jlins</span> </a> </span> </span> <span class='post-timestamp'> 时间: <meta content='http://bestlovejava.blogspot.com/2013/07/exception-occurred-during-processing.html' itemprop='url'/> <a class='timestamp-link' href='http://bestlovejava.blogspot.com/2013/07/exception-occurred-during-processing.html?m=1' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2013-07-25T04:38:00-07:00'>04:38</abbr></a> </span> <span class='post-comment-link'> </span> </div> <div class='post-footer-line post-footer-line-2'> <div class='mobile-link-button goog-inline-block' id='mobile-share-button'> <a href='javascript:void(0);'>共享</a> </div> </div> </div> </div> <div class='comments' id='comments'> <a name='comments'></a> <h4>没有评论:</h4> <div id='Blog1_comments-block-wrapper'> <dl class='avatar-comment-indent' id='comments-block'> </dl> </div> <p class='comment-footer'> <div class='comment-form'> <a name='comment-form'></a> <h4 id='comment-post-message'> <a href='javascript:void(0)' id='Blog1_comment-editor-toggle-link'>发表评论</a></h4> <p> </p> <a href='https://www.blogger.com/comment/frame/1465777246593922862?po=7364284898511144541&hl=zh-CN&saa=85391&origin=http://bestlovejava.blogspot.com&m=1' id='comment-editor-src'></a> <iframe allowtransparency='true' class='blogger-iframe-colorize blogger-comment-from-post' frameborder='0' height='410px' id='comment-editor' name='comment-editor' src='' style='display: none' width='100%'></iframe> <script src='https://www.blogger.com/static/v1/jsbin/2830521187-comment_from_post_iframe.js' type='text/javascript'></script> <script type='text/javascript'> BLOG_CMT_createIframe('https://www.blogger.com/rpc_relay.html'); </script> </div> </p> </div> </div> </div> </div> </div> <div class='blog-pager' id='blog-pager'> <div class='mobile-link-button' id='blog-pager-newer-link'> <a class='blog-pager-newer-link' href='http://bestlovejava.blogspot.com/2013/07/getstringutfchars-env-str-null-return.html?m=1' id='Blog1_blog-pager-newer-link' title='较新的博文'>‹</a> </div> <div class='mobile-link-button' id='blog-pager-older-link'> <a class='blog-pager-older-link' href='http://bestlovejava.blogspot.com/2013/07/java-how-to-call-php-soap-build.html?m=1' id='Blog1_blog-pager-older-link' title='较早的博文'>›</a> </div> <div class='mobile-link-button' id='blog-pager-home-link'> <a class='home-link' href='http://bestlovejava.blogspot.com/?m=1'>主页</a> </div> <div class='mobile-desktop-link'> <a class='home-link' href='http://bestlovejava.blogspot.com/2013/07/exception-occurred-during-processing.html?m=0'>查看网络版本</a> </div> </div> <div class='clear'></div> </div></div> </div> </div> <div class='column-left-outer'> <div class='column-left-inner'> <aside> </aside> </div> </div> <div class='column-right-outer'> <div class='column-right-inner'> <aside> </aside> </div> </div> </div> <div style='clear: both'></div> <!-- columns --> </div> <!-- main --> </div> </div> <div class='main-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> <footer> <div class='footer-outer'> <div class='footer-cap-top cap-top'> <div class='cap-left'></div> <div class='cap-right'></div> </div> <div class='fauxborder-left footer-fauxborder-left'> <div class='fauxborder-right footer-fauxborder-right'></div> <div class='region-inner footer-inner'> <div class='foot no-items section' id='footer-1'></div> <!-- outside of the include in order to lock Attribution widget --> <div class='foot section' id='footer-3' name='页脚'> <div class='widget Profile' data-version='1' id='Profile1'> <h2>我的简介</h2> <div class='widget-content'> <dl class='profile-datablock'> <dt class='profile-data'> <a class='profile-name-link g-profile' href='https://www.blogger.com/profile/03297126993249364078' rel='author' style='background-image: url(//www.blogger.com/img/logo-16.png);'> jlins </a> </dt> </dl> <a class='profile-link' href='https://www.blogger.com/profile/03297126993249364078' rel='author'>查看我的完整个人资料</a> <div class='clear'></div> </div> </div><div class='widget Attribution' data-version='1' id='Attribution1'> <div class='widget-content' style='text-align: center;'> 由 <a href='https://www.blogger.com' target='_blank'>Blogger</a> 提供支持. </div> <div class='clear'></div> </div></div> </div> </div> <div class='footer-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> </footer> <!-- content --> </div> </div> <div class='content-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> </div> <script type='text/javascript'> window.setTimeout(function() { document.body.className = document.body.className.replace('loading', ''); }, 10); </script> <script type="text/javascript" src="https://www.blogger.com/static/v1/widgets/344097953-widgets.js"></script> <script type='text/javascript'> var BLOG_BASE_IMAGE_URL = 'https://resources.blogblog.com/img';var BLOG_LANG_DIR = 'ltr';window['__wavt'] = 'APlU3lxEU_3vQvV9BET3ajtcIXcJ:1775346800148';_WidgetManager._Init('//www.blogger.com/rearrange?blogID\x3d1465777246593922862','//bestlovejava.blogspot.com/2013/07/exception-occurred-during-processing.html?m\x3d1','1465777246593922862'); _WidgetManager._SetDataContext([{'name': 'blog', 'data': {'blogId': '1465777246593922862', 'title': 'Java lovers', 'url': 'http://bestlovejava.blogspot.com/2013/07/exception-occurred-during-processing.html?m\x3d1', 'canonicalUrl': 'http://bestlovejava.blogspot.com/2013/07/exception-occurred-during-processing.html', 'homepageUrl': 'http://bestlovejava.blogspot.com/?m\x3d1', 'searchUrl': 'http://bestlovejava.blogspot.com/search', 'canonicalHomepageUrl': 'http://bestlovejava.blogspot.com/', 'blogspotFaviconUrl': 'http://bestlovejava.blogspot.com/favicon.ico', 'bloggerUrl': 'https://www.blogger.com', 'hasCustomDomain': false, 'httpsEnabled': true, 'enabledCommentProfileImages': true, 'gPlusViewType': 'FILTERED_POSTMOD', 'adultContent': false, 'analyticsAccountNumber': '', 'encoding': 'UTF-8', 'locale': 'zh-CN', 'localeUnderscoreDelimited': 'zh_cn', 'languageDirection': 'ltr', 'isPrivate': false, 'isMobile': true, 'isMobileRequest': true, 'mobileClass': ' mobile', 'isPrivateBlog': false, 'isDynamicViewsAvailable': true, 'feedLinks': '\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Java lovers - Atom\x22 href\x3d\x22http://bestlovejava.blogspot.com/feeds/posts/default\x22 /\x3e\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/rss+xml\x22 title\x3d\x22Java lovers - RSS\x22 href\x3d\x22http://bestlovejava.blogspot.com/feeds/posts/default?alt\x3drss\x22 /\x3e\n\x3clink rel\x3d\x22service.post\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Java lovers - Atom\x22 href\x3d\x22https://www.blogger.com/feeds/1465777246593922862/posts/default\x22 /\x3e\n\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Java lovers - Atom\x22 href\x3d\x22http://bestlovejava.blogspot.com/feeds/7364284898511144541/comments/default\x22 /\x3e\n', 'meTag': '', 'adsenseClientId': 'ca-pub-1944176156128447', 'adsenseHostId': 'ca-host-pub-1556223355139109', 'adsenseHasAds': true, 'adsenseAutoAds': false, 'boqCommentIframeForm': true, 'loginRedirectParam': '', 'isGoogleEverywhereLinkTooltipEnabled': true, 'view': '', 'dynamicViewsCommentsSrc': '//www.blogblog.com/dynamicviews/4224c15c4e7c9321/js/comments.js', 'dynamicViewsScriptSrc': '//www.blogblog.com/dynamicviews/16d2a080d6cf52d7', 'plusOneApiSrc': 'https://apis.google.com/js/platform.js', 'disableGComments': true, 'interstitialAccepted': false, 'sharing': {'platforms': [{'name': '\u83b7\u53d6\u94fe\u63a5', 'key': 'link', 'shareMessage': '\u83b7\u53d6\u94fe\u63a5', 'target': ''}, {'name': 'Facebook', 'key': 'facebook', 'shareMessage': '\u5206\u4eab\u5230 Facebook', 'target': 'facebook'}, {'name': 'BlogThis!', 'key': 'blogThis', 'shareMessage': 'BlogThis!', 'target': 'blog'}, {'name': 'X', 'key': 'twitter', 'shareMessage': '\u5206\u4eab\u5230 X', 'target': 'twitter'}, {'name': 'Pinterest', 'key': 'pinterest', 'shareMessage': '\u5206\u4eab\u5230 Pinterest', 'target': 'pinterest'}, {'name': '\u7535\u5b50\u90ae\u4ef6', 'key': 'email', 'shareMessage': '\u7535\u5b50\u90ae\u4ef6', 'target': 'email'}], 'disableGooglePlus': true, 'googlePlusShareButtonWidth': 0, 'googlePlusBootstrap': '\x3cscript type\x3d\x22text/javascript\x22\x3ewindow.___gcfg \x3d {\x27lang\x27: \x27zh_CN\x27};\x3c/script\x3e'}, 'hasCustomJumpLinkMessage': false, 'jumpLinkMessage': '\u9605\u8bfb\u5168\u6587', 'pageType': 'item', 'postId': '7364284898511144541', 'postImageUrl': 'http://img.my.csdn.net/uploads/201303/14/1363227864_3856.png', 'pageName': 'Exception occurred during processing request: null seeking help Daniel ', 'pageTitle': 'Java lovers: Exception occurred during processing request: null seeking help Daniel '}}, {'name': 'features', 'data': {}}, {'name': 'messages', 'data': {'edit': '\u4fee\u6539', 'linkCopiedToClipboard': '\u94fe\u63a5\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f\uff01', 'ok': '\u786e\u5b9a', 'postLink': '\u535a\u6587\u94fe\u63a5'}}, {'name': 'template', 'data': {'name': 'Simple', 'localizedName': '\u7b80\u5355', 'isResponsive': false, 'isAlternateRendering': true, 'isCustom': false, 'variant': 'bold', 'variantId': 'bold'}}, {'name': 'view', 'data': {'classic': {'name': 'classic', 'url': '?view\x3dclassic'}, 'flipcard': {'name': 'flipcard', 'url': '?view\x3dflipcard'}, 'magazine': {'name': 'magazine', 'url': '?view\x3dmagazine'}, 'mosaic': {'name': 'mosaic', 'url': '?view\x3dmosaic'}, 'sidebar': {'name': 'sidebar', 'url': '?view\x3dsidebar'}, 'snapshot': {'name': 'snapshot', 'url': '?view\x3dsnapshot'}, 'timeslide': {'name': 'timeslide', 'url': '?view\x3dtimeslide'}, 'isMobile': true, 'title': 'Exception occurred during processing request: null seeking help Daniel ', 'description': 'Help me find the rookie Daniel it really does not know that there is a problem ------ Solution ------- ------------------...', 'featuredImage': 'https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_tdnSYEyaVezLOzRTsBp0wu8BlFhdHfPP6X6kAqF_ljdzu-8To7NTasOt-zivhenIB_8xdInsZDpT_mCz_dutLHiQ4_LYjEzal2WrWmRGVo9m_ceHSXxkoSjYr110gqMg', 'url': 'http://bestlovejava.blogspot.com/2013/07/exception-occurred-during-processing.html?m\x3d1', 'type': 'item', 'isSingleItem': true, 'isMultipleItems': false, 'isError': false, 'isPage': false, 'isPost': true, 'isHomepage': false, 'isArchive': false, 'isLabelSearch': false, 'postId': 7364284898511144541}}]); _WidgetManager._RegisterWidget('_HeaderView', new _WidgetInfo('Header1', 'header', document.getElementById('Header1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogView', new _WidgetInfo('Blog1', 'main', document.getElementById('Blog1'), {'cmtInteractionsEnabled': false, 'mobile': true}, 'displayModeFull')); _WidgetManager._RegisterWidget('_ProfileView', new _WidgetInfo('Profile1', 'footer-3', document.getElementById('Profile1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_AttributionView', new _WidgetInfo('Attribution1', 'footer-3', document.getElementById('Attribution1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_NavbarView', new _WidgetInfo('Navbar1', 'navbar', document.getElementById('Navbar1'), {}, 'displayModeFull')); </script> </body> </html>