You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Zeng.haojie (JIRA)" <ji...@apache.org> on 2011/01/06 08:33:45 UTC

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

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.
-
You can reply to this email to add a comment to the issue online.


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

Posted by "Andrei Pozolotin (JIRA)" <ji...@apache.org>.
    [ 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

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

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch resolved FELIX-2765.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: maven-bundle-plugin-2.3.5

> 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
>             Fix For: maven-bundle-plugin-2.3.5
>
>
> [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

        

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

Posted by "Andrei Pozolotin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13050575#comment-13050575 ] 

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

the issue is gone after switch to:

			<dependency>
				<groupId>org.apache.felix</groupId>
				<artifactId>org.apache.felix.scr.annotations</artifactId>
				<version>1.5.3-SNAPSHOT</version>
				<optional>true</optional>
			</dependency>

				<plugin>
					<groupId>org.apache.felix</groupId>
					<artifactId>maven-scr-plugin</artifactId>
					<version>1.7.1-SNAPSHOT</version>
				</plugin>

				<plugin>
					<groupId>org.apache.felix</groupId>
					<artifactId>maven-bundle-plugin</artifactId>
					<version>2.3.5-SNAPSHOT</version>
					<extensions>true</extensions>
				</plugin>


> 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

        

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

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13050407#comment-13050407 ] 

Stuart McCulloch commented on FELIX-2765:
-----------------------------------------

Any chance of getting a test project that recreates the error? Or at least an idea of the project layout / bundle instructions, since I haven't managed to recreate this locally.

> 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