Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
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>

------------------------------------------------------------------------



Back to the top