java.lang.LinkageError: loader constraints violated when linking javax/mail/Address class - with any from address being used to send mail via smtp
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rachel_Andrew
Posted On:   Wednesday, April 23, 2003 06:57 AM

If I specify any valid address in the 'from' part of sending a message I get an error: 08:08:18,115 ERROR [Engine] ----- Root Cause ----- java.lang.LinkageError: loader constraints violated when linking javax/mail/Address class at javax.mail.Transport.send0(Transport.java:155) at javax.mail.Transport.send(Transport.java:81) this occurs on my hosting company's server but not on my local one. Any ideas about what is going on here? The application is running on JBoss and emails send fine from my local server. If there is nothing in the from address I get "07:58:18,559 ERROR [STDERR] javax.mail.internet.AddressException: Illegal address in string `   More>>

If I specify any valid address in the 'from' part of sending a message I get an error:

08:08:18,115 ERROR [Engine] ----- Root Cause -----
java.lang.LinkageError: loader constraints violated when linking javax/mail/Address class

at javax.mail.Transport.send0(Transport.java:155)

at javax.mail.Transport.send(Transport.java:81)

this occurs on my hosting company's server but not on my local one. Any ideas about what is going on here? The application is running on JBoss and emails send fine from my local server.

If there is nothing in the from address I get

"07:58:18,559 ERROR [STDERR] javax.mail.internet.AddressException: Illegal address in string ``''" which I presume is because from is empty but at least it doesn't error to the screen ...

TIA

Rachel

   <<Less

Re: java.lang.LinkageError: loader constraints violated when linking javax/mail/Address class - with any from address being used to send mail via smtp

Posted By:   Christopher_Koenigsberg  
Posted On:   Wednesday, April 23, 2003 07:47 AM

Search through FAQ's/Forums for your error string.



e.g. try http://www.jguru.com/forums/view.jsp?EID=1043426, where it says "...This happens when you have a version conflict between two .class files in separate .jar files.


Try searching your classpath for another .jar file containing another implementation (version) of the same and compare their dates. ..."

About | Sitemap | Contact