[jira] [Issue Comment Deleted] (SLING-4405) Unable to install bundle for the first time
[ https://issues.apache.org/jira/browse/SLING-4405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Satya Deep Maheshwari updated SLING-4405: - Comment: was deleted (was: Yes uploading from local directory works.) Unable to install bundle for the first time --- Key: SLING-4405 URL: https://issues.apache.org/jira/browse/SLING-4405 Project: Sling Issue Type: Bug Components: IDE Affects Versions: Tooling Support Install 1.0.0 Reporter: Satya Deep Maheshwari Assignee: Robert Munteanu Fix For: Tooling Support Install 1.0.2 I am experimenting with sling IDE tooling. I am facing a problem wherein I am unable to deploy the bundle for the very first time using it. Once I have uploaded the bundle once using some other means, I am subsequently able to upload successfully using the ide tooling. On debugging this a bit, I see that the on installing the bundle for the very first time, the felix framework attempts to search for the bundle in a non-existent directory which fails with a FileNotFound exception. I compared this with the bundle install done from the felix web console. It looks like IDE tooling uses the InstallServlet mechanism while the web console does not. The InstallServlet tries to determine the location of this bundle if it already exists and if it does not, it sets it to null which later causes the above mentioned problem. Below is the exception trace: 11.02.2015 14:59:49.172 *ERROR* [qtp1941320881-42] ERROR: Error getting location from bundle archive. (java.io.FileNotFoundException: /home/satyadeep/code/sling/sling/felix/bundle181/bundle.location (No such file or directory)) java.io.FileNotFoundException: /home/satyadeep/code/sling/sling/felix/bundle181/bundle.location (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:146) at org.apache.felix.framework.util.SecureAction.getFileInputStream(SecureAction.java:453) at org.apache.felix.framework.cache.BundleArchive.readLocation(BundleArchive.java:1107) at org.apache.felix.framework.cache.BundleArchive.getLocation(BundleArchive.java:256) at org.apache.felix.framework.BundleImpl._getLocation(BundleImpl.java:621) at org.apache.felix.framework.BundleProtectionDomain$RevisionAsJarURL.create(BundleProtectionDomain.java:335) at org.apache.felix.framework.BundleProtectionDomain$RevisionAsJarURL.access$200(BundleProtectionDomain.java:234) at org.apache.felix.framework.BundleProtectionDomain.init(BundleProtectionDomain.java:385) at org.apache.felix.framework.Felix.setBundleProtectionDomain(Felix.java:938) at org.apache.felix.framework.BundleImpl.addRevision(BundleImpl.java:1219) at org.apache.felix.framework.BundleImpl.init(BundleImpl.java:114) at org.apache.felix.framework.Felix.installBundle(Felix.java:2976) at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:169) at org.apache.sling.tooling.support.install.impl.InstallServlet.installOrUpdateBundle(InstallServlet.java:242) at org.apache.sling.tooling.support.install.impl.InstallServlet.installBasedOnUploadedJar(InstallServlet.java:149) at org.apache.sling.tooling.support.install.impl.InstallServlet.doPost(InstallServlet.java:101) at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:339) at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:300) at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:93) at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:50) at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) at org.apache.sling.launchpad.testservices.filters.TestFilter.doFilter(TestFilter.java:47) at org.apache.sling.launchpad.testservices.filters.HttpServiceExtFilter.doFilter(HttpServiceExtFilter.java:27) at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108) at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80) at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46) at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) at
[jira] [Issue Comment Deleted] (SLING-4405) Unable to install bundle for the first time
[ https://issues.apache.org/jira/browse/SLING-4405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Satya Deep Maheshwari updated SLING-4405: - Comment: was deleted (was: Yes uploading from local directory works.) Unable to install bundle for the first time --- Key: SLING-4405 URL: https://issues.apache.org/jira/browse/SLING-4405 Project: Sling Issue Type: Bug Components: IDE Affects Versions: Tooling Support Install 1.0.0 Reporter: Satya Deep Maheshwari Assignee: Robert Munteanu Fix For: Tooling Support Install 1.0.2 I am experimenting with sling IDE tooling. I am facing a problem wherein I am unable to deploy the bundle for the very first time using it. Once I have uploaded the bundle once using some other means, I am subsequently able to upload successfully using the ide tooling. On debugging this a bit, I see that the on installing the bundle for the very first time, the felix framework attempts to search for the bundle in a non-existent directory which fails with a FileNotFound exception. I compared this with the bundle install done from the felix web console. It looks like IDE tooling uses the InstallServlet mechanism while the web console does not. The InstallServlet tries to determine the location of this bundle if it already exists and if it does not, it sets it to null which later causes the above mentioned problem. Below is the exception trace: 11.02.2015 14:59:49.172 *ERROR* [qtp1941320881-42] ERROR: Error getting location from bundle archive. (java.io.FileNotFoundException: /home/satyadeep/code/sling/sling/felix/bundle181/bundle.location (No such file or directory)) java.io.FileNotFoundException: /home/satyadeep/code/sling/sling/felix/bundle181/bundle.location (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:146) at org.apache.felix.framework.util.SecureAction.getFileInputStream(SecureAction.java:453) at org.apache.felix.framework.cache.BundleArchive.readLocation(BundleArchive.java:1107) at org.apache.felix.framework.cache.BundleArchive.getLocation(BundleArchive.java:256) at org.apache.felix.framework.BundleImpl._getLocation(BundleImpl.java:621) at org.apache.felix.framework.BundleProtectionDomain$RevisionAsJarURL.create(BundleProtectionDomain.java:335) at org.apache.felix.framework.BundleProtectionDomain$RevisionAsJarURL.access$200(BundleProtectionDomain.java:234) at org.apache.felix.framework.BundleProtectionDomain.init(BundleProtectionDomain.java:385) at org.apache.felix.framework.Felix.setBundleProtectionDomain(Felix.java:938) at org.apache.felix.framework.BundleImpl.addRevision(BundleImpl.java:1219) at org.apache.felix.framework.BundleImpl.init(BundleImpl.java:114) at org.apache.felix.framework.Felix.installBundle(Felix.java:2976) at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:169) at org.apache.sling.tooling.support.install.impl.InstallServlet.installOrUpdateBundle(InstallServlet.java:242) at org.apache.sling.tooling.support.install.impl.InstallServlet.installBasedOnUploadedJar(InstallServlet.java:149) at org.apache.sling.tooling.support.install.impl.InstallServlet.doPost(InstallServlet.java:101) at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:339) at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:300) at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:93) at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:50) at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) at org.apache.sling.launchpad.testservices.filters.TestFilter.doFilter(TestFilter.java:47) at org.apache.sling.launchpad.testservices.filters.HttpServiceExtFilter.doFilter(HttpServiceExtFilter.java:27) at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108) at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80) at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46) at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) at