Jms 在Websphere中将JMeter与服务集成总线(SI总线)一起使用

Jms 在Websphere中将JMeter与服务集成总线(SI总线)一起使用,jms,websphere,jmeter,Jms,Websphere,Jmeter,我试图在JMeter中使用JMS点对点来向Websphere中的SI总线队列发送消息 我相当肯定我有以下正确答案: QueueConnection Factory JNDI name Request queue JNDI Properties, Initial Context Factory set to com.ibm.websphere.naming.WsnInitialContextFactory 我猜到了网址: iiop://ipaddressofWebSphereServer

我试图在JMeter中使用JMS点对点来向Websphere中的SI总线队列发送消息

我相当肯定我有以下正确答案:

QueueConnection Factory  
JNDI name Request queue  
JNDI Properties, Initial Context Factory set to com.ibm.websphere.naming.WsnInitialContextFactory
我猜到了网址:

iiop://ipaddressofWebSphereServer:2809
运行采样器时,jmeter.log中出现以下错误:

2013/03/14 09:09:01 ERROR - jmeter.protocol.jms.sampler.JMSSampler: Error getting WsnNameService properties javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: E07  completed: No]
    at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1444)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:951)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:866)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:546)
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:123)
    at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:798)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
    at javax.naming.InitialContext.lookup(InitialContext.java:436)
    at org.apache.jmeter.protocol.jms.sampler.JMSSampler.threadStarted(JMSSampler.java:303)
    at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:597)
    at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:1001)
    at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:1002)
    at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:986)
    at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:566)
    at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:554)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:252)
    at java.lang.Thread.run(Thread.java:736)
Caused by: org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible  vmcid: IBM  minor code: E07  completed: No
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1270)
    at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1330)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1158)
    at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1296)
    at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1877)
    at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1252)
    at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
    at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1441)
    ... 17 more
Caused by: java.net.UnknownHostException: ipaddressofWebSphereServer
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:207)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
    at java.net.Socket.connect(Socket.java:539)
    at java.net.Socket.connect(Socket.java:488)
    at java.net.Socket.<init>(Socket.java:385)
    at java.net.Socket.<init>(Socket.java:199)
    at com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:270)
    at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)
    at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:436)
    at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
    at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:89)
    at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
    at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:219)
    at com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1974)
    at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:1999)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1180)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1266)
    ... 25 more

2013/03/14 09:09:01 WARN  - jmeter.protocol.jms.sampler.JMSSampler: Session may not be null while creating message java.lang.IllegalStateException: Session may not be null while creating message
    at org.apache.jmeter.protocol.jms.sampler.JMSSampler.createMessage(JMSSampler.java:179)
    at org.apache.jmeter.protocol.jms.sampler.JMSSampler.sample(JMSSampler.java:140)
    at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:428)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
    at java.lang.Thread.run(Thread.java:736)
2013/03/14 09:09:01错误-jmeter.protocol.jms.sampler.JMSSampler:获取WsnNameService属性javax.naming.NamingException:获取WsnNameService属性时出错[根异常为org.omg.CORBA.TRANSIENT:初始和转发IOR不可访问vmcid:IBM次要代码:E07完成:否]
位于com.ibm.ws.naming.util.WsnInitCtxFactory.mergewsnnsprroperties(WsnInitCtxFactory.java:1444)
位于com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:951)
在com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:866)
位于com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:546)
位于com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:123)
位于com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:798)
位于com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
位于com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
在javax.naming.InitialContext.lookup(InitialContext.java:436)中
位于org.apache.jmeter.protocol.jms.sampler.JMSSampler.threadStarted(JMSSampler.java:303)
位于org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:597)
位于org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:1001)
位于org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:1002)
位于org.apache.jorphan.collections.HashTree.traverse(HashTree.java:986)
位于org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:566)
位于org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:554)
位于org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:252)
运行(Thread.java:736)
原因:org.omg.CORBA.TRANSIENT:初始和转发的IOR不可访问vmcid:IBM次要代码:E07已完成:否
位于com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1270)
位于com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1330)
位于com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1158)
位于com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1296)
com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1877)
位于com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1252)
在org.omg.CORBA.portable.ObjectImpl.\u请求中(ObjectImpl.java:458)
位于com.ibm.WsnBootstrap.\u WsnNameServiceStub.getProperties(\u WsnNameServiceStub.java:38)
位于com.ibm.ws.naming.util.WsnInitCtxFactory.mergewsnnsprroperties(WsnInitCtxFactory.java:1441)
... 还有17个
原因:java.net.UnknownHostException:ipaddressofWebSphereServer
位于java.net.PlainSocketImpl.connect(PlainSocketImpl.java:207)
位于java.net.socksocketimpl.connect(socksocketimpl.java:377)
位于java.net.Socket.connect(Socket.java:539)
位于java.net.Socket.connect(Socket.java:488)
位于java.net.Socket(Socket.java:385)
位于java.net.Socket(Socket.java:199)
位于com.ibm.ws.orbempl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:270)
在com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)上
在com.ibm.ws.orbempl.transport.WSTransport.getConnection(WSTransport.java:436)上
位于com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
位于com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:89)
位于com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
位于com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:219)
位于com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1974)
com.ibm.rmi.corba.ClientDelegate.\u createRequest(ClientDelegate.java:1999)
位于com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1180)
位于com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1266)
... 25多
2013/03/14 09:09:01警告-jmeter.protocol.jms.sampler.JMSSampler:创建消息时会话可能不为null java.lang.IllegalStateException:创建消息时会话可能不为null
位于org.apache.jmeter.protocol.jms.sampler.JMSSampler.createMessage(JMSSampler.java:179)
位于org.apache.jmeter.protocol.jms.sampler.JMSSampler.sample(JMSSampler.java:140)
位于org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:428)
位于org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
运行(Thread.java:736)
我在orbtrc日志中得到这个错误:

09:09:01.878 com.ibm.ws.orbimpl.transport.WSTCPTransportConnection connect:403 Thread Group 1-1 ORBRas[default]  java.net.UnknownHostException: <i><b> ipaddressofWebSphereServer</i></b>
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:207)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
at java.net.Socket.connect(Socket.java:539)
at java.net.Socket.connect(Socket.java:488)
at java.net.Socket.<init>(Socket.java:385)
at java.net.Socket.<init>(Socket.java:199)
at com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:270)
at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)
at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:436)
at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:89)
at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:219)
at com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1974)
at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:1999)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1180)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1266)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1330)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1158)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1296)
at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1877)
at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1252)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1441)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:951)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:866)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:546)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:123)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:798)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
at javax.naming.InitialContext.lookup(InitialContext.java:436)
at org.apache.jmeter.protocol.jms.sampler.JMSSampler.threadStarted(JMSSampler.java:303)
at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:597)
at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:1001)
at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:1002)
at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:986)
at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:566)
at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:554)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:252)
at java.lang.Thread.run(Thread.java:736)
09:09:01.878 com.ibm.ws.orbimpl.transport.WSTCPTTransportConnection连接:403线程组1-1 ORBRas[默认值]java.net.UnknownHostException:ipaddressofWebSphereServer
位于java.net.PlainSocketImpl.connect(PlainSocketImpl.java:207)
位于java.net.socksocketimpl.connect(socksocketimpl.java:377)
位于java.net.Socket.connect(Socket.java:539)
位于java.net.Socket.connect(Socket.java:488)
位于java.net.Socket(Socket.java:385)
位于java.net.Socket(Socket.java:199)
位于com.ibm.ws.orbempl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:270)
在com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)上
在com.ibm.ws.orbempl.transport.WSTransport.getConnection(WSTransport.java:436)上
位于com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
位于com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:89)
位于com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
位于com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:219)
位于com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1974)
在com.ibm.rmi.corba.ClientDelegate.\u createRequest(C