PAL v2.0 Alpha error

Nov 2, 2009 at 3:32 PM

Hi,

Whe i run to test Pal v2.0 alpha then next command line:

.\PAL.ps1 -Log SamplePerfmonLog.blg

I've the next error:

ADVERTENCIA: Please post errors or problems with this tool to the PAL web site located at http://www.codeplex.com/PAL
with the following error message and a brief description of what you were trying to do. Thank you.
No se puede llamar a un método en una expresión con valor NULL.
En C:\data\pal\PAL.ps1: 466 Carácter: 35
+     $aSamples = $SamplesLine.Split <<<< (' ')
    + CategoryInfo          : InvalidOperation: (Split:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : InvokeMethodOnNull

 

Next is the full output.

PAL v2.0.0 (Alpha) (http://www.codeplex.com/PAL)
Written by: Clint Huffman (clinth@microsoft.com) and other contributors.
Last Modified: 11/01/2009 21:33:00
[Legal]

SCRIPT ARGUMENTS:
-Log SamplePerfmonLog.blg
-ThresholdFile QuickSystemOverview.xml
-Interval AUTO
-OutputDir [My Documents]\PAL Reports
-IsOutputHtml True
-HtmlOutputFileName [LogFileName]_PAL_ANALYSIS_[DateTimeStamp]_[GUID].htm
-AllCounterStats False

Creating session working directory...
Creating directory "C:\DOCUME~1\adalvaro\CONFIG~1\Temp\{fb471ae4-15ce-4e5a-a69d-5e4ef9084313}"

Entrada
----------------
Archivo(s):
     SamplePerfmonLog.blg (binario)

Inicio:    14/8/2007 15:40:38
Fin:      14/8/2007 15:50:38
Ejemplos:  11


Salida
----------------
Archivo:         C:\Documents and Settings\adalvaro\Configuración local\Temp\{fb471ae4-15ce-4e5a-a69d-5e4ef9084313}\_Fi
lteredPerfmonLog.csv

Inicio:    14/8/2007 15:40:38
Fin:      14/8/2007 15:50:38
Ejemplos:  11

El comando se ha completado correctamente.
ADVERTENCIA: Please post errors or problems with this tool to the PAL web site located at http://www.codeplex.com/PAL
with the following error message and a brief description of what you were trying to do. Thank you.
No se puede llamar a un método en una expresión con valor NULL.
En C:\data\pal\PAL.ps1: 466 Carácter: 35
+     $aSamples = $SamplesLine.Split <<<< (' ')
    + CategoryInfo          : InvalidOperation: (Split:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : InvokeMethodOnNull

PS C:\data\pal>


 

 

Coordinator
Nov 3, 2009 at 5:09 AM

Ah, it's because I am looking for the English word, "samples" in the output to confirm it's a valid log. Hmm... I need to confirm that at lease 1 sample is in the output while trying to keep the tool spoken language neutral. Any ideas?

Nov 3, 2009 at 8:12 AM
Edited Nov 3, 2009 at 9:23 AM
clinth wrote:

Ah, it's because I am looking for the English word, "samples" in the output to confirm it's a valid log. Hmm... I need to confirm that at lease 1 sample is in the output while trying to keep the tool spoken language neutral. Any ideas?

 Hi Clinth,

I've changed in the pal.ps1 scrip the word samples for emjemplos and now I've the next error:


ADVERTENCIA: Please post errors or problems with this tool to the PAL web site located at http://www.codeplex.com/PAL
with the following error message and a brief description of what you were trying to do. Thank you.
No se puede encontrar una parte de la ruta de acceso 'C:\Users\clinth\Documents\~MyDocs\~Projects\PAL_PS\temp.txt'.
En C:\data\pal\PAL.ps1: 752 Carácter: 21
+     $sCounterPath >> <<<<  'C:\Users\clinth\Documents\~MyDocs\~Projects\PAL_PS\temp.txt'
    + CategoryInfo          : OpenError: (:) [], DirectoryNotFoundException
    + FullyQualifiedErrorId : FileOpenFailure

and again I've changed the path c:\user\clinth to another and I've get then next error

Threshold File Load History:
QuickSystemOverview.xml

Number Of Counter Instances In Perfmon Log: 1832

Processing: Available MBytes
        Time data (one time only)...Done
        Counter data for ""...Done
        Auto analysis interval (one time only)...ADVERTENCIA: Please post errors or problems with this tool to the PAL w
eb site located at http://www.codeplex.com/PAL
with the following error message and a brief description of what you were trying to do. Thank you.
No se puede convertir a NULL el tipo "System.DateTime".
En C:\data\pal\PAL.ps1: 1431 Carácter: 78
+     $iTimeSpanInSeconds = [int] $(New-TimeSpan -Start ([DateTime] $ArrayOfTimes[ <<<< 0]) -End ([DateTime] $ArrayOfTi
mes[$ArrayOfTimes.GetUpperBound(0)])).TotalSeconds
    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : RuntimeException

Nov 3, 2009 at 6:32 PM

If you download the project today the below error will be solved.  Clint removed some debugging information.  I am not sure about that last error.

 

DVERTENCIA: Please post errors or problems with this tool to the PAL web site located at http://www.codeplex.com/PAL
with the following error message and a brief description of what you were trying to do. Thank you.
No se puede encontrar una parte de la ruta de acceso 'C:\Users\clinth\Documents\~MyDocs\~Projects\PAL_PS\temp.txt'.
En C:\data\pal\PAL.ps1: 752 Carácter: 21
+     $sCounterPath >> <<<<  'C:\Users\clinth\Documents\~MyDocs\~Projects\PAL_PS\temp.txt'
    + CategoryInfo          : OpenError: (:) [], DirectoryNotFoundException
    + FullyQualifiedErrorId : FileOpenFailure

Coordinator
Nov 4, 2009 at 2:11 AM

Thanks serverguy! Yes, please try the build I replaced on the site last night. Redownload the zip file and try again. I definetely want to know if it will work on non-English systems which is a *huge* feature request. Thank you!

Nov 4, 2009 at 8:09 AM
Edited Nov 4, 2009 at 8:11 AM

Hi,

The next step:

With a very simple blg file I've get the next error:

Threshold File Load History:
QuickSystemOverview.xml

Number Of Counter Instances In Perfmon Log: 3

Processing: Available MBytes

Processing: % Processor Time
        Time data (one time only)...Done
        Counter data for "0"...Done
        Auto analysis interval (one time only)...ADVERTENCIA: Please post errors or problems with this too
eb site located at http://www.codeplex.com/PAL
with the following error message and a brief description of what you were trying to do. Thank you.
No se puede convertir a NULL el tipo "System.DateTime".
En C:\data\pal\PAL.ps1: 1424 Carácter: 78
+     $iTimeSpanInSeconds = [int] $(New-TimeSpan -Start ([DateTime] $ArrayOfTimes[ <<<< 0]) -End ([DateTim
mes[$ArrayOfTimes.GetUpperBound(0)])).TotalSeconds
    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : RuntimeException

A sample lines of blg file ( get from csv temp file created in documents and setting)

(PDH-CSV 4.0) (Hora estándar romance)(-60),"\\SERVER\Processor(0)\% Processor Time","\\SERVER\Processor(1)\% Processor Time","\\SERVER\Processor(_Total)\% Processor Time"
11/03/2009  12:54:41.684,"99.981","99.981092229111596","99.981160005791153"  
11/03/2009 12:54:56.683,"1.561","1.873","1.717"  
11/03/2009 12:55:11.683,"1.144","0.41539198368405472","0.77997998374379485"
11/03/2009 12:55:26.683,"0.519","0.72789598373526054","0.62372798371819194"
11/03/2009 12:55:41.683,"1.561","2.707","2.1341639839656645"  
11/03/2009 12:55:56.683,"1.24825","1.352","1.3008199838291268"  
11/03/2009 12:56:11.698,"2.496","1.975","2.236001482421468"  
11/03/2009 12:56:26.698,"0.832","0.62372798371819194","0.72789598373526054"

 

Thanks.