ArcMap hanging issue when launching from WMX

3256
9
03-12-2012 07:01 AM
AndyOldham
New Contributor II
When opening a map document from WMX's jobs, randomly it fails to load the map document. WMX popup widnow for processing status is still there, and in ArcMap the layers are added to TOC but no map displayed.
I set up WMX logging option to 5 and checked ArcMap log when loading process is hung. Below is what I got when it is hung:
JTXExtension: Connected to default database
JTXExtension. PrepareMXD: Sleeping while waiting for ArcMap UI to be initialized
JTXExtension: Added listener, FullName = ESRI.ArcGIS.JTXExt.JobPropsDockWin, type string = ~~~
JTXExtension: Added listener, FullName = ESRI.ArcGIS.JTXExt.DockableWindows.WorkflowWindow, type string = ~~~
JTXExtension: Added listener, FullName = ESRI.ArcGIS.JTXExt.Extension, type string = ESRI.ArcGIS.JTXExt.Extension

In ArcMap JTX Extension toolbar didn't show up.
What does this log mean??
I could launch it again after deleting Job Map and Normal.mxt files from specific user's and All User's local setting folder. Withut laoding the maps from WMX, ArcMap worked fine with Normal.mxt.

Any suggestion/help would be appreciated...
0 Kudos
9 Replies
TopeBello
Occasional Contributor III
Hi,

It is still trying to load the map then it will attempt to load the extension and the job. I have seen this issue in a situation where the map layers are not accessible or have broken layers in your job type map template. You should take a look at the contents of the map to make sure everything appears fine.
Also, look in the WMX-logs in the log folder. There will be more messages logged into that file.

Thanks,
Tope
0 Kudos
AndyOldham
New Contributor II
Thanks Tope.
This is some logs from WMX.
3/15/2012 13:28:35.964 Level: 5 Starting ArcMap...
3/15/2012 13:28:35.964 Level: 5 Attempting to start ArcMap from C:\Program Files\ArcGIS\Desktop10.0\bin\ArcMap.exe with document C:\Documents and Settings\All Users\Application Data\ESRI\WMX\Jobs\JTX_CAD_146485.mxd
3/15/2012 13:28:36.055 Level: 5 Launching ArcMap with process ID 4988
3/15/2012 13:28:49.684 Level: 5 Finished launching ArcMap with process ID 4988
3/15/2012 13:28:49.684 Level: 5 Started ArcMap..
3/15/2012 13:28:49.684 Level: 5 Configuring the Workflow Manager extension...
3/15/2012 13:28:49.761 Level: 5 Enabling the JTX extension...
3/15/2012 13:28:49.901 Level: 5 Passing information to job extension...
3/15/2012 13:28:49.901 Level: 5 Telling JTX extension to load the job..
3/15/2012 13:28:49.901 Level: 5 Job-enabling the JTX extension...
3/15/2012 13:29:25.470 Level: 5 Failed to prepare correctly The remote procedure call failed. (Exception from HRESULT: 0x800706BE)
3/15/2012 13:29:25.485 Level: 5    at ESRI.ArcGIS.JTX.IJTXExtension3.set_JobID(Int32 pVal)

   at JTXDesktopSteps.LaunchArcMap.LoadJob()

Do you have any other suggestions?
0 Kudos
TopeBello
Occasional Contributor III
It looks like the extension is not registered correctly inside of ArcMap/ArcCatalog. You can confirm this by opening either one of these applications and try to enable the Workflow Manager extension.
This could be as a result of an error that occurred during the installation of the extension. I will suggest re-installing Workflow Manager desktop and see if this issue still persists.

Thanks,
Tope
0 Kudos
KjetilSverdrup-Thygeson
New Contributor III
Hi,

I am having a similar situation when opening a job from Workflow Manager.
The ArcMap process is started, but the ArcMap UI itself does not appear.
Killing the ArcMap process and opening the job again from Workflow Manager sometimes work, but not always.
Opening the job from another pc works fine (same user logged in).

I am using Windows 7, 64-bit.


Here is the last part of the WMX log:

2012-06-08 12:54:20.646 Level: 5 Getting source map document...
2012-06-08 12:54:20.646 Level: 5 Getting Job MXD into C:\ProgramData\ESRI\WMX\Jobs\SKRED_99890.mxd
2012-06-08 12:54:20.647 Level: 5 Checking if you have configured a shared path..
2012-06-08 12:54:20.671 Level: 5 JTXJob:RetrieveMXD did not find the job's MXD blob, retrieving from the JobType..
2012-06-08 12:54:20.945 Level: 5 JTXJob:RetrieveMXD Retrieved template from the JobType into C:\ProgramData\ESRI\WMX\Jobs\skred_job_JTXJobTypeMap.mxd
2012-06-08 12:54:20.945 Level: 5 JTXJob:RetrieveMXD Copying template into Job's MXD file path C:\ProgramData\ESRI\WMX\Jobs\SKRED_99890.mxd
2012-06-08 12:54:20.950 Level: 5 JTXJob:RetrieveMXD Deleting template file from path C:\ProgramData\ESRI\WMX\Jobs\skred_job_JTXJobTypeMap.mxd
2012-06-08 12:54:20.952 Level: 5 Validating source map document...
2012-06-08 12:54:20.960 Level: 5 Checking to see if we need to use existing ArcMap session, bUseExisting is False
2012-06-08 12:54:20.961 Level: 5 Starting ArcMap...
2012-06-08 12:54:20.961 Level: 5 Attempting to start ArcMap from C:\Program Files (x86)\ArcGIS\Desktop10.0\bin\ArcMap.exe with document C:\ProgramData\ESRI\WMX\Jobs\SKRED_99890.mxd
2012-06-08 12:54:20.975 Level: 5 Launching ArcMap with process ID 11580
2012-06-08 12:54:26.541 Level: 5 Finished launching ArcMap with process ID 11580
2012-06-08 12:54:26.541 Level: 5 Started ArcMap..
2012-06-08 12:54:26.546 Level: 5 Configuring the Workflow Manager extension...
2012-06-08 12:54:26.592 Level: 5 Enabling the JTX extension...
2012-06-08 12:54:26.600 Level: 5 Passing information to job extension...
2012-06-08 12:54:26.601 Level: 5 Telling JTX extension to load the job..
2012-06-08 12:54:26.601 Level: 5 Job-enabling the JTX extension...

and here is the complete ArcMap log:

2012-06-08 12:54:26.662 Level: 5 GetActiveDatabase
2012-06-08 12:54:26.663 Level: 5 LoadFromAlias
2012-06-08 12:54:26.663 Level: 5 GetJTXWorkspace
2012-06-08 12:54:26.663 Level: 5 LoadServerInfo
2012-06-08 12:54:26.664 Level: 5 GetConnInfoWS
2012-06-08 12:54:26.664 Level: 5 Get Local Server Props
2012-06-08 12:54:26.665 Level: 5 Build Path
2012-06-08 12:54:26.665 Level: 5 Start Copy File
2012-06-08 12:54:26.668 Level: 5 End Copy File
2012-06-08 12:54:26.668 Level: 5 Opening Connecting Workspace
2012-06-08 12:54:26.669 Level: 5 C:\Users\kst\AppData\Local\Temp\\WMX6398.tmp.sde
2012-06-08 12:54:27.896 Level: 5 0
2012-06-08 12:54:27.896 Level: 5 Opened Connecting Workspace
2012-06-08 12:54:29.316 Level: 5 ~GetConnInfoWS
2012-06-08 12:54:29.337 Level: 5 ~LoadServerInfo
2012-06-08 12:54:29.337 Level: 5 ~GetJTXWorkspace
2012-06-08 12:54:29.338 Level: 5 GotJTXWorkspace
2012-06-08 12:54:29.983 Level: 5 GotActiveDataWorkspace
2012-06-08 12:54:29.983 Level: 5 ~LoadFromAlias
2012-06-08 12:54:29.984 Level: 5 ~GetActiveDatabase
2012-06-08 12:54:30.013 Level: 5 JTXExtension: Connected to default database
2012-06-08 12:54:30.014 Level: 5 JTXExtension.PrepareMXD: Sleeping while waiting for ArcMap UI to be initialized

Any ideas?
0 Kudos
KevinBedel
Esri Contributor
Does the machine that is experiencing this issue have any additional extensions installed that might be preventing ArcMap from opening?

Another potential cause could be a secured layer that does not have credentials stored for it. In this case it will open a dialog asking for a username and password and it could be that this dialog is appearing behind another window so that it is not easily seen.
0 Kudos
TrevorHart1
New Contributor III
We are also running into this issue with one of our users. Any advice would be welcome.

Trevor
0 Kudos
KjetilSverdrup-Thygeson
New Contributor III
I do not have any extensions or secured layers that should prevent ArcMap from opening.

I have opened the same job on a different machine, and saved the mxd to disk.
This mxd opens perfectly on my machine.
So the mxd itself seems to be ok, but launching it from WorkflowManager is a problem.

The only difference between these machines is that I have 10.0 SP 4 installed and the other machine only SP 3.
0 Kudos
TrevorHart1
New Contributor III
The only difference between these machines is that I have 10.0 SP 4 installed and the other machine only SP 3.


Are you referring to SP3/4 for Desktop or WMX?

We have the issue too and Im pretty sure its still occuring on Desktop SP4+WMX SP4. It does seem to be machine specific though as I never have the issue.

Trevor
0 Kudos
KjetilSverdrup-Thygeson
New Contributor III
Are you referring to SP3/4 for Desktop or WMX?

We have the issue too and Im pretty sure its still occuring on Desktop SP4+WMX SP4. It does seem to be machine specific though as I never have the issue.

Trevor



I am referring to the SP versions for both Desktop and WMX.

To check this once more, I opened a job from WMX, and ArcMap actually opened!
Then I closed ArcMap and opened the job again from WMX - and this time it did not open.
The logfile telles the same story as usual:
"JTXExtension.PrepareMXD: Sleeping while waiting for ArcMap UI to be initialized"

This is on the machine with SP4 for Desktop and WMX.
0 Kudos