Tomcat Crapping out!

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 Method)
      at com.applix.product.component.PRLogin(
      at org.apache.jsp.w2k_0005flogin_0005fhandler_jsp._jspService(
      at org.apache.jasper.runtime.HttpJspBase.service(
      at javax.servlet.http.HttpServlet.service(
      at org.apache.jasper.servlet.JspServletWrapper.service(
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(
      at org.apache.jasper.servlet.JspServlet.service(
      at javax.servlet.http.HttpServlet.service(
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(
      at org.apache.catalina.core.StandardWrapperValve.invoke(
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
      at org.apache.catalina.core.StandardPipeline.invoke(
      at org.apache.catalina.core.ContainerBase.invoke(
      at org.apache.catalina.core.StandardContextValve.invoke(
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
      at org.apache.catalina.core.StandardPipeline.invoke(
      at org.apache.catalina.core.ContainerBase.invoke(
      at org.apache.catalina.core.StandardContext.invoke(
      at org.apache.catalina.core.StandardHostValve.invoke(
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
      at org.apache.catalina.valves.ErrorReportValve.invoke(
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
      at org.apache.catalina.core.StandardPipeline.invoke(
      at org.apache.catalina.core.ContainerBase.invoke(
      at org.apache.catalina.core.StandardEngineValve.invoke(
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
      at org.apache.catalina.core.StandardPipeline.invoke(
      at org.apache.catalina.core.ContainerBase.invoke(
      at org.apache.coyote.tomcat4.CoyoteAdapter.service(
      at org.apache.coyote.http11.Http11Processor.process(
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(
      at org.apache.tomcat.util.threads.ThreadPool$

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)
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

>> 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?
andrewharrisAuthor Commented:

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.

I see. I'm 100% sure that's the JNI native code problem.
>> at 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 should be liable for this.



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
thanks for the 'A'
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.