[p4perl] Required parameter ‘user’ not set

Nic Strong nic at ihug.co.nz
Wed Feb 21 02:57:39 PST 2007


 

 

 

Hi,

 

I am having a problem using p4perl, all operations are failing with Required parameter ‘user’ not set!.

We are using 2006.2 (with Unicode). I have tried the 2 pre-build installers and building my own (using 2006.2 api and build 5787).

 

The following simple script gives the debug output below. Strangely ErrorCount() is return 0 as well. Any ideas?

 

Thanks,

Nic

 

use Data::Dumper;

use P4;

my $p4 = new P4;

$p4->DebugLevel(10);

$p4->SetClient("SPRITEPC01_linux");

$p4->SetPort("willow:1666");

$p4->SetCharset("utf16le-bom");

$p4->SetUser("nic");

$p4->Connect() || die "Failed to connect to the Perforce Server";

$p4->SetCwd("H:\\src\\p4depot");

my $result = $p4->Run("info");

if ($p4->ErrorCount() > 0)

{

    print “Errors\n”;

   exit 0;

}

print Data::Dumper->Dump([$result], ["Result"]);

$p4->Disconnect();

 

Debug Output:

 

trans buffer size 8192

hi_mark set to 4000

RpcSendBuffer func = protocol

Rpc invoking protocol

[P4::Run] Running a "p4 info" with 0 args

[P4Result::Reset]: Discarding previous results

RpcSendBuffer prog = P4Perl script

RpcSendBuffer client = ÕüôõÑÆõòöõìÉÒä░µ▒ƒµ╣®þíÁ

RpcSendBuffer cwd = Ò®êþ죵ì▓þü£µÉ┤þüÑþæ»

RpcSendBuffer host = SPRITEPC01

RpcSendBuffer os = NT

RpcSendBuffer unicode =

RpcSendBuffer func = user-info

Rpc invoking user-info

>>> Dispatch(1) 0/0 0/0 0

RpcRecvBuffer xfiles = 5

RpcRecvBuffer server = 3

RpcRecvBuffer server2 = 22

RpcRecvBuffer revver = 7

RpcRecvBuffer unicode = 1

RpcRecvBuffer security = 3

RpcRecvBuffer nocase =

RpcRecvBuffer func = protocol

Rpc dispatch protocol

RpcRecvBuffer fatal =

RpcRecvBuffer code0 = 1092682761

RpcRecvBuffer fmt0 = Required parameter '%arg%' not set!

RpcRecvBuffer code1 = 824577031

RpcRecvBuffer fmt1 = Operation '%operation%' failed.

RpcRecvBuffer code2 = 824253464

RpcRecvBuffer fmt2 = Operation: %command%

RpcRecvBuffer code3 = 824253465

RpcRecvBuffer fmt3 = Date %date%:

RpcRecvBuffer arg = user

RpcRecvBuffer operation = user-info

RpcRecvBuffer command = user-info

RpcRecvBuffer date = 2007/02/19 12:13:38

RpcRecvBuffer func = client-Message

Rpc dispatch client-Message

[PerlClientUser:HandleError]: Received error

[P4Result::AddOutput]:

RpcRecvBuffer func = release

Rpc dispatch release

<<< Dispatch(1) 0/0 0/0 0

$Result = '';

RpcSendBuffer func = release2

Rpc invoking release2

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.perforce.com/pipermail/p4perl/attachments/20070221/ad94ad06/attachment-0001.html>


More information about the p4perl mailing list