运行报错,大佬们帮忙看看什么原因java.util.concurrent.ExecutionException

"C:\Program Files\Java\jdk1.8.0_201\bin\java" "-Dmaven.multiModuleProjectDirectory=C:\Users\Administrator\Desktop\travel - 副本" -Dfile.encoding=gb2312 "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\plugins\maven\lib\maven3\bin\m2.conf" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\lib\idea_rt.jar=51249:C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\bin" -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2017.2.6 tomcat7:run
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for cn.itcast:travel:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 131, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building travel 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.1:run (default-cli) > process-classes @ travel >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ travel ---
[WARNING] Using platform encoding (gb2312 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ travel ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 40 source files to C:\Users\Administrator\Desktop\travel - 副本\target\classes
[WARNING] /C:/Users/Administrator/Desktop/travel - 副本/src/main/java/cn/itcast/travel/dao/impl/FindDaoImpl.java: 某些输入文件使用了未经检查或不安全的操作。
[WARNING] /C:/Users/Administrator/Desktop/travel - 副本/src/main/java/cn/itcast/travel/dao/impl/FindDaoImpl.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.1:run (default-cli) < process-classes @ travel <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.1:run (default-cli) @ travel ---
[INFO] Running war on http://localhost:80/travel
[INFO] Using existing Tomcat server configuration at C:\Users\Administrator\Desktop\travel - 副本\target\tomcat
[INFO] create webapp with contextPath: /travel
七月 21, 2019 5:00:20 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-80"]
七月 21, 2019 5:00:20 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Tomcat
七月 21, 2019 5:00:20 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.37
七月 21, 2019 5:00:21 下午 org.apache.catalina.core.ContainerBase startInternal
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/travel]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/travel]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 6 more
Caused by: java.lang.IllegalArgumentException: Invalid #write/* in servlet mapping
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3223)
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3198)
at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1366)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1353)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more

七月 21, 2019 5:00:21 下午 org.apache.catalina.core.ContainerBase startInternal
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:335)
at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.startContainer(AbstractRunMojo.java:1091)
at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.execute(AbstractRunMojo.java:512)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.989 s
[INFO] Finished at: 2019-07-21T17:00:21+08:00
[INFO] Final Memory: 32M/279M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.1:run (default-cli) on project travel: Could not start Tomcat: Failed to start component [StandardServer[-1]]: Failed to start component [StandardService[Tomcat]]: Failed to start component [StandardEngine[Tomcat]]: A child container failed during start -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Process finished with exit code 1

3个回答

Caused by: java.lang.IllegalArgumentException: Invalid #write/* in servlet mapping
检查你的servlet mapping

1.web.xml 中对于 url-pattern 部分的配置错误
2.web.xml 中 servlet 和 servlet-mapping 中的 servlet-name 没有对应起来

注意看下日志文件里面的报错信息,再去百度这个错误。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
大佬们帮忙看看。
/* 登录系统; 可注册密码。可修改密码;*/rnrn#includern#include rn#include rn#includern void dengluxitong();rnint main()rnrn dengluxitong(10);rn rn return 0;rn rn rn rn void dengluxitong(int n) rn rn rn while(1) rn rn rn char (*p)[10]=malloc(sizeof(char[10])*n);rn rn FILE *fp=NULL;rn int a=0,i=0;rn do rn a=0,i=0;rn printf("1.登录\n2.注册\n3.修改密码\n");rn scanf("%d",&a);rn fflush(stdin);rn rn if(a<1||a>3)rn printf("\n无效的序号!"); Sleep(1000); rn rn system("cls");rn rn while(a<1||a>3);rn rn rn switch(a)rn rn case 3: while(1) rn rn printf("账号:");rn scanf("%s",p[0]);rn printf("原密码:");rn scanf("%s",p[1]);rn printf("新密码:");rn scanf("%s",p[2]);rn rn fp=NULL;rn fp=fopen("Sl.txt","r+");rn rn if(fp==NULL)rn printf("文件打开失败!"); return ;rn rn for(i=4;i=n) rn printf("此账号不存在!"); Sleep(1000); system("cls"); continue; //因达到循环次数上限导致循环结束的 表明并没有此账号 (如果有此账号 将会break 直接结束循环 ) rnrn rn rn if(strcmp(p[1],p[i+1])==0) //账号后面就是该账号的密码 ;判断密码如果无误 就对密码进行更换 rn strcpy(p[i+1],p[2]); system("cls"); break; //用新密码将原密码替换掉 rn elsern printf("原密码错误!"); Sleep(1000); system("cls");rn rn rn rn rn for(i=4;i=n)rn printf("此账号不存在!"); Sleep(1000); system("cls"); free(p); continue;rn rn rn rn if(strcmp(p[1],p[i+1])==0 ) //核对输入密码是否与存入密码相符; rn printf("登录成功!"); Sleep(1000); system("cls"); free(p); return ;rn elsern printf("密码错误!"); Sleep(1000); system("cls"); rn rn fclose(fp); rn rn rn rn rn rn rn rn rn rn free(p);rn rn rn rn rnrn[img=https://img-bbs.csdn.net/upload/201801/27/1517015534_474100.png][/img] 注册账号发现文件写入那么多(如图) 就写不进去了。 再写入的时候没有提示,就是账号信息并没有在文件中。 能写入多少似乎和我的数组大小有关。rnrn rn但是当我使用a 再次打开一次文件后再读写就没问题了rn[img=https://img-bbs.csdn.net/upload/201801/27/1517016097_821747.png][/img]rn
大佬们 来看看
[img=https://img-bbs.csdn.net/upload/201711/24/1511518108_452158.png][/img][img=https://img-bbs.csdn.net/upload/201711/24/1511518115_189166.png][/img]rn我想要用[Data_MoJiWeather]里的location查[Data_Area_Info]里的areaCode的数量rnrn实际上就是 查两个无关联的表里字段a是否包含个字段b rn并获得 字段b的id和符合条件的字段a的数量
大佬们,求帮忙
[img=https://img-bbs.csdn.net/upload/201808/30/1535617908_474864.jpg][/img] 这个情况怎么解决啊,求大神们指导,
大佬们求帮忙
#includern#includern#includernusing namespace std;rntypedef structrn float data;rn int index;rnElement;rnclass Polynomialrn public:rn void create();rn void print();rn void add(Polynomial &a,Polynomial &b); rn //private:rn vectorPolynomial_vector;rn;rnvoid Polynomial::create()rn int m,i;rn Element p;rn cout<<"输出一元多项式的项数:";rn cin>>m;rn for(i=0;i>p.data>>p.index;rn Polynomial_vector.push_back(p);rn rnrnvoid Polynomial::print()rn vector::iterator iter;rn for(iter=Polynomial_vector.begin();iter!=Polynomial_vector.end();iter++)rn if((*iter).data!=0)rn if((*iter).index==0)rn cout<<(*iter).data<::iterator iter1=a.Polynomial_vector.begin();rn vector::iterator iter2=Polynomial_vector.begin(); rn vector::iterator iter3;rn Element t;rn int temp;rn nomial_vector.end()))rn temp=(*iter1).index;rn iter3=find(Polynomial_vector.begin(),Polynomial_vector.end(),temp);rn if(iter3!=Polynomial_vector.end())rn if((*iter1).data+(*iter2).data!=0)rn t.index=(*iter1).index;rn t.data=(*iter1).data+(*iter2).data;rn b.Polynomial_vector.push_back(t) ;rn iter1++;rn iter2++;rn rn elsern iter1++;rn iter2++;rn rn rn elsern b.Polynomial_vector.push_back((*iter1));rn iter1++;rn rn rn if(iter1!=a.Polynomial_vector.end())rn b.Polynomial_vector.push_back(*iter1++);rn rn if(iter2!=Polynomial_vector.end())rn b.Polynomial_vector.push_back(*iter2++);rn rn rnrnrnbool com(Element e1,Element e2)rn return e1.index
各位大佬帮忙看看
[img=https://img-bbs.csdn.net/upload/201804/11/1523447552_779822.jpg][/img] 这是什么意思 而且不定时的会弹出来 只要app在后台运行就会弹出 有时候看新闻 打游戏都会弹出 求大佬帮忙看看
求大佬帮忙看看
错误信息:rnClientAbortException: java.net.SocketException: Software caused connection abort: socket write errorrn at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358)rn at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)rn at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)rn at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)rn at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370)rn at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)rn at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)rn at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:282)rn at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)rn at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:135)rn at java.io.OutputStreamWriter.write(OutputStreamWriter.java:220)rn at java.io.Writer.write(Writer.java:157)rn at org.springframework.util.StreamUtils.copy(StreamUtils.java:118)rn at org.springframework.http.converter.StringHttpMessageConverter.writeInternal(StringHttpMessageConverter.java:106)rn at org.springframework.http.converter.StringHttpMessageConverter.writeInternal(StringHttpMessageConverter.java:41)rn at org.springframework.http.converter.AbstractHttpMessageConverter.write(AbstractHttpMessageConverter.java:227)rn at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:247)rn at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.handleReturnValue(RequestResponseBodyMethodProcessor.java:174)rn at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:81)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:113)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)rn at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: java.net.SocketException: Software caused connection abort: socket write errorrn at java.net.SocketOutputStream.socketWrite0(Native Method)rn at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)rn at java.net.SocketOutputStream.write(SocketOutputStream.java:155)rn at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:764)rn at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:118)rn at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:570)rn at org.apache.coyote.Response.doWrite(Response.java:560)rn at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)rn ... 45 morern十一月 16, 2017 4:29:10 下午 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet MVC DispatcherServlet threw exceptionrnjava.lang.NullPointerExceptionrn at com.zhwy.exception.MyExceptionHandler.resolveException(MyExceptionHandler.java:54)rn at org.springframework.web.servlet.DispatcherServlet.processHandlerException(DispatcherServlet.java:1222)rn at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1034)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:984)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)rn at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:745)rn
帮忙看看什么原因
HTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperExceptionrn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn org.apache.jsp.administrators.admin_005flogin_jsp._jspService(admin_005flogin_jsp.java:104)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.5.20
帮忙看看这是什么原因???
开机启动 Windows 98 时,提示: rndisk I/O Error;rnReplace disk and press ENTERrn
帮忙看看,这是什么原因
试图运行项目时出错:无法在Web服务器上启动调试。您不具备调试此应用程序的权限。此项目的URL位于internet区域。
帮忙看看这是什么原因?
[code=SQL]ALTER DATABASE BENESSE COLLATE Japanese_CI_AS[/code]在查询分析器中执行成功,可一关闭查询分析器数据库的排序规则又变回原来的了,怎么解决?
帮忙看看事什么原因
我的这段代码不知道事那里错了,运行事报错,行 18: objConn.Open() '打开数据链路rn无法向注册表写入项,希望各位帮忙解决一下,源代码如下rn<%@ Import Namespace="System.Data.OLEDB" %>rn<%@ Import Namespace="System.Data" %>rn<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm6.aspx.vb" Inherits="WebApplication1.WebForm6"%>rnrn <%rn '设置连接串...rn Dim strConnString as Stringrn strConnString = "Provider=MSDAOEA;Data Source=hqdsxt; User Id=jie;Password=jie;"rnrn '创建对象ADOConnectionrn Dim objConn as OLEDBConnectionrn objConn = New OLEDBConnectionrnrn '设置ADOCOnnection对象的连接串rn 'objConn = New OleDbConnection(strConnString)rn objConn.ConnectionString = strConnStringrnrn objConn.Open() '打开数据链路rnrn '创建SQL字符串rn Dim strSQL as String = "SELECT * FROM personnel"rnrn '创建对象ADODatasetCommand 和Dataset rn Dim objDSCommand as OleDbDataAdapterrn Dim objDataset as Dataset = New Datasetrn objDSCommand = New OleDbDataAdapter(strSQL, objConn)rnrn '填充数据到Datasetrn '并将数据集合命名为 "Author Information"rn 'objDSCommand.Fill(objDataset, "Author Information")rnrn objConn.Close() '关闭数据链路rn objConn = Nothing '清除对象rnrnrn Authors.DataSource = _rn objDataset.Tables("Author Information").DefaultViewrn Authors.DataBind()rnrn%>rn rn rn rnrn
帮忙看看这是什么原因
select ' 'rnrnsql查询出来为什么是 '?'
帮忙看看,这是什么原因?
import java.lang.Math;rnpublic class Test2rn public static void main(String[] args)rn //test bytern byte x=23,y=0;rn y=(byte)(x*3);rn y*=3;//默认强制转换rn System.out.println("y=:"+y);rn //test doublern double z = 1234.5678;rn long zs;rn short xs;rn zs = (long)(z);rn System.out.println("zs=:"+zs);rn xs = (short)((z-zs)*Math.pow(10,4));rn System.out.println("xs=:"+xs);rn //test math function,sun caliber,earth caliber,volume,dimentionrn long sunc = (long)(865E3);rn long earthc = 7600;rn long volume(long x)rn return float(4/3*Math.PI*Math.pow(x,3));rn rn float dimention(long x)rn return float(Math.PI*Math.sqrt(x));rn rn System.out.println("地球面积"+dimention(earthc)+"体积"+volume(earthc));rn System.out.println("太阳面积"+dimention(sunc)+"体积"+volume(sunc));rn rnrn错误提示:java 20:long volume(long x) 期望;rn请帮忙看看,多谢了!
读取数据库,运行报错,什么原因??
java.lang.NullPointerExceptionrn at org.apache.jsp.alCdetail$jsp._jspService(alCdetail$jsp.java:736)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)rn at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)rn
大神们看看这是什么原因
[code=text]#include rn#include rn#include rn#include rnint MERGE_SORT(int* pt,int p,int r);rnvoid MERGE(int* ptr,int p,int q,int r);rnvoid main()rn rn int i=0;rn int a[]=3,1,4,6,2,9,8,6;rnrn MERGE_SORT(a,0,7);rn /*输出数组*/rn while(i<=7)rn printf("%d",a[i++]);rnrnint MERGE_SORT(int* pt,int p,int r)rnrn int q=floor((p+r)/2);rn if(p=r) return 0;rn if(pf:\visual studio\6.1\6.1\1.c(19): warning C4244: “初始化”: 从“double”转换到“int”,可能丢失数据rn1>f:\visual studio\6.1\6.1\1.c(41): error C2143: 语法错误 : 缺少“;”(在“类型”的前面)rn1>f:\visual studio\6.1\6.1\1.c(42): error C2143: 语法错误 : 缺少“;”(在“类型”的前面)rn1>f:\visual studio\6.1\6.1\1.c(43): error C2143: 语法错误 : 缺少“;”(在“类型”的前面)rn1>f:\visual studio\6.1\6.1\1.c(44): error C2065: “k”: 未声明的标识符rn1>f:\visual studio\6.1\6.1\1.c(44): error C2065: “k”: 未声明的标识符rn1>f:\visual studio\6.1\6.1\1.c(44): error C2065: “k”: 未声明的标识符rn1>f:\visual studio\6.1\6.1\1.c(47): error C2065: “k”: 未声明的标识符rn1>f:\visual studio\6.1\6.1\1.c(48): error C2065: “k”: 未声明的标识符rn1>rn1>生成失败。
新手求大佬帮忙看看
刚学C语言,实在没法理解。昨天自己憋了一下午,也没看出什么地方有问题。rn[code=c]#pragma warning(disable:4996)rn#includernint main()rnrn char str1[30], str2[30];rn printf("please enter string:");rn gets(str1);rn printf("which character that begin to copy? ");rn int m;rn scanf("%d", &m);rn void str_c(char x[], char y[], int n);rn str_c(str1, str2, m);rn printf("%s\n", str2);rn return 0;rnrnvoid str_c(char x[], char y[], int n)rnrn int i;rn for (i = n; i != '\0'; i++)rn rn y[i - n] = x[i];rn y[i - n] = '\0';rnrn[/code]rnrnrn后面写的str_c 函数目的是想把字符串x中第n个字符后面的复制到字符串y中去。真的无法理解为什么这么写会运行出错?rn有没有前辈解释一下哪错了?谢谢
求大佬来帮忙看看
eclipse一直报An internal error occurred during: "Computing Git status for repository hp222".Trailing char < > at index 82: C:\Users\hp222\AppData\Roaming\duowan\yy\mainframe\theme\float\star-V1-V6-apng.png
大佬们
子类对象能直接向其父类赋值,父类对象不能向其子类赋值。如何理解这句话呀[face]monkey:2.gif[/face]
c# 大佬们进来看看,帮忙解决一下问题
static double Average(double[] num)rn rn double average = 0, sum = 0;rn for (int i = 0; i < 10; i++)rn rn sum = sum + num[i];rn rn average = sum / 10;rn return average;rn rn static int Min(double [] num)rn rn int b = 0;rn for (int i= 0;i < 10;i++)rn rn if (num[i] > average)rn rn b =b+1;rn rn rn return b ;rn rn static void Main(string[] args)rn rn Console.WriteLine("输入10个人的成绩,求其平均值和高于平均数的数的个数");rn double[] num = new double[10];rn for (int i = 0; i < 10; i++)rn rn Console.Write("请输入第0个成绩:", i + 1);rn num[i] = double.Parse(Console.ReadLine());rn rn double average = Average(num);rn Console.WriteLine("输入10个成绩中平均值为:0", average);rn int b = Min(num);rn Console.WriteLine("输入10个成绩中高于平均数的个数为:0", b);rn Console.ReadKey();rn rnrnrnrn高于平均数的个数输出后是错误的,帮忙看看啊,大佬们
请大佬们帮忙看看,我应该怎么改?
我想做的是输入客户的代码,然后在表格里显示搜索出来的客户。rnrn但是现在输入第一次输入字母的时候会卡两秒左右,别的都没有问题。是不是要打开软件的时候就先连接数据库?不懂,请大佬们帮忙看看,谢谢。下面是代码:rnrnprivate void textBox3_TextChanged(object sender, EventArgs e)//想在textBox3的时候显示查询。rn rn rn string SQL = "select dm,mc from khzl where dm like'"+"%" + txtKHname.Text +"%"+ "'";rn LinkData db = new LinkData();rn this.dataGridView1.DataSource = db.getPsize(SQL).Tables["psize"];rn db.closeConn();rn rn rnrnpublic DataSet getPsize(string sql)rn rnrn MySqlDataAdapter myadp = new MySqlDataAdapter(sql, conn); rn DataSet ds = new DataSet();rn myadp.Fill(ds, "psize");rn conn.Close(); rn return ds;rn
大佬们帮忙看看这个二叉搜索树哪错了
先创立一个符合二叉搜索树的树,再进行查找key,找到便使指针p指向找到的位置,找不到便返回最后的位置,不知道哪错了;rnrn```rn#includern#includernrntypedef char elemtype;rnrnenum FALSE,TRUE;rnrntypedef struct treernrn elemtype data;rn struct tree *lchild;rn struct tree *rchild;rnBiTNode,*BiTree;rnrnvoid CreatBiTree(BiTree* fm)rnrn fm=(BiTree*)malloc(sizeof(BiTNode));rn scanf("%c",&(*fm)->data);rn //getchar();rn if((*fm)->data!=' ')//以空格表示没有子节点rn rn CreatBiTree(&(*fm)->lchild);rn CreatBiTree(&(*fm)->rchild);rn rnrnrnint SearchBiTree(BiTree Node,int key,BiTNode *f,BiTNode *p)rnrn if(!Node)rn rn *p=*f;rn return FALSE;rn rn rn if(key==Node->data)rn rn *p=*Node;rn return TRUE;rn rn rn if(keydata)rn rn SearchBiTree(Node->lchild,key,Node,p);rn rn rn if(key>Node->data)rn rn SearchBiTree(Node->rchild,key,Node,p);rn rnrnrnint main()rnrn printf("以前序遍历创建二叉树并使其符合二叉搜索树的特征\n"); rn BiTree root;rn CreatBiTree(&root);rn elemtype key;rn printf("输入需要搜索的值\n");rn scanf("%c",&key);rn BiTree f,p;rn f=(BiTree)malloc(sizeof(BiTNode));rn p=(BiTree)malloc(sizeof(BiTNode));rn f=NULL;rn SearchBiTree(root,key,f,p);rn rn return 0;rnrn```
java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationExceptio
问题:rnInformation:Gradle tasks [:app:clean, :app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources, :app:assembleDebug]rnError:trouble processing "javax/xml/XMLConstants.class":rnError:Ill-advised or mistaken usage of a core class (java.* or javax.*)rnError:when not building a core library.rnError:This is often due to inadvertently including a core library filernError:in your application's project, when using an IDE (such asrnError:Eclipse). If you are sure you're not intentionally defining arnError:core class, then this is the most likely explanation of what'srnError:going on.rnError:However, you might actually be trying to define a class in a corernError:namespace, the source of which you may have taken, for example,rnError:from a non-Android virtual machine project. This will mostrnError:assuredly not work. At a minimum, it jeopardizes thernError:compatibility of your app with future versions of the platform.rnError:It is also often of questionable legality.rnError:If you really intend to build a core library -- which is onlyrnError:appropriate as part of creating a full virtual machinernError:distribution, as opposed to compiling an application -- then usernError:the "--core-library" option to suppress this error message.rnError:If you go ahead and use "--core-library" but are in factrnError:building an application, then be forewarned that your applicationrnError:will still fail to build or run, at some point. Please bernError:prepared for angry customers who find, for example, that yourrnError:application ceases to function once they upgrade their operatingrnError:system. You will be to blame for this problem.rnError:If you are legitimately using some code that happens to be in arnError:core package, then the easiest safe alternative you have is tornError:repackage that code. That is, move the classes in question intornError:your own package namespace. This means that they will never be inrnError:conflict with core system classes. JarJar is a tool that may helprnError:you in this endeavor. If you find that you cannot do this, thenrnError:that is an indication that the path you are on will ultimatelyrnError:lead to pain, suffering, grief, and lamentation.rnError:1 error; abortingrnError:Execution failed for task ':app:transformClassesWithDexForDebug'.rn> com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationExceptionrnInformation:BUILD FAILEDrnInformation:Total time: 41.772 secsrnInformation:34 errorsrnInformation:0 warningsrnInformation:See complete output in consolernrnrn____________________________________________________________rnapply plugin: 'com.android.application'rnrnandroid rn compileSdkVersion 25rn buildToolsVersion "25.0.0"rn defaultConfig rn applicationId "com.example.lin_ling.xmlapplication"rn minSdkVersion 17rn targetSdkVersion 25rn multiDexEnabled truern versionCode 1rn versionName "1.0"rn testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"rn rn buildTypes rn release rn minifyEnabled falsern proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'rn rn rn dexOptions rn javaMaxHeapSize "8g"rn rn packagingOptions rn exclude 'META-INF/NOTICE'rn exclude 'META-INF/LICENSE'rn rnrnrnrndependencies rn compile fileTree(include: ['*.jar'], dir: 'libs')rn androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', rn exclude group: 'com.android.support', module: 'support-annotations'rnrn )rn compile 'com.android.support:appcompat-v7:25.0.0'rn testCompile 'junit:junit:4.12'rn compile 'org.apache.poi:poi-ooxml:3.16-beta1'rn compile 'org.apache.poi:poi-ooxml-schemas:3.16-beta1'rnrnrnrn请问谁能帮我解答一下吗,我该如何做?
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException:
2013-3-24 22:09:02 org.apache.catalina.core.AprLifecycleListener initrn严重: An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.24rn2013-3-24 22:09:02 org.apache.catalina.core.AprLifecycleListener initrn严重: An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.24rn2013-3-24 22:09:02 org.apache.catalina.core.AprLifecycleListener initrn严重: An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.24rn2013-3-24 22:09:02 org.apache.catalina.core.AprLifecycleListener initrn严重: An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.24rn2013-3-24 22:09:02 org.apache.tomcat.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:ServerForXML' did not find a matching property.rn2013-3-24 22:09:02 org.apache.catalina.core.AprLifecycleListener initrn严重: An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.24rn2013-3-24 22:09:02 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-bio-8080"]rn2013-3-24 22:09:02 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-bio-8009"]rn2013-3-24 22:09:02 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 953 msrn2013-3-24 22:09:02 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn2013-3-24 22:09:02 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/7.0.37rn2013-3-24 22:09:03 org.apache.catalina.core.ContainerBase startInternalrn严重: A child container failed during startrnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ServerForXML]]rn at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)rn at java.util.concurrent.FutureTask.get(Unknown Source)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ServerForXML]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn ... 7 morernCaused by: java.lang.IllegalArgumentException: The servlets named [ServletForXML] and [com.yujiaqiang.server.xml.ServletForXML] are both mapped to the url-pattern [/ServletForXML] which is not permittedrn at org.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:335)rn at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2412)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2125)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2080)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2073)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2073)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2073)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2073)rn at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1300)rn at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 7 morern2013-3-24 22:09:03 org.apache.catalina.core.ContainerBase startInternalrn严重: A child container failed during startrnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]rn at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)rn at java.util.concurrent.FutureTask.get(Unknown Source)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:684)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.apache.catalina.LifecycleException: A child container failed during startrn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 7 morern2013-3-24 22:09:03 org.apache.catalina.startup.Catalina startrn严重: Catalina.start: rnorg.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:684)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 7 morernCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 9 morernCaused by: org.apache.catalina.LifecycleException: A child container failed during startrn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 11 morern2013-3-24 22:09:03 org.apache.catalina.startup.Catalina startrn信息: Server startup in 516 msrn
大佬们帮忙看看,关于ArcGISTiledMapServiceLayer不显示地图的问题
js中调用new esri.layers.ArcGISTiledMapServiceLayer(url,),不显示地图,只显示标尺rn代码如下rndojo.declare("esri.layers.ArcGISTiledMapServiceLayer", [esri.layers.TiledMapServiceLayer, esri.layers.ArcGISMapServiceLayer], rn constructor: function(url, _5b1)rn debugger;rn if (_5b1) rn if (_5b1.roundrobin) rn dojo.deprecated(this.declaredClass + " : " + esri.bundle.layers.agstiled.deprecateRoundrobin);rn _5b1.tileServers = _5b1.roundrobin;rn rn var ts = (this.tileServers = _5b1.tileServers);rn if (ts) rn if (ts.length === 0) rn ts = null;rn rn else rn for (var i = 0, il = ts.length; i < il; i++) rn ts[i] = esri.urlToObject(ts[i]).path;rn rn rn rn rn this._params = dojo.mixin(, this._url.query);rn this.tsi = 0;rn debugger;rn this._initLayer = dojo.hitch(this, this._initLayer);rn this._load = dojo.hitch(this, this._load);rn this._load();rn ,rn _TILE_FORMATS: rn PNG: "png",rn PNG8: "png",rn PNG24: "png",rn PNG32: "png",rn JPG: "jpg",rn JPEG: "jpg",rn GIF: "gif"rn ,rn _initLayer: function(_5b2, io)rn debugger;rn this.inherited(arguments);rn this.tileInfo = new esri.layers.TileInfo(_5b2.tileInfo);rn this._tileFormat = this._TILE_FORMATS[this.tileInfo.format];rn this.isPNG32 = this.tileInfo.format === "PNG24" || this.tileInfo.format === "PNG32";rn this.loaded = true;rn this.onLoad(this);rn ,rn getTileUrl: function(_5b3, row, col)rn var ts = this.tileServers, iurl = (ts ? ts[this.tsi++ % ts.length] : this._url.path) + "/tile/" + _5b3 + "/" + row + "/" + col + "." + this._tileFormat;rn if (this._url.query) rn iurl += ("?" + dojo.objectToQuery(this._url.query));rn rn return esri._getProxiedUrl(iurl);rn rn );
大佬们看看这道题 带一下注释 谢谢大佬
把一个整数的每个数位都平方后求和,又得到一个整数,我们称这个整数为:位平方和。rnrn对新得到的整数仍然可以继续这一运算过程。rnrn比如,给定整数为4,则一系列的运算结果为:rnrn16,37,58,89,....rnrn本题的要求是,已知一个整数x,求第n步的运算结果。rnrn数据格式要求:rnrn输入,两个整数x n,中间以空格分开。表示求x的第n步位平方和。其中,x,n都大于0,且小于100000。rn输出,一个整数,表示所求结果。rnrn例如,rn输入:rn4 3rn则程序应该输出:rn58rnrn再例如,rn输入:rn1314 10rn则程序应该输出:rn20rnrn资源约定:rn峰值内存消耗 < 256MrnCPU消耗 < 1000msrnrnrn注意: main函数需要返回0rn注意: 只使用ANSI C/ANSI C++ 标准,不要调用依赖于编译环境或操作系统的特殊函数。rn注意: 所有依赖的函数必须明确地在源文件中 #include , 不能通过工程设置而省略常用头文件。
你各位帮忙看看,什么原因
写了个连接数据库函数,rn如果注释 On Error GoTo ERROR_HAND, ERROR_HAND: ConnectDB = False,则连接数据库是成功的。rn但是增加以上错误处理语句,则不成功,并且提示"驱动程序的SQLSetConnectAttr失败"rn请教是什么原因,如何处理? 谢谢rnrn'连接数据库服务器,成功:返回 true,否则,falsernPublic Function ConnectDB() As BooleanrnOn Error GoTo ERROR_HANDrnrnpConnStr = "data source=test;user id=tuxedo;password=bea;database=hotel;"rnIf pConn.State = adStateClosed Thenrn pConn.Open pConnStrrn If pConn.State = adStateOpen Thenrn ConnectDB = Truern Elsern ConnectDB = Falsern End IfrnElsern ConnectDB = TruernEnd IfrnrnERROR_HAND:rn ConnectDB = FalsernEnd Functionrn
帮忙看看这是什么原因?谢谢!
我在网上下载一个安装程序,当时是个window类型的图标,但我拷贝到另外一台电脑里却变成了dos类型的图标,而且不能运行。两个电脑的操作系统都是win2k p
请帮忙看看这是什么原因????
2014-8-26 2:39:55 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler processrn严重: Error reading request, ignoredrnjava.lang.NoClassDefFoundError: Could not initialize class org.apache.coyote.ajp.AjpProcessorrn at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.createProcessor(AjpProtocol.java:134)rn at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.createProcessor(AjpProtocol.java:88)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:586)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:662)
大家帮忙看看这是什么原因?
RadioButtonList控件选项选不中rnrnrn就是一点击选项时 刷新进入另一个页面 而点后退 发现原来的页面 选项是可选的rnrnrn大家说问题能出在什么地方 是不是某个属性没有设置正确!
是不是精度的问题,大佬们看看
样例输入rn5.1 0.00001rn样例输出rn11 0.3779776rn输入的x为5.1,精度值e为0.00001。当n为9时,利用上述公式计算cos(x)的值为0.3779226,n为10时计算的结果为0.3779809,两结果之差的绝对值约为0.000058,大于要求的精度值0.00001,故需要继续迭代计算。当n为11时计算的结果为0.3779776,与n为10的计算结果之差的绝对值约为0.000003,小于要求的精度值,所以最小迭代次数应为11,最后一次计算的cos(x)的值为0.3779776(小数点后保留7位有效数字)。rn#includern#includern#includernrnusing namespace std;rnint factorial(int );rnrnint main()rnrn int n=0;rn double x;rn double e;rn double s=1;rn double k;rnrn cin>>x>>e;rnrn while(true)rn rn n++;rn s=s+pow(-1,n)*pow(x,2*n)/factorial(2*n);rn if(n>=2 && fabs(s-k)
大佬们看看这个SQL怎么写?
A表数据:rnA1 A2rn1 111rn2 112rn3 113rn4 114rn5 115rnrnB表rnB1 A1 A2 B2 B3 B4rn1 1 111 001 2 3rn2 2 112 001 3 4rn3 3 113 001 4 5rn4 1 111 002 2 3rn5 2 112 002 3 4rn6 3 113 002 4 5rn7 4 114 002 2 3rn8 5 115 002 3 4rnrnrn比如,查询B2=001rn则显示如下rnA1 A2 B3 B4rn1 111 2 3rn2 112 3 4rn3 113 4 5rn4 114 null nullrn5 115 null nullrn查询B2=002rn则显示rnA1 A2 B3 B4rn1 111 2 3rn2 112 3 4rn3 113 4 5rn4 114 2 3rn5 115 3 4rnrn上面的查询结果,查询不到的,显示null,或者为空都可以!rn
大佬们帮我看看这道题
问题描述rn  给定n个十六进制正整数,输出它们对应的八进制数。rnrn输入格式rn  输入的第一行为一个正整数n (1<=n<=10)。rn  接下来n行,每行一个由0~9、大写字母A~F组成的字符串,表示要转换的十六进制正整数,每个十六进制数长度不超过100000。rnrn输出格式rn  输出n行,每行为输入对应的八进制正整数。rnrn  【注意】rn  输入的十六进制数不会有前导0,比如012A。rn  输出的八进制数也不能有前导0。rnrn样例输入rn  2rn  39rn  123ABCrnrn样例输出rn  71rn  4435274rnrn  【提示】rn  先将十六进制数转换成某进制数,再由某进制数转换成八进制。
HTML5的大佬们进来看看教教小弟,
最近遇到点大问题。HTML5可以生成二维码,但问题是,如何让别人扫完二维码可以自己进行编写?各自随意更改并且,可以进行分享出去!我们可爱的大佬们,可以教教小弟?[img=https://img-bbs.csdn.net/upload/201703/20/1489998311_363106.jpg][/img]
大佬们帮我看看 这是啥 感激不尽
F:\jar\dubbox-master>mvn install -Dmaven.test.skip=truern[ERROR] Error executing Maven.rn[ERROR] 1 problem was encountered while building the effective settingsrn[FATAL] Non-parseable settings F:\maven\apache-maven-3.5.4-bin\apache-maven-3.5.4\bin\..\conf\settings.xml: end tag name must be the same as start tag from line 254 (position: TEXT seen ...1.8... @254:54) @ F:\maven\apache-maven-3.5.4-bin\apache-maven-3.5.4\bin\..\conf\settings.xml, line 254, column 54
大佬们帮我看看这些题
编程题rn1:现在有Message和MessageFactory两个接口如下:rnpublic interface Message extends Serializable rn void printMessage();rnrnrnpublic interface MessageFactory rn Message newMessage(String countryCode);rnrnrn请编写一个实现MessageFactory 接口的类,并使用到单例模式。rnrn2:随机生成 Salary name, baseSalary, bonus 的记录,如“wxxx,10,1”,每行一条记录,总共1000万记录,写入文本文件(UFT-8编码),rn 然后读取文件,name的前两个字符相同的,其年薪累加,比如wx,100万,3个人,最后做排序和分组,输出年薪总额最高的10组:rn wx, 200万,10人rn lt, 180万,8人rn ....rnname 4位a-z随机, baseSalary [0,100]随机 bonus[0-5]随机 年薪总额 = baseSalary*13 + bonusrnrn请努力将程序优化到5秒内执行完rnrnrn数据库rnrn数据库设计:rn现在要设计一个简单的在线购物系统,允许消费者自己注册账号,需填写手机号并设置登录密码;已注册和未注册的消费者均可以访问购物网站浏览商品并加入购物车,提交订单时必须是登录用户;登录用户可以查看自己的订单记录,并可查看订单详情(包括购买时间、所购商品清单、总金额等);购物网站的商品有三级分类,例如(家用电器--小家电--电饭煲),平台上架新商品时都必须有一个明确的分类(第三级);登录用户可以维护自己的收货地址(一个消费者可以有多个收货地址),并在提交订单时选择其中一个作为订单的收货地址。rnrn1:请根据上述描述,画出这个系统的ER图,并列出实体的主要属性 。rn2:请根据不同的数据库写出你知道的订单翻页sqlrn
大侠们帮忙看看
#include rnusing namespace std; rnvoid main() rn rn int age; rnwhile(1)rnrn cout <<"输入年龄"; rn cin>>age; rn if(cin.fail()) //判断输入的是不是数字rn cout << "not a number" << endl; rn cout << "请从新输入" << endl;rn rn else break;rnrn 如果输入的不是数字想让程序从新输入,为什么上面的代码不行,rn 请各位大侠帮忙指点指点,如果各位大侠还有什么好方法,小弟那是感激不尽
大侠们帮忙看看。
如何实现[color=#FF0000] B处的[/color] 这样的功能呢[img=http://hi.csdn.net/attachment/201105/11/8569906_1305105746dySR.jpg][/img]rnrnD处又该怎样实现呢? 我的想法是 D处,如何修改了 textbox里的文本,就调用一个插入数据库的方法,然后根据输入的数字,循环添加,然后调用显示。 C处的无非也就是一样,插入然后显示。 这样应该可以实现吗? rn 或则大侠有木有其他的例子,或代码给小弟参考参考。谢谢。
老大们帮忙看看
要用VC写控制台程序,可VC的conio.h和turboC 的conio.h差太远了,很多文本控制函数都没有,比如gotoxy 光标定位函数,windows窗口设置函数等等.rnC++ 里有相应的函数没?如何实现光标的地位呢?
大侠们帮忙看看!
我现在要把“A—Z”26个字母循环写入到一个文件中,然后读该文件进行比较,看读写是否一致,请问这个比较算法应该如何写,最好能给出源码,谢谢大侠们指点迷津!
老大们,帮忙看看
我是Winsock新手!rn我的SOCKS代理服务器是192.168.1.1,rn我现在想通过代理连出去,rn所以我首先与代理建立连接,连接成功后与代理进行协商,rn现在我想与www.163.com连接,所以我在协商代码中rn得地址是163得,可我老是不成功,是不是我的思路有问题,rn还是代码有问题,谢谢!rnclientAddr.sin_family= AF_INET;rnclientAddr.sin_port= htons(1080);rnclientAddr.sin_addr.s_addr = inet_addr("192.168.1.1");rnsocketClient= socket(AF_INET,SOCK_STREAM,0);rnif((socketClient==INVALID_SOCKET)||(iResult==SOCKET_ERROR))rn rn DisplayMessage("socket() ERROR!");rn iResult=WSAGetLastError();rn WSACleanup();rn rn elsern DisplayMessage("Connect success!");rniResult=connect(socketClient,(struct sockaddr *)&clientAddr, sizeof(clientAddr));rnif((iResult==SOCKET_ERROR)rn rn DisplayMessage("socket() ERROR!");rn iResult=WSAGetLastError();rn WSACleanup();rn rn WORD PortNo = 80; rn buffer[0] = 0x05; //协议版本 211.80.40.8rn buffer[1] = 0x01; //选择方法 rn buffer[2] = 0x00; //无需认证 rn buffer[3] = 0x01; //地址类型:IpV4 rn buffer[4] = 0xCA; //211//交大测试地址rn buffer[5] = 0x6C; //80 rn buffer[6] = 0x24; //40 rn buffer[7] = 0xA7; //8 rn buffer[8] = PortNo/256; //0x1080; rn buffer[9] = (BYTE)PortNo%256; //0x00; rn PortNo += 1; rn send(socketClient,(const far char*)buffer,3,0); rn recv(socketClient,(char*)buffer,10,0);rn if(buffer[1] != 0x00) rn MessageBox(NULL,"Need to authenticate!","Info",MB_OK);
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池