CentOS 7 防火墙 出现Failed to start iptables.service: Unit iptables.service failed to load

原文链接:https://www.cnblogs.com/faunjoe88/p/7003815.html

https://www.cnblogs.com/faunjoe88/p/7003815.html

错误信息如下:

[root]# service iptables start
Redirecting to /bin/systemctl start  iptables.service
Failed to start iptables.service: Unit iptables.service failed to load: No such file or directory.
解决方法如下:

一直用CentOS 6 习惯了,一下没适应过来。防火墙配置后执行service iptables save 出现”Failed to restart iptables.service: Unit iptables.service failed to load: No such file or directory.”错误,

在CentOS 7或RHEL 7或Fedora中防火墙由firewalld来管理,当然你可以还原传统的管理方式。或则使用新的命令进行管理。

 停止firewalld 开启iptables ,如果有docker,那还得重启docker,否则docker容器有问题

--停止firewalld
systemctl stop firewalld
systemctl mask firewalld

并且安装iptables-services:
yum install iptables-services

设置开机启动:
systemctl enable iptables

iptables启动、关闭、保存:

systemctl [stop|start|restart] iptables
#or
service iptables [stop|start|restart]


service iptables save
#or
/usr/libexec/iptables/iptables.init save

 

展开阅读全文

MediaRecorder start failed

04-26

使用MediaRecorder录音,正常流程没有问题,如果一个进程录音的时候,另一个进程再录音程序就崩溃了,而且是在start()的时候崩溃的,讨厌java的很多函数没有返回值,如 prepare()、 start()等,我加了异常处理如下:rn[code=Java]rn try rn mRecorder.prepare();//预期准备rn Log.i(TAG, "recorder.prepare()" );rn catch (IllegalStateException e) rn // TODO Auto-generated catch blockrn Log.i(TAG,e.getMessage());rn e.printStackTrace();rn return false;rn catch (IOException e) rn // TODO Auto-generated catch blockrn Log.i(TAG,e.getMessage());rn e.printStackTrace();rn return false;rn rn tryrn mRecorder.start(); //开始刻录 rn catch (IllegalStateException e) rn // TODO Auto-generated catch blockrn Log.i(TAG,e.getMessage());rn e.printStackTrace();rn return false;rn rn[/code]rn我对java不是很熟,不知道这样使用异常有没有问题? 当一个进程再录音时,另一个进程启动时,我想得到mic的状态,类似于getStatuse() 之类的函数,请问大家有没有好的办法? 谢谢!rn出错信息如下:rn04-26 02:23:59.241: E/MediaRecorder(3197): start failed: -1rn04-26 02:23:59.251: D/AndroidRuntime(3197): Shutting down VMrn04-26 02:23:59.251: W/dalvikvm(3197): threadid=1: thread exiting with uncaught exception (group=0x4001d800)rn04-26 02:23:59.462: E/AndroidRuntime(3197): FATAL EXCEPTION: mainrn04-26 02:23:59.462: E/AndroidRuntime(3197): java.lang.RuntimeException: Error receiving broadcast Intent act=android.provider.Telephony.SMS_RECEIVED (has extras) in com.TS.SnsReceiver@44ef9be0rn04-26 02:23:59.462: E/AndroidRuntime(3197): at android.app.ActivityThread$PackageInfo$ReceiverDispatcher$Args.run(ActivityThread.java:905)rn04-26 02:23:59.462: E/AndroidRuntime(3197): at android.os.Handler.handleCallback(Handler.java:587)rn04-26 02:23:59.462: E/AndroidRuntime(3197): at android.os.Handler.dispatchMessage(Handler.java:92)rn04-26 02:23:59.462: E/AndroidRuntime(3197): at android.os.Looper.loop(Looper.java:123)rn04-26 02:23:59.462: E/AndroidRuntime(3197): at android.app.ActivityThread.main(ActivityThread.java:4627)rn04-26 02:23:59.462: E/AndroidRuntime(3197): at java.lang.reflect.Method.invokeNative(Native Method)rn04-26 02:23:59.462: E/AndroidRuntime(3197): at java.lang.reflect.Method.invoke(Method.java:521)rn04-26 02:23:59.462: E/AndroidRuntime(3197): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)rn04-26 02:23:59.462: E/AndroidRuntime(3197): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)rn04-26 02:23:59.462: E/AndroidRuntime(3197): at dalvik.system.NativeStart.main(Native Method)rn04-26 02:23:59.462: E/AndroidRuntime(3197): Caused by: java.lang.RuntimeException: start failed.rn04-26 02:23:59.462: E/AndroidRuntime(3197): at android.media.MediaRecorder.start(Native Method)rn04-26 02:23:59.462: E/AndroidRuntime(3197): at com.TS.RcdMediaCtrl.StartRecord(RcdMediaCtrl.java:70)rn04-26 02:23:59.462: E/AndroidRuntime(3197): at com.TS.SnsReceiver.onReceive(SnsReceiver.java:53)rn04-26 02:23:59.462: E/AndroidRuntime(3197): at android.app.ActivityThread$PackageInfo$ReceiverDispatcher$Args.run(ActivityThread.java:892) 论坛

Failed to start component求解

01-23

做了一个简单的springmvc示例,结果报这个错误!rn严重: ContainerBase.addChild: start: rnorg.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/springmvc]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1100)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1618)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)rn at java.lang.Thread.run(Thread.java:662)rnCaused by: java.lang.NoClassDefFoundError: Lorg/apache/commons/logging/Log;rn at java.lang.Class.getDeclaredFields0(Native Method)rn at java.lang.Class.privateGetDeclaredFields(Class.java:2300)rn at java.lang.Class.getDeclaredFields(Class.java:1745)rn at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:87)rn at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:261)rn at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:140)rn at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:67)rn at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:405)rn at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)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:5173)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 11 morernCaused by: java.lang.ClassNotFoundException: org.apache.commons.logging.Logrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)rn ... 25 morern2015-1-23 9:26:15 org.apache.catalina.startup.HostConfig deployDirectoryrn严重: Error deploying web application directory C:\Users\xiaowang\Workspaces\MyTest\.metadata\.me_tcat7\webapps\springmvcrnjava.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/springmvc]]rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1100)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1618)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)rn at java.lang.Thread.run(Thread.java:662) 论坛

Jboss failed to start

08-07

启动Jboss 出错了,不知道是什么问题,请各位大虾指教一下rnrnFailed to start:rnrnF:\about_java\tools\jboss-3.2.2RC1_tomcat-4.1.24\bin>runrn===============================================================================rn.rn JBoss Bootstrap Environmentrn.rn JBOSS_HOME: F:\about_java\tools\jboss-3.2.2RC1_tomcat-4.1.24\bin\\..rn.rn JAVA: C:\Program Files\Java\jdk1.5.0_10\bin\javarn.rn JAVA_OPTS: -Dprogram.name=run.batrn.rn CLASSPATH: ;C:\Program Files\Java\jdk1.5.0_10\lib\tools.jar;F:\about_java\toolrns\jboss-3.2.2RC1_tomcat-4.1.24\bin\\run.jarrn.rn===============================================================================rn.rn11:18:07,062 INFO [Server] Starting JBoss (MX MicroKernel)...rn11:18:07,062 INFO [Server] Release ID: JBoss [WonderLand] 3.2.2RC1 (build: CVSTrnag=JBoss_3_2_2_RC1 date=200306060938)rn11:18:07,062 INFO [Server] Home Dir: F:\about_java\tools\jboss-3.2.2RC1_tomcat-rn4.1.24rn11:18:07,062 INFO [Server] Home URL: file:/F:/about_java/tools/jboss-3.2.2RC1_trnomcat-4.1.24/rn11:18:07,062 INFO [Server] Library URL: file:/F:/about_java/tools/jboss-3.2.2RCrn1_tomcat-4.1.24/lib/rn11:18:07,062 INFO [Server] Patch URL: nullrn11:18:07,062 INFO [Server] Server Name: defaultrn11:18:07,062 INFO [Server] Server Home Dir: F:\about_java\tools\jboss-3.2.2RC1_rntomcat-4.1.24\server\defaultrn11:18:07,062 INFO [Server] Server Home URL: file:/F:/about_java/tools/jboss-3.2rn.2RC1_tomcat-4.1.24/server/default/rn11:18:07,062 INFO [Server] Server Data Dir: F:\about_java\tools\jboss-3.2.2RC1_rntomcat-4.1.24\server\default\datarn11:18:07,062 INFO [Server] Server Temp Dir: F:\about_java\tools\jboss-3.2.2RC1_rntomcat-4.1.24\server\default\tmprn11:18:07,062 INFO [Server] Server Config URL: file:/F:/about_java/tools/jboss-3rn.2.2RC1_tomcat-4.1.24/server/default/conf/rn11:18:07,062 INFO [Server] Server Library URL: file:/F:/about_java/tools/jboss-rn3.2.2RC1_tomcat-4.1.24/server/default/lib/rn11:18:07,062 INFO [Server] Root Deployemnt Filename: jboss-service.xmlrn11:18:07,062 INFO [Server] Starting General Purpose Architecture (GPA)...rn11:18:07,093 ERROR [Server] Failed to startrnjavax.management.InstanceNotFoundException: JMImplementation:service=LoaderReposrnitory,name=Defaultrn at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaulrntMBeanServerInterceptor.java:1010)rn at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMrnBeanServerInterceptor.java:804)rn at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784rn)rn at org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:rn480)rn at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:316)rn at org.jboss.system.server.ServerImpl.start(ServerImpl.java:272)rn at org.jboss.Main.boot(Main.java:150)rn at org.jboss.Main$1.run(Main.java:388)rn at java.lang.Thread.run(Thread.java:595)rnFailed to boot JBoss:rnjavax.management.InstanceNotFoundException: JMImplementation:service=LoaderReposrnitory,name=Defaultrn at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaulrntMBeanServerInterceptor.java:1010)rn at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMrnBeanServerInterceptor.java:804)rn at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784rn)rn at org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:rn480)rn at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:316)rn at org.jboss.system.server.ServerImpl.start(ServerImpl.java:272)rn at org.jboss.Main.boot(Main.java:150)rn at org.jboss.Main$1.run(Main.java:388)rn at java.lang.Thread.run(Thread.java:595)rn请按任意键继续. . . 论坛

org.apache.catalina.LifecycleException: Failed to start component

06-19

在MyEclipse10 中新建了一个web project ,直接运行,报错如下:rn[code=text]rn严重: ContainerBase.addChild: start: rnorg.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ShowOrder]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: java.lang.NoClassDefFoundError: javax/faces/webapp/FacesServletrn at com.sun.faces.config.FacesInitializer.(FacesInitializer.java:103)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:270)rn at org.apache.catalina.startup.WebappServiceLoader.loadServices(WebappServiceLoader.java:187)rn at org.apache.catalina.startup.WebappServiceLoader.load(WebappServiceLoader.java:152)rn at org.apache.catalina.startup.ContextConfig.processServletContainerInitializers(ContextConfig.java:1543)rn at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1265)rn at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:873)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:371)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 10 morernCaused by: java.lang.ClassNotFoundException: javax.faces.webapp.FacesServletrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)rn ... 23 morern六月 19, 2014 11:53:01 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn严重: Error deploying web application directory E:\developSoftware\apache-tomcat-7.0.53\webapps\ShowOrderrnjava.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ShowOrder]]rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rn六月 19, 2014 11:53:01 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory E:\developSoftware\apache-tomcat-7.0.53\webapps\testrn六月 19, 2014 11:53:01 上午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["http-apr-8080"]rn六月 19, 2014 11:53:01 上午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-apr-8009"]rn六月 19, 2014 11:53:01 上午 org.apache.catalina.startup.Catalina startrn信息: Server startup in 11767 msrn[/code]rn不知道是肿么了。 论坛

A child container failed during start Failed to start component

05-10

错误信息如下:rn[code=java]五月 10, 2016 4:39:19 下午 org.apache.tomcat.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:struts2_0900_bbs' did not find a matching property.rn五月 10, 2016 4:39:19 下午 org.apache.tomcat.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:ssh_003' did not find a matching property.rn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server version: Apache Tomcat/8.0.33rn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server built: Mar 18 2016 20:31:49 UTCrn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server number: 8.0.33.0rn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Name: Windows 7rn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Version: 6.1rn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Architecture: x86rn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Java Home: C:\Users\zhao\AppData\Local\MyEclipse 2015 CI\binary\com.sun.java.jdk7.win32.x86_1.7.0.u45\jrern五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Version: 1.7.0_45-b18rn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Vendor: Oracle Corporationrn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_BASE: E:\java\tomcat\apache-tomcat-8.0.33-windows-x86\apache-tomcat-8.0.33rn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_HOME: E:\java\tomcat\apache-tomcat-8.0.33-windows-x86\apache-tomcat-8.0.33rn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:1783rn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.base=E:\java\tomcat\apache-tomcat-8.0.33-windows-x86\apache-tomcat-8.0.33rn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.home=E:\java\tomcat\apache-tomcat-8.0.33-windows-x86\apache-tomcat-8.0.33rn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dwtp.deploy=E:\java\tomcat\apache-tomcat-8.0.33-windows-x86\apache-tomcat-8.0.33\me-webappsrn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Djava.endorsed.dirs=E:\java\tomcat\apache-tomcat-8.0.33-windows-x86\apache-tomcat-8.0.33\endorsedrn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dfile.encoding=GBKrn五月 10, 2016 4:39:19 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息:[b] The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Users\zhao\AppData\Local\MyEclipse 2015 CI\binary\com.sun.java.jdk7.win32.x86_1.7.0.u45\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Users\zhao\AppData\Local\MyEclipse 2015 CI\binary\com.sun.java.jdk7.win32.x86_1.7.0.u45\jre\bin;C:/Users/zhao/AppData/Local/MyEclipse 2015 CI/binary/com.sun.java.jdk7.win32.x86_1.7.0.u45/jre/bin/client;C:/Users/zhao/AppData/Local/MyEclipse 2015 CI/binary/com.sun.java.jdk7.win32.x86_1.7.0.u45/jre/bin;C:/Users/zhao/AppData/Local/MyEclipse 2015 CI/binary/com.sun.java.jdk7.win32.x86_1.7.0.u45/jre/lib/i386;C:\ProgramData\Oracle\Java\javapath;D:\Android\adt-bundle-windows-x86-20140702\sdk\platform-tools;D:\Android\adt-bundle-windows-x86-20140702\sdk\tools;D:\SDK\Android-sdk-windows\adt-bundle-windows-x86-20130917\sdk\tools;D:\JAVA\jdk1.8.0_45\bin;C:\ProgramData\Oracle\Java\javapath;D:\Android\adt-bundle-windows-x86-20140702\sdk\platform-tools;D:\Android\adt-bundle-windows-x86-20140702\sdk\tools;D:\SDK\Android-sdk-windows\adt-bundle-windows-x86-20130917\sdk\tools;D:\JAVA\jdk1.8.0_45\bin;C:\ProgramData\Oracle\Java\javapath;D:\Android\adt-bundle-windows-x86-20140702\sdk\platform-tools;D:\Android\adt-bundle-windows-x86-20140702\sdk\tools;D:\SDK\Android-sdk-windows\adt-bundle-windows-x86-20130917\sdk\tools;D:\JAVA\jdk1.8.0_45\bin;C:\Windows\System32C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microchip\MPLAB C32 Suite\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin;D:\JAVA\jdk1.8.0_45\lib\dt.jar;D:\JAVA\jdk1.8.0_45\lib\tools.jar;D:\JAVA\jdk1.8.0_45\bin;D:\JAVA\jdk1.8.0_45\jre\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microchip\MPLAB C32 Suite\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin;D:\JAVA\jdk1.8.0_45\lib\dt.jar;D:\JAVA\jdk1.8.0_45\lib\tools.jar;D:\JAVA\jdk1.8.0_45\bin;D:\JAVA\jdk1.8.0_45\jre\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microchip\MPLAB C32 Suite\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin;D:\JAVA\jdk1.8.0_45\lib\dt.jar;D:\JAVA\jdk1.8.0_45\lib\tools.jar;D:\JAVA\jdk1.8.0_45\bin;D:\JAVA\jdk1.8.0_45\jre\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;D:\JAVA\jdk1.8.0_45\bin;D:\JAVA\jdk1.8.0_45\jre\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;.[/b]rn五月 10, 2016 4:39:19 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-nio-8080"]rn五月 10, 2016 4:39:19 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelectorrn信息: Using a shared selector for servlet write/readrn五月 10, 2016 4:39:19 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-nio-8009"]rn五月 10, 2016 4:39:19 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelectorrn信息: Using a shared selector for servlet write/readrn五月 10, 2016 4:39:19 下午 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 752 msrn五月 10, 2016 4:39:19 下午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn五月 10, 2016 4:39:19 下午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/8.0.33rn五月 10, 2016 4:39:19 下午 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[/struts2_0900_bbs]]rn at java.util.concurrent.FutureTask.report(FutureTask.java:122)rn at java.util.concurrent.FutureTask.get(FutureTask.java:188)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:871)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:744)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/struts2_0900_bbs]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)rn ... 6 more 论坛

求助:Failed to load ApplicationContext

07-07

[code=Java]java.lang.IllegalStateException: Failed to load ApplicationContextrn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)rn at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:333)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)rn at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)rn at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)rn at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)rn at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)rn at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:220)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'listenerContainer' defined in class path resource [conf/spring-conf/applicationContextTestNew.xml]: Cannot resolve reference to bean 'messageListener' while setting bean property 'messageListener'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageListener' defined in class path resource [conf/spring-conf/applicationContextTestNew.xml]: Cannot create inner bean 'com.cherry.mq.mes.common.CherryMessageReceiverImpl#966905' of type [com.cherry.mq.mes.common.CherryMessageReceiverImpl] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.cherry.mq.mes.common.CherryMessageReceiverImpl#966905': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binBEMQMES01_Action': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binBEMQMES99_BL': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binBEMQMES99_Service': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.cherry.cm.core.IfServiceImpl] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: @javax.annotation.Resource(shareable=true, mappedName=, description=, name=, type=class java.lang.Object, authenticationType=CONTAINER)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:872)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)rn at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)rn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)rn ... 24 morernCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageListener' defined in class path resource [conf/spring-conf/applicationContextTestNew.xml]: Cannot create inner bean 'com.cherry.mq.mes.common.CherryMessageReceiverImpl#966905' of type [com.cherry.mq.mes.common.CherryMessageReceiverImpl] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.cherry.mq.mes.common.CherryMessageReceiverImpl#966905': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binBEMQMES01_Action': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binBEMQMES99_BL': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binBEMQMES99_Service': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.cherry.cm.core.IfServiceImpl] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: @javax.annotation.Resource(shareable=true, mappedName=, description=, name=, type=class java.lang.Object, authenticationType=CONTAINER)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)rn at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:617)rn at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:144)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:993)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:897)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at rn[/code] 论坛

java.lang.IllegalStateException: Failed to load ApplicationContext

07-24

java.lang.IllegalStateException: Failed to load ApplicationContextrn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)rn at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)rn at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)rn at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:236)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Invocation of init method failed; nested exception is org.springframework.dao.DataAccessResourceFailureException: Failed to populate database; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement at line 1 of resource class path resource [database_schema.sql]: create table INFORMATIONrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:900)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:455)rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)rn at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)rn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)rn ... 24 morernCaused by: org.springframework.dao.DataAccessResourceFailureException: Failed to populate database; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement at line 1 of resource class path resource [database_schema.sql]: create table INFORMATIONrn at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.populateDatabase(EmbeddedDatabaseFactory.java:165)rn at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.initDatabase(EmbeddedDatabaseFactory.java:139)rn at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactoryBean.afterPropertiesSet(EmbeddedDatabaseFactoryBean.java:41)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1479)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)rn ... 37 morernCaused by: org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement at line 1 of resource class path resource [database_schema.sql]: create table INFORMATIONrn at org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.executeSqlScript(ResourceDatabasePopulator.java:183)rn at org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.populate(ResourceDatabasePopulator.java:120)rn at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.populateDatabase(EmbeddedDatabaseFactory.java:153)rn ... 41 morernCaused by: java.sql.SQLException: Unexpected token , requires ( in statement [create table INFORMATION]rn at org.hsqldb.jdbc.Util.sqlException(Unknown Source)rn at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)rn at org.hsqldb.jdbc.jdbcStatement.executeUpdate(Unknown Source)rn at org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.executeSqlScript(ResourceDatabasePopulator.java:169)rn ... 43 morern 论坛

junit测试Failed to load ApplicationContext

08-07

java.lang.IllegalStateException: Failed to load ApplicationContextrn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:157) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:211) [spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:288) [spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.11.jar:na]rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:290) [spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231) [spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) [junit-4.11.jar:na]rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [junit-4.11.jar:na]rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [junit-4.11.jar:na]rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [junit-4.11.jar:na]rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [junit-4.11.jar:na]rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [junit-4.11.jar:na]rn at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71) [spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.junit.runners.ParentRunner.run(ParentRunner.java:309) [junit-4.11.jar:na]rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) [spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) [.cp/:na]rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'charConvertRead' defined in class path resource [META-INF/spring/applicationContextLogic.xml]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class jp.co.jip.rod.dao.dbutils.CharConvertRead]: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.aop.framework.adapter.UnknownAdviceTypeException: Advice object [null] is neither a supported subinterface of [org.aopalliance.aop.Advice] nor an [org.springframework.aop.Advisor]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925) ~[spring-context-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472) ~[spring-context-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:103) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.support.DelegatingSmartContextLoader.loadContext(DelegatingSmartContextLoader.java:228) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:124) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:148) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn ... 24 common frames omittedrnCaused by: org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class jp.co.jip.rod.dao.dbutils.CharConvertRead]: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.aop.framework.adapter.UnknownAdviceTypeException: Advice object [null] is neither a supported subinterface of [org.aopalliance.aop.Advice] nor an [org.springframework.aop.Advisor]rn at org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.java:213) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:112) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.createProxy(AbstractAutoProxyCreator.java:477) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:362) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1461) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn ... 37 common frames omittedrnCaused by: org.springframework.aop.framework.adapter.UnknownAdviceTypeException: Advice object [null] is neither a supported subinterface of [org.aopalliance.aop.Advice] nor an [org.springframework.aop.Advisor]rn at org.springframework.aop.framework.adapter.DefaultAdvisorAdapterRegistry.getInterceptors(DefaultAdvisorAdapterRegistry.java:88) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.aop.framework.DefaultAdvisorChainFactory.getInterceptorsAndDynamicInterceptionAdvice(DefaultAdvisorChainFactory.java:61) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.aop.framework.AdvisedSupport.getInterceptorsAndDynamicInterceptionAdvice(AdvisedSupport.java:482) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.aop.framework.Cglib2AopProxy$ProxyCallbackFilter.accept(Cglib2AopProxy.java:772) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at net.sf.cglib.proxy.Enhancer.emitMethods(Enhancer.java:887) ~[cglib-nodep-2.2.2.jar:na]rn at net.sf.cglib.proxy.Enhancer.generateClass(Enhancer.java:498) ~[cglib-nodep-2.2.2.jar:na]rn at net.sf.cglib.transform.TransformingClassGenerator.generateClass(TransformingClassGenerator.java:33) ~[cglib-nodep-2.2.2.jar:na]rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25) ~[cglib-nodep-2.2.2.jar:na]rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216) ~[cglib-nodep-2.2.2.jar:na]rn at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377) ~[cglib-nodep-2.2.2.jar:na]rn at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285) ~[cglib-nodep-2.2.2.jar:na]rn at org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.java:201) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn ... 44 common frames omittedrn 论坛

头大了 load crpe32.dll failed

08-16

看了下面的没有 不知道怎么搞的 我用的是Crystal.Reports.v9.2.2.667.CHSrn5、load crpe32.dll failedrn下面是cr9net_deployment.pdf说明中的部署Crystal Report 9的步骤:rn打开 Windows 应用程序。 rn在解决方案资源管理器中,右击 Windows 应用程序解决方案,指向“添加”,然后单击“新建项目”。 rn在“添加新项目”对话框中,选择“项目类型”窗格中的“安装和部署项目”,然后选择“模板”窗格中的“安装项目”。单击“确定”按钮。 rn在解决方案资源管理中,右击安装项目,指向“添加”,然后单击“项目输出”。 rn在“添加项目输出组”中,选择“主输出”,然后单击“确定”。 rn将自动添加所有依赖项,如 dotnetfxredist_x86_enu.msm和dotnetcrystalreports.msm。rn需要将dotnetcrystalreports.msm排除在项目之外,在解决方案资源管理器中右击这个模块的右键,选择“排除”。 rn在解决方案资源管理器中,右击安装项目,指向“添加”,然后单击“合并模块”。 rn在“添加模块”对话框中,选择下列要添加到安装项目的合并模块,然后单击“打开”: rnreportengine.msm, crnetruntime.msm, license.msmrnmapping.msm (可选,当在报表中使用了geographic maps时) rnVC_CRT.msm、VC_STL.msm( 如果您部署的 Windows 应用程序使用 ADO.NET 数据集,则还需要包括 VC_CRT 和 VC_STL 合并模块)rn在解决方案资源管理器中,右击 license.msm 文件,然后选择“属性”。 rn在“属性”窗口中,展开 MergeModuleProperties,然后在“许可证密钥”属性框中输入一个有效的许可证密钥。 rn注意 每当部署 Crystal Reports 应用程序时,必须提供许可证密钥。 rn从“生成”菜单中,选择“生成解决方案”以生成应用程序。rnrn-----------------------------rnrn不知道什么原因啊 请教各位了!rn 论坛

Failed to load JIT compiler

04-21

Failed to load JIT compiler rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.ExecutionEngineException: Failed to load JIT compilerrnrn源错误: rnrnrn[没有相关的源行]rn rnrn源文件: c:\windows\microsoft.net\framework\v2.0.50727\Temporary ASP.NET Files\root\a2b0e16d\ab613ba\App_Web_y3ge3n2f.1.cs 行: 0 rnrn堆栈跟踪: rnrnrn[ExecutionEngineException: Failed to load JIT compiler]rn __ASP.FastObjectFactory_app_web_y3ge3n2f.Create_ASP_index_aspx() in c:\windows\microsoft.net\framework\v2.0.50727\Temporary ASP.NET Files\root\a2b0e16d\ab613ba\App_Web_y3ge3n2f.1.cs:0rn System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32rn System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +119rn System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33rn System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40rn System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +160rn System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93rn System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155rnrn rn[img=http://www.haixinxm.com/FailedtoloadJITcompiler.jpg][/img]rnrn我在自己本機的時候沒有問題,然後編譯上傳到虛擬主機就會偶然出現這個問題,但出現的時機不一定。rn各位高手幫幫忙。 论坛

关于出现 Failed to start component ……的问题

06-05

Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Supervision]]rn问题:rnrnTomcat启动时报错,Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContextrn2016-12-13 19:59 by abce, 14550 阅读, 1 评论, 收藏, 编辑rn05-Dec-2016 11:23:44.321 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChirnld: start:rn org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContextrn[]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [] due to a StackOverflornwError. Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies. The class hierarchy beirnng processed was [org.bouncycastle.asn1.ASN1EncodableVector->org.bouncycastle.asn1.DEREncodableVector->org.bouncycastle.asn1.ASN1EncrnodableVector]rn at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2099)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2043)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1989)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1959)rn at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1912)rn at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1154)rn at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:771)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:298)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5076)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)rn ... 10 morern  rn原因:未知rn解决方法:rn[size=18px] [b]修改tomcat配置文件catalina.properties rnrntomcat.util.scan.DefaultJarScanner.jarsToSkip=\ 值后面加",*"[/b][/size]rn 论坛

MediaRecorder(18373): start failed: -38

08-23

我在利用手机摄像头录像并通过localsocket推送rtsp流到电脑。现在有时候会出现这个错误MediaRecorder(18373): start failed: -38,出现后很长一段时间后又突然好了,过一段时就又突然出现这个错误。rn有时候会出现如下错误才会提示start failed: -38,我觉得和这个有关系rnrn```rn 08-23 11:30:00.871: E/ACodec(12103): [OMX.google.h264.encoder] ERROR(0x80001001)rn08-23 11:30:00.871: E/ACodec(12103): signalError(omxError 0x80001001, internalError -2147483648)rn08-23 11:30:00.871: E/MediaCodec(12103): Codec reported err 0x80001001, actionCode 0, while in state 6rn08-23 11:30:00.921: E/ACodec(12103): [OMX.google.h264.encoder] ERROR(0x80001001)rn08-23 11:30:00.921: E/ACodec(12103): signalError(omxError 0x80001001, internalError -2147483648)rn08-23 11:30:00.921: E/MediaCodec(12103): Codec reported err 0x80001001, actionCode 0, while in state 6rn08-23 11:30:01.061: E/ACodec(12103): [OMX.qcom.video.encoder.avc] storeMetaDataInBuffers (output) failed w/ err -1010rn```rnrnrn网上看到是那个service在后台用到它,所以才会报错么,但是我从后台退出程序,再次进入依然保这个错误,我很费解,哪位大神帮我看看,跪求指点。rnrn断点刚到这个方法(还未执行这个方法),摄像头正常工作。rnrn创建MediaRecorder代码如下。rn```rnMediaRecorder mMediaRecorder = null;rn protected void encodeWithMediaRecorder() throws IOException rn Log.d(TAG,"Video encoded using the MediaRecorder API");rnrn // We need a local socket to forward data output by the camera to the packetizerrn createSockets();rnrn // Reopens the camera if neededrn destroyCamera();rn createCamera();rnrn // The camera must be unlocked before the MediaRecorder can use itrn unlockCamera();rnrn if (mMediaRecorder != null)rn rn mMediaRecorder.stop();rn mMediaRecorder.release();rn mMediaRecorder = null;rn rn// try rn rn mMediaRecorder = new MediaRecorder();rn //mCamera.unlock();rn mMediaRecorder.setCamera(mCamera);rn mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);rn mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);rn mMediaRecorder.setVideoEncoder(mVideoEncoder);rn rn mMediaRecorder.setVideoSize(mRequestedQuality.resX,mRequestedQuality.resY);rn mMediaRecorder.setVideoFrameRate(mRequestedQuality.framerate);rn mMediaRecorder.setPreviewDisplay(mSurfaceView.getHolder().getSurface());rn // The bandwidth actually consumed is often above what was requested rn mMediaRecorder.setVideoEncodingBitRate((int)(mRequestedQuality.bitrate*0.8));//0.8rnrn // We write the ouput of the camera in a local socket instead of a file ! rn // This one little trick makes streaming feasible quiet simply: data from the camerarn // can then be manipulated at the other end of the socketrn mMediaRecorder.setOutputFile(mSender.getFileDescriptor());rn rn mMediaRecorder.prepare();rn tryrn mMediaRecorder.start(); 这里抛出异常start failed: -38rn catch(Exception e)rn rn Log.e(TAG,"this is Exception start error : "+e); //这里只打印到java.lang.IllegalStateExceptionrn rnrn// catch (Exception e) rn// Log.e(TAG,"this is Exception error : "+e);rn// throw new ConfNotSupportedException(e.getMessage());rn// rnrn // This will skip the MPEG4 header if this step fails we can't stream anything :(rn InputStream is = mReceiver.getInputStream();rn try rn byte buffer[] = new byte[4];rn // Skip all atoms preceding mdat atomrn while (!Thread.interrupted()) rn while (is.read() != 'm');rn is.read(buffer,0,3);rn if (buffer[0] == 'd' && buffer[1] == 'a' && buffer[2] == 't') break;rn rn catch (IOException e) rn Log.e(TAG,"Couldn't skip mp4 header :/");rn stop();rn throw e;rn rnrn // The packetizer encapsulates the bit stream in an RTP stream and send it over the networkrn mPacketizer.setDestination(mDestination, mRtpPort, mRtcpPort);rn mPacketizer.setInputStream(mReceiver.getInputStream());rn mPacketizer.start();rnrn mStreaming = true;rnrn rn rn protected void createSockets() throws IOException rnrn final String LOCAL_ADDR = "net.majorkernelpanic.streaming-";rnrn for (int i=0;i<10;i++) rn try rn mSocketId = new Random().nextInt();rn mLss = new LocalServerSocket(LOCAL_ADDR+mSocketId);rn break;rn catch (IOException e1) rn Log.e(TAG, "this is mLss error : " + e1 );rn rn rnrn mReceiver = new LocalSocket();rn mReceiver.connect( new LocalSocketAddress(LOCAL_ADDR+mSocketId));rn mReceiver.setReceiveBufferSize(500000);rn mReceiver.setSoTimeout(3000);rn mSender = mLss.accept();rn mSender.setSendBufferSize(500000);rn rn rn protected synchronized void destroyCamera() rn if (mCamera != null) rn if (mStreaming) super.stop();rn lockCamera();rn mCamera.stopPreview();rn try rn mCamera.release();rn catch (Exception e) rn Log.e(TAG,e.getMessage()!=null?e.getMessage():"unknown error");rn rn mCamera = null;rn mCameraLooper.quit();rn mUnlocked = false;rn mPreviewStarted = false;rn rn rn rn protected boolean mUnlocked = false;rn protected synchronized void createCamera() throws RuntimeException rn if (mSurfaceView == null)rn throw new InvalidSurfaceException("Invalid surface !");rn if (mSurfaceView.getHolder() == null || !mSurfaceReady) rn throw new InvalidSurfaceException("Invalid surface !");rnrn if (mCamera == null) rn openCamera();rn mUnlocked = false;rn mCamera.setErrorCallback(new Camera.ErrorCallback() rn @Overridern public void onError(int error, Camera camera) rn // On some phones when trying to use the camera facing front the media server will diern // Whether or not this callback may be called really depends on the phonern if (error == Camera.CAMERA_ERROR_SERVER_DIED) rn // In this case the application must release the camera and instantiate a new onern Log.e(TAG,"Media server died !");rn // We don't know in what thread we are so stop needs to be synchronizedrn mCameraOpenedManually = false;rn stop();rn else rn Log.e(TAG,"Error unknown with the camera: "+error);rn rn rn );rnrn try rnrn // If the phone has a flash, we turn it on/off according to mFlashEnabledrn // setRecordingHint(true) is a very nice optimisation if you plane to only use the Camera for recordingrn Parameters parameters = mCamera.getParameters();rn if (parameters.getFlashMode()!=null) rn parameters.setFlashMode(mFlashEnabled?Parameters.FLASH_MODE_TORCH:Parameters.FLASH_MODE_OFF);rn rn parameters.setRecordingHint(true);rn parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO);//1连续对焦 rn mCamera.setParameters(parameters);rn mCamera.setDisplayOrientation(mOrientation);rnrn try rn if (mMode == MODE_MEDIACODEC_API_2) rn mSurfaceView.startGLThread();rn mCamera.setPreviewTexture(mSurfaceView.getSurfaceTexture());rn else rn mCamera.setPreviewDisplay(mSurfaceView.getHolder());rn mCamera.setDisplayOrientation(270);rn rn catch (IOException e) rn throw new InvalidSurfaceException("Invalid surface !");rn rnrn catch (RuntimeException e) rn destroyCamera();rn throw e;rn rnrn rn rn rn protected void unlockCamera() rn if (!mUnlocked) rn Log.d(TAG,"Unlocking camera");rn try rn mCamera.unlock();rn catch (Exception e) rn Log.e(TAG,"unlockCamera : "+e.getMessage());rn rn mUnlocked = true;rn rn rn```rn如果哪里不清楚,我可以再贴代码。现在我一直弄不懂为什么会出现start failed -38,再次跪求指点。rn 问答

HBase 启动Failed to start master

08-14

[code=c]rnroot@master:/usr/hbase/conf# start-hbase.sh rnstarting master, logging to /usr/hbase/logs/hbase-root-master-master.outrn[/code]rnrn启动HBase,查看logs,以下是部分内容。 发现有错误!rnERROR org.apache.hadoop.hbase.master.HMasterCommandLine: Failed to start masterrnrn[code=c]rn2014-08-15 01:46:57,362 INFO org.apache.hadoop.http.HttpServer: Jetty bound to port 60010rn2014-08-15 01:46:57,362 INFO org.mortbay.log: jetty-6.1.26rn2014-08-15 01:46:58,078 INFO org.mortbay.log: Started SelectChannelConnector@0.0.0.0:60010rn2014-08-15 01:46:58,098 INFO org.apache.hadoop.hbase.master.ActiveMasterManager: Deleting ZNode for /hbase/backup-masters/localhost,34314,1408038414745 from backup master directoryrn2014-08-15 01:46:58,106 INFO org.apache.zookeeper.server.PrepRequestProcessor: Got user-level KeeperException when processing sessionid:0x147d5a1242b0000 type:delete cxid:0x14 zxid:0xb txntype:-1 reqpath:n/a Error Path:/hbase/backup-masters/localhost,34314,1408038414745 Error:KeeperErrorCode = NoNode for /hbase/backup-masters/localhost,34314,1408038414745rn2014-08-15 01:46:58,130 WARN org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: Node /hbase/backup-masters/localhost,34314,1408038414745 already deleted, and this is not a retryrn2014-08-15 01:46:58,130 INFO org.apache.hadoop.hbase.master.ActiveMasterManager: Master=localhost,34314,1408038414745rn2014-08-15 01:46:58,343 INFO org.apache.hadoop.hbase.master.SplitLogManager: timeout = 300000rn2014-08-15 01:46:58,343 INFO org.apache.hadoop.hbase.master.SplitLogManager: unassigned timeout = 180000rn2014-08-15 01:46:58,343 INFO org.apache.hadoop.hbase.master.SplitLogManager: resubmit threshold = 3rn2014-08-15 01:46:58,353 ERROR org.apache.hadoop.hbase.master.HMasterCommandLine: Failed to start masterrnjava.lang.RuntimeException: Failed suppression of fs shutdown hook: Thread[Thread-30,5,main]rn at org.apache.hadoop.hbase.regionserver.ShutdownHook.suppressHdfsShutdownHook(ShutdownHook.java:197)rn at org.apache.hadoop.hbase.regionserver.ShutdownHook.install(ShutdownHook.java:83)rn at org.apache.hadoop.hbase.util.JVMClusterUtil.startup(JVMClusterUtil.java:191)rn at org.apache.hadoop.hbase.LocalHBaseCluster.startup(LocalHBaseCluster.java:422)rn at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:149)rn at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:104)rn at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)rn at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)rn at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2129)rn2014-08-15 01:46:58,355 INFO org.apache.hadoop.hbase.master.SplitLogManager: found 0 orphan tasks and 0 rescan nodesrn[/code]rnrn使用的HBase自带的zookeeper。未启动hadoop。不想用hadoop的hdfs文件系统。rnrn[code=c]rnroot@master:/usr/hbase# cat /etc/hostsrn127.0.0.1 localhostrnrn127.0.0.1 masterrn10.8.1.144 masterrn[/code]rnrnrn配置rn[code=c]rnroot@master:/usr/hbase/conf# cat hbase-site.xmlrnrn rn hbase.rootdirrn /home/hbase/local/var/hbasern rn rn hbase.zookeeper.property.dataDirrn /home/hbase/local/var/zookeeperrn rn rn hbase.zookeeper.quorumrn 127.0.0.1rn rnrn[/code] 论坛

spring+Junit测试 Failed to load ApplicationContext

02-22

这是一个例子程序,我直接导入了eclipse,但是老是加载不了applicationContext,尝试了很多办法,没用。麻烦各位看下,什么原因?rn[img=https://img-bbs.csdn.net/upload/201702/22/1487748549_454044.png][/img]rn报错如下:rn2017-02-22 15:21:45,040 DEBUG [main] (DefaultSingletonBeanRegistry.java:488) - Retrieved dependent beans for bean '(inner bean)': [txAdvice]rn2017-02-22 15:21:45,040 DEBUG [main] (DisposableBeanAdapter.java:275) - Invoking destroy method 'close' on bean with name 'dataSource'rn2017-02-22 15:21:45,041 ERROR [main] (TestContextManager.java:324) - Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@13e7444] to prepare test instance [com.baobaotao.service.TestUserService@a26d77]rnjava.lang.IllegalStateException: Failed to load ApplicationContextrn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:157)rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)rn at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:211)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:288)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:290)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)rn at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)rn at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:236)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService' defined in file [D:\masterSpring\chapter2\WebRoot\WEB-INF\classes\com\baobaotao\service\UserService.class]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancerrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:103)rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)rn at org.springframework.test.context.support.DelegatingSmartContextLoader.loadContext(DelegatingSmartContextLoader.java:228)rn at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:124)rn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:148)rn ... 24 morernCaused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancerrn at org.springframework.aop.framework.Cglib2AopProxy.createEnhancer(Cglib2AopProxy.java:229)rn at org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.java:171)rn at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:112)rn at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.createProxy(AbstractAutoProxyCreator.java:476)rn at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:362)rn at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1461)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn ... 37 morern2017-02-22 15:21:45,061 DEBUG [main] (DirtiesContextTestExecutionListener.java:113) - After test class: context [[TestContext@3bf400 testClass = TestUserService, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@1f03bb1 testClass = TestUserService, locations = 'classpath:applicationContext.xml', classes = '', activeProfiles = '', contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader']]], dirtiesContext [false]. 论坛

老问题 load crpe32.dll failed

08-17

看了下面的没用 不知道怎么搞的 我用的是Crystal.Reports.v9.2.2.667.CHSrn5、load crpe32.dll failedrn下面是cr9net_deployment.pdf说明中的部署Crystal Report 9的步骤:rn打开 Windows 应用程序。 rn在解决方案资源管理器中,右击 Windows 应用程序解决方案,指向“添加”,然后单击“新建项目”。 rn在“添加新项目”对话框中,选择“项目类型”窗格中的“安装和部署项目”,然后选择“模板”窗格中的“安装项目”。单击“确定”按钮。 rn在解决方案资源管理中,右击安装项目,指向“添加”,然后单击“项目输出”。 rn在“添加项目输出组”中,选择“主输出”,然后单击“确定”。 rn将自动添加所有依赖项,如 dotnetfxredist_x86_enu.msm和dotnetcrystalreports.msm。rn需要将dotnetcrystalreports.msm排除在项目之外,在解决方案资源管理器中右击这个模块的右键,选择“排除”。 rn在解决方案资源管理器中,右击安装项目,指向“添加”,然后单击“合并模块”。 rn在“添加模块”对话框中,选择下列要添加到安装项目的合并模块,然后单击“打开”: rnreportengine.msm, crnetruntime.msm, license.msmrnmapping.msm (可选,当在报表中使用了geographic maps时) rnVC_CRT.msm、VC_STL.msm( 如果您部署的 Windows 应用程序使用 ADO.NET 数据集,则还需要包括 VC_CRT 和 VC_STL 合并模块)rn在解决方案资源管理器中,右击 license.msm 文件,然后选择“属性”。 rn在“属性”窗口中,展开 MergeModuleProperties,然后在“许可证密钥”属性框中输入一个有效的许可证密钥。 rn注意 每当部署 Crystal Reports 应用程序时,必须提供许可证密钥。 rn从“生成”菜单中,选择“生成解决方案”以生成应用程序。rnrnrn帮助文挡指导rn要部署应用程序,您需要在生成解决方案之前创建一个安装项目,并且向应用程序中添加必要的合并模块。 rnrn打开 Windows 应用程序。 rn在解决方案资源管理器中,右击 Windows 应用程序解决方案,指向“添加”,然后单击“新建项目”。 rn在“添加新项目”对话框中,选择“项目类型”窗格中的“安装和部署项目”,然后选择“模板”窗格中的“安装项目”。单击“确定”按钮。 rn在解决方案资源管理中,右击安装项目,指向“添加”,然后单击“项目输出”。 rn在“添加项目输出组”中,选择“主输出”,然后单击“确定”。 rn将自动添加所有依赖项,如 Managed.msm。 rnrn在解决方案资源管理器中,右击安装项目,指向“添加”,然后单击“合并模块”。 rn在“添加模块”对话框中,选择下列要添加到安装项目的合并模块,然后单击“打开”: rnDatabase_Access.msm rnDatabase_Access_enu.msm rnregwiz.msm rn有关这些合并模块的说明,请参见 Crystal Reports 合并模块。 rnrn注意 如果您部署的 Windows 应用程序使用 ADO.NET 数据集,则还需要包括 VC_CRT 和 VC_STL 合并模块。rn在解决方案资源管理器中,右击 regwiz.msm 文件,然后选择“属性”。 rn在“属性”窗口中,展开 MergeModuleProperties,然后在“许可证密钥”属性框中输入一个有效的许可证密钥。 rn注意 每当部署 Crystal Reports 应用程序时,必须提供许可证密钥。 rn注册 Crystal Reports 9 后,将提供给您一个许可证密钥。可在“关于”对话框中找到此许可证密钥。从“帮助”菜单中,选择“关于 Microsoft 开发环境”。“已安装的产品”字段中列出了密钥号码。 rnrn从“生成”菜单中,选择“生成解决方案”以生成应用程序。 rn当部署到客户机或服务器时,应始终确保该计算机安装了 .NET Framework。rnrnrn-----------------------------rnrn不知道什么原因啊 请教各位了!rnrn和帮助文档说的不一样 rn自动添加所有依赖项出现一大堆水晶报表DLL 不知道是不是该排除rnrn真的头大了啊rnrn 论坛

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