为了账号安全,请及时绑定邮箱和手机立即绑定

第一次使用idea,帮忙看一下以下报错什么原因

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

SLF4J: Defaulting to no-operation (NOP) logger implementation

SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

Exception in thread "main" javax.jms.JMSException: Could not connect to broker URL: tcp://127.0.0.1:61616. Reason: java.lang.IllegalArgumentException: hostname can't be null

at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)

at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:293)

at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:238)

at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:184)

at com.fhw.jms.queue.AppProducer.main(AppProducer.java:19)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)

Caused by: java.lang.IllegalArgumentException: hostname can't be null

at java.net.InetSocketAddress.checkHost(Unknown Source)

at java.net.InetSocketAddress.<init>(Unknown Source)

at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:488)

at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:467)

at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)

at org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:132)

at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)

at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)

at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)

at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)

at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:273)

... 8 more


正在回答

2 回答

已解决

0 回复 有任何疑惑可以回复我~

建立生产者运行的时候

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

第一次使用idea,帮忙看一下以下报错什么原因

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信