How to develop a distributed system with Apache CXF D-OSGi? - cxf

My development environment and requirement: Eclipse3.6, Equinox framework, Apache cxf-dosgi-ri-singlebundle-distribution-1.2.jar
I want to try a demo distributed program, but it seems that the imported cxf jar could't work normally. First of all, the cxf-dosgi I downloaded is a zip file, I simply renamed its extension to jar. And I imported it into Eclipse workbench with no error prompted.
But when I try to run it with osgi, osgi.service, javax.servlet, it shows massive console messages in red color which makes me panic.
Actually when I add the service, impl, client bundles, the system can't work, I think something must be wrong when starting the cxf-dosgi bundle.
Who can help me?
osgi> Setting HttpService port to: 8080
felix.fileinstall.poll (ms) 2000
felix.fileinstall.dir D:\Program Files\Eclipse3.6\.\load
felix.fileinstall.debug -1
felix.fileinstall.bundles.new.start true
log4j:WARN No appenders could be found for logger (org.mortbay.jetty).
log4j:WARN Please initialize the log4j system properly.
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.Activator start
信息: TopologyManager: start()
2011-5-10 20:19:48 org.apache.cxf.dosgi.discovery.zookeeper.Activator updated
信息: Received configuration update for Zookeeper Discovery: null
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl getRegistrationProperties
信息: EndpointListener: current filter: []
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.TopologyManager$1 addingService
信息: TopologyManager: new EndpointListener that wants to be informed about wants going on ...
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.log.LogService)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.cm.ConfigurationListener)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.apache.felix.cm.PersistenceManager)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.cm.ManagedService)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.cm.ManagedServiceFactory)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.packageadmin.PackageAdmin)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.cm.ConfigurationAdmin)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.remoteserviceadmin.EndpointListener)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.remoteserviceadmin.EndpointListener)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: null
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.remoteserviceadmin.RemoteServiceAdmin)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.packageadmin.PackageAdmin)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping import request for excluded classs [org.osgi.service.packageadmin.PackageAdmin]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.url.URLStreamHandlerService)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping import request for excluded classs [org.osgi.service.url.URLStreamHandlerService]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.packageadmin.PackageAdmin)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping import request for excluded classs [org.osgi.service.packageadmin.PackageAdmin]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=java.net.ContentHandler)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping import request for excluded classs [java.net.ContentHandler]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.eclipse.osgi.framework.console.CommandProvider)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl extendScope
信息: EndpointListener: extending scope by (&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl updateRegistration
信息: EndpointListenerImpl: filters: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl getRegistrationProperties
信息: EndpointListener: current filter: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.TopologyManager$1 modifiedService
信息: TopologyManager: EndpointListener changed ...
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.eclipse.osgi.framework.console.ConsoleSession)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl extendScope
信息: EndpointListener: extending scope by (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl updateRegistration
信息: EndpointListenerImpl: filters: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl getRegistrationProperties
信息: EndpointListener: current filter: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.TopologyManager$1 modifiedService
信息: TopologyManager: EndpointListener changed ...
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl extendScope
信息: EndpointListener: extending scope by (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl updateRegistration
信息: EndpointListenerImpl: filters: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl getRegistrationProperties
信息: EndpointListener: current filter: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.TopologyManager$1 modifiedService
信息: TopologyManager: EndpointListener changed ...
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl extendScope
信息: EndpointListener: extending scope by (&(objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl updateRegistration
信息: EndpointListenerImpl: filters: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl getRegistrationProperties
信息: EndpointListener: current filter: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.TopologyManager$1 modifiedService
信息: TopologyManager: EndpointListener changed ...
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.eclipse.osgi.service.runnable.StartupMonitor)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl extendScope
信息: EndpointListener: extending scope by (&(objectClass=org.eclipse.osgi.service.runnable.StartupMonitor)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl updateRegistration
信息: EndpointListenerImpl: filters: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.runnable.StartupMonitor)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl getRegistrationProperties
信息: EndpointListener: current filter: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.runnable.StartupMonitor)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.TopologyManager$1 modifiedService
信息: TopologyManager: EndpointListener changed ...
2011-5-10 20:19:49 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.springframework.osgi.context.event.OsgiBundleApplicationContextListener)
2011-5-10 20:19:49 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
Loading Intent map from [classpath:/OSGI-INF/cxf/intents/intent-map.xml]
2011-5-10 20:20:05 org.apache.cxf.dosgi.dsw.qos.IntentMap setIntents
信息: Injected intents: {addressing=org.apache.cxf.ws.policy.WSPolicyFeature#cbf9bd, logging=org.apache.cxf.feature.LoggingFeature#17918f0, SOAP=org.apache.cxf.binding.soap.SoapBindingConfiguration#1546dbc, SOAP.1_1=org.apache.cxf.binding.soap.SoapBindingConfiguration#1546dbc, SOAP.1_2=org.apache.cxf.binding.soap.SoapBindingConfiguration#1f08ed8, HTTP=PROVIDED}
application context: org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext#384065: display name [OsgiBundleXmlApplicationContext(bundle=cxf-dosgi-ri-singlebundle-distribution, config=classpath:/OSGI-INF/cxf/intents/intent-map.xml)]; startup date [Tue May 10 20:19:58 CST 2011]; root of context hierarchy
retrieved intent map: IntentMap: {addressing=org.apache.cxf.ws.policy.WSPolicyFeature#cbf9bd, logging=org.apache.cxf.feature.LoggingFeature#17918f0, SOAP=org.apache.cxf.binding.soap.SoapBindingConfiguration#1546dbc, SOAP.1_1=org.apache.cxf.binding.soap.SoapBindingConfiguration#1546dbc, SOAP.1_2=org.apache.cxf.binding.soap.SoapBindingConfiguration#1f08ed8, HTTP=PROVIDED}
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.RemoteServiceAdminList$1 addingService
信息: Adding RemoteServiceAdmin to list of admins
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.RemoteServiceAdminList$1 addingService
信息: enlisted RemoteEventAdmins: 0
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.TopologyManager triggerExportImportForRemoteSericeAdmin
信息: TopologyManager: triggerExportImportForRemoteSericeAdmin()
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl removed
信息: ListenerHookImpl: removed: [org.osgi.util.tracker.ServiceTracker$Tracked#10849bc(objectClass=org.eclipse.osgi.service.runnable.StartupMonitor)]
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl removed
信息: (objectClass=org.eclipse.osgi.service.runnable.StartupMonitor)
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl reduceScope
信息: EndpointListener: reducing scope by (&(objectClass=org.eclipse.osgi.service.runnable.StartupMonitor)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl updateRegistration
信息: EndpointListenerImpl: filters: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl getRegistrationProperties
信息: EndpointListener: current filter: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.TopologyManager$1 modifiedService
信息: TopologyManager: EndpointListener changed ...

The CXF dOSGi single bundle distribution is packaged as a jar so there must have been a problem downloading it, although from your log it does appear to be being deployed.
Try this link for cxf-dosgi-ri-singlebundle-distribution-1.2.jar
As an alternative to CXF try ECF (Eclipse Communication Framework).

Related

How do I resolve Composer dependency upgrading to CakePHP4?

I'm following the upgrade instructions for moving a CakePHP project to version 4. All went well until the final command:
php composer.phar require --update-with-dependencies "cakephp/cakephp:4.0.*"
This resulted in
Problem 1
cakephp/bake 1.11.2 requires cakephp/cakephp ^3.8.0 -> satisfiable by cakephp/cakephp[3.8.0, >>3.8.0-RC1, 3.8.0-RC2, 3.8.0-RC3, 3.8.0-beta1, 3.8.1, 3.8.10, 3.8.11, 3.8.2, 3.8.3, 3.8.4, >>3.8.5, 3.8.6, 3.8.7, 3.8.8, 3.8.9, 3.x-dev] but these conflict with your requirements or >.minimum-stability.
cakephp/bake 1.11.2 requires cakephp/cakephp ^3.8.0 -> satisfiable by cakephp/cakephp[3.8.0, 3.8.0-RC1, 3.8.0-RC2, 3.8.0-RC3, 3.8.0-beta1, 3.8.1, 3.8.10, 3.8.11, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6, 3.8.7, 3.8.8, 3.8.9, 3.x-dev] but these conflict with your requirements or minimum-stability.
cakephp/bake 1.11.2 requires cakephp/cakephp ^3.8.0 -> satisfiable by cakephp/cakephp[3.8.0, 3.8.0-RC1, 3.8.0-RC2, 3.8.0-RC3, 3.8.0-beta1, 3.8.1, 3.8.10, 3.8.11, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6, 3.8.7, 3.8.8, 3.8.9, 3.x-dev] but these conflict with your requirements or minimum-stability.
Installation request for cakephp/bake (locked at 1.11.2, required as ^1.9.0) -> satisfiable by cakephp/bake[1.11.2].
The VERSION.txt for the project shows CakePHP at 3.8.11.
In the composer.json file:
"require-dev": {
"cakephp/bake": "^1.9.0",
"cakephp/cakephp-codesniffer": "^3.0",
"cakephp/debug_kit": "^3.17.0",
"josegonzalez/dotenv": "3.*",
"psy/psysh": "#stable"
},
Without updating, change all requirements according to the latest 4.x application template's composer.json file, change the requirements for other CakePHP plugins that you might have installed to a 4.x compatible version too, and then update your dependencies.
composer require --no-update "cakephp/cakephp:^4.0" "cakephp/migrations:^3.0#beta"
composer require --no-update --dev "cakephp/bake:^2.0.3" "cakephp/cakephp-codesniffer:~4.1.0" "cakephp/debug_kit:^4.0" "phpunit/phpunit:^8.5"
composer update --with-dependencies

How to fix error while deploying to Google App Engine

ERROR: build step 1 "gcr.io/gae-runtimes/nodejs8_app_builder:nodejs8_8_11_4_20180831_RC00" failed: exit status 1
ERROR
Finished Step #1 - "builder"
Step #1 - "builder": Permission denied for "643fb2fbf62eb56dec3bcf9eccf36ace6c9745fb20458240f4311ba2c278ad25" from request "/v2/stumper-215709/app-engine-build-cache/node-cache/manifests/643fb2fbf62eb56dec3bcf9eccf36ace6c9745fb20458240f4311ba2c278ad25". : None
Step #1 - "builder": containerregistry.client.v2_2.docker_http_.V2DiagnosticException: response: {'status': '403', 'content-length': '280', 'x-xss-protection': '1; mode=block', 'transfer-encoding': 'chunked', 'server': 'Docker Registry', '-content-encoding': 'gzip', 'docker-distribution-api-version': 'registry/2.0', 'cache-control': 'private', 'date': 'Sat, 15 Sep 2018 05:13:18 GMT', 'x-frame-options': 'SAMEORIGIN', 'content-type': 'application/json'}
Check that the user account making the deployment has the necessary permissions. Try with owner permission first to eliminate that its a role setting. If that doesn't work, then try:
Try enabling the Cloud Build API and redeploying.

SolrCloud 6 continuously reloading core every 10 seconds

I'm experiencing a loop in reloading core. My current configuration is:
One VM CentOS 7.1 (16GB RAM, 4 cores)
3 istances Zookeeper 3.4.9 (port 2181, 2182, 2183)
3 istances Solr 6.5.1 (port 8983, 8501, 8502)
1 collection named MERITO divided into 2 shards (one in 8983, one in 8501), each shard replicated (both replicas in 8502).
The cluster is currently active and everything seems to work fine. Looking at the solr.log file I notice a loop in reloading cores, it keeps reloading every 10 seconds circa.
Here is the block that is repeating:
10:24:50.911 INFO (qtp575335780-18) [ ] o.a.s.c.CoreContainer Reloading SolrCore 'merito_shard1_replica2' using configuration from collection merito
10:24:50.934 INFO (qtp575335780-18) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.c.SolrCore [[merito_shard1_replica2] ] Opening new SolrCore at [/home/user/Desktop/Solr/instance2/server/solr/merito_shard1_replica2], dataDir=[/home/user/Desktop/Solr/instance2/server/solr/merito_shard1_replica2/data/]
10:24:50.934 INFO (qtp575335780-18) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.c.JmxMonitoredMap JMX monitoring is enabled. Adding Solr mbeans to JMX Server: com.sun.jmx.mbeanserver.JmxMBeanServer#66ea810
10:24:50.935 INFO (qtp575335780-18) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.r.XSLTResponseWriter xsltCacheLifetimeSeconds=5
10:24:50.950 INFO (qtp575335780-18) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.u.CommitTracker Hard AutoCommit: if uncommited for 15000ms;
10:24:50.950 INFO (qtp575335780-18) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.u.CommitTracker Soft AutoCommit: disabled
10:24:50.953 INFO (qtp575335780-18) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.s.SolrIndexSearcher Opening [Searcher#5747d7f5[merito_shard1_replica2] main]
10:24:50.955 INFO (qtp575335780-18) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.r.ManagedResourceStorage Configured ZooKeeperStorageIO with znodeBase: /configs/merito
10:24:50.956 INFO (qtp575335780-18) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.r.ManagedResourceStorage Loaded null at path _rest_managed.json using ZooKeeperStorageIO:path=/configs/merito
10:24:50.956 INFO (qtp575335780-18) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.h.c.SpellCheckComponent Initializing spell checkers
10:24:50.956 INFO (qtp575335780-18) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.s.DirectSolrSpellChecker init: {name=default,field=_text_,classname=solr.DirectSolrSpellChecker,distanceMeasure=internal,accuracy=0.5,maxEdits=2,minPrefix=1,maxInspections=5,minQueryLength=4,maxQueryFrequency=0.01}
10:24:50.957 INFO (qtp575335780-18) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.h.ReplicationHandler Commits will be reserved for 10000
10:24:50.961 INFO (searcherExecutor-584-thread-1-processing-n:192.168.94.133:8501_solr x:merito_shard1_replica2 s:shard1 c:merito r:core_node2) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.c.QuerySenderListener QuerySenderListener sending requests to Searcher#5747d7f5[merito_shard1_replica2] main{ExitableDirectoryReader(UninvertingDirectoryReader(Uninverting(_2(6.5.1):C1)))}
10:24:50.967 INFO (searcherExecutor-584-thread-1-processing-n:192.168.94.133:8501_solr x:merito_shard1_replica2 s:shard1 c:merito r:core_node2) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.c.QuerySenderListener QuerySenderListener done.
10:24:50.967 INFO (searcherExecutor-584-thread-1-processing-n:192.168.94.133:8501_solr x:merito_shard1_replica2 s:shard1 c:merito r:core_node2) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.h.c.SpellCheckComponent Loading spell index for spellchecker: default
10:24:50.968 INFO (searcherExecutor-584-thread-1-processing-n:192.168.94.133:8501_solr x:merito_shard1_replica2 s:shard1 c:merito r:core_node2) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.c.SolrCore [merito_shard1_replica2] Registered new searcher Searcher#5747d7f5[merito_shard1_replica2] main{ExitableDirectoryReader(UninvertingDirectoryReader(Uninverting(_2(6.5.1):C1)))}
10:24:50.967 INFO (qtp575335780-18) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.u.DefaultSolrCoreState New IndexWriter is ready to be used.
10:24:50.970 INFO (qtp575335780-18) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.s.SolrIndexSearcher Opening [Searcher#56f7a479[merito_shard1_replica2] main]
10:24:50.971 INFO (qtp575335780-18) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.c.SolrCore [merito_shard1_replica2] CLOSING SolrCore org.apache.solr.core.SolrCore#7d455130
10:24:50.972 INFO (searcherExecutor-584-thread-1-processing-n:192.168.94.133:8501_solr x:merito_shard1_replica2 s:shard1 c:merito r:core_node2) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.c.QuerySenderListener QuerySenderListener sending requests to Searcher#56f7a479[merito_shard1_replica2] main{ExitableDirectoryReader(UninvertingDirectoryReader(Uninverting(_2(6.5.1):C1)))}
10:24:50.972 INFO (searcherExecutor-584-thread-1-processing-n:192.168.94.133:8501_solr x:merito_shard1_replica2 s:shard1 c:merito r:core_node2) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.c.QuerySenderListener QuerySenderListener done.
10:24:50.973 INFO (searcherExecutor-584-thread-1-processing-n:192.168.94.133:8501_solr x:merito_shard1_replica2 s:shard1 c:merito r:core_node2) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.c.SolrCore [merito_shard1_replica2] Registered new searcher Searcher#56f7a479[merito_shard1_replica2] main{ExitableDirectoryReader(UninvertingDirectoryReader(Uninverting(_2(6.5.1):C1)))}
10:24:50.980 INFO (qtp575335780-18) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.m.SolrMetricManager Closing metric reporters for: solr.core.merito.shard1.replica2
10:24:50.981 INFO (qtp575335780-18) [c:merito s:shard1 r:core_node2 x:merito_shard1_replica2] o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/cores params={core=merito_shard1_replica2&qt=/admin/cores&action=RELOAD&wt=javabin&version=2} status=0 QTime=10388
10:24:51.175 INFO (qtp575335780-19) [ ] o.a.s.c.RequestParams conf resource params.json loaded . version : 20
10:24:51.176 INFO (qtp575335780-19) [ ] o.a.s.c.RequestParams request params refreshed to version 20
10:24:51.178 INFO (qtp575335780-19) [ ] o.a.s.c.SolrResourceLoader [merito_shard1_replica2] Added 51 libs to classloader, from paths: [/home/user/Desktop/Solr/instance2/contrib/clustering/lib, /home/user/Desktop/Solr/instance2/contrib/extraction/lib, /home/user/Desktop/Solr/instance2/contrib/langid/lib, /home/user/Desktop/Solr/instance2/contrib/velocity/lib, /home/user/Desktop/Solr/instance2/dist]
10:24:51.198 INFO (qtp575335780-19) [ ] o.a.s.c.SolrConfig Using Lucene MatchVersion: 6.5.1
10:24:51.220 INFO (qtp575335780-19) [ ] o.a.s.s.IndexSchema [merito_shard1_replica2] Schema name=example-basic-bdm
10:24:51.496 INFO (qtp575335780-19) [ ] o.a.s.s.IndexSchema Loaded schema example-basic-bdm/1.6 with uniqueid field id
After each block it starts againg with o.a.s.c.CoreContainer Reloading SolrCore .
Do you have any suggestion on how to prevent this behaviour? The logs are filling with this spam messages.
Thanks in advance
You are calling it from a cron or windows service. Check solr server interaction with other servers from resource io monitor and identify the process.
So i was in same situation as well my solr instance was reloading after every 2 mins. Turns out there was a cron(Windows service) running on the server that was continuously reloading it after 2 mins so as to add new synonyms from dictionary continuously.
I controlled that now.

Infinite loop in Camel - Rabbit MQ

I have a small server-route, which takes a message from queue.in and puts in queue.out.
When I put ONE message in queue.in, the server runns in an infinite loop. I wonder what I'm missing in terms of configuration. This seems like a very simple route.
The small server-route:
<camelContext id="camel-server" xmlns="http://camel.apache.org/schema/spring">
<jmxAgent disabled="false" onlyRegisterProcessorWithCustomId="false"
createConnector="true" usePlatformMBeanServer="true"
registerNewRoutes="true" statisticsLevel="All" includeHostName="false"
mask="false" id="agent" />
<endpoint id="queue.in" uri="${queue.url.input_queue}" />
<endpoint id="queue.out" uri="${queue.url.output_queue}" />
<route id="rabbitRoute">
<from uri="ref:queue.in" />
<bean ref="multiplier" /><!-- a simple bean that appends "BeanHello" to input msg-->
<to uri="ref:queue.out" />
</route>
</camelContext>
The rabbit queue properties:
queue.url.input_queue=rabbitmq://localhost:5672/ex1?queue=input_queue&routingKey=input_queue&connectionFactory=#customConnectionFactory&autoDelete=false&autoAck=true
queue.url.output_queue=rabbitmq://localhost:5672/ex1?queue=output_queue&routingKey=output_queue&connectionFactory=#customConnectionFactory&autoDelete=false&autoAck=true
Snippet of log file - see recursive part at the end of log:
The string "BeanHello" is added multiple times, that means the message is going to queue.in again and again instead of going to queue.out.
2014-12-14 15:00:16,692 [main ] DEBUG DefaultComponentResolver - Found component: rabbitmq via type: org.apache.camel.component.rabbitmq.RabbitMQComponent via: META-INF/services/org/apache/camel/component/rabbitmq
2014-12-14 15:00:16,699 [main ] DEBUG DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=camel-server,type=components,name="rabbitmq"
2014-12-14 15:00:16,711 [main ] DEBUG DefaultComponent - Creating endpoint uri=[rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=input_queue&routingKey=input_queue], path=[localhost:5672/ex1]
2014-12-14 15:00:16,721 [main ] DEBUG IntrospectionSupport - Configured property: autoAck on bean: Endpoint[rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=input_queue&routingKey=input_queue] with value: true
2014-12-14 15:00:16,725 [main ] DEBUG IntrospectionSupport - Configured property: autoDelete on bean: Endpoint[rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=input_queue&routingKey=input_queue] with value: false
2014-12-14 15:00:16,726 [main ] DEBUG IntrospectionSupport - Configured property: queue on bean: Endpoint[rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=input_queue&routingKey=input_queue] with value: input_queue
2014-12-14 15:00:16,727 [main ] DEBUG IntrospectionSupport - Configured property: routingKey on bean: Endpoint[rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=input_queue&routingKey=input_queue] with value: input_queue
2014-12-14 15:00:16,728 [main ] DEBUG RabbitMQComponent - Creating RabbitMQEndpoint with host localhost:5672 and exchangeName: ex1
2014-12-14 15:00:16,729 [main ] DEBUG SpringCamelContext - rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=input_queue&routingKey=input_queue converted to endpoint: Endpoint[rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=input_queue&routingKey=input_queue] by component: org.apache.camel.component.rabbitmq.RabbitMQComponent#2be25129
2014-12-14 15:00:16,730 [main ] DEBUG DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=camel-server,type=endpoints,name="rabbitmq://localhost:5672/ex1\?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=input_queue&routingKey=input_queue"
2014-12-14 15:00:16,730 [main ] DEBUG DefaultManagementAgent - MBean already registered with ObjectName: org.apache.camel:context=camel-server,type=endpoints,name="rabbitmq://localhost:5672/ex1\?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=input_queue&routingKey=input_queue"
2014-12-14 15:00:16,743 [main ] DEBUG SpringCamelContext - Using ComponentResolver: org.apache.camel.impl.DefaultComponentResolver#1bd7643a to resolve component with name: bean
2014-12-14 15:00:16,743 [main ] DEBUG DefaultComponentResolver - Found component: bean in registry: null
2014-12-14 15:00:16,743 [main ] DEBUG DefaultComponentResolver - Found component: bean via type: org.apache.camel.component.bean.BeanComponent via: META-INF/services/org/apache/camel/component/bean
2014-12-14 15:00:16,748 [main ] DEBUG DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=camel-server,type=components,name="bean"
2014-12-14 15:00:16,758 [main ] DEBUG DefaultChannel - Initialize channel for target: 'Bean[ref:multiplier]'
2014-12-14 15:00:16,765 [main ] DEBUG DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=camel-server,type=tracer,name=BacklogTracer
2014-12-14 15:00:16,774 [main ] DEBUG DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=camel-server,type=tracer,name=BacklogDebugger
2014-12-14 15:00:16,788 [main ] DEBUG DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=camel-server,type=errorhandlers,name="DefaultErrorHandlerBuilder(ref:CamelDefaultErrorHandlerBuilder)"
2014-12-14 15:00:16,789 [main ] DEBUG DefaultComponent - Creating endpoint uri=[ref://queue.out], path=[queue.out]
2014-12-14 15:00:16,789 [main ] DEBUG SpringCamelContext - ref://queue.out converted to endpoint: Endpoint[ref://queue.out] by component: org.apache.camel.component.ref.RefComponent#2182fb16
2014-12-14 15:00:16,790 [main ] DEBUG DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=camel-server,type=endpoints,name="ref://queue.out"
2014-12-14 15:00:16,792 [main ] DEBUG DefaultComponent - Creating endpoint uri=[rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=output_queue&routingKey=output_queue], path=[localhost:5672/ex1]
2014-12-14 15:00:16,794 [main ] DEBUG IntrospectionSupport - Configured property: autoAck on bean: Endpoint[rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=output_queue&routingKey=output_queue] with value: true
2014-12-14 15:00:16,795 [main ] DEBUG IntrospectionSupport - Configured property: autoDelete on bean: Endpoint[rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=output_queue&routingKey=output_queue] with value: false
2014-12-14 15:00:16,797 [main ] DEBUG IntrospectionSupport - Configured property: queue on bean: Endpoint[rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=output_queue&routingKey=output_queue] with value: output_queue
2014-12-14 15:00:16,798 [main ] DEBUG IntrospectionSupport - Configured property: routingKey on bean: Endpoint[rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=output_queue&routingKey=output_queue] with value: output_queue
2014-12-14 15:00:16,798 [main ] DEBUG RabbitMQComponent - Creating RabbitMQEndpoint with host localhost:5672 and exchangeName: ex1
2014-12-14 15:00:16,800 [main ] DEBUG SpringCamelContext - rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=output_queue&routingKey=output_queue converted to endpoint: Endpoint[rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=output_queue&routingKey=output_queue] by component: org.apache.camel.component.rabbitmq.RabbitMQComponent#2be25129
2014-12-14 15:00:16,801 [main ] DEBUG DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=camel-server,type=endpoints,name="rabbitmq://localhost:5672/ex1\?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=output_queue&routingKey=output_queue"
2014-12-14 15:00:16,801 [main ] DEBUG DefaultManagementAgent - MBean already registered with ObjectName: org.apache.camel:context=camel-server,type=endpoints,name="rabbitmq://localhost:5672/ex1\?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=output_queue&routingKey=output_queue"
2014-12-14 15:00:16,802 [main ] DEBUG DefaultChannel - Initialize channel for target: 'To[ref:queue.out]'
2014-12-14 15:00:16,808 [main ] INFO SpringCamelContext - AllowUseOriginalMessage is enabled. If access to the original message is not needed, then its recommended to turn this option off as it may improve performance.
2014-12-14 15:00:16,808 [main ] INFO SpringCamelContext - StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
2014-12-14 15:00:16,809 [main ] DEBUG SpringCamelContext - Warming up route id: rabbitRoute having autoStartup=true
2014-12-14 15:00:16,809 [main ] DEBUG RouteService - Starting services on route: rabbitRoute
2014-12-14 15:00:16,811 [main ] DEBUG RouteService - Starting child service on route: rabbitRoute -> Pipeline[[Channel[BeanProcessor[org.apache.camel.example.server.Treble(0x64eb29e1)]], Channel[sendTo(Endpoint[ref://queue.out])]]]
2014-12-14 15:00:16,811 [main ] DEBUG DefaultErrorHandler - Redelivery enabled: false on error handler: DefaultErrorHandler[Instrumentation:bean[BeanProcessor[org.apache.camel.example.server.Treble(0x64eb29e1)]]]
2014-12-14 15:00:16,818 [main ] DEBUG DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=camel-server,type=producers,name=RabbitMQProducer(0x89c08d3)
2014-12-14 15:00:16,823 [main ] DEBUG DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=camel-server,type=threadpools,name="RabbitMQProducer(0x89c08d3)"
2014-12-14 15:00:16,824 [main ] DEBUG DefaultExecutorServiceManager - Created new ThreadPool for source: Producer[rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=output_queue&routingKey=output_queue] with name: CamelRabbitMQProducer[output_queue]. -> org.apache.camel.util.concurrent.RejectableThreadPoolExecutor#69e4d7d[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0][CamelRabbitMQProducer[output_queue]]
2014-12-14 15:00:16,890 [main ] DEBUG RabbitMQProducer - Created connection: amqp://guest#127.0.0.1:5672/
2014-12-14 15:00:16,911 [main ] DEBUG ProducerCache - Adding to producer cache with key: Endpoint[ref://queue.out] for producer: Producer[rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=output_queue&routingKey=output_queue]
2014-12-14 15:00:16,912 [main ] DEBUG DefaultErrorHandler - Redelivery enabled: false on error handler: DefaultErrorHandler[Instrumentation:to[sendTo(Endpoint[ref://queue.out])]]
2014-12-14 15:00:16,912 [main ] DEBUG RouteService - Starting child service on route: rabbitRoute -> Pipeline[[Channel[BeanProcessor[org.apache.camel.example.server.Treble(0x64eb29e1)]], Channel[sendTo(Endpoint[ref://queue.out])]]]
2014-12-14 15:00:16,912 [main ] DEBUG RouteService - Starting child service on route: rabbitRoute -> BeanProcessor[org.apache.camel.example.server.Treble(0x64eb29e1)]
2014-12-14 15:00:16,919 [main ] DEBUG DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=camel-server,type=processors,name="bean1"
2014-12-14 15:00:16,920 [main ] DEBUG RouteService - Starting child service on route: rabbitRoute -> Channel[BeanProcessor[org.apache.camel.example.server.Treble(0x64eb29e1)]]
2014-12-14 15:00:16,920 [main ] DEBUG RouteService - Starting child service on route: rabbitRoute -> sendTo(Endpoint[ref://queue.out])
2014-12-14 15:00:16,928 [main ] DEBUG DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=camel-server,type=processors,name="to1"
2014-12-14 15:00:16,928 [main ] DEBUG RouteService - Starting child service on route: rabbitRoute -> Channel[sendTo(Endpoint[ref://queue.out])]
2014-12-14 15:00:16,939 [main ] DEBUG DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=camel-server,type=routes,name="rabbitRoute"
2014-12-14 15:00:16,939 [main ] DEBUG TimerListenerManager - Added TimerListener: org.apache.camel.management.mbean.ManagedSuspendableRoute#19f7f0f0
2014-12-14 15:00:16,940 [main ] DEBUG SpringCamelContext - Route: rabbitRoute >>> EventDrivenConsumerRoute[Endpoint[ref://queue.in] -> Pipeline[[Channel[BeanProcessor[org.apache.camel.example.server.Treble(0x64eb29e1)]], Channel[sendTo(Endpoint[ref://queue.out])]]]]
2014-12-14 15:00:16,940 [main ] DEBUG SpringCamelContext - Starting consumer (order: 1000) on route: rabbitRoute
2014-12-14 15:00:16,945 [main ] DEBUG DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=camel-server,type=consumers,name=RabbitMQConsumer(0x753af01f)
2014-12-14 15:00:16,947 [main ] DEBUG DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=camel-server,type=threadpools,name="RabbitMQEndpoint(0xad9be15)"
2014-12-14 15:00:16,947 [main ] DEBUG DefaultExecutorServiceManager - Created new ThreadPool for source: Endpoint[rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=input_queue&routingKey=input_queue] with name: RabbitMQConsumer. -> org.apache.camel.util.concurrent.RejectableThreadPoolExecutor#5d4e5a43[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0][RabbitMQConsumer]
2014-12-14 15:00:16,947 [main ] DEBUG RabbitMQConsumer - Using executor org.apache.camel.util.concurrent.RejectableThreadPoolExecutor#5d4e5a43[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0][RabbitMQConsumer]
2014-12-14 15:00:16,951 [main ] DEBUG RabbitMQConsumer - Created connection: amqp://guest#127.0.0.1:5672/
2014-12-14 15:00:16,952 [main ] DEBUG RabbitMQConsumer - Created channel: AMQChannel(amqp://guest#127.0.0.1:5672/,1)
2014-12-14 15:00:16,957 [main ] INFO SpringCamelContext - Route: rabbitRoute started and consuming from: Endpoint[rabbitmq://localhost:5672/ex1?autoAck=true&autoDelete=false&connectionFactory=%23customConnectionFactory&queue=input_queue&routingKey=input_queue]
2014-12-14 15:00:16,958 [main ] DEBUG ultManagementLifecycleStrategy - Load performance statistics disabled
2014-12-14 15:00:16,958 [main ] INFO SpringCamelContext - Total 1 routes, of which 1 is started.
2014-12-14 15:00:16,962 [main ] INFO SpringCamelContext - Apache Camel 2.15-SNAPSHOT (CamelContext: camel-server) started in 0.889 seconds
2014-12-14 15:00:16,963 [main ] DEBUG MainSupport - Starting Spring ApplicationContext: org.springframework.context.support.ClassPathXmlApplicationContext#3db853a5
2014-12-14 15:00:16,964 [main ] DEBUG SpringCamelContext - onApplicationEvent: org.springframework.context.event.ContextStartedEvent[source=org.springframework.context.support.ClassPathXmlApplicationContext#3db853a5: startup date [Sun Dec 14 15:00:14 PST 2014]; root of context hierarchy]
2014-12-14 15:01:01,671 [abbitMQConsumer] DEBUG MethodInfo - Setting bean invocation result on the IN message: ###MsgFromClient#BeanHello
2014-12-14 15:01:01,676 [abbitMQConsumer] DEBUG SendProcessor - >>>> Endpoint[ref://queue.out] Exchange[Message: ###MsgFromClient#BeanHello ]
2014-12-14 15:01:01,683 [abbitMQConsumer] DEBUG MethodInfo - Setting bean invocation result on the IN message: ###MsgFromClient#BeanHello #BeanHello
2014-12-14 15:01:01,684 [abbitMQConsumer] DEBUG SendProcessor - >>>> Endpoint[ref://queue.out] Exchange[Message: ###MsgFromClient#BeanHello #BeanHello ]
2014-12-14 15:01:01,687 [abbitMQConsumer] DEBUG MethodInfo - Setting bean invocation result on the IN message: ###MsgFromClient#BeanHello #BeanHello #BeanHello
2014-12-14 15:01:01,687 [abbitMQConsumer] DEBUG SendProcessor - >>>> Endpoint[ref://queue.out] Exchange[Message: ###MsgFromClient#BeanHello #BeanHello #BeanHello ]
2014-12-14 15:01:01,698 [abbitMQConsumer] DEBUG MethodInfo - Setting bean invocation result on the IN message: ###MsgFromClient#BeanHello #BeanHello #BeanHello #BeanHello
2014-12-14 15:01:01,698 [abbitMQConsumer] DEBUG SendProcessor - >>>> Endpoint[ref://queue.out] Exchange[Message: ###MsgFromClient#BeanHello #BeanHello #BeanHello #BeanHello ]
Resolution:
Changed the uri added BridgedEndpoint=true. I do not understand the mechanics behind that, and why such extra complications for rabbitmq specifically.
queue.url.input_queue=rabbitmq://localhost:5672/ex1?queue=input_queue&routingKey=input_queue&connectionFactory=#customConnectionFactory&autoDelete=false&autoAck=true&BridgeEndpoint=true
queue.url.output_queue=rabbitmq://localhost:5672/ex1?queue=output_queue&routingKey=output_queue&connectionFactory=#customConnectionFactory&autoDelete=false&autoAck=true&BridgeEndpoint=true
I had the same problem and it is fixed by adding between input and output (http://camel.apache.org/constant.html):
.setHeader("rabbitmq.ROUTING_KEY", constant("output_queue"))
According http://camel.apache.org/rabbitmq.html:
The routing key to use when binding a consumer queue to the exchange.
For producer routing keys, you set the header (see header section)

Unable to connect to EM, even though the Listern, dbconsole and DB are all running

I installed Oracle 11g on OEL5 yesterday and was able to access it EM (https://localhost.localdomain:1158/em). However, when tried connecting today it was unable to connect.
I can connect to db vis sqlplus and verified that that Listener and dbconsole is running. I shutdown and started the DB, dbaconsole and Listerner multiple times but still unable to access EM (https://localhost.localdomain:1158/em). Also, done this after rebotting the machine but still the same issue.
I checked the following log files which have warnings and errors:
emdctl.trc
2013-04-01 14:00:27,196 Thread-3348649696 WARN http: nmehl_connect_internal: connect failed to (localhost.localdomain:1830)
: Connection refused (error = 111)
2013-04-01 14:00:27,196 Thread-3348649696 ERROR main: nmectla_agentctl: Error connecting to http://localhost.localdomain:183
0/emd/main. Returning status code 1
2013-04-01 15:52:32,626 Thread-3858654944 WARN http: nmehl_connect_internal: connect failed to (localhost.localdomain:5500)
: Connection refused (error = 111)
2013-04-01 16:01:08,737 Thread-2888275680 WARN http: nmehl_connect_internal: connect failed to (localhost.localdomain:5500)
: Connection refused (error = 111)
emagent.log
2013-04-01 12:34:33,620 Thread-4251236064 Starting Agent 10.2.0.4.4 from /u01/app/oracle/product/11.2.0/dbhome_1 (00701)
2013-04-01 12:34:34,403 Thread-4251236064 Undefined column name __intervalONNECT_DATA in expression ((gc_cr_recv < _gc_cr_re
cv) ? 0 : (gc_cr_recv - _gc_cr_recv))/__intervalONNECT_DATA=(SID=%SID%)))
(00104)
2013-04-01 12:34:34,403 Thread-4251236064 Undefined column name __intervalCT_DATA in expression ((gc_cur_recv < _gc_cur_recv
) ? 0 : (gc_cur_recv - _gc_cur_recv))/__intervalCT_DATA=(SID=%SID%)))
(00104)
emagent.trc
2013-04-02 00:18:35,273 Thread-1468947040 ERROR recvlets: Error setting threshold for metric file, target orcl.localdomain o
racle_database
2013-04-02 00:18:35,273 Thread-1468947040 ERROR recvlets: Tried to set threshold on metric file, target orcl.localdomain ora
cle_database, for uninitialized recvlet AQMetrics
2013-04-02 00:18:35,273 Thread-1468947040 ERROR recvlets: Error setting threshold for metric file, target orcl.localdomain o
racle_database
2013-04-02 00:18:35,273 Thread-1468947040 ERROR recvlets: Tried to set threshold on metric service, target orcl.localdomain
oracle_database, for uninitialized recvlet AQMetrics
2013-04-02 00:18:35,273 Thread-1468947040 ERROR recvlets: Error setting threshold for metric service, target orcl.localdomai
n oracle_database
2013-04-02 00:18:35,273 Thread-1468947040 ERROR recvlets: Tried to set threshold on metric service, target orcl.localdomain
oracle_database, for uninitialized recvlet AQMetrics
2013-04-02 00:18:35,273 Thread-1468947040 ERROR recvlets: Error setting threshold for metric service, target orcl.localdomai
n oracle_database
2013-04-02 00:18:35,273 Thread-1468947040 WARN upload: Upload manager has no Failure script: disabled
2013-04-02 00:18:35,273 Thread-1468947040 WARN upload: Amount of upload data will be recalculated due to reload.enabling co
llections and regenerating metadata.
2013-04-02 00:18:35,273 Thread-1468947040 WARN TargetManager: Regenerating all Metadata
2013-04-02 00:18:35,286 Thread-1466931808 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repo
sitory
2013-04-02 00:18:35,298 Thread-1466931808 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repo
sitory
2013-04-02 00:18:35,332 Thread-1468947040 WARN upload: Truncating value of "SHORT_NAME" from "Average Synchronous Single-Block Read Latency (ms)" to "Average Synchronous Single-Block Read La"
2013-04-02 00:18:35,332 Thread-1468947040 WARN upload: Truncating value of "SHORT_NAME" from "Average Synchronous Single-Block Read Latency (ms)" to "Average Synchronous Single-Block Read La"
2013-04-02 00:18:35,414 Thread-1468947040 WARN upload: Truncating value of "COLUMN_LABEL" from "Total messages processed per queue per subscriber per minute in the last interval" to "Total messages processed per queue per subscriber per minute in "
2013-04-02 00:18:35,414 Thread-1468947040 WARN upload: Truncating value of "COLUMN_LABEL" from "Total messages received per queue per subscriber per minute in the last interval" to "Total messages received per queue per subscriber per minute in t"
2013-04-02 00:18:35,414 Thread-1468947040 WARN upload: Truncating value of "COLUMN_LABEL" from "Messages processed per queue (%) per subscriber per minute in the last interval" to "Messages processed per queue (%) per subscriber per minute in th"
2013-04-02 00:18:35,414 Thread-1468947040 WARN upload: Truncating value of "COLUMN_LABEL" from "Age of the first message in persistent queue per subscriber (seconds)" to "Age of the first message in persistent queue per subscriber (sec"
2013-04-02 00:18:35,415 Thread-1468947040 WARN upload: Truncating value of "COLUMN_LABEL" from "Age of the first message in the buffered queue per queue (seconds)" to "Age of the first message in the buffered queue per queue (second"
2013-04-02 00:18:35,427 Thread-1468947040 WARN collector: enable collector
2013-04-02 00:18:35,429 Thread-1468947040 WARN collector: the column name first_message_age in this condition does not exist in metric aq_msgs_persistentq_per_subscriber
2013-04-02 00:18:35,432 Thread-1468947040 WARN collector: the column name first_message_age in this condition does not exist in metric aq_msgs_persistentq_per_subscriber
2013-04-02 00:18:35,415 Thread-1468947040 WARN upload: Truncating value of "COLUMN_LABEL" from "Age of the first message in
the buffered queue per queue (seconds)" to "Age of the first message in the buffered queue per queue (second"
2013-04-02 00:18:35,427 Thread-1468947040 WARN collector: enable collector
2013-04-02 00:18:35,429 Thread-1468947040 WARN collector: the column name first_message_age in this condition does not exis
t in metric aq_msgs_persistentq_per_subscriber
2013-04-02 00:18:35,432 Thread-1468947040 WARN collector: the column name first_message_age in this condition does not exis
t in metric aq_msgs_persistentq_per_subscriber
2013-04-02 00:18:35,435 Thread-1468947040 WARN collector: Regenerating all DefaultColls
2013-04-02 00:18:36,505 Thread-1466931808 ERROR upload: Exceeded max. amount of upload data: 312 files, 45.885256 MB Data. 3
9.01% of disk used. Disabling collections.
2013-04-02 00:18:36,505 Thread-1466931808 WARN collector: Disable collector
2013-04-02 00:19:05,550 Thread-1468947040 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repo
sitory
2013-04-02 00:19:05,561 Thread-1468947040 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
2013-04-02 00:19:35,939 Thread-1468947040 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
2013-04-02 00:19:36,060 Thread-1468947040 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
I have spent the last two days checking online but haven't been able to resolve this issue. it maybe an issue with localho greatly appreciate any help/suggestions and if you could provide easy to follow instructions, as I'm new to Linux and Oracle 11g.
Many thanks in advance.st.localdomain but I'm not sure how to check or update this.
I would greatly appreciate any help/suggestions and if you could provide easy to follow instructions, as I'm new to Linux and Oracle 11g.
Many thanks in advance.
Please add the IP Address along with Hostname in the /etc/hosts file and restart dbconsole, Issue would be resolved.
Thanks
Anil

Resources