|
Re: null pointer exception [message #381097 is a reply to message #381093] |
Sat, 22 November 2008 20:28 |
Achim Demelt Messages: 160 Registered: July 2009 |
Senior Member |
|
|
Hi Mark,
I haven't used CVS with Buckminster before, but I guess you would have to
pass a user name in the CVS URL, like this:
:extssh:anonymous@yyy.xxx.com:/usr/local/cvs/tools
Cheers,
Achim
Mark Russell wrote:
> I have a cvs repo that has a cvs root of
> :extssh:yyy.xxx.com:/usr/local/cvs/tools in eclipse. I'm trying to
> bucminsterize my project and here is my rmap: <?xml version="1.0"
> encoding="UTF-8"?> <rmap
> . . . .
> <searchPath name="qualityeclipse.tools.features">
> <provider readerType="cvs"
> componentTypes="osgi.bundle,eclipse.feature,buckminster"
> mutable="true" source="true">
> <uri format=":extssh:yyy.xxx.com:/usr/local/cvs/tools">
> <!--
> <bc:propertyRef key="buckminster.component" />
> -->
> </uri>
> </provider>
> </searchPath>
>
> <searchPath name="qualityeclipse.tools.plugins">
> <provider readerType="cvs"
> componentTypes="osgi.bundle,eclipse.plugin,buckminster"
> mutable="true" source="true">
> <uri format=":extssh:yyy.xxx.com:/usr/local/cvs/tools">
> <!--
> <bc:propertyRef key="buckminster.component" />
> -->
> </uri>
> </provider>
> </searchPath>
>
> <locator searchPathRef="qualityeclipse.tools.features"
> pattern="^com\.instantiations\.tools\.(.*\.)?feature" /> <locator
> searchPathRef="qualityeclipse.tools.plugins"
> pattern="^com\.instantiations\.tools(\..*)?" />
>
> </rmap>
>
> and a cquery of
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
>
resourceMap=" file:/E:/ws/buckmiester-34/com.instantiations.tools.feature/ QualityEclipseTools.rmap ">
> <cq:rootRequest name="com.instantiations.tools.feature"
> componentType="eclipse.feature" versionDesignator="[2.1.0,2.1.0]"
> versionType="OSGi"/>
> </cq:componentQuery>
>
> when I click the resolve to wizard button i get as null pointer exception:
> java.lang.NullPointerException
> at
>
org.eclipse.team.internal.ccvs.core.client.Command.doExecute (Command.java:399)
> at
> org.eclipse.team.internal.ccvs.core.client.Command$1.run(Com mand.java:326)
> at
>
org.eclipse.team.internal.ccvs.core.resources.EclipseSynchro nizer.run(EclipseSynchronizer.java:1481)
> at
>
org.eclipse.team.internal.ccvs.core.resources.EclipseResourc e$2.run(EclipseResource.java:262)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
> at
>
org.eclipse.team.internal.ccvs.core.resources.EclipseResourc e.run(EclipseResource.java:259)
> at
>
org.eclipse.team.internal.ccvs.core.client.Command.execute(C ommand.java:338)
> at
>
org.eclipse.buckminster.cvspkg.internal.RepositoryMetaData.g etMetaData(RepositoryMetaData.java:182)
> at
>
org.eclipse.buckminster.cvspkg.internal.VersionFinder.getMet aData(VersionFinder.java:50)
> at
>
org.eclipse.buckminster.cvspkg.internal.VersionFinder.getTru nk(VersionFinder.java:83)
> at
>
org.eclipse.buckminster.core.version.AbstractSCCSVersionFind er.getBestTrunkMatch(AbstractSCCSVersionFinder.java:363)
> at
>
org.eclipse.buckminster.core.version.AbstractSCCSVersionFind er.getBestVersion(AbstractSCCSVersionFinder.java:155)
> at
>
org.eclipse.buckminster.core.rmap.model.Provider.findMatch(P rovider.java:219)
> at
>
org.eclipse.buckminster.core.rmap.model.SearchPath.getProvid er(SearchPath.java:104)
> at
>
org.eclipse.buckminster.core.rmap.model.ResourceMap.resolve( ResourceMap.java:173)
> at
>
org.eclipse.buckminster.core.resolver.ResourceMapResolver.in nerResolve(ResourceMapResolver.java:251)
> at
>
org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.re solve(ResolverNodeWithJob.java:218)
> at
>
org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.ru n(ResolverNodeWithJob.java:95)
> at
>
org.eclipse.buckminster.core.resolver.ResolverNodeWithJob$No deResolutionJob.run(ResolverNodeWithJob.java:50)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
> I'm brand new to buckminster so I'm sure this is a newbe mistake.
>
> Mark Russell
> Build Master
> Instantiations, Inc.
|
|
|
Re: null pointer exception [message #381098 is a reply to message #381093] |
Sun, 23 November 2008 09:55 |
|
Hi Mark,
The CVS uri is a bit special. It must contain a comma followed by a module name. Your uri
is missing that part and I guess that's why you encounter an NPE deep down in the CVS
execute command.
Here's an example from our rmap:
<provider readerType="cvs" componentTypes="osgi.bundle,eclipse.feature,buckminster"
mutable="true" source="true">
<uri format=":pserver:anonymous@dev.eclipse.org:/cvsroot/technology,org.eclipse.dash/{0}">
<bc:replace pattern="^buckminster\.test\.(.+)" replacement="$1" quotePattern="false">
<bc:propertyRef key="buckminster.component" />
</bc:replace>
</uri>
</provider>
(note the comma after /technology)
The replace is there to make up for the fact that the component name isn't exactly equal
to the module name. I included that here because it's quite common and might be applicable
in your case as well.
Regards,
Thomas Hallgren
Mark Russell wrote:
> I have a cvs repo that has a cvs root of
> :extssh:yyy.xxx.com:/usr/local/cvs/tools in eclipse. I'm trying to
> bucminsterize my project and here is my rmap:
> <?xml version="1.0" encoding="UTF-8"?>
> <rmap
> . . . .
> <searchPath name="qualityeclipse.tools.features">
> <provider readerType="cvs"
> componentTypes="osgi.bundle,eclipse.feature,buckminster" mutable="true"
> source="true">
> <uri format=":extssh:yyy.xxx.com:/usr/local/cvs/tools">
> <!--
> <bc:propertyRef key="buckminster.component" />
> -->
> </uri>
> </provider>
> </searchPath>
>
> <searchPath name="qualityeclipse.tools.plugins">
> <provider readerType="cvs"
> componentTypes="osgi.bundle,eclipse.plugin,buckminster" mutable="true"
> source="true">
> <uri format=":extssh:yyy.xxx.com:/usr/local/cvs/tools">
> <!--
> <bc:propertyRef key="buckminster.component" />
> -->
> </uri>
> </provider>
> </searchPath>
>
> <locator searchPathRef="qualityeclipse.tools.features"
> pattern="^com\.instantiations\.tools\.(.*\.)?feature" />
> <locator searchPathRef="qualityeclipse.tools.plugins"
> pattern="^com\.instantiations\.tools(\..*)?" />
>
> </rmap>
>
> and a cquery of
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
> resourceMap=" file:/E:/ws/buckmiester-34/com.instantiations.tools.feature/ QualityEclipseTools.rmap ">
>
> <cq:rootRequest name="com.instantiations.tools.feature"
> componentType="eclipse.feature" versionDesignator="[2.1.0,2.1.0]"
> versionType="OSGi"/>
> </cq:componentQuery>
>
> when I click the resolve to wizard button i get as null pointer exception:
> java.lang.NullPointerException
> at
> org.eclipse.team.internal.ccvs.core.client.Command.doExecute (Command.java:399)
>
> at
> org.eclipse.team.internal.ccvs.core.client.Command$1.run(Com mand.java:326)
> at
> org.eclipse.team.internal.ccvs.core.resources.EclipseSynchro nizer.run(EclipseSynchronizer.java:1481)
>
> at
> org.eclipse.team.internal.ccvs.core.resources.EclipseResourc e$2.run(EclipseResource.java:262)
>
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1800)
> at
> org.eclipse.team.internal.ccvs.core.resources.EclipseResourc e.run(EclipseResource.java:259)
>
> at
> org.eclipse.team.internal.ccvs.core.client.Command.execute(C ommand.java:338)
>
> at
> org.eclipse.buckminster.cvspkg.internal.RepositoryMetaData.g etMetaData(RepositoryMetaData.java:182)
>
> at
> org.eclipse.buckminster.cvspkg.internal.VersionFinder.getMet aData(VersionFinder.java:50)
>
> at
> org.eclipse.buckminster.cvspkg.internal.VersionFinder.getTru nk(VersionFinder.java:83)
>
> at
> org.eclipse.buckminster.core.version.AbstractSCCSVersionFind er.getBestTrunkMatch(AbstractSCCSVersionFinder.java:363)
>
> at
> org.eclipse.buckminster.core.version.AbstractSCCSVersionFind er.getBestVersion(AbstractSCCSVersionFinder.java:155)
>
> at
> org.eclipse.buckminster.core.rmap.model.Provider.findMatch(P rovider.java:219)
>
> at
> org.eclipse.buckminster.core.rmap.model.SearchPath.getProvid er(SearchPath.java:104)
>
> at
> org.eclipse.buckminster.core.rmap.model.ResourceMap.resolve( ResourceMap.java:173)
>
> at
> org.eclipse.buckminster.core.resolver.ResourceMapResolver.in nerResolve(ResourceMapResolver.java:251)
>
> at
> org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.re solve(ResolverNodeWithJob.java:218)
>
> at
> org.eclipse.buckminster.core.resolver.ResolverNodeWithJob.ru n(ResolverNodeWithJob.java:95)
>
> at
> org.eclipse.buckminster.core.resolver.ResolverNodeWithJob$No deResolutionJob.run(ResolverNodeWithJob.java:50)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
> I'm brand new to buckminster so I'm sure this is a newbe mistake.
>
> Mark Russell
> Build Master
> Instantiations, Inc.
|
|
|
Powered by
FUDForum. Page generated in 0.03532 seconds