Method javax.xml.crypto.dsig.XMLSignature.sig(XMLSignContext) throw NullPointerException. See simple test in attach. See stack exception trace in log file in attach. Regression tests fail: javax/xml/crypto/dsig/GenerationTests.java