You are here: > ESRI Forums > arcgis engine forums > Thread Replies

ArcGIS Engine Forums

ArcGIS Engine: ArcObjects Java API forum

Program crashes JVM when ran outside of Ecl...   Justin Lynch Dec 10, 2007
Re: Program crashes JVM when ran outside of...   Justin Lynch Dec 10, 2007
Re: Program crashes JVM when ran outside of...   herbert hansen Jan 12, 2009
Re: Program crashes JVM when ran outside of...   Muhammad Rehan Shaukat Dec 16, 2007
Re: Program crashes JVM when ran outside of...   Tom Schuller Apr 23, 2009
Re: Program crashes JVM when ran outside of...   Joel Mosher May 20, 2009
Re: Program crashes JVM when ran outside of...   Matthew Hinds May 25, 2009
Re: Program crashes JVM when ran outside of...   chris rush Aug 12, 2009
Re: Program crashes JVM when ran outside of...   Qaiser Imtiaz Aug 24, 2009
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Program crashes JVM when ran outside of Eclipse 
Author Justin Lynch 
Date Dec 10, 2007 
Message Program runs fine when ran within Eclipse, however when I try to run it outside of eclipse in a Jar it crashes the JVM.

I am currently using the bootloader to load the arcobjects.jar, but I had the same results when I included the jar in the manifest classpath.

I am currently at a loss as what else to try.

The following is the Log file of the crash:

#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000, pid=700, tid=2396
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
# Problematic frame:
# C 0x00000000
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

--------------- T H R E A D ---------------

Current thread (0x00296400): JavaThread "main" [_thread_in_native, id=2396]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

Registers:
EAX=0x00000000, EBX=0x269b8af0, ECX=0x0090f800, EDX=0x00000004
ESP=0x0090f7f4, EBP=0x0090f844, ESI=0x002964ec, EDI=0x00296400
EIP=0x00000000, EFLAGS=0x00010216

Top of Stack: (sp=0x0090f7f4)
0x0090f7f4: 7c23bb8d 00000000 269b8af0 00000000
0x0090f804: 00000000 00000000 0091a440 00000000
0x0090f814: 0090f84c 0090f854 00296400 00000006
0x0090f824: 0090f824 269b8af0 0090f854 269cf6f0
0x0090f834: 00000000 269b8af0 00000000 0090f854
0x0090f844: 0090f878 00912d93 269ba0d0 00918439
0x0090f854: 22f2b950 0090f858 26cd4d29 0090f884
0x0090f864: 26cd4f48 00000000 26cd4d30 0090f854

Instructions: (pc=0x00000000)
0xfffffff0:


Stack: [0x008c0000,0x00910000), sp=0x0090f7f4, free space=317k
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.esri.arcgis.interop.NativeObjRef.getJdk13WindowsHandle(Ljava/awt/Canvas;)J+0
j com.esri.arcgis.interop.s.getHandleForCanvas(Ljava/awt/Canvas;)J+1
j com.esri.arcgis.interop.Ocx.a()J+48
j com.esri.arcgis.interop.Ocx.addNotify()V+43
j com.esri.arcgis.controls.ToolbarControl.addNotify()V+5
j java.awt.Container.addNotify()V+56
j javax.swing.JComponent.addNotify()V+1
j java.awt.Container.addNotify()V+56
j javax.swing.JComponent.addNotify()V+1
j java.awt.Container.addNotify()V+56
j javax.swing.JComponent.addNotify()V+1
j java.awt.Container.addNotify()V+56
j javax.swing.JComponent.addNotify()V+1
j javax.swing.JRootPane.addNotify()V+5
j java.awt.Container.addNotify()V+56
j java.awt.Window.addNotify()V+55
j java.awt.Frame.addNotify()V+70
j java.awt.Window.show()V+8
j java.awt.Component.show(Z)V+5
j java.awt.Component.setVisible(Z)V+2
j java.awt.Window.setVisible(Z)V+2
j ipsystems.rdac.RDACViewer.main([Ljava/lang/String;)V+16
v ~StubRoutines::call_stub

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
0x02f0e000 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=3544]
0x02eabc00 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=672]
0x02e9a400 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2904]
0x02ed3000 JavaThread "AWT-Shutdown" [_thread_blocked, id=2716]
0x02e7a400 JavaThread "J-Integra COM initialization thread (please don't touch)" daemon [_thread_blocked, id=1756]
0x02b2fc00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=1224]
0x02a5cc00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2348]
0x02a58000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3436]
0x02a56c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=1772]
0x02a56000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=940]
0x02a51800 JavaThread "Finalizer" daemon [_thread_blocked, id=1680]
0x02a4d400 JavaThread "Reference Handler" daemon [_thread_blocked, id=2424]
=>0x00296400 JavaThread "main" [_thread_in_native, id=2396]

Other Threads:
0x02a4c000 VMThread [id=2276]
0x02a5e400 WatcherThread [id=1572]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Program crashes JVM when ran outside of Eclipse 
Author Justin Lynch 
Date Dec 10, 2007 
Message Never mind, I compiled the project using an ant script and got it to work. 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Program crashes JVM when ran outside of Eclipse 
Author herbert hansen 
Date Jan 12, 2009 
Message Hi,
I would be gratefull if you could tell me how you did resolve the problem.

Thanks in advance ! 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Program crashes JVM when ran outside of Eclipse 
Author Muhammad Rehan Shaukat 
Date Dec 16, 2007 
Message I have also faced the same problem before.

Try using JRE instead of JDK to run your program. I hope it will solve your problem.

Rehan. 
  Rehan. 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Program crashes JVM when ran outside of Eclipse 
Author Tom Schuller 
Date Apr 23, 2009 
Message Hy,
I'm having the problem that it runs only for a single JVM-version.

Installing a new JVM (JRE or JDK), I'm getting the same JVM exception as above.

What did I have to do?

Thanks,
Tom 
  Schuller Tom (Luxembourg/Europe)
Java/Flex developer http://icewebadf.sourceforge.net

 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Program crashes JVM when ran outside of Eclipse 
Author Joel Mosher 
Date May 20, 2009 
Message I've found that for java 1.6 under linux I have to run with the -client option. I forget which JVM i'm using exactly off hand, but it's happened for all the iterations of 6 that I've tried.

That might help you out, if you're on linux. On windows, not so sure. 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Program crashes JVM when ran outside of Eclipse 
Author Matthew Hinds 
Date May 25, 2009 
Message There is a very small comment in one of the API docs that says if you run arcObjects using 1.6 you have to specify "-Xss2m" as a JVM argument or you'll get an hotspot error right away.

 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Program crashes JVM when ran outside of Eclipse 
Author chris rush 
Date Aug 12, 2009 
Message I've just got to the stage of running my map code outside of Eclipse and have a similar problem to that listed here.
I've tried passing the various parameters to the JVM ie. -Xss2m and -client. These have extended how far into the boot up process my application gets but it still crashes with an ACCESS_VIOLATION.

I can't quite understand what is different between running my application in Eclipse and then out of it on the same windows XP PC? I have acrobjects.jar referenced in my classpath.

Here is the error log. Any help will be much appreciated.

The error file attached was from running the application with the Xss2m to increase the STack size.

Thanks

Chris 
  hs_err_pid272.log (opens in new window)
 
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Program crashes JVM when ran outside of Eclipse 
Author Qaiser Imtiaz 
Date Aug 24, 2009 
Message Hi,
I think the problem is that memory is not properly allocating for your Application by JVM.

have any one tried this option -Xmx1024M as JVM argument. I hope this will solve crashing arcobjects program.

./java -Xmx1024M classname 
  Qaiser Imtiaz
qaiser.imtiaz@gmail.com