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.

Andrew


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x7800597f
Function name=strncpy
Library=C:\WINNT\system32\MSVCRT.dll

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)
#
LVL 4
andrewharrisAsked:
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.

kennethxuCommented:
>> 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?
0
andrewharrisAuthor Commented:
Kenneth,

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.

Andrew
0
kennethxuCommented:
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.

HTH

0

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
kennethxuCommented:
thanks for the 'A'
0
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
JSP

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.