You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Andrei Pozolotin (JIRA)" <ji...@apache.org> on 2011/05/29 04:11:47 UTC

[jira] [Commented] (FELIX-2765) bundle plugin throw IllegalArgumentException while do the install

    [ https://issues.apache.org/jira/browse/FELIX-2765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040723#comment-13040723 ] 

Andrei Pozolotin commented on FELIX-2765:
-----------------------------------------

I see the same issue

[INFO] --- maven-bundle-plugin:2.3.4:bundle (default-bundle) @ barchart-plugin-media-brand ---
[ERROR] An internal error occurred
java.lang.IllegalArgumentException: Cannot write resource: images/common/download_progress.gif aQute.lib.osgi.PreprocessResource@1687dcd exception: java.io.IOException: Opening resource
	at aQute.lib.osgi.Jar.writeResource(Jar.java:310)
	at aQute.lib.osgi.Jar.write(Jar.java:219)
	at aQute.lib.osgi.Jar.write(Jar.java:187)
	at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:299)
	at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:224)
	at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:215)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

> bundle plugin throw IllegalArgumentException while do the install
> -----------------------------------------------------------------
>
>                 Key: FELIX-2765
>                 URL: https://issues.apache.org/jira/browse/FELIX-2765
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.0.1
>         Environment: maven3 on win os
>            Reporter: Zeng.haojie
>            Priority: Blocker
>
> [ERROR] An internal error occurred
> java.lang.IllegalArgumentException: Cannot write resource: res/images/wired.gif aQute.lib.osgi.PreprocessResource@106121 exception: java.io.IOException: Opening
>  resource
>         at aQute.lib.osgi.Jar.writeResource(Jar.java:302)
>         at aQute.lib.osgi.Jar.write(Jar.java:211)
>         at aQute.lib.osgi.Jar.write(Jar.java:182)
>         at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:313)
>         at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:238)
>         at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:229)
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:134)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira