Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster dev » [buckminster-dev] Problem running cquery to retrieve source code from Perforce
[buckminster-dev] Problem running cquery to retrieve source code from Perforce [message #9649] Mon, 17 March 2008 14:24 Go to next message
Eclipse UserFriend
Originally posted by: james.rowe.bankofamerica.com

This is a multi-part message in MIME format.

--Boundary_(ID_1o9kIbiz3rOOgLknb/yv5g)
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT

Hi,

I'm having problems creating and running a cquery that retrieves source
code from Perforce. I get the following error when I 'Resolve to Wizard'
in eclipse:

Perforce client error:
Connect to server failed; check $P4PORT.
TCP connect to xxxxxxxxx failed.
xxxxxxxxx: service unknown.

My rmap is as follows:

<rmap
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
<http://www.w3.org/2001/XMLSchema-instance> "
xmlns="http://www.eclipse.org/buckminster/RMap-1.0
<http://www.eclipse.org/buckminster/RMap-1.0> "
xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0
<http://www.eclipse.org/buckminster/Common-1.0> "
xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0
<http://www.eclipse.org/buckminster/MavenProvider-1.0> "
xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0
<http://www.eclipse.org/buckminster/PDEMapProvider-1.0> ">
<searchPath name="default">
<provider readerType="p4" componentTypes="maven" mutable="false"
source="true">
<uri format="p4://xxxxxxxxx:1666/depot/branch/module" />
</provider>
</searchPath>
<locator searchPathRef="default" pattern="^com\..*" />
</rmap>

My cquery is:

<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery
xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0
<http://www.eclipse.org/buckminster/CQuery-1.0> "
resourceMap="file:/C:/myworkspace/demo.rmap">
<cq:rootRequest name="com.mycomponent" componentType="maven"/>
</cq:componentQuery>

Under the P4 preferences in eclipse I have defined a P4 port matching
the xxxxxxxxx part of the the URI and a client. If I define the port in
the P4 preferences as being xxxxxxxxx:1666, I get a different error:

No P4 server with address xxxxxxxxx has been configured


i.e. it appears to use only the hostname to resolve the mapping from the
P4 preferences.

I've also tried removing the port from the P4 preferences and the
xxxxxxxxx:1666 from the URI in the rmap so that the URI looks like:

<uri format="p4:/depot/branch/module" />

This causes the plug-in to read the P4 port info using the P4 set
command and creates a 'default' P4 preference called 'xxxxxxxxx:1666'.
However, running the cquery results in the following error:

[0001] : java.lang.NullPointerException
java.lang.NullPointerException


I'm using eclipse 3.3.1.1 with version 1.0.0.r08943 of the Buckminster
Perforce Plug-in. Is this a bug (or bugs) or am I setting up my
environment incorrectly? Anything else I should try?

Thanks,
James Rowe



Notice to recipient:
The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.

When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity.

If this email originates from the U.K. please note that Bank of America, N.A., London Branch and Banc of America Securities Limited are authorised and regulated by the Financial Services Authority. For all U.K. corporate disclosures, please refer to www.bankofamerica.com/ukcompanies

--Boundary_(ID_1o9kIbiz3rOOgLknb/yv5g)
Content-type: text/html; charset=us-ascii
Content-transfer-encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.3132" name=3DGENERATOR></HEAD>
<BODY><!--ppd1000033-->
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D620130214-17032008>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D620130214-17032008></SPAN></FONT>&nbsp;</DIV >
<DIV><FONT face=3DArial size=3D2><SPAN class=3D620130214-17032008>I'm =
having=20
problems&nbsp;creating and running a cquery that retrieves source code =
from=20
Perforce. I get the following error when I 'Resolve to Wizard' in=20
eclipse:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D620130214-17032008></SPAN></FONT>&nbsp;</DIV >
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2><SPAN=20
class=3D620130214-17032008>Perforce client error:<BR>&nbsp;Connect to =
server=20
failed; check $P4PORT.<BR>&nbsp;TCP connect to&nbsp;<SPAN=20
class=3D620130214-17032008>xxxxxxxxx</SPAN> failed.<BR>&nbsp;<SPAN=20
class=3D620130214-17032008>xxxxxxxxx</SPAN>: service =
unknown.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D620130214-17032008></SPAN></FONT>&nbsp;</DIV >
<DIV><FONT face=3DArial size=3D2><SPAN class=3D620130214-17032008>My =
rmap is as=20
follows:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D620130214-17032008></SPAN></FONT>&nbsp;</DIV >
<DIV><FONT size=3D2><FONT=20
face=3D"Courier New">&lt;rmap<BR>&nbsp;xmlns:xsi=3D"</FONT><A=20
href=3D"http://www.w3.org/2001/XMLSchema-instance"><FONT=20
face=3D"Courier =
New">http://www.w3.org/2001/XMLSchema-instance</FONT></A><FONT=20
face=3D"Courier New">"<BR>&nbsp;xmlns=3D"</FONT><A=20
href=3D"http://www.eclipse.org/buckminster/RMap-1.0"><FONT=20
face=3D"Courier =
New">http://www.eclipse.org/buckminster/RMap-1.0</FONT></A><FONT=20
face=3D"Courier New">"<BR>&nbsp;xmlns:bc=3D"</FONT><A=20
href=3D"http://www.eclipse.org/buckminster/Common-1.0"><FONT=20
face=3D"Courier =
New">http://www.eclipse.org/buckminster/Common-1.0</FONT></A><FONT=20
face=3D"Courier New">"<BR>&nbsp;xmlns:mp=3D"</FONT><A=20
href=3D"http://www.eclipse.org/buckminster/MavenProvider-1.0"><FONT=20
face=3D"Courier =
New">http://www.eclipse.org/buckminster/MavenProvider-1.0</FONT></A><FONT=
=20
face=3D"Courier New">"<BR>&nbsp;xmlns:pp=3D"</FONT><A=20
href=3D"http://www.eclipse.org/buckminster/PDEMapProvider-1.0"><FONT=20
face=3D"Courier =
New">http://www.eclipse.org/buckminster/PDEMapProvider-1.0</FONT></A><FON=
T=20
face=3D"Courier New">"&gt;</FONT></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&nbsp; &lt;searchPath=20
name=3D"default"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;provider =
readerType=3D"p4"=20
componentTypes=3D"maven" mutable=3D"false"=20
source=3D"true"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;uri=20
format=3D"p4://xxxxxxxxx:1666/depot/branch/module" =
/&gt;<BR>&nbsp;&nbsp;&nbsp;=20
&lt;/provider&gt;<BR>&nbsp; &lt;/searchPath&gt;</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&nbsp; &lt;locator =
searchPathRef=3D"default"=20
pattern=3D"^com\..*" /&gt;<BR>&lt;/rmap&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D620130214-17032008></SPAN></FONT>&nbsp;</DIV >
<DIV><FONT face=3DArial size=3D2><SPAN class=3D620130214-17032008>My =
cquery=20
is:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D620130214-17032008></SPAN></FONT>&nbsp;</DIV >
<DIV><FONT size=3D2><SPAN class=3D620130214-17032008><FONT=20
face=3D"Courier New">&lt;?xml version=3D"1.0"=20
encoding=3D"UTF-8"?&gt;<BR>&lt;cq:componentQuery xmlns:cq=3D"</FONT><A=20
href=3D"http://www.eclipse.org/buckminster/CQuery-1.0"><FONT=20
face=3D"Courier =
New">http://www.eclipse.org/buckminster/CQuery-1.0</FONT></A><FONT=20
face=3D"Courier New">"=20
resourceMap=3D"file:/C:/myworkspace/demo.rmap"&gt;<BR >&nbsp;&nbsp;&nbsp; =

&lt;cq:rootRequest name=3D"com.mycomponent"=20
componentType=3D"maven"/&gt;<BR>&lt;/cq:componentQuery&gt; </FONT></SPAN><=
/FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D620130214-17032008></SPAN></FONT><FONT=20
face=3DArial size=3D2><SPAN =
class=3D620130214-17032008></SPAN></FONT><FONT face=3DArial=20
size=3D2><SPAN class=3D620130214-17032008></SPAN></FONT>&nbsp;</DIV >
<DIV><FONT face=3DArial size=3D2><SPAN class=3D620130214-17032008>Under =
the P4=20
preferences in eclipse I have defined a P4 port matching the xxxxxxxxx =
part of=20
the the URI and a client.&nbsp; If I define the port in the P4 =
preferences as=20
being xxxxxxxxx:1666, I get a different error:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D620130214-17032008></SPAN></FONT>&nbsp;</DIV >
<DIV><FONT><SPAN class=3D620130214-17032008><FONT face=3DArial =
size=3D2><FONT=20
color=3D#ff0000>No P4 server with address xxxxxxxxx has been=20
configured</FONT><BR></FONT></DIV>
<DIV><SPAN class=3D620130214-17032008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D620130214-17032008><FONT face=3DArial size=3D2>i.e. =
it appears to=20
use only the hostname to resolve the mapping from the P4 =
preferences.&nbsp;=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D620130214-17032008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D620130214-17032008></SPAN><SPAN =
class=3D620130214-17032008><FONT=20
face=3DArial size=3D2>I've also tried removing the port from the P4 =
preferences and=20
the xxxxxxxxx:1666 from the URI in the rmap so that the URI&nbsp;looks=20
like:</FONT></SPAN></DIV>
<DIV><SPAN class=3D620130214-17032008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D620130214-17032008><FONT face=3D"Courier New" =
size=3D2>&lt;uri=20
format=3D"p4:/depot/branch/module" /&gt;</FONT><BR></SPAN></DIV>
<DIV><SPAN class=3D620130214-17032008><FONT face=3DArial size=3D2>This =
causes the=20
plug-in to read the P4 port info using the P4 set command and creates a=20
'default' P4 preference called 'xxxxxxxxx:1666'.&nbsp; However, running =
the=20
cquery results in the following error:</FONT></SPAN></DIV>
<DIV><SPAN class=3D620130214-17032008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV><FONT face=3DArial size=3D2><FONT=20
color=3D#ff0000>[0001] :=20
java.lang.NullPointerException<BR>java.lang.NullPointerException </FONT><B=
R></FONT>
<DIV><SPAN class=3D620130214-17032008><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV></SPAN></FONT><FONT face=3DArial size=3D2><SPAN =
class=3D620130214-17032008>I'm=20
using eclipse 3.3.1.1 with version 1.0.0.r08943 of the Buckminster =
Perforce=20
Plug-in.&nbsp; Is this a bug (or bugs) or am I setting up my environment =

incorrectly?&nbsp; Anything else I should try?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2><SPAN=20
class=3D620130214-17032008></SPAN></FONT>&nbsp;</DIV >
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D620130214-17032008>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D620130214-17032008>James=20
Rowe</SPAN></FONT></DIV><BR><BR><DIV class=3DSection1><DIV =
class=3DMsoNormal style=3D"TEXT-ALIGN: center" align=3Dcenter><SPAN =
style=3D"COLOR: black"><HR align=3Dcenter width=3D"100%" =
SIZE=3D2></SPAN></DIV><P class=3DMsoNormal style=3D"mso-margin-top-alt: =
auto; mso-margin-bottom-alt: auto"><B><SPAN style=3D"COLOR: =
black">Notice to recipient<SPAN class=3DGramE>:</SPAN><BR>The =
information in this internet e-mail and any attachments is confidential =
and may be privileged. It is intended solely for the addressee. If you =
are not the intended addressee please notify the sender immediately by =
telephone. If you are not the intended recipient, any disclosure, =
copying, distribution or any action taken or omitted to be taken in =
reliance on it, is prohibited and may be unlawful.</SPAN></B><SPAN =
style=3D"COLOR: black"><BR><BR>When addressed to external clients any =
opinions or advice contained in this internet e-mail are subject to the =
terms and conditions expressed in any applicable governing terms of =
business or client </SPAN>engagement letter issued by the pertinent Bank =
of America group entity.<BR><BR>If this email originates from the =
<?xml:namespace prefix =3D st1 /><st1:country-region =
w:st=3D"on"><st1:place w:st=3D"on">U.K.</st1:place></st1:country-region> =
please note that Bank of America, N.A., London Branch and Banc of =
America Securities Limited are authorised and regulated by the Financial =
Services Authority.<SPAN style=3D"mso-spacerun: yes">&nbsp; </SPAN>For =
all <st1:country-region w:st=3D"on"><st1:place =
w:st=3D"on">U.K.</st1:place></st1:country-region> corporate disclosures, =
please refer to <A =
href=3D"http://www.bankofamerica.com/ukcompanies"><SPAN style=3D"COLOR: =
windowtext">www.bankofamerica.com/ukcompanies</SPAN></A><SPAN =
style=3D"COLOR: black"><?xml:namespace prefix =3D o =
/><o:p></o:p></SPAN></P><DIV class=3DMsoNormal style=3D"TEXT-ALIGN: =
center" align=3Dcenter><SPAN style=3D"COLOR: black"><HR align=3Dcenter =
width=3D"100%" SIZE=3D2></SPAN></DIV></DIV></BODY></HTML>

--Boundary_(ID_1o9kIbiz3rOOgLknb/yv5g)--
Re: [buckminster-dev] Problem running cquery to retrieve source code from Perforce [message #9671 is a reply to message #9649] Wed, 19 March 2008 16:36 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi James,
A NPE is never good. I'll look into this later today and get back to you.

Regards,
Thomas Hallgren



Rowe, James wrote:
> Hi,
>
> I'm having problems creating and running a cquery that retrieves source
> code from Perforce. I get the following error when I 'Resolve to Wizard'
> in eclipse:
>
> Perforce client error:
> Connect to server failed; check $P4PORT.
> TCP connect to xxxxxxxxx failed.
> xxxxxxxxx: service unknown.
>
> My rmap is as follows:
>
> <rmap
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
> xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
> <searchPath name="default">
> <provider readerType="p4" componentTypes="maven" mutable="false"
> source="true">
> <uri format="p4://xxxxxxxxx:1666/depot/branch/module" />
> </provider>
> </searchPath>
> <locator searchPathRef="default" pattern="^com\..*" />
> </rmap>
>
> My cquery is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
> resourceMap="file:/C:/myworkspace/demo.rmap">
> <cq:rootRequest name="com.mycomponent" componentType="maven"/>
> </cq:componentQuery>
>
> Under the P4 preferences in eclipse I have defined a P4 port matching
> the xxxxxxxxx part of the the URI and a client. If I define the port in
> the P4 preferences as being xxxxxxxxx:1666, I get a different error:
>
> No P4 server with address xxxxxxxxx has been configured
>
> i.e. it appears to use only the hostname to resolve the mapping from the
> P4 preferences.
>
> I've also tried removing the port from the P4 preferences and the
> xxxxxxxxx:1666 from the URI in the rmap so that the URI looks like:
>
> <uri format="p4:/depot/branch/module" />
> This causes the plug-in to read the P4 port info using the P4 set
> command and creates a 'default' P4 preference called 'xxxxxxxxx:1666'.
> However, running the cquery results in the following error:
>
> [0001] : java.lang.NullPointerException
> java.lang.NullPointerException
>
> I'm using eclipse 3.3.1.1 with version 1.0.0.r08943 of the Buckminster
> Perforce Plug-in. Is this a bug (or bugs) or am I setting up my
> environment incorrectly? Anything else I should try?
>
> Thanks,
> James Rowe
>
>
> ------------------------------------------------------------ ------------
>
> *Notice to recipient:
> The information in this internet e-mail and any attachments is
> confidential and may be privileged. It is intended solely for the
> addressee. If you are not the intended addressee please notify the
> sender immediately by telephone. If you are not the intended recipient,
> any disclosure, copying, distribution or any action taken or omitted to
> be taken in reliance on it, is prohibited and may be unlawful.*
>
> When addressed to external clients any opinions or advice contained in
> this internet e-mail are subject to the terms and conditions expressed
> in any applicable governing terms of business or client engagement
> letter issued by the pertinent Bank of America group entity.
>
> If this email originates from the U.K. please note that Bank of America,
> N.A., London Branch and Banc of America Securities Limited are
> authorised and regulated by the Financial Services Authority. For all
> U.K. corporate disclosures, please refer to
> www.bankofamerica.com/ukcompanies <http://www.bankofamerica.com/ukcompanies>
>
> ------------------------------------------------------------ ------------
Re: [buckminster-dev] Problem running cquery to retrieve source code from Perforce [message #9691 is a reply to message #9649] Wed, 19 March 2008 23:13 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi James,
I think I found the problem and I plan to make a new version available on our update site. You can
track the progress here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=223267

Regards,
Thomas Hallgren

Rowe, James wrote:
> Hi,
>
> I'm having problems creating and running a cquery that retrieves source
> code from Perforce. I get the following error when I 'Resolve to Wizard'
> in eclipse:
>
> Perforce client error:
> Connect to server failed; check $P4PORT.
> TCP connect to xxxxxxxxx failed.
> xxxxxxxxx: service unknown.
>
> My rmap is as follows:
>
> <rmap
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
> xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
> <searchPath name="default">
> <provider readerType="p4" componentTypes="maven" mutable="false"
> source="true">
> <uri format="p4://xxxxxxxxx:1666/depot/branch/module" />
> </provider>
> </searchPath>
> <locator searchPathRef="default" pattern="^com\..*" />
> </rmap>
>
> My cquery is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
> resourceMap="file:/C:/myworkspace/demo.rmap">
> <cq:rootRequest name="com.mycomponent" componentType="maven"/>
> </cq:componentQuery>
>
> Under the P4 preferences in eclipse I have defined a P4 port matching
> the xxxxxxxxx part of the the URI and a client. If I define the port in
> the P4 preferences as being xxxxxxxxx:1666, I get a different error:
>
> No P4 server with address xxxxxxxxx has been configured
>
> i.e. it appears to use only the hostname to resolve the mapping from the
> P4 preferences.
>
> I've also tried removing the port from the P4 preferences and the
> xxxxxxxxx:1666 from the URI in the rmap so that the URI looks like:
>
> <uri format="p4:/depot/branch/module" />
> This causes the plug-in to read the P4 port info using the P4 set
> command and creates a 'default' P4 preference called 'xxxxxxxxx:1666'.
> However, running the cquery results in the following error:
>
> [0001] : java.lang.NullPointerException
> java.lang.NullPointerException
>
> I'm using eclipse 3.3.1.1 with version 1.0.0.r08943 of the Buckminster
> Perforce Plug-in. Is this a bug (or bugs) or am I setting up my
> environment incorrectly? Anything else I should try?
>
> Thanks,
> James Rowe
>
>
> ------------------------------------------------------------ ------------
>
> *Notice to recipient:
> The information in this internet e-mail and any attachments is
> confidential and may be privileged. It is intended solely for the
> addressee. If you are not the intended addressee please notify the
> sender immediately by telephone. If you are not the intended recipient,
> any disclosure, copying, distribution or any action taken or omitted to
> be taken in reliance on it, is prohibited and may be unlawful.*
>
> When addressed to external clients any opinions or advice contained in
> this internet e-mail are subject to the terms and conditions expressed
> in any applicable governing terms of business or client engagement
> letter issued by the pertinent Bank of America group entity.
>
> If this email originates from the U.K. please note that Bank of America,
> N.A., London Branch and Banc of America Securities Limited are
> authorised and regulated by the Financial Services Authority. For all
> U.K. corporate disclosures, please refer to
> www.bankofamerica.com/ukcompanies <http://www.bankofamerica.com/ukcompanies>
>
> ------------------------------------------------------------ ------------
RE: [buckminster-dev] Problem running cquery to retrieve source code from Perforce [message #11204 is a reply to message #9649] Thu, 20 March 2008 16:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: james.rowe.bankofamerica.com

Thanks, let me know when a fix will be available to download from the
update site and I'll try it out.

James.

-----Original Message-----
From: buckminster-dev-bounces@eclipse.org
[mailto:buckminster-dev-bounces@eclipse.org] On Behalf Of Thomas
Hallgren
Sent: 19 March 2008 23:13
To: Buckminster developer discussions
Subject: Re: [buckminster-dev] Problem running cquery to retrieve source
code from Perforce

Hi James,
I think I found the problem and I plan to make a new version available
on our update site. You can track the progress here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=223267

Regards,
Thomas Hallgren

Rowe, James wrote:
> Hi,
>
> I'm having problems creating and running a cquery that retrieves
> source code from Perforce. I get the following error when I 'Resolve
to Wizard'
> in eclipse:
>
> Perforce client error:
> Connect to server failed; check $P4PORT.
> TCP connect to xxxxxxxxx failed.
> xxxxxxxxx: service unknown.
>
> My rmap is as follows:
>
> <rmap
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
> xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
> <searchPath name="default">
> <provider readerType="p4" componentTypes="maven" mutable="false"
> source="true">
> <uri format="p4://xxxxxxxxx:1666/depot/branch/module" />
> </provider>
> </searchPath>
> <locator searchPathRef="default" pattern="^com\..*" /> </rmap>
>
> My cquery is:
>
> <?xml version="1.0" encoding="UTF-8"?> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
> resourceMap="file:/C:/myworkspace/demo.rmap">
> <cq:rootRequest name="com.mycomponent" componentType="maven"/>
> </cq:componentQuery>
>
> Under the P4 preferences in eclipse I have defined a P4 port matching
> the xxxxxxxxx part of the the URI and a client. If I define the port
> in the P4 preferences as being xxxxxxxxx:1666, I get a different
error:
>
> No P4 server with address xxxxxxxxx has been configured
>
> i.e. it appears to use only the hostname to resolve the mapping from
> the
> P4 preferences.
>
> I've also tried removing the port from the P4 preferences and the
> xxxxxxxxx:1666 from the URI in the rmap so that the URI looks like:
>
> <uri format="p4:/depot/branch/module" /> This causes the plug-in to
> read the P4 port info using the P4 set command and creates a 'default'

> P4 preference called 'xxxxxxxxx:1666'.
> However, running the cquery results in the following error:
>
> [0001] : java.lang.NullPointerException java.lang.NullPointerException
>
> I'm using eclipse 3.3.1.1 with version 1.0.0.r08943 of the Buckminster

> Perforce Plug-in. Is this a bug (or bugs) or am I setting up my
> environment incorrectly? Anything else I should try?
>
> Thanks,
> James Rowe
>
>
> ------------------------------------------------------------ ----------
> --
>
> *Notice to recipient:
> The information in this internet e-mail and any attachments is
> confidential and may be privileged. It is intended solely for the
> addressee. If you are not the intended addressee please notify the
> sender immediately by telephone. If you are not the intended
> recipient, any disclosure, copying, distribution or any action taken
> or omitted to be taken in reliance on it, is prohibited and may be
> unlawful.*
>
> When addressed to external clients any opinions or advice contained in

> this internet e-mail are subject to the terms and conditions expressed

> in any applicable governing terms of business or client engagement
> letter issued by the pertinent Bank of America group entity.
>
> If this email originates from the U.K. please note that Bank of
> America, N.A., London Branch and Banc of America Securities Limited
> are authorised and regulated by the Financial Services Authority. For

> all U.K. corporate disclosures, please refer to
> www.bankofamerica.com/ukcompanies
> <http://www.bankofamerica.com/ukcompanies>
>
> ------------------------------------------------------------ ----------
> --

_______________________________________________
buckminster-dev mailing list
buckminster-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/buckminster-dev



Notice to recipient:
The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.

When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity.

If this email originates from the U.K. please note that Bank of America, N.A., London Branch and Banc of America Securities Limited are authorised and regulated by the Financial Services Authority. For all U.K. corporate disclosures, please refer to www.bankofamerica.com/ukcompanies
Re: [buckminster-dev] Problem running cquery to retrieve source code from Perforce [message #11261 is a reply to message #11204] Thu, 20 March 2008 20:10 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi James,
I uploaded an update to our update site at http://download.eclipse.org/tools/buckminster/updates
earlier today. It should be generally available on all mirrors by now.

- thomas

Rowe, James wrote:
> Thanks, let me know when a fix will be available to download from the
> update site and I'll try it out.
>
> James.
>
RE: [buckminster-dev] Problem running cquery to retrieve source code from Perforce [message #11701 is a reply to message #11204] Tue, 25 March 2008 18:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: james.rowe.bankofamerica.com

Hi Thomas,

I updated my installation with the new version and it gets further.
However, now I get the following message:

Error
Tue Mar 25 18:26:46 GMT 2008
[0001] : java.lang.IllegalArgumentException: Prefix string too short

java.lang.IllegalArgumentException: Prefix string too short
at java.io.File.createTempFile(Unknown Source)
at java.io.File.createTempFile(Unknown Source)
at
org.eclipse.buckminster.core.reader.AbstractReader.createTem pFile(Abstra
ctReader.java:93)
at
org.eclipse.buckminster.p4.internal.P4RemoteReader.innerGetC ontents(P4Re
moteReader.java:200)
at
org.eclipse.buckminster.core.reader.AbstractCatalogReader.ge tContents(Ab
stractCatalogReader.java:95)
at
org.eclipse.buckminster.core.reader.RemoteFile.getContents(R emoteFile.ja
va:42)
at
org.eclipse.buckminster.core.reader.RemoteFileCache$1.materi alize(Remote
FileCache.java:41)
at
org.eclipse.buckminster.core.helpers.CacheEntry.initialize(S hortDuration
FileCache.java:137)
at
org.eclipse.buckminster.core.helpers.ShortDurationFileCache. open(ShortDu
rationFileCache.java:77)
at
org.eclipse.buckminster.core.helpers.ShortDurationFileCache. open(ShortDu
rationFileCache.java:51)
at
org.eclipse.buckminster.core.reader.RemoteFileCache.openRemo teFile(Remot
eFileCache.java:36)
at
org.eclipse.buckminster.core.CorePlugin.openCachedRemoteFile (CorePlugin.
java:454)
at
org.eclipse.buckminster.core.reader.AbstractRemoteReader.inn erReadFile(A
bstractRemoteReader.java:66)
at
org.eclipse.buckminster.core.reader.AbstractCatalogReader.re adFile(Abstr
actCatalogReader.java:148)
at
org.eclipse.buckminster.maven.internal.MavenCSpecBuilder.bui ld(MavenCSpe
cBuilder.java:80)
at
org.eclipse.buckminster.core.ctype.AbstractComponentType.get Resolution(A
bstractComponentType.java:282)
at
org.eclipse.buckminster.core.ctype.AbstractComponentType.get ComponentVer
sion(AbstractComponentType.java:144)
at
org.eclipse.buckminster.core.version.AbstractVersionFinder.g etVersionFro
mArtifacts(AbstractVersionFinder.java:75)
at
org.eclipse.buckminster.core.version.AbstractSCCSVersionFind er.getBestTr
unkMatch(AbstractSCCSVersionFinder.java:337)
at
org.eclipse.buckminster.core.version.AbstractSCCSVersionFind er.getBestVe
rsion(AbstractSCCSVersionFinder.java:155)
at
org.eclipse.buckminster.core.rmap.model.Provider.findMatch(P rovider.java
:211)
at
org.eclipse.buckminster.core.rmap.model.SearchPath.getProvid er(SearchPat
h.java:104)
at
org.eclipse.buckminster.core.rmap.model.ResourceMap.resolve( ResourceMap.
java:166)
at
org.eclipse.buckminster.core.resolver.ResourceMapResolver.in nerResolve(R
esourceMapResolver.java:244)
at
org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.re solve(Resolv
erNodeWithJob.java:214)
at
org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.ru n(ResolverNo
deWithJob.java:94)
at
org.eclipse.buckminster.core.resolver.ResolverNodeWithJob$No deResolution
Job.run(ResolverNodeWithJob.java:49)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


The URI in my rmap follows same pattern as my example before, i.e.

<uri format="p4://xxxxxxxxx:1666/depot/mainline/module" />

Where, 'depot' is the name of our depot, mainline is the branch, and
'module' is the name of our module in Perforce. Is this the correct
format for the perforce URI? I can't find any examples for Perforce
readers anywhere.

Thanks,
James.

-----Original Message-----
From: buckminster-dev-bounces@eclipse.org
[mailto:buckminster-dev-bounces@eclipse.org] On Behalf Of Thomas
Hallgren
Sent: 20 March 2008 20:10
To: Buckminster developer discussions
Subject: Re: [buckminster-dev] Problem running cquery to retrieve source
code from Perforce

Hi James,
I uploaded an update to our update site at
http://download.eclipse.org/tools/buckminster/updates
earlier today. It should be generally available on all mirrors by now.

- thomas

Rowe, James wrote:
> Thanks, let me know when a fix will be available to download from the
> update site and I'll try it out.
>
> James.
>
_______________________________________________
buckminster-dev mailing list
buckminster-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/buckminster-dev



Notice to recipient:
The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.

When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity.

If this email originates from the U.K. please note that Bank of America, N.A., London Branch and Banc of America Securities Limited are authorised and regulated by the Financial Services Authority. For all U.K. corporate disclosures, please refer to www.bankofamerica.com/ukcompanies
Re: [buckminster-dev] Problem running cquery to retrieve source code from Perforce [message #11735 is a reply to message #11701] Tue, 25 March 2008 19:11 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi James,

Rowe, James wrote:
> I updated my installation with the new version and it gets further.
> However, now I get the following message:
>
> Error
> Tue Mar 25 18:26:46 GMT 2008
> [0001] : java.lang.IllegalArgumentException: Prefix string too short
>
you use the p4 reader type together with the maven component type. This combination has not been
tested before and you encountered a new bug. I entered it as
https://bugs.eclipse.org/bugs/show_bug.cgi?id=223950


>
> The URI in my rmap follows same pattern as my example before, i.e.
>
> <uri format="p4://xxxxxxxxx:1666/depot/mainline/module" />
>
> Where, 'depot' is the name of our depot, mainline is the branch, and
> 'module' is the name of our module in Perforce. Is this the correct
> format for the perforce URI? I can't find any examples for Perforce
> readers anywhere.
>
I think it looks correct. The reason you don't find much examples for Perforce so far, is that most
Buckminster users are using CVS or Subversion. The P4 support was written a while back and to be
honest, it hasn't been scrutinized to any greater extend over the last year. We are serious about
providing it though, so we will make an effort to fix any problems that you may encounter.

Regards,
Thomas Hallgren
Re: [buckminster-dev] Problem running cquery to retrieve source code from Perforce [message #11770 is a reply to message #11735] Tue, 25 March 2008 22:05 Go to previous message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
I just uploaded new versions to our update site. It should perculate to all mirrors within the our.
The fix was in the Buckminster Core feature. The P4 feature didn't change.

Regards,
Thomas Hallgren


Thomas Hallgren wrote:
> Hi James,
>
> Rowe, James wrote:
>> I updated my installation with the new version and it gets further.
>> However, now I get the following message:
>>
>> Error
>> Tue Mar 25 18:26:46 GMT 2008
>> [0001] : java.lang.IllegalArgumentException: Prefix string too short
>>
> you use the p4 reader type together with the maven component type. This
> combination has not been tested before and you encountered a new bug. I
> entered it as https://bugs.eclipse.org/bugs/show_bug.cgi?id=223950
>
>
>>
>> The URI in my rmap follows same pattern as my example before, i.e.
>>
>> <uri format="p4://xxxxxxxxx:1666/depot/mainline/module" />
>>
>> Where, 'depot' is the name of our depot, mainline is the branch, and
>> 'module' is the name of our module in Perforce. Is this the correct
>> format for the perforce URI? I can't find any examples for Perforce
>> readers anywhere.
>>
> I think it looks correct. The reason you don't find much examples for
> Perforce so far, is that most Buckminster users are using CVS or
> Subversion. The P4 support was written a while back and to be honest, it
> hasn't been scrutinized to any greater extend over the last year. We are
> serious about providing it though, so we will make an effort to fix any
> problems that you may encounter.
>
> Regards,
> Thomas Hallgren
>
Previous Topic:RE: [buckminster-dev] CSPEC Resolution and other issues
Next Topic:Re: [buckminster-dev] New to Buckminster
Goto Forum:
  


Current Time: Tue Mar 19 03:31:54 GMT 2024

Powered by FUDForum. Page generated in 0.03249 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top