[
https://issues.apache.org/jira/browse/FELIX-1386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12742302#action_12742302
]
Filippo Diotalevi commented on FELIX-1386:
------------------------------------------
Sahoo, I still cannot reproduce.
Here are my experiments:
---------------use hierarchical uri------------
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:///opt/myprojects/felix-1.8.0/load/org.apache.felix.fileinstall-1.3.0-SNAPSHOT.jar
$ java -jar bin/felix.jar
Welcome to Felix.
=================
DEBUG: WIRE: 1.0 -> org.osgi.service.startlevel -> 0
DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 1.0 -> org.osgi.service.packageadmin -> 0
DEBUG: WIRE: 2.0 -> org.apache.felix.shell -> 1.0
DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0
-> DEBUG: WIRE: 3.0 -> org.osgi.util.tracker -> 0
DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 3.0 -> org.osgi.service.packageadmin -> 0
{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}
... no exceptions.....
---------------after that I update it from the shell------------
-> ps
START LEVEL 1
ID State Level Name
[ 0] [Active ] [ 0] System Bundle (1.8.0)
[ 1] [Active ] [ 1] Apache Felix Shell Service (1.2.0)
[ 2] [Active ] [ 1] Apache Felix Shell TUI (1.2.0)
[ 3] [Active ] [ 1] Apache Felix File Install (1.3.0.SNAPSHOT)
-> update 3
DEBUG: WIRE: 3.0 -> org.osgi.util.tracker -> 0
DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 3.0 -> org.osgi.service.packageadmin -> 0
-> {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}
-> update 3
file:///opt/myprojects/felix-1.8.0/load/org.apache.felix.fileinstall-1.3.0-SNAPSHOT.jar
DEBUG: WIRE: 3.0 -> org.osgi.util.tracker -> 0
DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 3.0 -> org.osgi.service.packageadmin -> 0
{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}
> 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.