Forum Discussion

claesr's avatar
14 years ago

loadUI agents accessable from GUI, but not from command line

Hi!

When running distributed tests from the loadUI GUI the load agents works as intended, however when I try to run the same test via the command line tool the fail every time, even before starting the test

loadUI
====
15:28:46,140 DEBUG [ClientSocketMessageEndpoint] Handshake completed! javax.net.ssl.HandshakeCompletedEvent[source=1c1ddde[SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA: Socket[addr=172.22.22.214/172.22.22.214,port=8443,localport=4903]]]
15:28:46,140 DEBUG [ClientSocketMessageEndpoint] The Certificates used by peer
15:28:46,140 DEBUG [ClientSocketMessageEndpoint] CN=com.smartbear.loadui, OU=Sweden, O=SmartBear, C=SE
15:28:46,140 DEBUG [ClientSocketMessageEndpoint] Peer host is 172.22.22.214
15:28:46,140 DEBUG [ClientSocketMessageEndpoint] Cipher is SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA
15:28:46,140 DEBUG [ClientSocketMessageEndpoint] Protocol is TLSv1
15:28:46,140 DEBUG [ClientSocketMessageEndpoint] ID is 35905843637282061314878447342570834766019226473498929983628792743055875259210
15:28:46,140 DEBUG [ClientSocketMessageEndpoint] Session created in 1331821725031
15:28:46,140 DEBUG [ClientSocketMessageEndpoint] Session accessed in 1331821726140
15:28:47,453 DEBUG [ClientSocketMessageEndpoint] Handshake completed! javax.net.ssl.HandshakeCompletedEvent[source=16ba25c[SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA: Socket[addr=172.22.22.214/172.22.22.214,port=8443,localport=4905]]]
15:28:47,453 DEBUG [ClientSocketMessageEndpoint] The Certificates used by peer
15:28:47,453 DEBUG [ClientSocketMessageEndpoint] CN=com.smartbear.loadui, OU=Sweden, O=SmartBear, C=SE
15:28:47,453 DEBUG [ClientSocketMessageEndpoint] Peer host is 172.22.22.214
15:28:47,453 DEBUG [ClientSocketMessageEndpoint] Cipher is SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA
15:28:47,453 DEBUG [ClientSocketMessageEndpoint] Protocol is TLSv1
15:28:47,453 DEBUG [ClientSocketMessageEndpoint] ID is 35905843637282061314878447342570834766019226473498929983628792743055875259210
15:28:47,453 DEBUG [ClientSocketMessageEndpoint] Session created in 1331821725031
15:28:47,453 DEBUG [ClientSocketMessageEndpoint] Session accessed in 1331821727453
15:28:47,453 DEBUG [ChannelRoutingSupport] Adding listener: com.eviware.loadui.util.messaging.MessageEndpointSupport$MessageListenerProxy@bd4a75 for channel: /**
15:28:47,796 DEBUG [ModelItemImpl] Agent connected, setting max threads: 1000
15:28:47,796 DEBUG [ProjectItemImpl] Agent AgentItemImpl[label=172.22.22.214] ready: true
15:28:47,796 DEBUG [ProjectItemImpl] Send message assign: Virtual User Scenario
15:28:48,125 INFO [CommandRunner] Awaiting TestCase initialization...
15:28:48,218 DEBUG [ModelItemImpl] AgentItemImpl[label=172.22.22.214] TimeDiff updated to -35549. RTT: 422, times: 1331821727796, 1331821763556, 1331821728218
15:28:48,218 DEBUG [ProjectItemImpl] Agent AgentItemImpl[label=172.22.22.214] has requested a Scenario: 995af669-0f0f-47bf-b9a3-f8f7fd6f51c6, sending...
15:28:48,250 DEBUG [ModelItemImpl] AgentItemImpl[label=172.22.22.214] TimeDiff updated to -35547. RTT: 32, times: 1331821728218, 1331821763781, 1331821728250
15:28:50,390 ERROR [ClientSocketMessageEndpoint] Sending of messages failed:
java.net.SocketException: Socket is closed
at sun.security.ssl.SSLSocketImpl.checkEOF(Unknown Source)
at sun.security.ssl.SSLSocketImpl.checkWrite(Unknown Source)
at sun.security.ssl.AppOutputStream.write(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.writeBlockHeader(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(Unknown Source)
at java.io.ObjectOutputStream.writeFatalException(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at com.eviware.loadui.impl.messaging.socket.ClientSocketMessageEndpoint$MessageSender.run(ClientSocketMessageEndpoint.java:283)
at java.lang.Thread.run(Unknown Source)
15:28:50,390 DEBUG [ClientSocketMessageEndpoint] MessageEndpoint disconnected!


loadUI-agent
=========
15:29:25,544 INFO [ControllerImpl] Started scene: Virtual User Scenario
15:29:25,899 DEBUG [ReferenceToFileConverter] getOrCreate() 94f8f169e0b5a5e9aab4f9c1cc1794f0
15:29:25,901 DEBUG [ReferenceToFileConverter] Adding 94f8f169e0b5a5e9aab4f9c1cc1794f0 to filesInProgress
15:29:25,902 DEBUG [ChannelRoutingSupport] Adding listener: com.eviware.loadui.impl.conversion.ReferenceToFileConverter$FileReceiver@2e8ce2 for channel: /com.ev
iware.loadui.impl.conversion.ReferenceToFileConverter
15:29:25,907 DEBUG [ReferenceToFileConverter] waiting for 94f8f169e0b5a5e9aab4f9c1cc1794f0
15:29:25,920 ERROR [ServerSocketMessageEndpoint] Connection closed:
java.io.StreamCorruptedException: unexpected EOF in middle of data block
at java.io.ObjectInputStream$BlockDataInputStream.refill(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.read(Unknown Source)
at java.io.DataInputStream.readInt(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readInt(Unknown Source)
at java.io.ObjectInputStream.readInt(Unknown Source)
at java.util.HashMap.readObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at com.eviware.loadui.impl.messaging.socket.ServerSocketMessageEndpoint$MessageReceiver.run(ServerSocketMessageEndpoint.java:157)
at java.lang.Thread.run(Unknown Source)
15:29:25,940 INFO [ControllerImpl] Stopping scene: Virtual User Scenario
15:29:25,942 DEBUG [ServerSocketMessageEndpoint] Connection closed: 172.22.22.236/172.22.22.236:4905
15:29:25,942 ERROR [ControllerImpl] Error in VU Scenario Virtual User Scenario, when running command: null. Restarting...
java.lang.NullPointerException
at com.google.common.collect.ImmutableSet.construct(ImmutableSet.java:168)
at com.google.common.collect.ImmutableSet.copyFromCollection(ImmutableSet.java:345)
at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:329)
at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:271)

Since this does work when running it via the GUI, it seems to be a bug in the command line version of loadUI.

/Claes
No RepliesBe the first to reply