Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster dev » alterGroups does not work anymore
alterGroups does not work anymore [message #34874] Wed, 17 June 2009 08:26 Go to next message
Ken Wenzel is currently offline Ken Wenzel
Messages: 39
Registered: July 2009
Member
Hallo,

in the latest version of Buckminster for Eclipse 3.5 <alterGroups> seems not to work.

The following buckminster.cspex file leads to a ClassCastException on project refresh:

<?xml version="1.0" encoding="UTF-8"?>
<cspecExtension
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
<dependencies>
</dependencies>
<generators>
</generators>
<artifacts>
<private name="bundle.resources" path="." />
</artifacts>
<actions>
</actions>
<groups>
</groups>
<alterDependencies>
</alterDependencies>
<alterArtifacts>
</alterArtifacts>
<alterActions>
</alterActions>
<alterGroups>
<public name="java.binaries">
<attribute name="bundle.resources" />
</public>
</alterGroups>
</cspecExtension>

The following exception is thrown:

Project refresh on de.fhg.iwu.koma failed: java.lang.ClassCastException: org.eclipse.buckminster.core.cspec.builder.GroupBuilder cannot be cast to
org.eclipse.buckminster.core.cspec.builder.ActionBuilder
org.eclipse.core.runtime.CoreException: java.lang.ClassCastException: org.eclipse.buckminster.core.cspec.builder.GroupBuilder cannot be cast to
org.eclipse.buckminster.core.cspec.builder.ActionBuilder
at org.eclipse.buckminster.runtime.BuckminsterException.fromMes sage(BuckminsterException.java:64)
at org.eclipse.buckminster.runtime.BuckminsterException.wrap(Bu ckminsterException.java:138)
at org.eclipse.buckminster.core.parser.AbstractParser.parseInpu t(AbstractParser.java:291)
at org.eclipse.buckminster.core.cspecext.parser.AlterCSpecParse r.parse(AlterCSpecParser.java:45)
at org.eclipse.buckminster.core.cspecext.parser.AlterCSpecParse r.parse(AlterCSpecParser.java:1)
at org.eclipse.buckminster.core.cspec.AbstractResolutionBuilder $1.consumeStream(AbstractResolutionBuilder.java:136)
at org.eclipse.buckminster.core.cspec.AbstractResolutionBuilder $1.consumeStream(AbstractResolutionBuilder.java:1)
at org.eclipse.buckminster.core.reader.URLCatalogReader.innerRe adFile(URLCatalogReader.java:228)
at org.eclipse.buckminster.core.reader.AbstractCatalogReader.re adFile(AbstractCatalogReader.java:327)
at org.eclipse.buckminster.core.cspec.AbstractResolutionBuilder .applyExtensions(AbstractResolutionBuilder.java:124)
at org.eclipse.buckminster.pde.cspecgen.PDEBuilder.build(PDEBui lder.java:86)
at org.eclipse.buckminster.core.ctype.AbstractComponentType.get Resolution(AbstractComponentType.java:343)
at org.eclipse.buckminster.pde.internal.EclipseBundleType.getRe solution(EclipseBundleType.java:55)
at org.eclipse.buckminster.core.ctype.AbstractComponentType.get Resolution(AbstractComponentType.java:207)
at org.eclipse.buckminster.core.resolver.LocalResolver.fromPath (LocalResolver.java:182)
at org.eclipse.buckminster.core.resolver.LocalResolver.fromPath (LocalResolver.java:106)
at org.eclipse.buckminster.core.metadata.MetadataSynchronizer.r efreshProject(MetadataSynchronizer.java:333)
at org.eclipse.buckminster.core.metadata.MetadataSynchronizer$M etadataRefreshJob.run(MetadataSynchronizer.java:137)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.ClassCastException: org.eclipse.buckminster.core.cspec.builder.GroupBuilder cannot be cast to
org.eclipse.buckminster.core.cspec.builder.ActionBuilder
at org.eclipse.buckminster.core.cspecext.builder.AlterGroupBuil der.addAlterPrerequisite(AlterGroupBuilder.java:43)
at org.eclipse.buckminster.core.cspecext.parser.AlterGroupHandl er.addAlterPrerequisite(AlterGroupHandler.java:83)
at org.eclipse.buckminster.core.cspecext.parser.AlterGroupHandl er.childPopped(AlterGroupHandler.java:57)
at org.eclipse.buckminster.sax.ChildHandler.endElement(ChildHan dler.java:72)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocume ntParser.emptyElement(AbstractXMLDocumentParser.java:180)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidato r.emptyElement(XMLSchemaValidator.java:719)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDriver.next(XMLDocumentFragmentSca nnerImpl.java:2740)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl.next(XMLDocumentScannerImpl.java:647)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 508)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(SAXParserImpl.java:522)
at org.eclipse.buckminster.core.parser.AbstractParser.parseInpu t(AbstractParser.java:282)
... 16 more

Best regards,
Ken Wenzel
Re: alterGroups does not work anymore [message #34942 is a reply to message #34874] Wed, 17 June 2009 08:45 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3229
Registered: July 2009
Senior Member
Ouch! That's probably my fault. I fixed a couple of other things that didn't work. Can you please enter a bugzilla for
this? It would be very helpful if you could attach an example that provokes the problem.

TIA,
Thomas Hallgren

Ken Wenzel wrote:
> Hallo,
>
> in the latest version of Buckminster for Eclipse 3.5 <alterGroups> seems
> not to work.
>
> The following buckminster.cspex file leads to a ClassCastException on
> project refresh:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cspecExtension
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
> xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
> <dependencies>
> </dependencies>
> <generators>
> </generators>
> <artifacts>
> <private name="bundle.resources" path="." />
> </artifacts>
> <actions>
> </actions>
> <groups>
> </groups>
> <alterDependencies>
> </alterDependencies>
> <alterArtifacts>
> </alterArtifacts>
> <alterActions>
> </alterActions>
> <alterGroups>
> <public name="java.binaries">
> <attribute name="bundle.resources" />
> </public>
> </alterGroups>
> </cspecExtension>
>
> The following exception is thrown:
>
> Project refresh on de.fhg.iwu.koma failed: java.lang.ClassCastException:
> org.eclipse.buckminster.core.cspec.builder.GroupBuilder cannot be cast
> to org.eclipse.buckminster.core.cspec.builder.ActionBuilder
> org.eclipse.core.runtime.CoreException: java.lang.ClassCastException:
> org.eclipse.buckminster.core.cspec.builder.GroupBuilder cannot be cast
> to org.eclipse.buckminster.core.cspec.builder.ActionBuilder
> at
> org.eclipse.buckminster.runtime.BuckminsterException.fromMes sage(BuckminsterException.java:64)
>
> at
> org.eclipse.buckminster.runtime.BuckminsterException.wrap(Bu ckminsterException.java:138)
>
> at
> org.eclipse.buckminster.core.parser.AbstractParser.parseInpu t(AbstractParser.java:291)
>
> at
> org.eclipse.buckminster.core.cspecext.parser.AlterCSpecParse r.parse(AlterCSpecParser.java:45)
>
> at
> org.eclipse.buckminster.core.cspecext.parser.AlterCSpecParse r.parse(AlterCSpecParser.java:1)
>
> at
> org.eclipse.buckminster.core.cspec.AbstractResolutionBuilder $1.consumeStream(AbstractResolutionBuilder.java:136)
>
> at
> org.eclipse.buckminster.core.cspec.AbstractResolutionBuilder $1.consumeStream(AbstractResolutionBuilder.java:1)
>
> at
> org.eclipse.buckminster.core.reader.URLCatalogReader.innerRe adFile(URLCatalogReader.java:228)
>
> at
> org.eclipse.buckminster.core.reader.AbstractCatalogReader.re adFile(AbstractCatalogReader.java:327)
>
> at
> org.eclipse.buckminster.core.cspec.AbstractResolutionBuilder .applyExtensions(AbstractResolutionBuilder.java:124)
>
> at
> org.eclipse.buckminster.pde.cspecgen.PDEBuilder.build(PDEBui lder.java:86)
> at
> org.eclipse.buckminster.core.ctype.AbstractComponentType.get Resolution(AbstractComponentType.java:343)
>
> at
> org.eclipse.buckminster.pde.internal.EclipseBundleType.getRe solution(EclipseBundleType.java:55)
>
> at
> org.eclipse.buckminster.core.ctype.AbstractComponentType.get Resolution(AbstractComponentType.java:207)
>
> at
> org.eclipse.buckminster.core.resolver.LocalResolver.fromPath (LocalResolver.java:182)
>
> at
> org.eclipse.buckminster.core.resolver.LocalResolver.fromPath (LocalResolver.java:106)
>
> at
> org.eclipse.buckminster.core.metadata.MetadataSynchronizer.r efreshProject(MetadataSynchronizer.java:333)
>
> at
> org.eclipse.buckminster.core.metadata.MetadataSynchronizer$M etadataRefreshJob.run(MetadataSynchronizer.java:137)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by: java.lang.ClassCastException:
> org.eclipse.buckminster.core.cspec.builder.GroupBuilder cannot be cast
> to org.eclipse.buckminster.core.cspec.builder.ActionBuilder
> at
> org.eclipse.buckminster.core.cspecext.builder.AlterGroupBuil der.addAlterPrerequisite(AlterGroupBuilder.java:43)
>
> at
> org.eclipse.buckminster.core.cspecext.parser.AlterGroupHandl er.addAlterPrerequisite(AlterGroupHandler.java:83)
>
> at
> org.eclipse.buckminster.core.cspecext.parser.AlterGroupHandl er.childPopped(AlterGroupHandler.java:57)
>
> at
> org.eclipse.buckminster.sax.ChildHandler.endElement(ChildHan dler.java:72)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endElement(AbstractSAXParser.java:601)
>
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocume ntParser.emptyElement(AbstractXMLDocumentParser.java:180)
>
> at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidato r.emptyElement(XMLSchemaValidator.java:719)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDriver.next(XMLDocumentFragmentSca nnerImpl.java:2740)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl.next(XMLDocumentScannerImpl.java:647)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.next(XMLNSDocumentScannerImpl.java:140)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 508)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:807)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:737)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:107)
>
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1205)
>
> at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(SAXParserImpl.java:522)
>
> at
> org.eclipse.buckminster.core.parser.AbstractParser.parseInpu t(AbstractParser.java:282)
>
> ... 16 more
>
> Best regards,
> Ken Wenzel
Re: alterGroups does not work anymore [message #35041 is a reply to message #34942] Wed, 17 June 2009 09:26 Go to previous message
Ken Wenzel is currently offline Ken Wenzel
Messages: 39
Registered: July 2009
Member
Created a bug report for this issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=280589
Previous Topic:[buckminster-dev] +1 for Achim Demelt on tools.buckminster
Next Topic:[buckminster-dev] +1 for Achim Demelt on tools.buckminster
Goto Forum:
  


Current Time: Fri Sep 19 04:03:16 GMT 2014

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

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