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 |
Eclipse User |
|
|
|
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> </DIV >
<DIV><FONT face=3DArial size=3D2><SPAN class=3D620130214-17032008>I'm =
having=20
problems 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> </DIV >
<DIV><FONT face=3DArial color=3D#ff0000 size=3D2><SPAN=20
class=3D620130214-17032008>Perforce client error:<BR> Connect to =
server=20
failed; check $P4PORT.<BR> TCP connect to <SPAN=20
class=3D620130214-17032008>xxxxxxxxx</SPAN> failed.<BR> <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> </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> </DIV >
<DIV><FONT size=3D2><FONT=20
face=3D"Courier New"><rmap<BR> 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> 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> 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> 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> 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">"></FONT></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2> <searchPath=20
name=3D"default"><BR> <provider =
readerType=3D"p4"=20
componentTypes=3D"maven" mutable=3D"false"=20
source=3D"true"><BR> <uri=20
format=3D"p4://xxxxxxxxx:1666/depot/branch/module" =
/><BR> =20
</provider><BR> </searchPath></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2> <locator =
searchPathRef=3D"default"=20
pattern=3D"^com\..*" /><BR></rmap></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D620130214-17032008></SPAN></FONT> </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> </DIV >
<DIV><FONT size=3D2><SPAN class=3D620130214-17032008><FONT=20
face=3D"Courier New"><?xml version=3D"1.0"=20
encoding=3D"UTF-8"?><BR><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"><BR > =
<cq:rootRequest name=3D"com.mycomponent"=20
componentType=3D"maven"/><BR></cq:componentQuery> </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> </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. 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> </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> </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. =20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D620130214-17032008><FONT face=3DArial=20
size=3D2></FONT></SPAN> </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 looks=20
like:</FONT></SPAN></DIV>
<DIV><SPAN class=3D620130214-17032008><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D620130214-17032008><FONT face=3D"Courier New" =
size=3D2><uri=20
format=3D"p4:/depot/branch/module" /></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'. 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> </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> </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. Is this a bug (or bugs) or am I setting up my environment =
incorrectly? 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> </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"> </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 |
|
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 |
|
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 |
Eclipse User |
|
|
|
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 #11701 is a reply to message #11204] |
Tue, 25 March 2008 18:33 |
Eclipse User |
|
|
|
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 |
|
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 |
|
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
>
|
|
|
Goto Forum:
Current Time: Fri Nov 08 23:51:07 GMT 2024
Powered by FUDForum. Page generated in 0.03591 seconds
|