[NETCONF-103] RestPerfClient spits NumberFormatException and hangs Created: 02/Dec/15 Updated: 15/Mar/19 Resolved: 11/Dec/15 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | netconf |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Jozef Behran | Assignee: | Jakub Morvay |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 4700 |
| Description |
|
Tested also with build 71 (no longer available in Nexus). Steps to reproduce: 1. touch edit.txt # so that some "edit content" can be read 2. java -Xmx1G -XX:MaxPermSize=256M -jar netconf-testtool-1.0.0-20151201.153854-78-rest-perf-client.jar --ip 10.25.2.9 --port 8181 --edits 10 --destination network-topology:network-topology/topology/topology-netconf/node/17830-sim-device/yang-ext:mount You will see (timestamps will vary): 11:06:38.924 [main] INFO o.o.n.t.t.c.http.perf.RestPerfClient - thread amount: 1 and the RestPerfClient then hangs. |
| Comments |
| Comment by Jozef Behran [ 02/Dec/15 ] |
|
It turns out the problem is here: --destination network-topology:network-topology/topology/topology-netconf/node/17830-sim-device/yang-ext:mount (note the missing leading slash in the argument) This causes the restperfclient to attempt to use this URL: (which is broken - note the missing "/" between the port number and the path), which causes it to crash in the URL handling code with the exception described in the bug (note the "8181network-topology:network-topology" string in the exception which is spanning exactly from the start of the port number to the first "/" in the broken URL). |
| Comment by Jakub Morvay [ 09/Dec/15 ] |