You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Filippo Diotalevi (JIRA)" <ji...@apache.org> on 2009/07/21 17:53:14 UTC

[jira] Issue Comment Edited: (FELIX-1386) Updating fileinstall bundle in watched directory causes IllegalsStateException

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

Filippo Diotalevi edited comment on FELIX-1386 at 7/21/09 8:51 AM:
-------------------------------------------------------------------

What's your setup exactly?

Mine:
felix.auto.start.1= \
 file:bundle/org.apache.felix.shell-1.2.0.jar \
 file:bundle/org.apache.felix.shell.tui-1.2.0.jar \
 file:load/org.apache.felix.fileinstall-1.3.0-SNAPSHOT.jar \

and fileinstall watches the ./load folder

When I start, I see the exception:
{felix.fileinstall.poll (ms) = 2000, felix.fileinstall.dir = /opt/myprojects/felix-1.8.0/./load, felix.fileinstall.debug = -1, felix.fileinstall.bundles.new.start = true}
org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.apache.felix.fileinstall:1.3.0.SNAPSHOT
	at org.apache.felix.framework.BundleImpl.createModule(BundleImpl.java:1000)
	at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:79)
	at org.apache.felix.framework.Felix.installBundle(Felix.java:2123)
	at org.apache.felix.framework.Felix.installBundle(Felix.java:2026)
	at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:130)
	at org.apache.felix.fileinstall.DirectoryWatcher.install(DirectoryWatcher.java:719)
	at org.apache.felix.fileinstall.DirectoryWatcher.install(DirectoryWatcher.java:625)
	at org.apache.felix.fileinstall.DirectoryWatcher.doInstalled(DirectoryWatcher.java:381)
	at org.apache.felix.fileinstall.DirectoryWatcher.run(DirectoryWatcher.java:123)
Failed to install bundle: /opt/myprojects/felix-1.8.0/load/org.apache.felix.fileinstall-1.3.0-SNAPSHOT.jar: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.apache.felix.fileinstall:1.3.0.SNAPSHOT

I see the same exception when I try to update the same bundle.

      was (Author: fdiotalevi):
    What's your setup exactly?

Mine:
felix.auto.start.1= \
 file:bundle/org.apache.felix.shell-1.2.0.jar \
 file:bundle/org.apache.felix.shell.tui-1.2.0.jar \
 file:load/org.apache.felix.fileinstall-1.3.0-SNAPSHOT.jar \

and fileinstall watches the ./load folder

When I start, I see the exception:
{felix.fileinstall.poll (ms) = 2000, felix.fileinstall.dir = /opt/myprojects/felix-1.8.0/./load, felix.fileinstall.debug = -1, felix.fileinstall.bundles.new.start = true}
org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.apache.felix.fileinstall:1.3.0.SNAPSHOT
	at org.apache.felix.framework.BundleImpl.createModule(BundleImpl.java:1000)
	at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:79)
	at org.apache.felix.framework.Felix.installBundle(Felix.java:2123)
	at org.apache.felix.framework.Felix.installBundle(Felix.java:2026)
	at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:130)
	at org.apache.felix.fileinstall.DirectoryWatcher.install(DirectoryWatcher.java:719)
	at org.apache.felix.fileinstall.DirectoryWatcher.install(DirectoryWatcher.java:625)
	at org.apache.felix.fileinstall.DirectoryWatcher.doInstalled(DirectoryWatcher.java:381)
	at org.apache.felix.fileinstall.DirectoryWatcher.run(DirectoryWatcher.java:123)
Failed to install bundle: /opt/myprojects/felix-1.8.0/load/org.apache.felix.fileinstall-1.2.0.jar: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.apache.felix.fileinstall:1.3.0.SNAPSHOT

I see the same exception when I try to update the same bundle.
  
> Updating fileinstall bundle in watched directory causes IllegalsStateException
> ------------------------------------------------------------------------------
>
>                 Key: FELIX-1386
>                 URL: https://issues.apache.org/jira/browse/FELIX-1386
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>    Affects Versions: fileinstall-1.2.0
>         Environment: generic
>            Reporter: Sahoo
>            Assignee: Filippo Diotalevi
>             Fix For: fileinstall-1.4.0
>
>
> In my environment, fileinstall is installed via autostart properties, but it is located in a directory watched by fileinstall. When I updated fileinstall bundle, I get the following exception:
> Jul 20, 2009 11:52:04 AM  
> SEVERE: Exception in thread "{felix.fileinstall.poll=5000, felix.fileinstall.bundles.new.start=false, felix.fileinstall.dir=/space/ss141213/WS/gf/v3.trunk.new/publish/glassfishv3/glassfish/modules/, felix.fileinstall.debug=1}" 
> Jul 20, 2009 11:52:20 AM  
> SEVERE: java.lang.IllegalStateException: Invalid BundleContext.
> Jul 20, 2009 11:52:20 AM  
> SEVERE:         at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:393)
> Jul 20, 2009 11:52:20 AM  
> SEVERE:         at org.apache.felix.framework.BundleContextImpl.getServiceReference(BundleContextImpl.java:257)
> Jul 20, 2009 11:52:20 AM  
> SEVERE:         at org.apache.felix.fileinstall.DirectoryWatcher.getLogService(DirectoryWatcher.java:449)
> Jul 20, 2009 11:52:20 AM  
> SEVERE:         at org.apache.felix.fileinstall.DirectoryWatcher.log(DirectoryWatcher.java:416)
> Jul 20, 2009 11:52:20 AM  
> SEVERE:         at org.apache.felix.fileinstall.DirectoryWatcher.run(DirectoryWatcher.java:133)
> Jul 20, 2009 11:52:04 AM  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.