| Author | 
		Message | 
	
	
		
			jwww001 
			 
			
  
			
			
				Joined: 13 Feb 2012 Posts: 8 Country: Hong Kong | 
			 
			  
		 | 
		
			
				  Fail to run script in the new version | 
				     | 
			 
			
				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 | 
		          | 
	
	
		  | 
	
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				Please, post the script you tried to run, so we can check which dependencies could be missing.
  | 
			 
		  | 
	
	
		| Mon Mar 26, 2012 2:36 pm | 
		          | 
	
	
		  | 
	
	
		
			jwww001 
			 
			
  
			
			
				Joined: 13 Feb 2012 Posts: 8 Country: Hong Kong | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				
	  | 
	
 
	  | 
	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 | 
		          | 
	
	
		  | 
	
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				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 | 
		          | 
	
	
		  | 
	
	
		
			jwww001 
			 
			
  
			
			
				Joined: 13 Feb 2012 Posts: 8 Country: Hong Kong | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				
	  | 
	
 
	  | 
	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 | 
		          | 
	
	
		  | 
	
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				What happens when you open that script and start running it in the debugger?
  | 
			 
		  | 
	
	
		| Tue Mar 27, 2012 8:13 am | 
		          | 
	
	
		  | 
	
	
		
			jwww001 
			 
			
  
			
			
				Joined: 13 Feb 2012 Posts: 8 Country: Hong Kong | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				
	  | 
	
 
	  | 
	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 | 
		          | 
	
	
		  | 
	
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				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 | 
		          | 
	
	
		  | 
	
	
		
			jwww001 
			 
			
  
			
			
				Joined: 13 Feb 2012 Posts: 8 Country: Hong Kong | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				
	  | 
	
 
	  | 
	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 | 
		          | 
	
	
		  | 
	
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				Please change the script, or create a new VBScript job to do something simple like
 
 
	  | 
	
 
	  | 
	
 
Sub Main
 
    MsgBox "Hello world"
 
End Sub | 
	 
 
 
 
Does this script give you an error?
  | 
			 
		  | 
	
	
		| Thu Mar 29, 2012 7:39 am | 
		          | 
	
	
		  | 
	
	
		
			jwww001 
			 
			
  
			
			
				Joined: 13 Feb 2012 Posts: 8 Country: Hong Kong | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				
	  | 
	
 
	  | 
	Please change the script, or create a new VBScript job to do something simple like
 
 
	  | 
	
 
	  | 
	
 
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 | 
		          | 
	
	
		  | 
	
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				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 | 
		          | 
	
	
		  | 
	
	
		
			jwww001 
			 
			
  
			
			
				Joined: 13 Feb 2012 Posts: 8 Country: Hong Kong | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				I am using version 5.0 Build375 and JVM version is 1.6.0_29-b11
  | 
			 
		  | 
	
	
		| Sun Apr 01, 2012 9:02 pm | 
		          | 
	
	
		  | 
	
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				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 | 
		          | 
	
	
		  | 
	
	
		 |