Java. Io. filenotfoundexception: http: // 10.10.112.111: 8080/cscp/container/A/B/C/D/123
At sun. Reflect. nativeconstructoraccessorimpl. newinstance0 (native method)
At sun. Reflect. nativeconstruct%cessorimpl. newinstance (nativeconstruct%cessorimpl. Java: 39)
At sun. Reflect. delegatingconstruct%cessorimpl. newinstance (delegatingconstruct%cessorimpl. Java: 27)
At java. Lang. Reflect. constructor. newinstance (constructor. Java: 513)
At sun.net. www. Protocol. http. httpurlconnection $ 6.run( httpurlconnection. Java: 1298)
At java. Security. accesscontroller. doprivileged (native method)
At sun.net. www. Protocol. http. httpurlconnection. getchainedexception (httpurlconnection. Java: 1292)
At sun.net. www. Protocol. http. httpurlconnection. getinputstream (httpurlconnection. Java: 946)
At com. huadi. CSMP. Client. Client. _ httpaction (client. Java: 227)
At com. huadi. CSMP. Client. Client. httpactionforstring (client. Java: 308)
At com. huadi. CSMP. Client. dataoperate. getcontainerinfo (dataoperate. Java: 35)
At com. huadi. CSMP. Client. dataoperatetest. testgetcontainermetadatanull (dataoperatetest. Java: 31)
At sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)
At sun. Reflect. nativemethodaccessorimpl. Invoke (nativemethodaccessorimpl. Java: 39)
At sun. Reflect. delegatingmethodaccessorimpl. Invoke (delegatingmethodaccessorimpl. Java: 25)
At java. Lang. Reflect. method. Invoke (method. Java: 597)
At org. JUnit. Runners. model. frameworkmethod $1. runreflectivecall (frameworkmethod. Java: 44)
At org. JUnit. Internal. Runners. model. reflectivecallable. Run (reflectivecallable. Java: 15)
At org. JUnit. Runners. model. frameworkmethod. invokeexplosively (frameworkmethod. Java: 41)
At org. JUnit. Internal. Runners. Statements. invokemethod. Evaluate (invokemethod. Java: 20)
At org. JUnit. Runners. parentrunner. runleaf (parentrunner. Java: 263)
At org. JUnit. Runners. blockjunit4classrunner. runchild (blockjunit4classrunner. Java: 69)
At org. JUnit. Runners. blockjunit4classrunner. runchild (blockjunit4classrunner. Java: 48)
At org. JUnit. Runners. parentrunner $ 3.run( parentrunner. Java: 231)
At org. JUnit. Runners. parentrunner $1. Schedule (parentrunner. Java: 60)
At org. JUnit. Runners. parentrunner. runchildren (parentrunner. Java: 229)
At org. JUnit. Runners. parentrunner. Access $000 (parentrunner. Java: 50)
At org. JUnit. Runners. parentrunner $2. Evaluate (parentrunner. Java: 222)
At org. JUnit. Runners. parentrunner. Run (parentrunner. Java: 292)
At org. Eclipse. jdt. Internal. junit4.runner. junit4testreference. Run (junit4testreference. Java: 49)
At org. Eclipse. jdt. Internal. JUnit. Runner. testexecution. Run (testexecution. Java: 38)
At org. Eclipse. jdt. Internal. JUnit. Runner. remotetestrunner. runtests (remotetestrunner. Java: 467)
At org. Eclipse. jdt. Internal. JUnit. Runner. remotetestrunner. runtests (remotetestrunner. Java: 683)
At org. Eclipse. jdt. Internal. JUnit. Runner. remotetestrunner. Run (remotetestrunner. Java: 390)
At org. Eclipse. jdt. Internal. JUnit. Runner. remotetestrunner. Main (remotetestrunner. Java: 197)
Caused by: Java. Io. filenotfoundexception: http: // 10.10.112.111: 8080/cscp/container/A/B/C/D/123
At sun.net. www. Protocol. http. httpurlconnection. getinputstream (httpurlconnection. Java: 1241)
At java.net. httpurlconnection. getresponsecode (httpurlconnection. Java: 373)
At com. huadi. CSMP. Client. Client. _ httpaction (client. Java: 219)
... 26 more
"
Int retcode = conn. getresponsecode ();
// Receive. Use recin to determine whether the returned stream format is required.
If (needrecin)
{
If (retcode> = 400)
{
Return conn. geterrorstream ();
}
Return conn. getinputstream ();
} Else {}