JmsTemplate.convertAndSend抛出JMS处理期间发生的未分类异常; javax.jms.JMSException:java.io.InterruptedIOException

时间:2016-04-25 08:15:48

标签: jms mule activemq spring-jms

当我尝试使用spring jms向我的mule组件中的public void actionPerformed(ActionEvent arg0) { String sLine; Vector<Score> scoreVec = new Vector<Score>(); //Here I am getting a FileNotFoundException for (new FileReader("scores.txt") try (BufferedReader in = new BufferedReader(new FileReader("scores.txt"))) { //Here I am getting an IOException for in.readLine() while ((sLine = in.readLine()) != null) { scoreVec.addElement(new Score(sLine)); } } catch (IOException exp) { exp.printStackTrace(); } //Placeholders until I get the rest of the program working System.out.println(scoreVec.get(1).name); System.out.println(scoreVec.get(1).country); } Queue发送消息时,我遇到了异常。

activemq

代码:

使用spring jms将消息发送到队列。在下面的行中获得异常。

java.io.InterruptedIOException 
        at org.apache.activemq.transport.WireFormatNegotiator.oneway(WireFormatNegotiator.java:102) 
        at org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:68) 
        at org.apache.activemq.transport.ResponseCorrelator.asyncRequest(ResponseCorrelator.java:81) 
        at org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:86) 
        at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1394) 
        at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1510) 
        at org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:325) 
        at org.springframework.jms.support.JmsAccessor.createSession(JmsAccessor.java:196) 
        at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:457) 
        at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:543) 
        at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:653)

请帮忙。

感谢。

0 个答案:

没有答案