mibuso.com

Microsoft Business Solutions online community
It is currently Wed May 22, 2013 10:50 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: [Solved] NAS - freezes on processing oofice automation
PostPosted: Mon Jun 25, 2012 10:34 am 
Offline

Joined: Wed May 19, 2010 10:20 am
Posts: 91
Country: Slovakia (sk)
Hello,
Did someone of you encountered such problem ?

I have one job runned by jub scheduler wich does some oofice things (using dbolewrap.ocx)

A) When I run it as normal user - everything is OK.
B) When I am logged to win server with NAS credentials and run NAS from command line - everything is OK
C) But when NAS is runned as service, the task freezes as "Processing"

And I dunno what happened ....
And can't debug it, because of B)

Thank you

P.S. It frreezes on this function .. it is very first function using OLE wrapper....
OW.CreateObjectByName (pvOoClass, 'com.sun.star.ServiceManager')

? Does OOfice needed to be run under "real logged" user ??? or something ?


Top
 Profile E-mail  
 
 Post subject: Re: NAS - freezes on processing oofice automation
PostPosted: Mon Jun 25, 2012 1:23 pm 
Offline

Joined: Tue Jun 07, 2005 5:24 pm
Posts: 2574
Location: MA
Country: United States (us)
Microsoft does not support runnign Office automation in this manner. However this mayhelp you out.

http://theether.net/download/Microsoft/kb/288367.html

_________________
There are no bugs - only undocumented features.


Top
 Profile E-mail  
 
 Post subject: Re: NAS - freezes on processing oofice automation
PostPosted: Tue Jun 26, 2012 10:47 am 
Offline

Joined: Wed May 19, 2010 10:20 am
Posts: 91
Country: Slovakia (sk)
Finally I found the problem / solution

After 1 day trying everything a found out that problem is with "first time registration wizard" of open office.
I didin't even think about it because I ran the wizard logged as user used by "service" so I thought everything is fine.

But it wasnt. It seems that service doesn't use all profile info of user and oo dinn't know that wizard was already ran.

What helped was applying small code which disabled wizard for all users
Downloaded here: http://wiki.services.openoffice.org/wik ... ion_Wizard

Thank you


Top
 Profile E-mail  
 
 Post subject: Re: NAS - freezes on processing oofice automation
PostPosted: Wed Jun 27, 2012 1:38 pm 
Offline

Joined: Wed May 19, 2010 10:20 am
Posts: 91
Country: Slovakia (sk)
So ... I am sorry but there are problems again :-(

It works just on one NAS and not always ...
On other NASes we have it doesn't work at all


Top
 Profile E-mail  
 
 Post subject: Re: NAS - freezes on processing oofice automation
PostPosted: Thu Jun 28, 2012 3:41 pm 
Offline

Joined: Wed May 19, 2010 10:20 am
Posts: 91
Country: Slovakia (sk)
So finally solved :)

1. Add -headless -nofirsttimestartwizard options to all LocalServer32 keys in the registry which are used to identify what to run for ServiceManager Object
2. After using OOfice functions you have to destroy Desktop Object, because restarting NAS causet to freeze it when dbolewrapper tries to run soffice.exe next time

Everything works now


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: