You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "David Bosschaert (JIRA)" <ji...@apache.org> on 2009/12/04 16:56:20 UTC

[jira] Created: (CXF-2573) Exception when Remoting Service with Single-Bundle Distro w/o Discovery Server

Exception when Remoting Service with Single-Bundle Distro w/o Discovery Server
------------------------------------------------------------------------------

                 Key: CXF-2573
                 URL: https://issues.apache.org/jira/browse/CXF-2573
             Project: CXF
          Issue Type: Bug
          Components: Distributed-OSGi
    Affects Versions: dOSGi-1.1
            Reporter: David Bosschaert
            Priority: Minor


When using the Single Bundle Distribution you may get the following exception when remoting a service:

SEVERE: Exception while processing the addition of a ServicePublication.
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:59)
	at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:593)
	at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:620)
	at org.apache.cxf.dosgi.discovery.zookeeper.PublishToZooKeeperCustomizer.ensurePath(PublishToZooKeeperCustomizer.java:112)
	at org.apache.cxf.dosgi.discovery.zookeeper.PublishToZooKeeperCustomizer.addingService(PublishToZooKeeperCustomizer.java:68)
	at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1021)
	at org.osgi.util.tracker.ServiceTracker$Tracked.track(ServiceTracker.java:999)
	at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:924)
	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:124)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:930)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:757)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:712)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:129)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:206)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:506)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:524)
	at org.apache.cxf.dosgi.dsw.hooks.ServiceHookUtils.publish(ServiceHookUtils.java:55)
	at org.apache.cxf.dosgi.dsw.hooks.CxfPublishHook.publishEndpoint(CxfPublishHook.java:82)
	at org.apache.cxf.dosgi.dsw.Activator$1.run(Activator.java:164)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

This happens when you don't have a Zookeeper Discovery Server running.
The exception is harmless and everything still works but it should be changed into an INFO log message as running without Discovery is a perfectly valid use case.

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