Tomcat Crapping out!

Posted on 2003-03-23
Medium Priority
Last Modified: 2010-04-01
Can anyone tell me what the heck could be causing this? I have changed some names of class files on the top 2 lines to "Protect the inocent".

I get the same error with Resin.


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x7800597f
Function name=strncpy

Current Java thread:
      at com.company.product.component.PRLogin(Native Method)
      at com.applix.product.component.PRLogin(component.java:58)
      at org.apache.jsp.w2k_0005flogin_0005fhandler_jsp._jspService(w2k_0005flogin_0005fhandler_jsp.java:88)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:202)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
      at java.lang.Thread.run(Thread.java:479)

Dynamic libraries:
0x00400000 - 0x00405000       c:\Program Files\JDK1.3.1_04\bin\java.exe
0x77F80000 - 0x77FFA000       C:\WINNT\system32\ntdll.dll
0x77DB0000 - 0x77E0B000       C:\WINNT\system32\ADVAPI32.dll
0x77E80000 - 0x77F31000       C:\WINNT\system32\KERNEL32.dll
0x77D30000 - 0x77DA1000       C:\WINNT\system32\RPCRT4.dll
0x78000000 - 0x78046000       C:\WINNT\system32\MSVCRT.dll
0x6D420000 - 0x6D4F7000       c:\Program Files\JDK1.3.1_04\jre\bin\hotspot\jvm.dll
0x77E10000 - 0x77E6F000       C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F79000       C:\WINNT\system32\GDI32.dll
0x77570000 - 0x775A0000       C:\WINNT\System32\WINMM.dll
0x6D220000 - 0x6D227000       c:\Program Files\JDK1.3.1_04\jre\bin\hpi.dll
0x6D3B0000 - 0x6D3BD000       c:\Program Files\JDK1.3.1_04\jre\bin\verify.dll
0x6D250000 - 0x6D266000       c:\Program Files\JDK1.3.1_04\jre\bin\java.dll
0x6D3C0000 - 0x6D3CD000       c:\Program Files\JDK1.3.1_04\jre\bin\zip.dll
0x6D340000 - 0x6D348000       C:\Program Files\jdk1.3.1_04\jre\bin\net.dll
0x75050000 - 0x75058000       C:\WINNT\System32\WSOCK32.dll
0x75030000 - 0x75043000       C:\WINNT\System32\WS2_32.DLL
0x75020000 - 0x75028000       C:\WINNT\System32\WS2HELP.DLL
0x782C0000 - 0x782CC000       C:\WINNT\System32\rnr20.dll
0x77980000 - 0x779A4000       C:\WINNT\System32\DNSAPI.DLL
0x77340000 - 0x77353000       C:\WINNT\System32\iphlpapi.dll
0x77520000 - 0x77525000       C:\WINNT\System32\ICMP.DLL
0x77320000 - 0x77337000       C:\WINNT\System32\MPRAPI.DLL
0x75150000 - 0x75160000       C:\WINNT\System32\SAMLIB.DLL
0x75170000 - 0x751BF000       C:\WINNT\System32\NETAPI32.DLL
0x77BE0000 - 0x77BEF000       C:\WINNT\System32\Secur32.dll
0x751C0000 - 0x751C6000       C:\WINNT\System32\NETRAP.dll
0x77950000 - 0x77978000       C:\WINNT\system32\WLDAP32.dll
0x77A50000 - 0x77B45000       C:\WINNT\system32\OLE32.DLL
0x779B0000 - 0x77A4B000       C:\WINNT\system32\OLEAUT32.DLL
0x773B0000 - 0x773DE000       C:\WINNT\System32\ACTIVEDS.DLL
0x77380000 - 0x773A2000       C:\WINNT\System32\ADSLDPC.DLL
0x77830000 - 0x7783E000       C:\WINNT\System32\RTUTILS.DLL
0x77880000 - 0x7790D000       C:\WINNT\System32\SETUPAPI.DLL
0x77C10000 - 0x77C6D000       C:\WINNT\System32\USERENV.DLL
0x774E0000 - 0x77512000       C:\WINNT\System32\RASAPI32.DLL
0x774C0000 - 0x774D1000       C:\WINNT\System32\RASMAN.DLL
0x77530000 - 0x77552000       C:\WINNT\System32\TAPI32.DLL
0x71780000 - 0x7180A000       C:\WINNT\system32\COMCTL32.DLL
0x70BD0000 - 0x70C34000       C:\WINNT\system32\SHLWAPI.DLL
0x77360000 - 0x77379000       C:\WINNT\System32\DHCPCSVC.DLL
0x777E0000 - 0x777E8000       C:\WINNT\System32\winrnr.dll
0x777F0000 - 0x777F5000       C:\WINNT\System32\rasadhlp.dll
0x74FD0000 - 0x74FED000       C:\WINNT\system32\msafd.dll
0x75010000 - 0x75017000       C:\WINNT\System32\wshtcpip.dll
0x10000000 - 0x10094000       C:\Program Files\Apache Group\Tomcat 4.1\webapps\Integra\libs\EntWebBean.dll
0x77920000 - 0x77943000       C:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000       C:\WINNT\system32\DBGHELP.dll
0x690A0000 - 0x690AB000       C:\WINNT\System32\PSAPI.DLL

Local Time = Sun Mar 23 22:09:54 2003
Elapsed Time = 21
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.3.1_04-b02 mixed mode)
Question by:andrewharris
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 14

Expert Comment

ID: 8189964
>> Can anyone tell me what the heck could be causing this?
you are using JNI and you native code have serious errors, mostly likely improper handle of pointers.

>>  I have changed some names of class files on the top 2 lines to "Protect the inocent".
what exactly you changed and how did you do this?

Author Comment

ID: 8193697

Sorry, to explain a bit further. I am using another companies product which they claim is fine and stable and that the problem I have is "Ours".

So...I have no real access to code.

When I said that I had changed the top 2 lines, I meant that the debug that I posted had been edited (for licensing reasons) to remove any indication of who's roduct we are using.

LVL 14

Accepted Solution

kennethxu earned 1000 total points
ID: 8195558
I see. I'm 100% sure that's the JNI native code problem.
>> at com.company.product.component.PRLogin(Native Method)
this native method passes a incorrect pointer to a library function strncpy in C:\WINNT\system32\MSVCRT.dll, which causes ACCESS_VIOLATION.

a properly written native method should never have such problem. so the creator of com.company.product.component.PRLogin should be liable for this.


LVL 14

Expert Comment

ID: 8218745
thanks for the 'A'

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
The top devops trends for 2017 are focused on improved deployment frequency, decreased lead time for change and decreased MTTR.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question