inline From: Stefan Egli <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Monday, November 17, 2014 at 1:03 AM To: "[email protected]" <[email protected]> Subject: Re: State of sling eclipse plugins for IDE deploy/undeploy.
>Hi Bruce, > >Which version of the 'org.apache.felix.framework' bundle are you running >with ? > > I’m using org.apache.felix.framework 4.4.1. This is the version I get when running the current (or a few days old) sling trunk launchpad standalone jar. -Bruce > >Cheers, >Stefan > >On 11/14/14 11:15 PM, "Bruce Edge" <[email protected]> wrote: > >>Here¹s the full stack trace from the sling error.log triggered by >>³adding² a bundle to the server from inside eclipse. >>This shows the original felix NPE, the eclipse console did not. >> >>14.11.2014 14:11:21.716 *INFO* [qtp124750626-43] >>org.apache.sling.tooling.support.install.impl.InstallServlet Unable to >>install/update bundle com.nim.ct.dam.bundle.ingest >>org.osgi.framework.BundleException: Could not create bundle object. >> at >>org.apache.felix.framework.Felix.installBundle(Felix.java:2960) >> at >>org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextI >>m >>pl.java:165) >> at >>org.apache.sling.tooling.support.install.impl.InstallServlet.installOrUpd >>a >>teBundle(InstallServlet.java:242) >> at >>org.apache.sling.tooling.support.install.impl.InstallServlet.installBased >>O >>nUploadedJar(InstallServlet.java:149) >> at >>org.apache.sling.tooling.support.install.impl.InstallServlet.doPost(Insta >>l >>lServlet.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(Servl >>e >>tHandler.java:339) >> at >>org.apache.felix.http.base.internal.handler.ServletHandler.handle(Servlet >>H >>andler.java:300) >> at >>org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(Servl >>e >>tPipeline.java:93) >> at >>org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilt >>e >>r(InvocationFilterChain.java:50) >> at >>org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(Htt >>p >>FilterChain.java:31) >> at >>org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLogg >>e >>rFilter.java:75) >> at >>org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(Filter >>H >>andler.java:108) >> at >>org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHa >>n >>dler.java:80) >> at >>org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilt >>e >>r(InvocationFilterChain.java:46) >> at >>org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(Htt >>p >>FilterChain.java:31) >> at >>org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(Filt >>e >>rPipeline.java:76) >> at >>org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatch >>e >>r.java:49) >> at >>org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherS >>e >>rvlet.java:67) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) >> at >>org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) >> at >>org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501 >>) >> at >>org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.j >>a >>va:229) >> at >>org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.j >>a >>va:1086) >> at >>org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) >> at >>org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.ja >>v >>a:193) >> at >>org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.ja >>v >>a:1020) >> at >>org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java: >>1 >>35) >> at >>org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextH >>a >>ndlerCollection.java:255) >> at >>org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.jav >>a >>:116) >> at org.eclipse.jetty.server.Server.handle(Server.java:370) >> at >>org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHtt >>p >>Connection.java:494) >> at >>org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConne >>c >>tion.java:982) >> at >>org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(Ab >>s >>tractHttpConnection.java:1043) >> at >>org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) >> at >>org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) >> at >>org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.j >>a >>va:82) >> at >>org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoi >>n >>t.java:667) >> at >>org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoin >>t >>.java:52) >> at >>org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.ja >>v >>a:608) >> at >>org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.jav >>a >>:543) >> at java.lang.Thread.run(Thread.java:745) >>Caused by: java.lang.NullPointerException: null >> at >>org.apache.felix.framework.BundleProtectionDomain.<init>(BundleProtection >>D >>omain.java:46) >> at >>org.apache.felix.framework.Felix.setBundleProtectionDomain(Felix.java:877 >>) >> at >>org.apache.felix.framework.BundleImpl.addRevision(BundleImpl.java:1213) >> at >>org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:113) >> at >>org.apache.felix.framework.Felix.installBundle(Felix.java:2907) >> ... 42 common frames omitted >> >>From: Bruce Edge >><[email protected]<mailto:[email protected]>> >>Reply-To: "[email protected]<mailto:[email protected]>" >><[email protected]<mailto:[email protected]>> >>Date: Friday, November 14, 2014 at 7:47 AM >>To: "[email protected]<mailto:[email protected]>" >><[email protected]<mailto:[email protected]>> >>Subject: Re: State of sling eclipse plugins for IDE deploy/undeploy. >> >>HI Robert, >> >>Regarding the sling console log, I tried in debug mode and got no output >>on the console at all. Specifically, while viewing the sling console, >>right click on the sling server and choose Debug. No console output at >>all, although I can see the debugger attach in the debug view form the >>threads displayed. >> >>BTW, as the sling server is on a VM, I changed the "Specify how to >>install bundles on the server² >>from: Install bundles directly from the filesystem >>to: Install bundles via bundle upload >>As my eclipse instance doesn¹t have access to the target VM¹s filesystem >> >>If I disconnect the server and start again with ³Start² rather than >>³Debug², I get a lot of output on the console, ending with: >> >> >>[November 14, 2014 7:33:26 AM PST] ListChildrenCommand -> / : JcrResult[ >>success:true] (27 ms >> >>Then when I ³add² my bundle to the server I get an error dialog with: >> >> >>Failed installing bundle : Unable to install/update bundle >>com.nim.ct.dam.bundle.ingest : Could not create bundle object. >> >>Unable to install/update bundle com.nim.ct.dam.bundle.ingest : Could not >>create bundle object. >> >> >>and an exception in the log: >> >> >>[November 14, 2014 7:36:30 AM PST] InstallJarredBundle -> >>/Users/bedge/git/server/content/dam/postIngest/target/classes : FAILED >>(45 ms) >> >>org.apache.sling.ide.osgi.OsgiClientException: Unable to install/update >>bundle com.nim.ct.dam.bundle.ingest : Could not create bundle object. >> >>at >>org.apache.sling.ide.osgi.impl.HttpOsgiClient$LocalBundleInstaller.instal >>l >>Bundle(HttpOsgiClient.java:216) >> >>at >>org.apache.sling.ide.osgi.impl.HttpOsgiClient.installLocalBundle(HttpOsgi >>C >>lient.java:191) >> >>at >>org.apache.sling.ide.osgi.impl.TracingOsgiClient.logInstallLocalBundle(Tr >>a >>cingOsgiClient.java:73) >> >>at >>org.apache.sling.ide.osgi.impl.TracingOsgiClient.installLocalBundle(Traci >>n >>gOsgiClient.java:101) >> >>at >>org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.publis >>h >>BundleModule(SlingLaunchpadBehaviour.java:347) >> >>at >>org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.publis >>h >>Module(SlingLaunchpadBehaviour.java:219) >> >>at >>org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(S >>e >>rverBehaviourDelegate.java:1091) >> >>at >>org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules( >>S >>erverBehaviourDelegate.java:1183) >> >>at >>org.apache.sling.ide.eclipse.core.internal.ServerBehaviourDelegateWithMod >>u >>lePublishSupport.publish(ServerBehaviourDelegateWithModulePublishSupport. >>j >>ava:137) >> >>at >>org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerB >>e >>haviourDelegate.java:774) >> >>at >>org.apache.sling.ide.eclipse.core.internal.ServerBehaviourDelegateWithMod >>u >>lePublishSupport.publish(ServerBehaviourDelegateWithModulePublishSupport. >>j >>ava:54) >> >>at >>org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3157) >> >>at >>org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:34 >>5 >>) >> >>at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54 >> >>Note that this same bundle does deploy with maven. >> >>-Bruce >> >>From: Robert Munteanu >><[email protected]<mailto:[email protected]><mailto:[email protected]> >>> >>Reply-To: >>"[email protected]<mailto:[email protected]><mailto:users@sling >>. >>apache.org>" >><[email protected]<mailto:[email protected]><mailto:users@sling >>. >>apache.org>> >>Date: Friday, November 14, 2014 at 5:07 AM >>To: >>"[email protected]<mailto:[email protected]><mailto:users@sling >>. >>apache.org>" >><[email protected]<mailto:[email protected]><mailto:users@sling >>. >>apache.org>> >>Subject: Re: State of sling eclipse plugins for IDE deploy/undeploy. >> >>Hi Bruce, >> >>On Thu, Nov 13, 2014 at 8:57 AM, Bruce Edge >><[email protected]<mailto:[email protected]><mail >>t >>o:[email protected]>> wrote: >>Also, I found 2 plugins that seem to be similar, >>http://docs.adobe.com/content/docs/en/dev-tools/aem-eclipse.html >>http://sling.apache.org/documentation/development/ide-tooling.html >>Which to people use? >> >>I settled on the non-adobe one as I'm not using CQ. >> >>Well, that's the right approach. For now, the Adobe plugins add a new >>project wizard and some AEM branding. The new project wizard generates >>a project based on AEM libraries so it would not deploy on Sling at >>all. The rest of the features come from the Sling IDE Tooling anyway. >> >> >>Does anyone actually use the eclipse sling plugin to add/remove bundles >>to/from a sling server? >> >>I got a doPost SlingAllMethodsServlet working, but only through the maven >>plugin, i.e.: >>mvn org.apache.sling:maven-sling-plugin:install-file >>-Dsling.file=ingest-2.2.2.jar >> >>Connecting to a sling server from the plugin's server manager works, as >>does the debugging. So just the deploy/undeploy seems broken. >>I'm running on nonstandard ports (not 8080) for conflict reasons, is >>there anything that needs to change other than in the server's config? >> >> >>That should work, I'm using it for day-to-day work. A couple of >>questions: >> >>1. Do you have anything in the sling log that indicates an error >>deploying from Eclipse? >>2. If you open the Sling console ( see [1] ) do you see anything >>related to installing local bundles? >> >>Thanks, >> >>Robert >> >>[1]: >>https://sling.apache.org/documentation/development/ide-tooling.html#gathe >>r >>ing-debug-information >> >> >>I do have the port setup in the pom: >> <plugin> >> <groupId>org.apache.sling</groupId> >> <artifactId>maven-sling-plugin</artifactId> >> <version>2.1.0</version> >> <configuration> >> >><slingUrl>http://localhost:8090/system/console</slingUrl> >> <user>admin</user> >> <password>admin</password> >> </configuration> >> </plugin> >> >>-Bruce >> >>
