启动Apache ActiveMQ报错,求

Failed to start Apache ActiveMQ (localhost, null). Reason: javax.management.InstanceAlreadyExistsException: org.apache.activemq:type=Broker,brokerName=localhost
javax.management.InstanceAlreadyExistsException: org.apache.activemq:type=Broker,brokerName=localhost
at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)

1个回答

看看是不是已经有进程执行了,或者是端口被别的程序占用。
https://issues.apache.org/jira/browse/CASSANDRA-3217

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
linux部署项目启动tomcat 报启动Apache ActiveMQ报错,求教

Failed to start Apache ActiveMQ (localhost, null). Reason: javax.management.InstanceAlreadyExistsException: org.apache.activemq:type=Broker,brokerName=localhost javax.management.InstanceAlreadyExistsException: org.apache.activemq:type=Broker,brokerName=localhost at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)

Linux 启动activemq报错?Could not load properties求大神指点

**Linux activemq 无法启动mq ** 报错如下: 2017-03-28 16:34:42,493 | INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@14d9c11d: startup date [Tue Mar 28 16:34:42 CST 2017]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main 2017-03-28 16:34:42,990 | ERROR | Failed to load: class path resource [activemq.xml], reason: Could not load properties; nested exception is java.net.ConnectException: Connection refused | org.apache.activemq.xbean.XBeanBrokerFactory | main org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.net.ConnectException: Connection refused okeBeanFactoryPostProcessors(AbstractApplicationContext.java:663) 求大神们指点指点

activeMQ 报错not initialized - call 'refresh'

activeMQ5.13.3版本启动报错,也 找一些资料,说是主机名的问题而我的主机名是没有待下划线啥的乱七八糟的啊,那个大神遇到过嘛?请教了。。。 2016-11-17 09:17:23,015 | INFO | Apache ActiveMQ 5.13.3 (localhost, ID:linjiexianserver-3840-1479345442777-0:1) is shutdown | org.apache.activemq.broker.BrokerService | main 2016-11-17 09:17:23,016 | INFO | Closing org.apache.activemq.xbean.XBeanBrokerFactory$1@71f80d51: startup date [Thu Nov 17 09:17:21 CST 2016]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main 2016-11-17 09:17:23,019 | WARN | Exception thrown from LifecycleProcessor on context close | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.apache.activemq.xbean.XBeanBrokerFactory$1@71f80d51: startup date [Thu Nov 17 09:17:21 CST 2016]; root of context hierarchy at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:357)[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE] at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:884)[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE] at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:843)[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE] at org.apache.activemq.hooks.SpringContextHook.run(SpringContextHook.java:30)[activemq-spring-5.13.3.jar:5.13.3] at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:873)[activemq-broker-5.13.3.jar:5.13.3] at org.apache.activemq.xbean.XBeanBrokerService.stop(XBeanBrokerService.java:122)[activemq-spring-5.13.3.jar:5.13.3] at org.apache.activemq.broker.BrokerService.start(BrokerService.java:627)[activemq-broker-5.13.3.jar:5.13.3] at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)[activemq-spring-5.13.3.jar:5.13.3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_80] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_80] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_80] at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_80] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1700)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1639)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1568)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-3.18.jar:3.18] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-3.18.jar:3.18] at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.13.3.jar:5.13.3] at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.13.3.jar:5.13.3] at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.13.3.jar:5.13.3] at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.13.3.jar:5.13.3] at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.13.3.jar:5.13.3] at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.13.3.jar:5.13.3] at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.13.3.jar:5.13.3] at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)[activemq-console-5.13.3.jar:5.13.3] at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.13.3.jar:5.13.3] at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.13.3.jar:5.13.3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_80] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_80] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_80] at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_80] at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.13.3] at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.13.3] 2016-11-17 09:17:23,025 | WARN | Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq.xml]: Invocation of init method failed; nested exception is java.io.IOException: Transport Connector could not be registered in JMX: java.io.IOException: Failed to bind to server socket: amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600 due to: java.net.BindException: Address already in use | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main

activemq not initialized - call 'refresh'

改了activeMQ的activeMQ.xml文件(也就是在里面加入mysql持久化方式),然后activemq.bat文件启动后就闪退了,activeMQ.log日志文件记录的错误如下: java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.apache.activemq.xbean.XBeanBrokerFactory$1@1ceabc1: startup date [Tue Mar 14 11:16:52 CST 2017]; root of context hierarchy at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:353) at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1045) at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1000) at org.apache.activemq.hooks.SpringContextHook.run(SpringContextHook.java:30) at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:766) at org.apache.activemq.xbean.XBeanBrokerService.stop(XBeanBrokerService.java:96) at org.apache.activemq.broker.BrokerService.start(BrokerService.java:559) at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:60) 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.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1522) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:605) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472) at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64) at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52) at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:101) at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:101) at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:65) at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71) at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54) at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:125) at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:84) at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150) at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104) 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.apache.activemq.console.Main.runTaskClass(Main.java:262) at org.apache.activemq.console.Main.main(Main.java:115) 我的计算名称已经改为admin了,麻烦知道的大神告诉小弟一下,在此谢过!

linux 环境 启动apache 服务报错927

httpd: Syntax error on line 927 of /was/HTTPServer/conf/httpd.conf: Cannot load /was/HTTPServer/Plugins/bin/32bits/mod_was_ap22_http.so into server: /was/HTTPServer/Plugins/bin/32bits/mod_was_ap22_http.so: wrong ELF class: ELFCLASS64 公司的测试环境被我一个命令不小心弄坏了,现在项目能启动但是进不去,一直在响应状态,求大佬们告诉我这是什么问题,在线等

Apache Modulue开发中遇到的问题,关于openssl加密,总是报错,错在哪里?

char *iaisession_getobmuid(request_rec *r, const char *encid, const unsigned char *enckey, unsigned char *iv, const char *mtiid) { unsigned char *obmuid = (unsigned char *) apr_pcalloc(r->pool, LENGTH_OBMUID + 1); char *b64edobmuid; // get muid length int mtiidlen = strlen(mtiid); // encrypted obmuid length int obmuidlen = 0; // padding length int paddinglen = 0; // according to the key length, decide 128bit or 256bit AES encryption algorithm. const EVP_CIPHER *aes_cbc = NULL; int keylen = strlen((char *)enckey); if (keylen == LENGTH_KEY_16) { aes_cbc = EVP_aes_128_cbc(); } else if (keylen == LENGTH_KEY_32) { aes_cbc = EVP_aes_256_cbc(); } // cipher contex EVP_CIPHER_CTX ctx; // initializes cipher contex. EVP_CIPHER_CTX_init(&ctx); // sets up cipher context ctx for encryption with cipher type from ENGINE (default implementation). EVP_EncryptInit_ex(&ctx, aes_cbc, NULL, enckey, iv); // encrypts mtiidlen bytes from the mtiid in and writes the encrypted version to obmuid. EVP_EncryptUpdate(&ctx, obmuid, &obmuidlen, (unsigned char *)mtiid, mtiidlen); // obmuid is the encrypts. EVP_EncryptFinal_ex(&ctx, obmuid + obmuidlen, &paddinglen); // clears all information from a cipher context and free up any allocated memory associate with it. EVP_CIPHER_CTX_cleanup(&ctx); // base64 encode b64edobmuid = iaisession_encodebybase64(r->pool, obmuid); return b64edobmuid; } [Wed Jul 03 01:43:13 2013] [notice] child pid 28278 exit signal Segmentation fault (11)

启动项目Tomcat报错 这是咋回事啊

org.xml.sax.SAXParseException; lineNumber: 26; columnNumber: 80; schema_reference.4: 无法读取方案文档 'http://activemq.apache.org/schema/core/activemq-core-5.8.0.xsd', 原因为 1) 无法找到文档; 2) 无法读取文档; 3) 文档的根元素不是 <xsd:schema>。 at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:99) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:433) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:347) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:4166) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:4157) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument1(XSDHandler.java:2490) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:2187) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:573) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:616) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2453) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1772) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:766) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:355) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2770) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347) at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:429) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:245) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:186) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:171) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:144) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:100) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:510) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:452) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:434) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at org.apache.catalina.startup.Embedded.start(Embedded.java:825) at org.codehaus.mojo.tomcat.AbstractRunMojo.startContainer(AbstractRunMojo.java:558) at org.codehaus.mojo.tomcat.AbstractRunMojo.execute(AbstractRunMojo.java:255) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214) at org.apache.maven.cli.MavenCli.main(MavenCli.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

activemq启动时报错,空指针异常,啥意思,求大神!!!

![图片说明](https://img-ask.csdn.net/upload/201705/19/1495156953_643011.jpg)

activeMQ代码在eclipse里运行出现java.net.BindException: Address already in use: JVM_Bind

大家好!我最近在研究activeMQ,我把一些网上的例子在eclipse里运行(没有用spring,觉得spring太麻烦了 先不考虑) 但是第一次运行,结果正常,再运行一遍,就会出现如下error ---------------------------------------------------------------------------------------------------- [color=red]java.io.IOException: Failed to bind to server socket: tcp://localhost:61616 due to: java.net.BindException: Address already in use: JVM_Bind at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33) at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:141) at org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60) at org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:131) at org.apache.activemq.broker.BrokerService.createTransportConnector(BrokerService.java:1712) at org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java:217) at org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java:207) at homework.Test.main(Test.java:18) Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.<init>(ServerSocket.java:185) at java.net.ServerSocket.<init>(ServerSocket.java:141) at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:162) at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:134) ... 6 more 2009-10-14 9:55:05 org.apache.activemq.transport.failover.FailoverTransport doReconnect 信息: Successfully connected to tcp://localhost:61616[/color]Consumer:->Begin listening... [color=red]2009-10-14 9:55:06 org.apache.activemq.transport.failover.FailoverTransport doReconnect[/color] [color=red]信息: Successfully connected to tcp://localhost:61616[/color] Producer:->Sending message: Hello, world! Producer:->Message sent complete! Producer:->Closing connection Consumer:->Received: Hello, world! Consumer:->Closing connection -------------------------------------------------------------------------------------------------- 虽然结果还是能出来,但是java.io.IOException: Failed to bind to server socket: tcp://localhost:61616 due to: java.net.BindException: Address already in use: JVM_Bind不知道怎么解决,一定要重启eclipse才不报错。 我main函数的代码如下 package homework; import javax.jms.JMSException; import org.apache.activemq.broker.BrokerService; public class Test{ /** *//** * @param args */ public static void main(String[] args) throws JMSException, Exception { // TODO Auto-generated method stub BrokerService broker = new BrokerService(); broker.setUseJmx(true); try { broker.addConnector("tcp://localhost:61616"); broker.start(); } catch (InterruptedException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } ConsumerTool consumer = new ConsumerTool(); ProducerTool producer = new ProducerTool(); // 开始监听 consumer.consumeMessage(); // 延时500毫秒之后发送消息 Thread.sleep(500); producer.produceMessage("Hello, world!"); producer.close(); // 延时500毫秒之后停止接受消息 Thread.sleep(500); consumer.close(); broker.stop(); } } 请指点 谢谢!!!是要关掉什么服务吗?怎么关呢?如有需要 我把producerTool和ProducerTool的代码也贴上来 [b]问题补充:[/b] ProducerTool和ConsumerTool这两个类我是从网上找的 ProducerTool ------------------------------------------------------ package homework; import javax.jms.Connection; import javax.jms.DeliveryMode; import javax.jms.Destination; import javax.jms.JMSException; import javax.jms.MessageProducer; import javax.jms.Session; import javax.jms.TextMessage; import org.apache.activemq.ActiveMQConnection; import org.apache.activemq.ActiveMQConnectionFactory; public class ProducerTool{ private String user = ActiveMQConnection.DEFAULT_USER; private String password = ActiveMQConnection.DEFAULT_PASSWORD; private String url = ActiveMQConnection.DEFAULT_BROKER_URL; private String subject = "TOOL.DEFAULT"; private Destination destination = null; private Connection connection = null; private Session session = null; private MessageProducer producer = null; // 初始化 private void initialize() throws JMSException, Exception{ ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory( user, password, url); connection = connectionFactory.createConnection(); session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); destination = session.createQueue(subject); producer = session.createProducer(destination); producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT); } // 发送消息 public void produceMessage(String message) throws JMSException, Exception{ initialize(); TextMessage msg = session.createTextMessage(message); connection.start(); System.out.println("Producer:->Sending message: " + message); producer.send(msg); System.out.println("Producer:->Message sent complete!"); } // 关闭连接 public void close() throws JMSException{ System.out.println("Producer:->Closing connection"); if (producer != null) producer.close(); if (session != null) session.close(); if (connection != null) connection.close(); } } ------------------------------------------------------------- ConsumerTool package homework; import javax.jms.Connection; import javax.jms.Destination; import javax.jms.JMSException; import javax.jms.MessageConsumer; import javax.jms.Session; import javax.jms.MessageListener; import javax.jms.Message; import javax.jms.TextMessage; import org.apache.activemq.ActiveMQConnection; import org.apache.activemq.ActiveMQConnectionFactory; public class ConsumerTool implements MessageListener{ private String user = ActiveMQConnection.DEFAULT_USER; private String password = ActiveMQConnection.DEFAULT_PASSWORD; private String url = ActiveMQConnection.DEFAULT_BROKER_URL; private String subject = "TOOL.DEFAULT"; private Destination destination = null; private Connection connection = null; private Session session = null; private MessageConsumer consumer = null; // 初始化 private void initialize() throws JMSException, Exception{ ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory( user, password, url); connection = connectionFactory.createConnection(); session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); destination = session.createQueue(subject); consumer = session.createConsumer(destination); } // 消费消息 public void consumeMessage() throws JMSException, Exception{ initialize(); connection.start(); System.out.println("Consumer:->Begin listening..."); // 开始监听 consumer.setMessageListener(this); // Message message = consumer.receive(); } // 关闭连接 public void close() throws JMSException{ System.out.println("Consumer:->Closing connection"); if (consumer != null) consumer.close(); if (session != null) session.close(); if (connection != null) connection.close(); } // 消息处理函数 public void onMessage(Message message){ try { if (message instanceof TextMessage){ TextMessage txtMsg = (TextMessage) message; String msg = txtMsg.getText(); System.out.println("Consumer:->Received: " + msg); } else { System.out.println("Consumer:->Received: " + message); } } catch (JMSException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } 第一次运行代码是好的,再运行一遍就会说java.io.IOException: Failed to bind to server socket: tcp://localhost:61616 due to: java.net.BindException: Address already in use: JVM_Bind 一定要重启eclipse才行 好郁闷啊 8)

spring JMS在接收消息的时候总是报错

org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Unexpected error occured at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:316) at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:469) at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:534) at com.tiantian.springintejms.service.impl.ProducerServiceImpl.sendMessage(ProducerServiceImpl.java:26) at com.tiantian.springintejms.test.ProducerConsumerTest.testSend(ProducerConsumerTest.java:48) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: javax.jms.JMSException: Unexpected error occured at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62) at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1306) at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1760) at org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:231) at org.apache.activemq.ActiveMQMessageProducerSupport.send(ActiveMQMessageProducerSupport.java:241) at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:592) at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:569) at org.springframework.jms.core.JmsTemplate$3.doInJms(JmsTemplate.java:536) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:466) ... 26 more Caused by: java.io.IOException: Unexpected error occured at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:209) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.NoSuchMethodError: org.slf4j.MDC.getCopyOfContextMap()Ljava/util/Map; at org.apache.activemq.util.MDCHelper.getCopyOfContextMap(MDCHelper.java:30) at org.apache.activemq.thread.PooledTaskRunner.<init>(PooledTaskRunner.java:42) at org.apache.activemq.thread.TaskRunnerFactory.createTaskRunner(TaskRunnerFactory.java:80) at org.apache.activemq.ActiveMQSessionExecutor.wakeup(ActiveMQSessionExecutor.java:101) at org.apache.activemq.ActiveMQSessionExecutor.execute(ActiveMQSessionExecutor.java:85) at org.apache.activemq.ActiveMQSession.dispatch(ActiveMQSession.java:1535) at org.apache.activemq.ActiveMQConnection$2.processMessageDispatch(ActiveMQConnection.java:1733) at org.apache.activemq.command.MessageDispatch.visit(MessageDispatch.java:109) at org.apache.activemq.ActiveMQConnection.onCommand(ActiveMQConnection.java:1714) at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:116) at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69) at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113) at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:227) at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83) at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:220) at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:202) ... 1 more

ActiveMq连接失败 Channel was inactive for too long

在连接MQ时会立即报错:Channel was inactive for too long这个问题,已经试过在代码中和mq配置中增加?wireFormat.maxInactivityDuration=90000或者?wireFormat.maxInactivityDuration=0参数,不好用。 并非运行一段时间报错,而是连接时立即报错。跪求大神,请问有没有什么解决方案

linux部署tomcat启动出问题,求大神们指教错在哪啊

2016-7-14 10:40:07 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home/admin/upay/jdk1.6.0_43/jre/lib/amd64/server:/home/admin/upay/jdk1.6.0_43/jre/lib/amd64:/home/admin/upay/jdk1.6.0_43/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 2016-7-14 10:40:08 org.apache.coyote.http11.Http11Protocol init 信息: Initializing Coyote HTTP/1.1 on http-9111 2016-7-14 10:40:08 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 556 ms 2016-7-14 10:40:08 org.apache.catalina.core.StandardService start 信息: Starting service Catalina 2016-7-14 10:40:08 org.apache.catalina.core.StandardEngine start 信息: Starting Servlet Engine: Apache Tomcat/6.0.37 2016-7-14 10:40:08 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory CMUPayBankFront 2016-7-14 10:40:08 org.apache.catalina.loader.WebappClassLoader validateJarFile 信息: validateJarFile(/opt/mcb/bank_tomcat/webapps/CMUPayBankFront/WEB-INF/lib/servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class 10:40:08,820 |-INFO in ch.qos.logback.classic.LoggerContext[CMUPayBankFront] - Could NOT find resource [logback.groovy] 10:40:08,820 |-INFO in ch.qos.logback.classic.LoggerContext[CMUPayBankFront] - Could NOT find resource [logback-test.xml] 10:40:08,821 |-INFO in ch.qos.logback.classic.LoggerContext[CMUPayBankFront] - Found resource [logback.xml] at [file:/opt/mcb/bank_tomcat/webapps/CMUPayBankFront/WEB-INF/classes/logback.xml] 10:40:08,976 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set 10:40:08,987 |-INFO in ch.qos.logback.classic.joran.action.ContextNameAction - Setting logger context name as [CMUPayBankFront] 10:40:08,988 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender] 10:40:08,999 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE] 10:40:09,074 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used 10:40:09,076 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern /opt/mcb/upaysys/logs/CMUPayBankFront/CMUPayBankFront_%d{yyyy-MM-dd}_%i.log for the active file 10:40:09,079 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6477eb97 - The date pattern is 'yyyy-MM-dd' from file name pattern '/opt/mcb/upaysys/logs/CMUPayBankFront/CMUPayBankFront_%d{yyyy-MM-dd}_%i.log'. 10:40:09,079 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6477eb97 - Roll-over at midnight. 10:40:09,083 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6477eb97 - Setting initial period to Thu Jul 14 10:40:09 EDT 2016 10:40:09,086 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 10:40:09,130 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Active log file name: /opt/mcb/upaysys/logs/CMUPayBankFront/CMUPayBankFront_2016-07-14_0.log 10:40:09,130 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - File property is set to [null] 10:40:09,131 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender] 10:40:09,131 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [OPERATE_FILE] 10:40:09,132 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@64:13 - no applicable action for [Encoding], current ElementPath is [[configuration][appender][Encoding]] 10:40:09,132 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 10:40:09,133 |-INFO in ch.qos.logback.core.FileAppender[OPERATE_FILE] - File property is set to [/tlqnew/ljjkfile/sndfile//CMUPayBankFront.txt] 10:40:09,133 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [com.huateng.log.CustomMonitorAppender] 10:40:09,134 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [OPERATE_FILE_DAILY] 10:40:09,143 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used 10:40:09,143 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern /opt/mcb/upay/var/log/CMUPayBankFront_%i.log.%d{yyyyMMdd} for the active file 10:40:09,144 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7d0c3a08 - The date pattern is 'yyyyMMdd' from file name pattern '/opt/mcb/upay/var/log/CMUPayBankFront_%i.log.%d{yyyyMMdd}'. 10:40:09,144 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7d0c3a08 - Roll-over at midnight. 10:40:09,144 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7d0c3a08 - Setting initial period to Thu Jul 14 10:40:09 EDT 2016 10:40:09,201 |-INFO in com.huateng.log.CustomMonitorAppender[OPERATE_FILE_DAILY] - Active log file name: /opt/mcb/upay/var/log/CMUPayBankFront_0.log.20160714 10:40:09,201 |-INFO in com.huateng.log.CustomMonitorAppender[OPERATE_FILE_DAILY] - File property is set to [null] 10:40:09,202 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.huateng.log.LogHandleImpl] to INFO 10:40:09,202 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [com.huateng.log.LogHandleImpl] to false 10:40:09,202 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [OPERATE_FILE] to Logger[com.huateng.log.LogHandleImpl] 10:40:09,203 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.huateng.bank.logFormat.MessageLogger] to WARN 10:40:09,203 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [com.huateng.bank.logFormat.MessageLogger] to false 10:40:09,203 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [OPERATE_FILE_DAILY] to Logger[com.huateng.bank.logFormat.MessageLogger] 10:40:09,203 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.huateng.bank.listener] to WARN 10:40:09,203 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [com.huateng.bank.listener] to false 10:40:09,203 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [OPERATE_FILE_DAILY] to Logger[com.huateng.bank.listener] 10:40:09,203 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.activemq.transport.failover] to WARN 10:40:09,203 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.apache.activemq.transport.failover] to false 10:40:09,203 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [OPERATE_FILE_DAILY] to Logger[org.apache.activemq.transport.failover] 10:40:09,203 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO 10:40:09,203 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT] 10:40:09,203 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration. 10:40:09,215 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@2db6235b - Registering current configuration as safe fallback point 2016-7-14 10:40:10 org.apache.catalina.core.StandardContext start 严重: Error listenerStart 2016-7-14 10:40:10 org.apache.catalina.core.StandardContext start 严重: Context [/CMUPayBankFront] startup failed due to previous errors 2016-7-14 10:40:10 org.apache.coyote.http11.Http11Protocol start 信息: Starting Coyote HTTP/1.1 on http-9111 2016-7-14 10:40:10 org.apache.jk.common.ChannelSocket init 信息: JK: ajp13 listening on /0.0.0.0:9101 2016-7-14 10:40:10 org.apache.jk.server.JkMain start 信息: Jk running ID=0 time=0/59 config=null 2016-7-14 10:40:10 org.apache.catalina.startup.Catalina start 信息: Server startup in 2666 ms

Spring Boot技术栈博客企业前后端 启动后报空指针异常

# 问题在此记录中,项目代码也在--可以下载运行下 [未解决] 启动时出现: Negative matches: -----------------    ActiveMQAutoConfiguration:       Did not match:          - @ConditionalOnClass did not find required classes 'javax.jms.ConnectionFactory', 'org.apache.activemq.ActiveMQConnectionFactory' (OnClassCondition)    AopAutoConfiguration.CglibAutoProxyConfiguration:       Did not match:          - @ConditionalOnProperty (spring.aop.proxy-target-class=true) did not find property 'proxy-target-class' (OnPropertyCond 等.................... --------------------- 作者:名名名子 来源:CSDN 原文:https://blog.csdn.net/qq_34480270/article/details/85701064 版权声明:本文为博主原创文章,转载请附上博文链接!

tomcat启动报java.io.EOFException,不影响运行

java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2577) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1315) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) at net.bull.javamelody.CounterStorage.readFromFile(CounterStorage.java:110) at net.bull.javamelody.Counter.readFromFile(Counter.java:883) at net.bull.javamelody.Collector.<init>(Collector.java:111) at net.bull.javamelody.FilterContext.<init>(FilterContext.java:102) at net.bull.javamelody.MonitoringFilter.init(MonitoringFilter.java:111) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:103) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4650) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1100) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1618) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722)

Error: Could not find or load main class =8080

solr 4.10 在tomcat上的配置问题 这是日志: 16986 [http-bio-8080-exec-8] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442231152311&wt=json} status=0 QTime=3 17027 [http-bio-8080-exec-8] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442231152347&wt=json} status=0 QTime=7 54539069 [http-bio-8080-exec-3] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442285613656&wt=json} status=0 QTime=11 54539103 [http-bio-8080-exec-3] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442285613696&wt=json} status=0 QTime=6 54553500 [http-bio-8080-exec-1] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442285628073&wt=json} status=0 QTime=0 54553522 [http-bio-8080-exec-6] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442285628094&wt=json} status=0 QTime=3 Error: Could not find or load main class =8080 67099246 [http-bio-8080-exec-2] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442298217972&wt=json} status=0 QTime=1 67099276 [http-bio-8080-exec-2] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442298218001&wt=json} status=0 QTime=3 67101938 [http-bio-8080-exec-8] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442298220642&wt=json} status=0 QTime=1 67101965 [http-bio-8080-exec-8] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442298220667&wt=json} status=0 QTime=3 67102672 [http-bio-8080-exec-2] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442298221344&wt=json} status=0 QTime=0 67102688 [http-bio-8080-exec-8] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442298221358&wt=json} status=0 QTime=4 67103231 [http-bio-8080-exec-9] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442298221880&wt=json} status=0 QTime=0 67103249 [http-bio-8080-exec-10] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442298221893&wt=json} status=0 QTime=3 67103864 [http-bio-8080-exec-4] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442298222485&wt=json} status=0 QTime=0 67103891 [http-bio-8080-exec-1] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442298222499&wt=json} status=0 QTime=3 67104588 [http-bio-8080-exec-3] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442298223159&wt=json} status=0 QTime=0 67104606 [http-bio-8080-exec-3] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442298223179&wt=json} status=0 QTime=3 67105890 [http-bio-8080-exec-9] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442298224394&wt=json} status=0 QTime=0 67105907 [http-bio-8080-exec-9] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442298224410&wt=json} status=0 QTime=3 Error: Could not find or load main class =8080 Error: Could not find or load main class =8080 67244404 [http-bio-8080-exec-7] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/cores params={indexInfo=false&_=1442298357010&wt=json} status=0 QTime=0 67244433 [http-bio-8080-exec-7] INFO org.apache.solr.servlet.SolrDispatchFilter 鈥?[admin] webapp=null path=/admin/info/system params={_=1442298357037&wt=json} status=0 QTime=3 Error: Could not find or load main class =8080 我的环境变量没有问题

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

C++(数据结构与算法)78:---分而治之

一、分而治之的思想 分而治之方法与软件设计的模块化方法非常相似 分而治之通常不用于解决问题的小实例,而要解决一个问题的大实例。一般步骤为: ①把一个大实例分为两个或多个更小的实例 ②分别解决每个小实例 ③把这些小实例的解组合成原始大实例的解 二、实际应用之找出假币 问题描述 一个袋子有16个硬币,其中只有一个是假币,这个假币比其他的真币重量轻(其他所有真币的重量都是相同的)...

springboot+jwt实现token登陆权限认证

一 前言 此篇文章的内容也是学习不久,终于到周末有时间码一篇文章分享知识追寻者的粉丝们,学完本篇文章,读者将对token类的登陆认证流程有个全面的了解,可以动态搭建自己的登陆认证过程;对小项目而已是个轻量级的认证机制,符合开发需求;更多精彩原创内容关注公主号知识追寻者,读者的肯定,就是对作者的创作的最大支持; 二 jwt实现登陆认证流程 用户使用账号和面发出post请求 服务器接受到请求后使用私...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

win10暴力查看wifi密码

刚才邻居打了个电话说:喂小灰,你家wifi的密码是多少,我怎么连不上了。 我。。。 我也忘了哎,就找到了一个好办法,分享给大家: 第一种情况:已经连接上的wifi,怎么知道密码? 打开:控制面板\网络和 Internet\网络连接 然后右击wifi连接的无线网卡,选择状态 然后像下图一样: 第二种情况:前提是我不知道啊,但是我以前知道密码。 此时可以利用dos命令了 1、利用netsh wlan...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

程序员写出这样的代码,能不挨骂吗?

当你换槽填坑时,面对一个新的环境。能够快速熟练,上手实现业务需求是关键。但是,哪些因素会影响你快速上手呢?是原有代码写的不够好?还是注释写的不够好?昨夜...

带了6个月的徒弟当了面试官,而身为高级工程师的我天天修Bug......

即将毕业的应届毕业生一枚,现在只拿到了两家offer,但最近听到一些消息,其中一个offer,我这个组据说客户很少,很有可能整组被裁掉。 想问大家: 如果我刚入职这个组就被裁了怎么办呢? 大家都是什么时候知道自己要被裁了的? 面试软技能指导: BQ/Project/Resume 试听内容: 除了刷题,还有哪些技能是拿到offer不可或缺的要素 如何提升面试软实力:简历, 行为面试,沟通能...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

!大部分程序员只会写3年代码

如果世界上都是这种不思进取的软件公司,那别说大部分程序员只会写 3 年代码,恐怕就没有程序员这种职业。

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

早上躺尸,晚上干活:硅谷科技公司这么流行迟到?

硅谷科技公司上班时间OPEN早已不是什么新鲜事,早九晚五是常态,但有很多企业由于不打卡,员工们10点、11点才“姗姗来迟”的情况也屡见不鲜。 这种灵活的考勤制度为人羡慕,甚至近年来,国内某些互联网企业也纷纷效仿。不过,硅谷普遍弹性的上班制度是怎么由来的呢?这种“流行性迟到”真的有那么轻松、悠哉吗? 《动态规划专题班》 课程试听内容: 动态规划的解题要领 动态规划三大类 求最值/计数/可行性 常...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

Python爬虫,高清美图我全都要(彼岸桌面壁纸)

爬取彼岸桌面网站较为简单,用到了requests、lxml、Beautiful Soup4

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

Java岗开发3年,公司临时抽查算法,离职后这几题我记一辈子

前几天我们公司做了一件蠢事,非常非常愚蠢的事情。我原以为从学校出来之后,除了找工作有测试外,不会有任何与考试有关的事儿。 但是,天有不测风云,公司技术总监、人事总监两位大佬突然降临到我们事业线,叫上我老大,给我们组织了一场别开生面的“考试”。 那是一个风和日丽的下午,我翘着二郎腿,左手端着一杯卡布奇诺,右手抓着我的罗技鼠标,滚动着轮轴,穿梭在头条热点之间。 “淡黄的长裙~蓬松的头发...

大牛都会用的IDEA调试技巧!!!

导读 前天面试了一个985高校的实习生,问了他平时用什么开发工具,他想也没想的说IDEA,于是我抛砖引玉的问了一下IDEA的调试用过吧,你说说怎么设置断点...

都前后端分离了,咱就别做页面跳转了!统统 JSON 交互

文章目录1. 无状态登录1.1 什么是有状态1.2 什么是无状态1.3 如何实现无状态1.4 各自优缺点2. 登录交互2.1 前后端分离的数据交互2.2 登录成功2.3 登录失败3. 未认证处理方案4. 注销登录 这是本系列的第四篇,有小伙伴找不到之前文章,松哥给大家列一个索引出来: 挖一个大坑,Spring Security 开搞! 松哥手把手带你入门 Spring Security,别再问密...

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

立即提问
相关内容推荐