SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Fail to run script in the new version

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Fail to run script in the new version
Author Message
jwww001



Joined: 13 Feb 2012
Posts: 8
Country: Hong Kong

Post Fail to run script in the new version Reply with quote
I just install the 24x7 version 5 to my PC and try to run the VBscript inside the Sample Jobs folder. However, I got the following errors from the Job log and Output.

Job Log:
An error occurred while executing automation script: null


Output
File: C:\24x7\Output\6\6_20120323173057.out
Time: 23-Mar-2012 05:30:57 PM
Size: 261 bytes
=====================================================
This is a 30-day trial product. It may not be used for production purposes. (30 days left)
Copyright (c) 2004-2012 SoftTree Technologies, Inc.
Detached job started.

Press Ctrl+C to abort

ERROR: An error occurred while executing automation script: null


Is that the trial verison do not allow to run any script?
Fri Mar 23, 2012 5:40 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7839

Post Reply with quote
Please, post the script you tried to run, so we can check which dependencies could be missing.
Mon Mar 26, 2012 2:36 pm View user's profile Send private message
jwww001



Joined: 13 Feb 2012
Posts: 8
Country: Hong Kong

Post Reply with quote
SysOp wrote:
Please, post the script you tried to run, so we can check which dependencies could be missing.


Here is the code copied from the sample code. FYI, I have excel installed in my PC.

Sub Main( )

' ********************************************************************************
' *
' * Excel Sample
' *

Dim objXL
Dim objXLchart
Dim intRotate

Set objXL = CreateObject("Excel.Application")
objXL.Workbooks.Add
objXL.Cells(1,1).Value = 5
objXL.Cells(1,2).Value = 10
objXL.Cells(1,3).Value = 15
objXL.Range("A1:C1").Select

Set objXLchart = objXL.Charts.Add()
objXL.Visible = True
objXLchart.Type = -4100

For intRotate = 5 To 180 Step 5
objXLchart.Rotation = intRotate
Next

For intRotate = 175 To 0 Step -5
objXLchart.Rotation = intRotate
Next

objXL.application.Quit
End Sub
Mon Mar 26, 2012 8:52 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7839

Post Reply with quote
Do you have Microsoft Excel installed on that machine? If not, line Set objXL = CreateObject("Excel.Application") can cause the described error.
Tue Mar 27, 2012 12:39 am View user's profile Send private message
jwww001



Joined: 13 Feb 2012
Posts: 8
Country: Hong Kong

Post Reply with quote
SysOp wrote:
Do you have Microsoft Excel installed on that machine? If not, line Set objXL = CreateObject("Excel.Application") can cause the described error.


I have no problem running the script in version 4.4

For your information, I got the following error when I validate the script:
Line 0:null
Tue Mar 27, 2012 1:20 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7839

Post Reply with quote
What happens when you open that script and start running it in the debugger?
Tue Mar 27, 2012 8:13 am View user's profile Send private message
jwww001



Joined: 13 Feb 2012
Posts: 8
Country: Hong Kong

Post Reply with quote
SysOp wrote:
What happens when you open that script and start running it in the debugger?


I got the following error:

An error occurred while debugging job script

8000ffff: passed end of stream in the marshalling layer
Tue Mar 27, 2012 8:35 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7839

Post Reply with quote
Please try the following:

Open command prompt
Navigate to the 24x7 home directory, let's say the directory name is c:\24x7
CD c:\24x7
CD install
register_vb24x7.bat


Please let us know if that helps.
Tue Mar 27, 2012 11:19 pm View user's profile Send private message
jwww001



Joined: 13 Feb 2012
Posts: 8
Country: Hong Kong

Post Reply with quote
SysOp wrote:
Please try the following:

Open command prompt
Navigate to the 24x7 home directory, let's say the directory name is c:\24x7
CD c:\24x7
CD install
register_vb24x7.bat


Please let us know if that helps.


I still receive the same error message after I performed the steps as suggested.
Wed Mar 28, 2012 8:50 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7839

Post Reply with quote
Please change the script, or create a new VBScript job to do something simple like

Code:

Sub Main
    MsgBox "Hello world"
End Sub


Does this script give you an error?
Thu Mar 29, 2012 7:39 am View user's profile Send private message
jwww001



Joined: 13 Feb 2012
Posts: 8
Country: Hong Kong

Post Reply with quote
SysOp wrote:
Please change the script, or create a new VBScript job to do something simple like

Code:

Sub Main
    MsgBox "Hello world"
End Sub


Does this script give you an error?


I got the same error. is it a bug?
Fri Mar 30, 2012 1:56 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7839

Post Reply with quote
There is likely something wrong with your setup, but I don't know yet what's wrong. That script runs fine on my test system.
Which exact version/build of 24x7 are you running? You can see it in the Help/About box
Fri Mar 30, 2012 7:46 am View user's profile Send private message
jwww001



Joined: 13 Feb 2012
Posts: 8
Country: Hong Kong

Post Reply with quote
I am using version 5.0 Build375 and JVM version is 1.6.0_29-b11
Sun Apr 01, 2012 9:02 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7839

Post Reply with quote
Please enable the tracing option in Tools/options menu, Log tab, Trace Enabled. - tick the checkbox and click OK. Rerun the script and then email the content of debug.log (find it in the scheduler home) directory) to our support email. Please also paste a link tho this message thread.


Thanks.
Mon Apr 02, 2012 6:50 pm 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.