Message416

Author itamar
Recipients
Date 2001-10-04.11:13:45
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
In Jython 2.1a3, doing a sha digest doesn't work, but a
 hexdigest does work:

Jython 2.1a3 on java1.3.1 (JIT: null)

Type "copyright", "credits" or "license" for more
information.
>>> import sha
>>> s = sha.sha()
>>> s.update("foo")
>>> s.digest()
Traceback (innermost last):
  File "<console>", line 1, in ?
java.lang.NullPointerException
	at org.python.modules.SHA1.digest(SHA1.java)
	at java.lang.reflect.Method.invoke(Native Method)
	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._pyx5.f$0(<console>:1)
	at org.python.pycode._pyx5.call_function(<console>)
	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
org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java)
	at
org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
	at
org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
	at
org.python.util.InteractiveConsole.push(InteractiveConsole.java)
	at
org.python.util.InteractiveConsole.interact(InteractiveConsole.java)
	at org.python.util.jython.main(jython.java)

java.lang.NullPointerException:
java.lang.NullPointerException
>>> s.hexdigest()
'0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'

History
Date User Action Args
2008-02-20 17:16:54adminlinkissue467826 messages
2008-02-20 17:16:54admincreate