RMI를 통해 서버 클라이언트 - 서버 응용 프로그램에 호출하는로드 러너 스크립트를 재생하려고합니다. RMI 서비스와 레지스트리는 다른 응용 프로그램이 연결하여 제대로 작동 할 수 있으므로 서버에서 잘 실행됩니다. 나는 'MalformedURLException가'를 seing하고LoadRunner 스크립트를 재생할 때 RMIRegisty에 연결하는 동안 MalformdURLException이 발생합니다.
Virtual User Script started at : 2014-03-13 11:03:29
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Actions.
java.rmi.registry.LocateRegistry.getRegistry("mycompamny.abc.xyz.com", 25002, [RMIClientSocketFactory])
sun.rmi.registry.RegistryImpl_Stub.lookup("XMLS")
Error: System.err: java.net.MalformedURLException--Error
System.err: at java.net.URL.<init>(URL.java:601)--Error
System.err: at java.net.URL.<init>(URL.java:464)--Error
System.err: at java.net.URL.<init>(URL.java:413)--Error
System.err: at murex.shared.fs.Connection.<init>(Connection.java:43)--Error
System.err: at murex.shared.property.Properties.fillRMIProperties(Properties.java:231)--Error
System.err: at murex.shared.property.Properties.getObjProperty(Properties.java:91)--Error
System.err: at murex.shared.property.Properties.getProperty(Properties.java:80)--Error
System.err: at murex.apps.middleware.client.core.server.transport.rpc.tcp.socket.SocketUtilities.setSocket(SocketUtilities.java:81)--Error
System.err: at murex.apps.middleware.client.core.server.transport.rpc.tcp.socket.CompressedRMISocketFactory.createSocket(CompressedRMISocketFactory.java:29)--Error
System.err: at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)--Error
System.err: at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)--Error
System.err: at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)--Error
System.err: at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)--Error
System.err: at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)--Error
System.err: at Actions.action(Actions.java:105)--Error
Error: System.err: java.lang.NullPointerException--Error
System.err: at murex.apps.middleware.client.core.server.transport.rpc.tcp.socket.CompressedSocket.getOutputStream(CompressedSocket.java:67)--Error
System.err: at sun.rmi.transport.tcp.TCPConnection.getOutputStream(TCPConnection.java:66)--Error
System.err: at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:202)--Error
System.err: at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)--Error
System.err: at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)--Error
System.err: at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)--Error
System.err: at Actions.action(Actions.java:105)--Error
Error: java.lang.NullPointerException
Error: at murex.apps.middleware.client.core.server.transport.rpc.tcp.socket.CompressedSocket.getOutputStream(CompressedSocket.java:67)
at sun.rmi.transport.tcp.TCPConnection.getOutputStream(TCPConnection.java:66)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:202)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at Actions.action(Actions.java:105)
Abort was called from an action.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
하지만 우리가 전달하는 URL은 괜찮 :
나는로드 러너 스크립트를 재생하려고
, 나는 스택 트레이스 아래 얻고있다. 이 문제를 해결하도록 도와주세요.
전달하는 URL은 정확히 무엇입니까? '괜찮습니다'라고 생각할 수도 있지만, 불행히도 Java는 여러분에게 동의하지 않습니다. – EJP
예, 포럼에 약간 마스크를 붙 였지만 URL은 괜찮습니다. 다른 내부 도구는 동일한 URL을 사용하여 연결하고 있으며 ping 할 수도 있습니다. – user2381731
아니요, URL이 '잘'아니기 때문에 예외가 발생하지 않습니다. 이것을 받아 들여야하고, 반대 주장을 중지해야합니다. * URL은 무엇입니까? * murex.shared.fs.Connection에서 생성되는 URL입니다. (Connection.java:43) 생성자? –
EJP