SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Cross-Language Calls Hang... Sometimes

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Cross-Language Calls Hang... Sometimes
Author Message
MikeK



Joined: 28 May 2003
Posts: 21

Post Cross-Language Calls Hang... Sometimes Reply with quote

Sorry, this is a long one. But I've spent a long time researching it before posting :)

I started out trying to do something very simple; have an email sent to me when a trappable error occurs in cross-language call from a VBS script. Now, I can't get cross-language calls to work at all?

Here's the script:
-------------------
Sub Main()

JALScript.Execute "OnErrorStop" & vbCrLf & "RaiseError ""Err Here!"""
End Sub

Here's the Trace window results:
---------------------------------
VBS Starting script execution
JALSS JALScript Service loaded
JALSS Request Event 732, Stop Event 736, Read Pipe 740, Write Pipe 744
JALSS JALScript Service Listener started
VBS Invoking sub Main...

The job starts, but never finishes. When I try to restart 24x7, I get the warning message about spawned process.

Now it get's more strange.... If I keep running the job (5 or 6 times), eventually it will go start to finish, but only if I have the trace window available (the first 5 never finish though). Without trace, I can run it 20 times and it never finishes.

Here's an even simpler variation:
---------------------------------
Sub Main()

JALScript.Execute "LogAddMessage(""INFO"",""My Info"")"
End Sub

This one runs, BUT only if the trace window is enabled????

Also, the following script:
---------------------------
' This script shows "Hello" message
Sub Main()

MsgBox "Hello"
End Sub

is reported as having a syntax error by the debugger? Maybe related?

All the jobs are Async + Detached and I'm using Ver 3.4.7
Thanks for helping!

Wed May 28, 2003 11:01 am View user's profile Send private message
Jim



Joined: 15 May 2001
Posts: 5

Post Re: Cross-Language Calls Hang... Sometimes Reply with quote

I'm having the smae problem!!!!

: Sorry, this is a long one. But I've spent a long time researching it before
: posting :)

: I started out trying to do something very simple; have an email sent to me
: when a trappable error occurs in cross-language call from a VBS script.
: Now, I can't get cross-language calls to work at all?

: Here's the script: -------------------
: Sub Main()

: JALScript.Execute "OnErrorStop" & vbCrLf & "RaiseError
: ""Err Here!"""
: End Sub

: Here's the Trace window results: ---------------------------------
: VBS Starting script execution
: JALSS JALScript Service loaded
: JALSS Request Event 732, Stop Event 736, Read Pipe 740, Write Pipe 744
: JALSS JALScript Service Listener started
: VBS Invoking sub Main...

: The job starts, but never finishes. When I try to restart 24x7, I get the
: warning message about spawned process.

: Now it get's more strange.... If I keep running the job (5 or 6 times),
: eventually it will go start to finish, but only if I have the trace window
: available (the first 5 never finish though). Without trace, I can run it
: 20 times and it never finishes.

: Here's an even simpler variation: ---------------------------------
: Sub Main()

: JALScript.Execute
: "LogAddMessage(""INFO"",""My
: Info"")"
: End Sub

: This one runs, BUT only if the trace window is enabled????

: Also, the following script: ---------------------------
: ' This script shows "Hello" message
: Sub Main()

: MsgBox "Hello"
: End Sub

: is reported as having a syntax error by the debugger? Maybe related?

: All the jobs are Async + Detached and I'm using Ver 3.4.7
: Thanks for helping!

Wed May 28, 2003 11:43 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Re: Cross-Language Calls Hang... Sometimes Reply with quote

Which Windows Script Host version is installed on your system?

If you are not sure check version of check the Windows\System or WinNT\System32 folder for scrrun.dll.

If you have an old version you can get the new one here http://www.microsoft.com/msdownload/vbscript/scripting.asp

: I'm having the smae problem!!!!

Wed May 28, 2003 12:28 pm View user's profile Send private message
MikeK



Joined: 28 May 2003
Posts: 21

Post Re: Cross-Language Calls Hang... Sometimes Reply with quote

I'm running 5.6 on Win2K SP3

: Which Windows Script Host version is installed on your system?

: If you are not sure check version of check the Windows\System or
: WinNT\System32 folder for scrrun.dll.

: If you have an old version you can get the new one here
: http://www.microsoft.com/msdownload/vbscript/scripting.asp

Wed May 28, 2003 4:53 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Re: Cross-Language Calls Hang... Sometimes Reply with quote

Try running this job in the debug mode: from the DOS prompt run
24x7.exe /DEBUG /JOB [job id]

If you get any additional warnings or errors in the job log please let us know.

: I'm running 5.6 on Win2K SP3

Thu May 29, 2003 8:41 am View user's profile Send private message
MikeK



Joined: 28 May 2003
Posts: 21

Post Re: Cross-Language Calls Hang... Sometimes Reply with quote

Thanks for helping here....

When I ran it this way, the same thing happens.

With Trace disabled:
The job starts, I get the "start" e-mail, then it hangs. 24x7 is in the SysTray, no context menu. I had to used Task Manager to kill the process.

When trace is enabled, the same as above with this in the trace window:

COMMAND LINE >> Start job #201
VBS Starting script execution
JALSS JALScript Service loaded
JALSS Request Event 656, Stop Event 660, Read Pipe 664, Write Pipe 668
JALSS JALScript Service Listener started
VBS Invoking sub Main...

In either case the Event Log is not updated.

Here's my VBS Script (repeat from previous posting)
Sub Main()
JALScript.Execute "LogAddMessage(""INFO"",""My Info"")"
End Sub

Curious, this one ran before when trace was enabled....

: Try running this job in the debug mode: from the DOS prompt run
: 24x7.exe /DEBUG /JOB [job id]

: If you get any additional warnings or errors in the job log please let us
: know.

Thu May 29, 2003 10:10 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Re: Cross-Language Calls Hang... Sometimes Reply with quote

Mike, I don't have an answer yet, just wanted to tell you that I didn't forget... we are still looking into this issue.

: Thanks for helping here....

: When I ran it this way, the same thing happens.

: With Trace disabled: The job starts, I get the "start" e-mail, then
: it hangs. 24x7 is in the SysTray, no context menu. I had to used Task
: Manager to kill the process.

: When trace is enabled, the same as above with this in the trace window:
: COMMAND LINE >> Start job #201
: VBS Starting script execution
: JALSS JALScript Service loaded
: JALSS Request Event 656, Stop Event 660, Read Pipe 664, Write Pipe 668
: JALSS JALScript Service Listener started
: VBS Invoking sub Main...

: In either case the Event Log is not updated.

: Here's my VBS Script (repeat from previous posting)
: Sub Main()
: JALScript.Execute
: "LogAddMessage(""INFO"",""My
: Info"")"
: End Sub

: Curious, this one ran before when trace was enabled....

Fri May 30, 2003 7:51 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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 vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.