• Post Reply Bookmark Topic Watch Topic
  • New Topic

I am getting an Exception of EXCEPTION_ACCESS_VIOLATION in Tomcat?plz help  RSS feed

 
hari anagani
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a servlet continously to send mail with time peroid gap of 6min. I am synchronizing the
synchronized(this) { timer.scheduleAtFixedRate(task, initialDelay, period); }
and also this method
public void synchronized sendMail(){}
after a succesfully performing the first scedule it is giving me the following error..
An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x99940EF Function=[Unknown.] Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at sun.jdbc.odbc.JdbcOdbc.driverConnect(Native Method) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2485) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:320) at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:163) - locked <02BDCC10> (a sun.jdbc.odbc.JdbcOdbcDriver) at java.sql.DriverManager.getConnection(DriverManager.java:515) - locked <07125838> (a java.lang.Class) at java.sql.DriverManager.getConnection(DriverManager.java:174) - locked <07125838> (a java.lang.Class) at org.apache.jsp.ec$jsp._jspService(ec$jsp.java:89) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.jav a:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationF ilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCha in.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.jav a:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:56 6) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.jav a:215) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:56 6) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase. java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:56 4) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:24 6) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:56 4) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2366) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:56 6) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:56 4) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:56 6) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1 005) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1098) at java.lang.Thread.run(Thread.java:539) Dynamic libraries: Local Time = Thu Dec 06 10:44:09 2001 Elapsed Time = 15 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.0-beta2-b77 mixed mode) #
what's the problem in my code?plz help Thanks in Advance
 
Tim Holloway
Bartender
Posts: 18717
72
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You encountered a bug in the odbc driver. The jdbc-odbc bridge is NOT a good choice for use with a webserver - it isn't threadsafe and can lead to corruption of your database. A lot of people have been developing apps with Access (or more rarely FoxPro) as the database using the jdbc-odbc bridge. It works in a controlled test environment, but in the real world, sooner or later you're likely to start crashing.
There's a Tomcat forum on the JavaRanch where you can find better help for Tomcat questions - the EJB experts hang out in this one.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!