This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes java.security.AccessControlContext error in Thread Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "java.security.AccessControlContext error in Thread" Watch "java.security.AccessControlContext error in Thread" New topic
Author

java.security.AccessControlContext error in Thread

xiaorui chen
Greenhorn

Joined: Sep 05, 2000
Posts: 9
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)
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: java.security.AccessControlContext error in Thread
 
Similar Threads
Start: Applet not initialized
what is the potential problem?
Problem with JDO on google app engine
AccessControlException (Linux)
java.lang.NoSuchMethodError