11

yhpan1507 2003-09-15 01:42:08
我在網頁上進行一些更改後,然後保存1.py, 然後在打開這個文件,再運行,卻失敗,請問偉甚麼.
運行後;
Testing URL: http://172.17.194.204/index.shtml

Response code: 401

Traceback (innermost last):

File "<string>", line 457, in ?

File "<string>", line 19, in runTest

junit.framework.AssertionFailedError: expected:<200> but was:<401>


at junit.framework.Assert.fail(Assert.java:51)


at junit.framework.Assert.failNotEquals(Assert.java:234)


at junit.framework.Assert.assertEquals(Assert.java:68)


at junit.framework.Assert.assertEquals(Assert.java:121)


at junit.framework.Assert.assertEquals(Assert.java:127)


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:324)


at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)


at org.python.core.PyMethod.__call__(PyMethod.java)


at org.python.core.PyObject.__call__(PyObject.java)


at org.python.core.PyInstance.invoke(PyInstance.java)


at org.python.pycode._pyx1.runTest$3(<string>:19)


at org.python.pycode._pyx1.call_function(<string>)


at org.python.core.PyTableCode.call(PyTableCode.java)


at org.python.core.PyTableCode.call(PyTableCode.java)


at org.python.core.PyFunction.__call__(PyFunction.java)


at org.python.core.PyInstance.invoke(PyInstance.java)


at org.python.pycode._pyx1.f$0(<string>:457)


at org.python.pycode._pyx1.call_function(<string>)


at org.python.core.PyTableCode.call(PyTableCode.java)


at org.python.core.PyCode.call(PyCode.java)


at org.python.core.Py.runCode(Py.java)


at org.python.core.Py.exec(Py.java)


at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)


at com.bitmechanic.maxq.RunTestDialog.run(RunTestDialog.java:95)


at java.lang.Thread.run(Thread.java:536)




junit.framework.AssertionFailedError: junit.framework.AssertionFailedError: expected:<200> but was:<401>



at org.python.core.Py.JavaError(Py.java)

at org.python.core.Py.JavaError(Py.java)

at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)

at org.python.core.PyMethod.__call__(PyMethod.java)

at org.python.core.PyObject.__call__(PyObject.java)

at org.python.core.PyInstance.invoke(PyInstance.java)

at org.python.pycode._pyx1.runTest$3(<string>:19)

at org.python.pycode._pyx1.call_function(<string>)

at org.python.core.PyTableCode.call(PyTableCode.java)

at org.python.core.PyTableCode.call(PyTableCode.java)

at org.python.core.PyFunction.__call__(PyFunction.java)

at org.python.core.PyInstance.invoke(PyInstance.java)

at org.python.pycode._pyx1.f$0(<string>:457)

at org.python.pycode._pyx1.call_function(<string>)

at org.python.core.PyTableCode.call(PyTableCode.java)

at org.python.core.PyCode.call(PyCode.java)

at org.python.core.Py.runCode(Py.java)

at org.python.core.Py.exec(Py.java)

at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)

at com.bitmechanic.maxq.RunTestDialog.run(RunTestDialog.java:95)

at java.lang.Thread.run(Thread.java:536)
...全文
38 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧