You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Kevin Scott Carr (JIRA)" <ji...@apache.org> on 2015/02/08 21:56:35 UTC

[jira] [Updated] (KARAF-3508) Features with bundles that use Sub Versions like 5.6.1-1 Fail

     [ https://issues.apache.org/jira/browse/KARAF-3508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Scott Carr updated KARAF-3508:
------------------------------------
    Description: 
When I try to add a feature that has a bundle that uses a sub version, I get a failure:

{noformat}
Adding feature url mvn:net.sf.jasperreports/JasperReportsKar/5.6.1/xml/features
Error executing command: Unable to refresh features repository mvn:net.sf.jasperreports/JasperReportsKar/5.6.1/xml/features
{noformat}

Checking the log, I see the following:

Caused by: java.lang.NumberFormatException: For input string: "1-1"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65
)[:1.7.0_75]
	at java.lang.Integer.parseInt(Integer.java:492)[:1.7.0_75]
	at java.lang.Integer.parseInt(Integer.java:527)[:1.7.0_75]

I have used this same feature in 3.0.1 and 3.0.2.

The feature file I am trying to use:
{code}
<?xml version="1.0" encoding="UTF-8"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0" name="">

	<feature name="JasperReports" version="5.6.1">
		<bundle>wrap:mvn:commons-collections/commons-collections/3.2.1</bundle>
		<bundle>mvn:commons-beanutils/commons-beanutils/1.8.0</bundle>
		<bundle>mvn:commons-digester/commons-digester/2.1</bundle>

		<!--
			  do not need this because it already exists in karaf
		<bundle>wrap:mvn:bouncycastle/bcmail-jdk14/138</bundle>
		<bundle>wrap:mvn:bouncycastle/bcprov-jdk14/138</bundle>
		-->
		<bundle>wrap:mvn:com.lowagie/itext/2.1.7.js2</bundle>
		<bundle>wrap:mvn:jfree/jcommon/1.0.15</bundle>
		<bundle>wrap:mvn:jfree/jfreechart/1.0.12</bundle>
		<bundle>mvn:com.fasterxml.jackson.core/jackson-core/2.0.5</bundle>
		<bundle>mvn:com.fasterxml.jackson.core/jackson-databind/2.0.5</bundle>
		<bundle>mvn:com.fasterxml.jackson.core/jackson-annotations/2.0.5</bundle>
		<!--
		<bundle>wrap:mvn:org.eclipse.core/runtime/3.3.100-v20070530</bundle>
		<bundle>wrap:mvn:org.eclipse.core/resources/3.3.0-v20070604</bundle>
		<bundle>wrap:mvn:org.eclipse/osgi/3.3.0-v20070530</bundle>
		<bundle>wrap:mvn:org.eclipse.core/expressions/3.3.0-v20070606-0010</bundle>
		<bundle>wrap:mvn:org.eclipse.core/jobs/3.3.0-v20070423</bundle>
		<bundle>wrap:mvn:org.eclipse.equinox/common/3.3.0-v20070426</bundle>
		<bundle>wrap:mvn:eclipse/jdtcore/3.1.0</bundle>
		-->

		<bundle>wrap:mvn:org.apache.poi/poi/3.10.1</bundle>
<!--
		<bundle>wrap:mvn:org.apache.poi/poi-ooxml/3.10.1</bundle>

		<bundle>wrap:mvn:org.apache.poi/poi-ooxml-schemas/3.10.1</bundle>
		-->

		<bundle>mvn:org.codehaus.groovy/groovy-all/2.3.6</bundle>

		<bundle>mvn:net.sf.jasperreports/jasperreports/5.6.1-1</bundle>
	</feature>
</features>
{code}

  was:
When I try to add a feature that has a bundle that uses a sub version, I get a failure:

{noformat}
Adding feature url mvn:net.sf.jasperreports/JasperReportsKar/5.6.1/xml/features
Error executing command: Unable to refresh features repository mvn:net.sf.jasperreports/JasperReportsKar/5.6.1/xml/features
{noformat}

Checking the log, I see the following:

Caused by: java.lang.NumberFormatException: For input string: "1-1"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65
)[:1.7.0_75]
	at java.lang.Integer.parseInt(Integer.java:492)[:1.7.0_75]
	at java.lang.Integer.parseInt(Integer.java:527)[:1.7.0_75]

I have used this same feature in 3.0.1 and 3.0.2.

The feature file I am trying to use:

<?xml version="1.0" encoding="UTF-8"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0" name="">

	<feature name="JasperReports" version="5.6.1">
		<bundle>wrap:mvn:commons-collections/commons-collections/3.2.1</bundle>
		<bundle>mvn:commons-beanutils/commons-beanutils/1.8.0</bundle>
		<bundle>mvn:commons-digester/commons-digester/2.1</bundle>

		<!--
			  do not need this because it already exists in karaf
		<bundle>wrap:mvn:bouncycastle/bcmail-jdk14/138</bundle>
		<bundle>wrap:mvn:bouncycastle/bcprov-jdk14/138</bundle>
		-->
		<bundle>wrap:mvn:com.lowagie/itext/2.1.7.js2</bundle>
		<bundle>wrap:mvn:jfree/jcommon/1.0.15</bundle>
		<bundle>wrap:mvn:jfree/jfreechart/1.0.12</bundle>
		<bundle>mvn:com.fasterxml.jackson.core/jackson-core/2.0.5</bundle>
		<bundle>mvn:com.fasterxml.jackson.core/jackson-databind/2.0.5</bundle>
		<bundle>mvn:com.fasterxml.jackson.core/jackson-annotations/2.0.5</bundle>
		<!--
		<bundle>wrap:mvn:org.eclipse.core/runtime/3.3.100-v20070530</bundle>
		<bundle>wrap:mvn:org.eclipse.core/resources/3.3.0-v20070604</bundle>
		<bundle>wrap:mvn:org.eclipse/osgi/3.3.0-v20070530</bundle>
		<bundle>wrap:mvn:org.eclipse.core/expressions/3.3.0-v20070606-0010</bundle>
		<bundle>wrap:mvn:org.eclipse.core/jobs/3.3.0-v20070423</bundle>
		<bundle>wrap:mvn:org.eclipse.equinox/common/3.3.0-v20070426</bundle>
		<bundle>wrap:mvn:eclipse/jdtcore/3.1.0</bundle>
		-->

		<bundle>wrap:mvn:org.apache.poi/poi/3.10.1</bundle>
<!--
		<bundle>wrap:mvn:org.apache.poi/poi-ooxml/3.10.1</bundle>

		<bundle>wrap:mvn:org.apache.poi/poi-ooxml-schemas/3.10.1</bundle>
		-->

		<bundle>mvn:org.codehaus.groovy/groovy-all/2.3.6</bundle>

		<bundle>mvn:net.sf.jasperreports/jasperreports/5.6.1-1</bundle>
	</feature>
</features>


> Features with bundles that use Sub Versions like 5.6.1-1 Fail
> -------------------------------------------------------------
>
>                 Key: KARAF-3508
>                 URL: https://issues.apache.org/jira/browse/KARAF-3508
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature
>    Affects Versions: 3.0.3
>         Environment: Ubuntu 12.04 Linux 3.0.3
>            Reporter: Kevin Scott Carr
>
> When I try to add a feature that has a bundle that uses a sub version, I get a failure:
> {noformat}
> Adding feature url mvn:net.sf.jasperreports/JasperReportsKar/5.6.1/xml/features
> Error executing command: Unable to refresh features repository mvn:net.sf.jasperreports/JasperReportsKar/5.6.1/xml/features
> {noformat}
> Checking the log, I see the following:
> Caused by: java.lang.NumberFormatException: For input string: "1-1"
> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65
> )[:1.7.0_75]
> 	at java.lang.Integer.parseInt(Integer.java:492)[:1.7.0_75]
> 	at java.lang.Integer.parseInt(Integer.java:527)[:1.7.0_75]
> I have used this same feature in 3.0.1 and 3.0.2.
> The feature file I am trying to use:
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0" name="">
> 	<feature name="JasperReports" version="5.6.1">
> 		<bundle>wrap:mvn:commons-collections/commons-collections/3.2.1</bundle>
> 		<bundle>mvn:commons-beanutils/commons-beanutils/1.8.0</bundle>
> 		<bundle>mvn:commons-digester/commons-digester/2.1</bundle>
> 		<!--
> 			  do not need this because it already exists in karaf
> 		<bundle>wrap:mvn:bouncycastle/bcmail-jdk14/138</bundle>
> 		<bundle>wrap:mvn:bouncycastle/bcprov-jdk14/138</bundle>
> 		-->
> 		<bundle>wrap:mvn:com.lowagie/itext/2.1.7.js2</bundle>
> 		<bundle>wrap:mvn:jfree/jcommon/1.0.15</bundle>
> 		<bundle>wrap:mvn:jfree/jfreechart/1.0.12</bundle>
> 		<bundle>mvn:com.fasterxml.jackson.core/jackson-core/2.0.5</bundle>
> 		<bundle>mvn:com.fasterxml.jackson.core/jackson-databind/2.0.5</bundle>
> 		<bundle>mvn:com.fasterxml.jackson.core/jackson-annotations/2.0.5</bundle>
> 		<!--
> 		<bundle>wrap:mvn:org.eclipse.core/runtime/3.3.100-v20070530</bundle>
> 		<bundle>wrap:mvn:org.eclipse.core/resources/3.3.0-v20070604</bundle>
> 		<bundle>wrap:mvn:org.eclipse/osgi/3.3.0-v20070530</bundle>
> 		<bundle>wrap:mvn:org.eclipse.core/expressions/3.3.0-v20070606-0010</bundle>
> 		<bundle>wrap:mvn:org.eclipse.core/jobs/3.3.0-v20070423</bundle>
> 		<bundle>wrap:mvn:org.eclipse.equinox/common/3.3.0-v20070426</bundle>
> 		<bundle>wrap:mvn:eclipse/jdtcore/3.1.0</bundle>
> 		-->
> 		<bundle>wrap:mvn:org.apache.poi/poi/3.10.1</bundle>
> <!--
> 		<bundle>wrap:mvn:org.apache.poi/poi-ooxml/3.10.1</bundle>
> 		<bundle>wrap:mvn:org.apache.poi/poi-ooxml-schemas/3.10.1</bundle>
> 		-->
> 		<bundle>mvn:org.codehaus.groovy/groovy-all/2.3.6</bundle>
> 		<bundle>mvn:net.sf.jasperreports/jasperreports/5.6.1-1</bundle>
> 	</feature>
> </features>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)