I have come across this situation once [1] ... and this seems to be due to a problem with the JVM that you use.
Thanks, Ruchith [1] http://www.wso2.net/2006/03/some_problems (you will have to register and login to see the responses to the question) On 5/24/06, Kar, Sagar (Genworth, Contractor) <[EMAIL PROTECTED]> wrote:
I was now trying out the security sample that comes with Axis2 std dist. I am getting the following exception. Have anyone come across similar exception. Digging into the code source I find the place where the null pointer is being thrown.... MessageDigest md5 = null; try { md5 = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException e) { //System.out.println("Error: " + e); //todo heve to be properly handle } md5.update(sb.toString().getBytes()); md5 is null. If I create a simple java class with just a single statement of MessageDigest.getInstance("MD5"); everything works fine. Any idea why MessageDigest.getInstance("MD5") might be returning a null? Exception in thread "main" java.lang.NullPointerException at org.apache.axiom.om.util.UUIDGenerator.getInitialUUID(UUIDGenerator.java :76) at org.apache.axiom.om.util.UUIDGenerator.getUUID(UUIDGenerator.java:46) at
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]