[shrinkwrap-issues] [JBoss JIRA] (SHRINKDESC-143) Descriptors.importAs(ManifestDescriptor.class) crashes

Rohan McGovern (JIRA) jira-events at lists.jboss.org
Fri Mar 22 01:44:41 EDT 2013


Rohan McGovern created SHRINKDESC-143:
-----------------------------------------

             Summary: Descriptors.importAs(ManifestDescriptor.class) crashes
                 Key: SHRINKDESC-143
                 URL: https://issues.jboss.org/browse/SHRINKDESC-143
             Project: ShrinkWrap Descriptors
          Issue Type: Bug
          Components: impl-base
    Affects Versions: 2.0.0-alpha-3
            Reporter: Rohan McGovern


The following code:

{code}
DescriptorImporter<ManifestDescriptor> importer
    = Descriptors.importAs(ManifestDescriptor.class);
{code}

... looks like it should work, but instead raises an exception like the following:

{noformat}
java.lang.RuntimeException: Configured importer for org.jboss.shrinkwrap.descriptor.api.spec.se.manifest.ManifestDescriptor of type: class org.jboss.shrinkwrap.descriptor.impl.base.spec.se.manifest.ManifestDescriptorImporter could not be created
	at org.jboss.shrinkwrap.descriptor.api.DescriptorInstantiator.createImporterFromUserView(DescriptorInstantiator.java:202)
	at org.jboss.shrinkwrap.descriptor.api.Descriptors.importAs(Descriptors.java:108)
	at org.jboss.shrinkwrap.descriptor.api.Descriptors.importAs(Descriptors.java:85)
	... 68 more
Caused by: java.lang.NoSuchMethodException: org.jboss.shrinkwrap.descriptor.impl.base.spec.se.manifest.ManifestDescriptorImporter.<init>(java.lang.Class, java.lang.String)
	at java.lang.Class.getConstructor0(Class.java:2730)
	at java.lang.Class.getConstructor(Class.java:1676)
	at org.jboss.shrinkwrap.descriptor.api.DescriptorInstantiator.createImporterFromUserView(DescriptorInstantiator.java:198)
	... 72 more
{noformat}

It is possible to use {code}(new ManifestDescriptorImporter(null)){code} as a workaround.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the shrinkwrap-issues mailing list