Closed tenitram closed 9 years ago
Hm, do you have any other entries in your error log?
Here is a full log entry from starting eclipse to hitting connect:
!SESSION 2014-10-22 20:52:01.092 ----------------------------------------------- eclipse.buildId=4.4.0.I20140606-1215 java.version=1.7.0_67 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product
!ENTRY org.apache.sling.ide.eclipse-core 4 0 2014-10-22 20:52:36.880 !MESSAGE Publishing failed !SUBENTRY 1 org.eclipse.wst.server.core 4 0 2014-10-22 20:52:36.880 !MESSAGE Could not publish to the server. !STACK 0 java.lang.IllegalStateException: Service is null at org.apache.sling.ide.eclipse.core.ServiceUtil.getNotNull(ServiceUtil.java:26) at org.apache.sling.ide.eclipse.core.internal.Activator.getSerializationManager(Activator.java:134) at org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.publishModule(SlingLaunchpadBehaviour.java:185) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1091) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1183) at org.apache.sling.ide.eclipse.core.internal.ServerBehaviourDelegateWithModulePublishSupport.publish(ServerBehaviourDelegateWithModulePublishSupport.java:137) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774) at org.apache.sling.ide.eclipse.core.internal.ServerBehaviourDelegateWithModulePublishSupport.publish(ServerBehaviourDelegateWithModulePublishSupport.java: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:345) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) !SUBENTRY 1 org.eclipse.wst.server.core 4 0 2014-10-22 20:52:36.881 !MESSAGE Could not publish to the server. !STACK 0 java.lang.IllegalStateException: Service is null at org.apache.sling.ide.eclipse.core.ServiceUtil.getNotNull(ServiceUtil.java:26) at org.apache.sling.ide.eclipse.core.internal.Activator.getSerializationManager(Activator.java:134) at org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.publishModule(SlingLaunchpadBehaviour.java:185) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1091) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1183) at org.apache.sling.ide.eclipse.core.internal.ServerBehaviourDelegateWithModulePublishSupport.publish(ServerBehaviourDelegateWithModulePublishSupport.java:137) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774) at org.apache.sling.ide.eclipse.core.internal.ServerBehaviourDelegateWithModulePublishSupport.publish(ServerBehaviourDelegateWithModulePublishSupport.java: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:345) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) !SUBENTRY 1 org.eclipse.wst.server.core 4 0 2014-10-22 20:52:36.881 !MESSAGE Could not publish to the server. !STACK 0 java.lang.IllegalStateException: Service is null at org.apache.sling.ide.eclipse.core.ServiceUtil.getNotNull(ServiceUtil.java:26) at org.apache.sling.ide.eclipse.core.internal.Activator.getSerializationManager(Activator.java:134) at org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.publishModule(SlingLaunchpadBehaviour.java:185) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1091) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1183) at org.apache.sling.ide.eclipse.core.internal.ServerBehaviourDelegateWithModulePublishSupport.publish(ServerBehaviourDelegateWithModulePublishSupport.java:137) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774) at org.apache.sling.ide.eclipse.core.internal.ServerBehaviourDelegateWithModulePublishSupport.publish(ServerBehaviourDelegateWithModulePublishSupport.java: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:345) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) !SUBENTRY 1 org.eclipse.wst.server.core 4 0 2014-10-22 20:52:36.881 !MESSAGE Could not publish to the server. !STACK 0 java.lang.IllegalStateException: Service is null at org.apache.sling.ide.eclipse.core.ServiceUtil.getNotNull(ServiceUtil.java:26) at org.apache.sling.ide.eclipse.core.internal.Activator.getSerializationManager(Activator.java:134) at org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.publishModule(SlingLaunchpadBehaviour.java:185) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1091) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1183) at org.apache.sling.ide.eclipse.core.internal.ServerBehaviourDelegateWithModulePublishSupport.publish(ServerBehaviourDelegateWithModulePublishSupport.java:137) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774) at org.apache.sling.ide.eclipse.core.internal.ServerBehaviourDelegateWithModulePublishSupport.publish(ServerBehaviourDelegateWithModulePublishSupport.java: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:345) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
@tenitram - I though we had fixed this ... just to confirm, are you running AEM Developer Tools 1.0.2 and Sling IDE Tooling 1.0.4 ?
@tenitram - can you confirm whether this happens all the time or just sometimes? /cc @gabrielwalt - I know you've seen this as well.
Hi, I updated AEM Developer Tools to 1.0.2 and still having this issue. It happens all the time.
Thanks for confirming. I'll have to add some tracing code and then ask you to install a dev build of the Sling IDE Tooling.
But... your question about Sling IDE Tooling 1.0.4 brought my attention to this plugin and it happened that I havent installed it at all. After installing it, connect started working. Maybe it can be configured to be dependency of AEM Dev Tools in Eclipse somehow?
Glad to hear it worked! You're right, we should make sure the dependencies are correctly set, filed #23 for that.
When hitting connect to server button I'm getting the following exception:
!SESSION 2014-09-03 02:04:46.728 ----------------------------------------------- eclipse.buildId=4.4.0.I20140606-1215 java.version=1.8.0_20 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.wst.server.core 4 0 2014-09-03 02:05:00.410 !MESSAGE Could not publish to the server. !STACK 0 java.lang.IllegalStateException: Service is null at org.apache.sling.ide.eclipse.core.ServiceUtil.getNotNull(ServiceUtil.java:26) at org.apache.sling.ide.eclipse.core.internal.Activator.getSerializationManager(Activator.java:134) at org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.publishModule(SlingLaunchpadBehaviour.java:185) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1091) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1183) at org.apache.sling.ide.eclipse.core.internal.ServerBehaviourDelegateWithModulePublishSupport.publish(ServerBehaviourDelegateWithModulePublishSupport.java:137) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774) at org.apache.sling.ide.eclipse.core.internal.ServerBehaviourDelegateWithModulePublishSupport.publish(ServerBehaviourDelegateWithModulePublishSupport.java: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:345) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Server is configured with defaults with port changed to 4502. I tried it with both Luna and Kepler on java-7-openjdk-amd64 and java-8-oracle on Ubuntu 14.04 64bit. (also tried on windows 7 with Luna - works ok, but my dev env is ubuntu)