关于udeditor使用的时候controller.jsp报500错误的解决

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/guo0818/article/details/77500803
在使用ueditor的时候,有时候人会认为把他ueditor整个文件夹包放进项目,然后引用就可以使用,这个时候controller.jsp会报错,是因为没把ueditor\jsp\lib下的jar包加入到项目中,只需要把jar包导入项目的lib下就可以正常使用。
展开阅读全文

500错误

06-14

我做一个上传图片的JSP页面 数据库中创建了该表。运行老是出先500错 麻烦高手指点rnrnrnjavax.servlet.ServletException: Error instantiating servlet class linyu.com.servlet.UserMerchandiseServletrn org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)rn org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:866)rn org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:716)rn org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1498)rn java.lang.Thread.run(Unknown Source)rnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactoryrn java.lang.Class.getDeclaredConstructors0(Native Method)rn java.lang.Class.privateGetDeclaredConstructors(Unknown Source)rn java.lang.Class.getConstructor0(Unknown Source)rn java.lang.Class.newInstance0(Unknown Source)rn java.lang.Class.newInstance(Unknown Source)rn org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)rn org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:866)rn org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:716)rn org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1498)rn java.lang.Thread.run(Unknown Source)rnrnrnroot cause rnrnjava.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactoryrn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn java.lang.ClassLoader.loadClassInternal(Unknown Source)rn java.lang.Class.getDeclaredConstructors0(Native Method)rn java.lang.Class.privateGetDeclaredConstructors(Unknown Source)rn java.lang.Class.getConstructor0(Unknown Source)rn java.lang.Class.newInstance0(Unknown Source)rn java.lang.Class.newInstance(Unknown Source)rn org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:212)rn org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:866)rn org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:716)rn org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1498)rn java.lang.Thread.run(Unknown Source)rnrn 论坛

JSP页面报500错误 java.lang.NullPointerException

06-13

服务器其他页面都正常,就这个报这个错误,是哪里出现了问题rnrnError 500--Internal Server Error rnjava.lang.NullPointerExceptionrn at jsp_servlet._callout_telmarket.__report_wcqk_query_list._jspService(__report_wcqk_query_list.java:483)rn at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)rn at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)rn at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)rn at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:391)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)rn at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn at com.kingdom.kdf.CharsetFilter.doFilter(CharsetFilter.java:91)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3368)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(Unknown Source)rn at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2117)rn at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2023)rn at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)rn at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)rn at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)rn rn 论坛

winform webhttprequest报500错误

01-15

前几天给一个客户换了serverrnrn随后就出现了如下报错问题rnrn远程服务器返回错误: (500) 内部服务器错误。rnrn这是部分代码rnrn[code=csharp]rntryrn rn /*** REQUEST TO HQ ***/rnrn // Create a request using a URL that can receive a post.rn WebRequest request = WebRequest.Create("地址");rn // Set the Method property of the request to POST.rn request.Method = "POST";rnrn // Create POST data and convert it to a byte array.rn string postData = "table=InventoryUpdate&xml=" + ss + "&storeId=5";rn byte[] byteArray = Encoding.UTF8.GetBytes(postData);rnrn // Set the ContentType property of the WebRequest.rn request.ContentType = "application/x-www-form-urlencoded";rnrn // Set the ContentLength property of the WebRequest.rn request.ContentLength = byteArray.Length;rnrn // Get the request stream.rn Stream dataStream = request.GetRequestStream();rnrn // Write the data to the request stream.rn dataStream.Write(byteArray, 0, byteArray.Length);rnrn // Close the Stream object.rn dataStream.Close();rnrn /*** RESPONSE FROM HQ ***/rnrn // Get the response.rn WebResponse response = request.GetResponse();rnrn // Display the status.rnrn Console.WriteLine(((HttpWebResponse)response).StatusDescription);rnrn // Get the stream containing content returned by the server.rn dataStream = response.GetResponseStream();rnrn // Open the stream using a StreamReader for easy access.rn StreamReader reader = new StreamReader(dataStream);rnrn // Read the content.rn responseFromServer = reader.ReadToEnd();rnrn // Clean up the streams.rn reader.Close();rn dataStream.Close();rn response.Close();rn rnrn catch (WebException ex)rn rn ex.ToString();rn rn return responseFromServer;rn[/code]rnrn将客户地址转到我们的测试服务器上又可以用了,估计是服务器配置问题。rnrn求大牛们指正 论坛

neutron agent-list报500错误

07-12

请各位大神帮忙看看,谢谢!rnrn[root@node1 ~]# neutron agent-list --debugrnDEBUG: keystoneclient.session REQ: curl -g -i -X GET http://192.168.16.27:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"rnDEBUG: keystoneclient.session RESP: [200] Date: Tue, 11 Jul 2017 09:45:01 GMT Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 Vary: X-Auth-Token x-openstack-request-id: req-7cbd6791-6a9e-4ac9-84dd-dbabb72fbd36 Content-Length: 253 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json rnRESP BODY: "version": "status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": ["base": "application/json", "type": "application/vnd.openstack.identity-v3+json"], "id": "v3.4", "links": ["href": "http://192.168.16.27:35357/v3/", "rel": "self"]rnrnDEBUG: stevedore.extension found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')rnDEBUG: stevedore.extension found extension EntryPoint.parse('json = cliff.formatters.json_format:JSONFormatter')rnDEBUG: stevedore.extension found extension EntryPoint.parse('csv = cliff.formatters.commaseparated:CSVLister')rnDEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')rnDEBUG: stevedore.extension found extension EntryPoint.parse('yaml = cliff.formatters.yaml_format:YAMLFormatter')rnDEBUG: stevedore.extension found extension EntryPoint.parse('yaml = clifftablib.formatters:YamlFormatter')rnDEBUG: stevedore.extension found extension EntryPoint.parse('json = clifftablib.formatters:JsonFormatter')rnDEBUG: stevedore.extension found extension EntryPoint.parse('html = clifftablib.formatters:HtmlFormatter')rnDEBUG: neutronclient.neutron.v2_0.agent.ListAgent get_data(Namespace(columns=[], fields=[], formatter='table', max_width=0, noindent=False, quote_mode='nonnumeric', request_format='json', show_details=False, sort_dir=[], sort_key=[]))rnDEBUG: keystoneclient.auth.identity.v3.base Making authentication request to http://192.168.16.27:35357/v3/auth/tokensrnDEBUG: keystoneclient.session REQ: curl -g -i -X GET http://192.168.16.27:9696/v2.0/agents.json -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: SHA11b7a18b97259331bbe4cf62761be34eda0580639"rnDEBUG: keystoneclient.session RESP: [500] Content-Length: 114 Content-Type: text/plain; charset=UTF-8 X-Openstack-Request-Id: req-cb357b2e-2dcb-45e0-b89e-b77e22536156 Date: Tue, 11 Jul 2017 09:45:02 GMT Connection: keep-alive rnRESP BODY: 500 Internal Server ErrorrnrnThe server has either erred or is incapable of performing the requested operation.rnrnrnrnDEBUG: neutronclient.v2_0.client Error message: 500 Internal Server ErrorrnrnThe server has either erred or is incapable of performing the requested operation.rnrnrnERROR: neutronclient.shell 500 Internal Server ErrorrnrnThe server has either erred or is incapable of performing the requested operation.rnrnrnTraceback (most recent call last):rn File "/usr/lib/python2.7/site-packages/neutronclient/shell.py", line 814, in run_subcommandrn return run_command(cmd, cmd_parser, sub_argv)rn File "/usr/lib/python2.7/site-packages/neutronclient/shell.py", line 110, in run_commandrn return cmd.run(known_args)rn File "/usr/lib/python2.7/site-packages/neutronclient/common/command.py", line 29, in runrn return super(OpenStackCommand, self).run(parsed_args)rn File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in runrn column_names, data = self.take_action(parsed_args)rn File "/usr/lib/python2.7/site-packages/neutronclient/common/command.py", line 35, in take_actionrn return self.get_data(parsed_args)rn File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/__init__.py", line 716, in get_datarn data = self.retrieve_list(parsed_args)rn File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/__init__.py", line 679, in retrieve_listrn data = self.call_server(neutron_client, search_opts, parsed_args)rn File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/__init__.py", line 651, in call_serverrn data = obj_lister(**search_opts)rn File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 102, in with_paramsrn ret = self.function(instance, *args, **kwargs)rn File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1217, in list_agentsrn return self.get(self.agents_path, params=_params)rn File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 293, in getrn headers=headers, params=params)rn File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 270, in retry_requestrn headers=headers, params=params)rn File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 211, in do_requestrn self._handle_fault_response(status_code, replybody)rn File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 185, in _handle_fault_responsern exception_handler_v20(status_code, des_error_body)rn File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 83, in exception_handler_v20rn message=message)rnNeutronClientException: 500 Internal Server ErrorrnrnThe server has either erred or is incapable of performing the requested operation. 论坛

没有更多推荐了,返回首页