`
zhangmingji
  • 浏览: 70755 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

ActiveMQ java.net.URISyntaxException: Illegal character in hostname 异常

阅读更多
2014-03-26 10:35:45,760 | ERROR | Failed to start Apache ActiveMQ ([localhost, ID:wx_amp01-59836-1395801345508-0:1], java.net.URISyntaxException: Illegal character in hostname at index 7: ws
://wx_amp01:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600) | org.apache.activemq.broker.BrokerService | main
2014-03-26 10:35:45,762 | INFO  | Apache ActiveMQ 5.9.0 (localhost, ID:wx_amp01-59836-1395801345508-0:1) is shutting down | org.apache.activemq.broker.BrokerService | main
2014-03-26 10:35:47,682 | INFO  | Connector openwire stopped | org.apache.activemq.broker.TransportConnector | main
2014-03-26 10:35:47,700 | INFO  | Connector amqp stopped | org.apache.activemq.broker.TransportConnector | main
2014-03-26 10:35:47,720 | INFO  | Connector stomp stopped | org.apache.activemq.broker.TransportConnector | main
2014-03-26 10:35:47,723 | INFO  | Connector mqtt stopped | org.apache.activemq.broker.TransportConnector | main
2014-03-26 10:35:47,724 | INFO  | Connector ws stopped | org.apache.activemq.broker.TransportConnector | main
2014-03-26 10:35:47,729 | INFO  | PListStore:[/home/mq/apache-activemq-5.9.0/data/localhost/tmp_storage] stopped | org.apache.activemq.store.kahadb.plist.PListStoreImpl | main
2014-03-26 10:35:47,730 | INFO  | Stopping async queue tasks | org.apache.activemq.store.kahadb.KahaDBStore | main
2014-03-26 10:35:47,731 | INFO  | Stopping async topic tasks | org.apache.activemq.store.kahadb.KahaDBStore | main
2014-03-26 10:35:47,732 | INFO  | Stopped KahaDB | org.apache.activemq.store.kahadb.KahaDBStore | main
2014-03-26 10:35:47,975 | INFO  | Apache ActiveMQ 5.9.0 (localhost, ID:wx_amp01-59836-1395801345508-0:1) uptime 3.032 seconds | org.apache.activemq.broker.BrokerService | main
2014-03-26 10:35:47,977 | INFO  | Apache ActiveMQ 5.9.0 (localhost, ID:wx_amp01-59836-1395801345508-0:1) is shutdown | org.apache.activemq.broker.BrokerService | main
2014-03-26 10:35:47,978 | INFO  | Closing org.apache.activemq.xbean.XBeanBrokerFactory$1@2bb5340c: startup date [Wed Mar 26 10:35:43 CST 2014]; root of context hierarchy | org.apache.activem
q.xbean.XBeanBrokerFactory$1 | main
2014-03-26 10:35:47,982 | 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@2bb5340
c: startup date [Wed Mar 26 10:35:43 CST 2014]; root of context hierarchy
        at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:360)
        at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1057)
        at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)
        at org.apache.activemq.hooks.SpringContextHook.run(SpringContextHook.java:30)
        at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:782)
        at org.apache.activemq.xbean.XBeanBrokerService.stop(XBeanBrokerService.java:122)
        at org.apache.activemq.broker.BrokerService.start(BrokerService.java:574)
        at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1608)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1549)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
        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:104)
        at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)
        at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)
        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.runTask(StartCommand.java:87)
        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:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.activemq.console.Main.runTaskClass(Main.java:262)
        at org.apache.activemq.console.Main.main(Main.java:115)

 上述异常是因为hostname不合法,解决办法:

 编辑文件: /etc/sysconfig/network

 修改: HOSTNAME=new-hostname.domainname

 修改:/etc/hosts  添加:IP      hostname行

重启linux机器:reboot

 

分享到:
评论

相关推荐

    apache-activemq-5.17.3

    2. **conf**:配置文件目录,其中的`activemq.xml`是最核心的配置文件,定义了ActiveMQ服务器的行为,如连接器、代理策略、持久化机制等。 3. **data**:这是ActiveMQ运行时存储数据的目录,包括消息存储、临时文件...

    apache-activemq-5.16.5

    3. 根据你的操作系统,运行`bin`目录下的启动脚本,例如在Linux/Unix上是`bin/activemq start`,在Windows上是`bin\activemq.bat start`。 4. 打开浏览器访问`http://localhost:8161/admin`,使用默认凭据(通常为...

    apache-activemq-5.16.6-bin.zip

    2. **配置**: 修改conf目录下的activemq.xml文件以定制你的消息代理设置。 3. **创建消息生产者和消费者**: 使用JMS API或者支持的其他协议创建应用程序,发送和接收消息。 4. **访问Web Console**: 浏览器中输入`...

    linux-apache-activemq-5.15.3和 linux-jdk1.8

    4. 修改配置:根据需求编辑activemq.xml配置文件,调整如存储、网络连接、安全等设置。 5. 启动ActiveMQ:执行bin目录下的activemq start命令启动服务器。 6. 监控与管理:可以通过Web控制台(默认端口8161)来监控...

    apache-activemq-5.18.5-bin.zip

    apache-activemq-5.18.5-bin

    java springboot整合activemq工程

    spring.activemq.broker-url=failover:(tcp://10.0.1.227:61616,tcp://10.0.1.228:61616,tcp://10.0.1.229:61616,mqtt://10.0.1.227:1883,mqtt://10.0.1.228:1883,mqtt://10.0.1.229:1883) #spring.activemq.broker-...

    apache-activemq-5.15.12-bin.tar.gz

    1.解压  ...ACTIVEMQ_HOME=/opt/apache-activemq-5.15.12 PATH=/opt/apache-activemq-5.15.12/bin:$PATH export ACTIVEMQ_HOME PATH 5.activemq的后台默认端口是61616,前台访问端口是8161

    apache-activemq-5.15.15二进制包,安装包

    Apache ActiveMQ是世界上最流行的开源消息代理和集成模式服务器,它基于Java Message Service (JMS) 规范。这个“apache-activemq-5.15.15二进制包,安装包”包含了运行和配置ActiveMQ所需的所有组件,方便用户在...

    apache-activemq-5.15.11-bin.tar.gz

    - **启动与配置**:进入解压后的目录,通过`bin/activemq start`启动服务,并可以编辑`conf/activemq.xml`进行配置。 - **防火墙设置**:可能需要在Linux防火墙中开启ActiveMQ的默认端口(如61616)以允许外部连接...

    activemq_basic.rar

    ActiveMQ是Apache软件基金会开发的一款开源消息中间件,它遵循Java消息服务(JMS)标准,用于在分布式系统中提供高效、可靠的消息传递。在这个"activemq_basic.rar"压缩包中,我们可以预见到是一些关于ActiveMQ的...

    apache-activemq-5.16.5-bin.tar.gz 下载(5积分)

    Apache ActiveMQ是Apache软件基金会的一个开源项目,是一个基于消息的通信中间件。ActiveMQ是JMS的一个具体实现,支持JMS的两种消息模型。ActiveMQ使用AMQP协议集成多平台应用,使用STOMP协议通过websockets在Web...

    apache-activemq-5.15.11-bin.rar

    配置文件主要位于conf目录下,如activemq.xml,可根据需求进行定制。 6. **使用与编程**: 开发者可以通过JMS API或ActiveMQ提供的客户端库来编写发送和接收消息的代码。例如,创建一个生产者发送消息到队列,再...

    ActiveMQ-NetCore.zip

    标题 "ActiveMQ-NetCore.zip" 暗示这是一个关于如何在 .NET Core 平台上使用 ActiveMQ 的示例项目。ActiveMQ 是一个开源的消息中间件,它支持多种消息协议,包括 MQTT,常用于分布式系统中的异步通信。.NET Core 是 ...

    ActiveMQ的activemq.xml详细配置讲解

    **ActiveMQ的activemq.xml配置详解** ActiveMQ是Apache软件基金会开发的一个开源消息代理,它遵循Java消息服务(JMS)规范,提供可靠的消息传递功能。`activemq.xml`是ActiveMQ的核心配置文件,它定义了服务器的...

    apache-activemq-5.12.0.zip

    6. **开发集成**:ActiveMQ可以轻松地与Java、.NET、Python、Ruby等语言的项目集成,提供各种语言的客户端库。开发人员可以利用这些库创建生产者和消费者,实现消息的发布与订阅。 7. **消息模式**:ActiveMQ支持点...

    activemq-all.5.14jar包

    activemq-all.5.14jar包,亲测可用!!

    linux 下apache-activemq.zip

    配置文件位于`/opt/apache-activemq-5.x.x/conf`目录下,主要关注`activemq.xml`。这个文件定义了ActiveMQ的核心配置,包括消息存储、网络连接等。根据需求,你可以调整这些设置以优化性能或安全性。 3. **启动和...

    ActiveMQ消息服务器 v5.17.6.zip

    2. **配置**:配置文件默认为conf/activemq.xml,可根据需求调整队列、主题、网络连接等设置。 3. **创建和消费消息**:使用JMS API或者ActiveMQ提供的客户端库,可以创建生产者发送消息,消费者接收消息。 4. **...

    ActiveMQ in Action pdf英文版+源代码

    Apache ActiveMQ in Action is a thorough, practical guide to implementing message-oriented systems in Java using ActiveMQ. The book lays out the core of ActiveMQ in clear language, starting with the ...

    activemq_lib.zip

    标题“activemq_lib.zip”指的是一个包含ActiveMQ相关库文件和示例程序的压缩包。这个压缩包可能用于在Windows环境下编译和运行ActiveMQ C++客户端。ActiveMQ是Apache软件基金会的一个开源项目,它提供了一个高效的...

Global site tag (gtag.js) - Google Analytics