You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kantartzis Vasilis <vk...@ote.gr> on 2004/11/15 12:36:07 UTC

compatible javamail vsersio n with tomcat-5.5.4

Hi all 
i am developing a web-based e-mail system.
i have encountred the following prioblem.

while testing the methods that post e-mails through a java stand alone application the code works fine 

When a call the same methods from a servlet i get the following message in tomcat logs 
java.lang.NullPointerException
	at javax.mail.internet.InternetAddress.parse(InternetAddress.java:569)
	at javax.mail.internet.InternetAddress.parse(InternetAddress.java:529)
	at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:65)
	at dms.servlet.ApController.assembleMessage(Unknown Source)
	at dms.servlet.ApController.getTableValues(Unknown Source)
	at dms.servlet.ApController.process(Unknown Source)
	at dms.servlet.ApController.doPost(Unknown Source)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:731)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Unknown Source)

could you please sugest a combination of tomcat and java mail that work well together.

i am using tomcat 5.5.4 as aservlet engine and javamail-1.3.2

thank you in advance 
Billy Kantartzis 

IT Specialist

OTE SA 

Operational Systems Branch 

Organisational and Quallity Devision 

99 Kifisias Ave 

15124,Marousi,

Athens ,Greece

Phone +30-210-6117266

email:vkanta@ote.gr


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: compatible javamail vsersio n with tomcat-5.5.4

Posted by David Smith <dn...@cornell.edu>.
I've been using javamail w/ Sun's JDK 1.4.2 no problem.  The stack trace 
you posted indicates you attempted to construct a new InternetAddress 
object with a null for the email address string.  Could you double check 
what's being passed to the constructor and post a relevant snippet of 
your code?

--David

Kantartzis Vasilis wrote:

>Hi all 
>i am developing a web-based e-mail system.
>i have encountred the following prioblem.
>
>while testing the methods that post e-mails through a java stand alone application the code works fine 
>
>When a call the same methods from a servlet i get the following message in tomcat logs 
>java.lang.NullPointerException
>	at javax.mail.internet.InternetAddress.parse(InternetAddress.java:569)
>	at javax.mail.internet.InternetAddress.parse(InternetAddress.java:529)
>	at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:65)
>	at dms.servlet.ApController.assembleMessage(Unknown Source)
>	at dms.servlet.ApController.getTableValues(Unknown Source)
>	at dms.servlet.ApController.process(Unknown Source)
>	at dms.servlet.ApController.doPost(Unknown Source)
>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
>	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:731)
>	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
>	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>	at java.lang.Thread.run(Unknown Source)
>
>could you please sugest a combination of tomcat and java mail that work well together.
>
>i am using tomcat 5.5.4 as aservlet engine and javamail-1.3.2
>
>thank you in advance 
>Billy Kantartzis 
>
>IT Specialist
>
>OTE SA 
>
>Operational Systems Branch 
>
>Organisational and Quallity Devision 
>
>99 Kifisias Ave 
>
>15124,Marousi,
>
>Athens ,Greece
>
>Phone +30-210-6117266
>
>email:vkanta@ote.gr
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org