Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SHA1 digest error for javax/mail/MessagingException

 
Arun Kumar Gaddam
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.lang.SecurityException: SHA1 digest error for javax/mail/MessagingException.class
at sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:194)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:201)
at java.util.jar.JarVerifier.update(JarVerifier.java:188)
at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:411)
at sun.misc.Resource.getBytes(Resource.java:97)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:256)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Exception in thread "main"


What could be the problem for this Exception ???

Thanks and Regards.
 
Seamus Minogue
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you post the code which is causing it?

Could be a problem with your implementation.
 
Arun Kumar Gaddam
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here is the code..........

[edit]Add code tags. CR[/edit]
[ July 04, 2008: Message edited by: Campbell Ritchie ]
 
Seamus Minogue
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing is really jumping out at me as the problem. Of course I have never tried sending mail using TLS authentication so its possible that the problem is coming from there.

http://blogs.sun.com/apanicker/entry/java_code_for_smtp_server

Here is a little snippet of code which looks promising. Perhaps by running them side by side you will have some luck in finding your problem.

Just looking at it the only thing that really comes to mind is that the items you are putting in your props object are different than the example. It looks like you are not specifying mail.smtp.starttls.enable to be true.

Anyway hope this helps. If not someone else on here has probably done a send mail application using TLS and might be able to point out the exact problem where I cannot.

Good Luck
 
Paul Clapham
Sheriff
Pie
Posts: 20719
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That looks a lot more complicated than the example in the JavaMail FAQ. Are you sure all those properties are really necessary?
 
Campbell Ritchie
Sheriff
Posts: 48363
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Clapham:
That looks a lot more complicated than the example in the JavaMail FAQ. Are you sure all those properties are really necessary?
Also, as I suspected earlier, more complicated than a beginner's question. We have another forum where Java mail is discussed, so I think I ought to move you there . . .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic