<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Java Exception when run as Windows Task in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-exception-when-run-as-windows-task/m-p/741812#M19722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how did you configured it to run as WindowsTask? Same user?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could try to force using the JRE provide by your ArcGIS software (Desktop, Engine, Server)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Aug 2011 09:04:07 GMT</pubDate>
    <dc:creator>TomSchuller</dc:creator>
    <dc:date>2011-08-19T09:04:07Z</dc:date>
    <item>
      <title>Java Exception when run as Windows Task</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-exception-when-run-as-windows-task/m-p/741811#M19721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a Java program that uses ArcObjects (v10 /w SP2).&amp;nbsp; It works fine when I execute it via command line (cmd.exe) in Windows, but if I try to execute it as a Windows Task, it throws an Java exception.&amp;nbsp; There's a lot of information in the exception but nothing that indicates why it failed.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is a snippet of the exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;#
# A fatal error has been detected by the Java Runtime Environment:
#
#&amp;nbsp; EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363) at pc=0x759dc83b, pid=4396, tid=4380
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) Client VM (20.1-b02 mixed mode windows-x86 )
# Problematic frame:
# C&amp;nbsp; [kernel32.dll+0x1c83b]
#
# If you would like to submit a bug report, please visit:
#&amp;nbsp;&amp;nbsp; http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------&amp;nbsp; T H R E A D&amp;nbsp; ---------------

Current thread (0x00239400):&amp;nbsp; JavaThread "main" [_thread_in_native, id=4380, stack(0x00190000,0x001e0000)]

......

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j&amp;nbsp; com.esri.arcgis.interop.NativeObjRef.nativeVtblInvokeNative(Lcom/esri/arcgis/interop/Rpc;[BLjava/lang/String;ILjava/lang/String;[Lcom/esri/arcgis/interop/Param;[Ljava/lang/Object;I)V+0
j&amp;nbsp; com.esri.arcgis.interop.NativeObjRef.nativeVtblInvoke(Lcom/esri/arcgis/interop/Rpc;[BLjava/lang/String;ILjava/lang/String;[Lcom/esri/arcgis/interop/Param;[Ljava/lang/Object;I)V+111
j&amp;nbsp; com.esri.arcgis.interop.NativeObjRef.invoke(Lcom/esri/arcgis/interop/Rpc;Lcom/esri/arcgis/interop/Uuid;Lcom/esri/arcgis/interop/AuthInfo;)V+82
j&amp;nbsp; com.esri.arcgis.interop.Dispatch.vtblInvoke(Ljava/lang/String;I[Ljava/lang/Object;)V+97
j&amp;nbsp; com.esri.arcgis.carto.IActiveViewProxy.output(IILcom/esri/arcgis/system/tagRECT;Lcom/esri/arcgis/geometry/IEnvelope;Lcom/esri/arcgis/system/ITrackCancel;)V+65
j&amp;nbsp; com.esri.arcgis.carto.PageLayout.output(IILcom/esri/arcgis/system/tagRECT;Lcom/esri/arcgis/geometry/IEnvelope;Lcom/esri/arcgis/system/ITrackCancel;)V+33&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried with more recent versions of Java 1.6 without any difference.&amp;nbsp; I've also tried setting Xmx/Xmx/Xss values but with no change.&amp;nbsp; Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said, it works without issue if I execute it from a command line.&amp;nbsp; I've checked the permissions on the Windows Task and its set to execute with highest permissions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 03:45:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-exception-when-run-as-windows-task/m-p/741811#M19721</guid>
      <dc:creator>ScottSelikoff</dc:creator>
      <dc:date>2011-08-19T03:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Java Exception when run as Windows Task</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-exception-when-run-as-windows-task/m-p/741812#M19722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how did you configured it to run as WindowsTask? Same user?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could try to force using the JRE provide by your ArcGIS software (Desktop, Engine, Server)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 09:04:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-exception-when-run-as-windows-task/m-p/741812#M19722</guid>
      <dc:creator>TomSchuller</dc:creator>
      <dc:date>2011-08-19T09:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Java Exception when run as Windows Task</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-exception-when-run-as-windows-task/m-p/741813#M19723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Originally it was set with the same user, whether logged in or not.&amp;nbsp; When it started having issues I tried a variety of users and permissions with no change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think I installed a JRE when I installed the Engine.&amp;nbsp; Either way I tried with a variety of 1.6 JREs, old and new, without any change.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 19:37:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-exception-when-run-as-windows-task/m-p/741813#M19723</guid>
      <dc:creator>ScottSelikoff</dc:creator>
      <dc:date>2011-08-19T19:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Java Exception when run as Windows Task</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/java-exception-when-run-as-windows-task/m-p/741814#M19724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;could you try this solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/4615213/confusing-issue-with-batch-as-a-scheduled-task"&gt;http://stackoverflow.com/questions/4615213/confusing-issue-with-batch-as-a-scheduled-task&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When setting up the scheduled task in Windows Vista/7 consider choosing the check-box for "Run with highest privileges" from the general tab, as this removes the need to always provide administrator privileges and may resolve other issues as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 08:15:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/java-exception-when-run-as-windows-task/m-p/741814#M19724</guid>
      <dc:creator>TomSchuller</dc:creator>
      <dc:date>2011-08-24T08:15:13Z</dc:date>
    </item>
  </channel>
</rss>

