This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.security.AccessControlContext error in Thread  RSS feed

 
xiaorui chen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello gurus,
I am using thread in one of my mail class (SMail). Most of the time, this class works fine in servlets.
Occasionally I get this error. It is not really coming from my SMail class. It seems something wrong in thread itself.
Any suggestion is appreciated. The message is below.
> java.lang.NullPointerException
> at
> java.security.AccessControlContext.optimize(AccessControlContext.java,
> Compiled Code)
> at java.security.AccessController.getContext(AccessController.java,
> Compiled Code)
> at java.lang.Thread.init(Thread.java, Compiled Code)
> at java.lang.Thread.(Thread.java, Compiled Code)
The full error message is also attached here

>
> java.lang.NullPointerException
> at
> java.security.AccessControlContext.optimize(AccessControlContext.java,
> Compiled Code)
> at java.security.AccessController.getContext(AccessController.java,
> Compiled Code)
> at java.lang.Thread.init(Thread.java, Compiled Code)
> at java.lang.Thread.(Thread.java, Compiled Code)
> at SMail.(SMail.java, Compiled Code)
> at EcardsSend.prepareEcardsAndEmail(EcardsSend.java, Compiled Code)
> at ButtonAction.processFinishedButton(ButtonAction.java, Compiled Code)
> at MemberSend.doPost(MemberSend.java, Compiled Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
> Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
> Code)
> at
> newatlanta.servletexec.ServletExec.CallServletService(ServletExec.java,
> Compiled Code)
> at
> newatlanta.servletexec.ServletExec.processServletRequest(ServletExec.java
> , Compiled Code)
> at newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java,
> Compiled Code)
> at newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java,
> Compiled Code)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!