无法加载属性文件amqp:

时间:2015-12-04 01:48:42

标签: java apache jms jndi

我正在使用qpid jms,我是一个客户端,并且在Eclipse中使用简单的字母组合而不是Maven或其他模块。

Exception in thread "main" javax.naming.NamingException: Unable to load property file: amqp://192.168.130.1:5672. [Root exception is java.io.FileNotFoundException: amqp:\192.168.130.1:5672 (?????????????????????? ???????????????)]
    at org.apache.qpid.jms.jndi.JmsInitialContextFactory.getInitialContext(JmsInitialContextFactory.java:109)
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.init(Unknown Source)
    at javax.naming.InitialContext.<init>(Unknown Source)
    at enri.fixm301.semilive.publisher.MessagePublisher.getInitialContext(MessagePublisher.java:134)
    at enri.fixm301.semilive.publisher.MessagePublisher.startConnection(MessagePublisher.java:138)
    at enri.fixm301.semilive.publisher.Publish.main(Publish.java:38)
Caused by: java.io.FileNotFoundException: amqp:\192.168.130.1:5672 (?????????????????????? ???????????????)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at org.apache.qpid.jms.jndi.JmsInitialContextFactory.getInitialContext(JmsInitialContextFactory.java:92)
    ... 7 more

0 个答案:

没有答案