can not use Jetty WebSocket client in OSGi - websocket
we want wo use Jetty WebSocket Client API in OSGi (Equinox).
I have annotated the client socket implementation with org.eclipse.jetty.websocket.api.annotations.WebSocket but running into InvalidWebSocketException saying
MySocket is not a valid WebSocket object. Object must obey one of the following rules:
(1) class implements org.eclipse.jetty.websocket.api.WebSocketListener or
(2) class is annotated with #org.eclipse.jetty.websocket.api.annotations.WebSocket
If I run the service (which creates MySocket) as standalone from Eclipse it works fine.
As proposed in Establishing a WebSocket client connection in Jetty? I’m not using the actual version of Jetty but 9.2.0.RC0.
Edit: With Jetty 9.2.3.v20140905 I get the same error.
Maybe there is an interference with some other bundle? (we are using apache-cxf-dosgi-ri-1.5.0 so there are many bundles...)
com.basho.riak.client_1.4.4
com.eclipsesource.jaxrs.jersey-all_2.10.1
com.eclipsesource.jaxrs.publisher_3.0.0.201306171539
com.fasterxml.jackson.core.jackson-annotations_2.2.2
com.fasterxml.jackson.core.jackson-core_2.2.2
com.fasterxml.jackson.core.jackson-databind_2.2.2
com.googlecode.json-simple_1.1.1
com.rabbitmq.client_3.3.2
com.sun.jersey.client_1.18.1
com.sun.jersey.core_1.18.1
com.sun.jersey.jersey-server_1.18.1
cxf-dosgi-ri-discovery-distributed_1.6.0
cxf-dosgi-ri-discovery-distributed-zookeeper-server_1.6.0
cxf-dosgi-ri-discovery-local_1.6.0
cxf-dosgi-ri-dsw-cxf_1.6.0
cxf-dosgi-ri-osgi-api_1.6.0
cxf-dosgi-ri-topology-manager_1.6.0
jackson-core-asl_1.9.13
jackson-mapper-asl_1.9.13
javax.annotation-api_1.2.0
javax.mail_1.4.4
javax.mail_1.4.5
javax.servlet_2.5.0.v200806031605
javax.servlet-api_3.1.0
javax.websocket-api_1.1.0
javax.ws.rs-api_2.0.1
javax.xml_1.3.4.v201005080400
org.apache.aries.blueprint.api_1.0.0
org.apache.aries.blueprint.cm_1.0.1
org.apache.aries.blueprint.core_1.1.0
org.apache.aries.proxy.api_1.0.0
org.apache.aries.proxy.impl_1.0.1
org.apache.aries.util_1.1.0
org.apache.commons.beanutils_1.9.1
org.apache.commons.codec_1.3.0.v201101211617
org.apache.commons.codec_1.7.0
org.apache.commons.collections_3.2.1
org.apache.commons.el_1.0.0.v201101211617
org.apache.commons.io_2.4.0
org.apache.commons.lang3_3.3.2
org.apache.commons.logging_1.0.4.v201101211617
org.apache.commons.pool_1.6.0
org.apache.cxf.cxf-api_2.7.8
org.apache.cxf.cxf-rt-bindings-soap_2.7.8
org.apache.cxf.cxf-rt-bindings-xml_2.7.8
org.apache.cxf.cxf-rt-core_2.7.8
org.apache.cxf.cxf-rt-databinding-aegis_2.7.8
org.apache.cxf.cxf-rt-databinding-jaxb_2.7.8
org.apache.cxf.cxf-rt-frontend-jaxrs_2.7.8
org.apache.cxf.cxf-rt-frontend-jaxws_2.7.8
org.apache.cxf.cxf-rt-frontend-simple_2.7.8
org.apache.cxf.cxf-rt-management_2.7.8
org.apache.cxf.cxf-rt-rs-extension-providers_2.7.8
org.apache.cxf.cxf-rt-rs-extension-search_2.7.8
org.apache.cxf.cxf-rt-transports-http_2.7.8
org.apache.cxf.cxf-rt-transports-http-jetty_2.7.8
org.apache.cxf.karaf.cxf-karaf-commands_2.7.8
org.apache.felix.configadmin_1.6.0
org.apache.felix.fileinstall_3.2.6
org.apache.felix.gogo.command_0.8.0.v201108120515
org.apache.felix.gogo.runtime_0.8.0.v201108120515
org.apache.felix.gogo.shell_0.8.0.v201110170705
org.apache.felix.webconsole_3.1.8
org.apache.geronimo.specs.geronimo-annotation_1.0_spec_1.1.1
org.apache.geronimo.specs.geronimo-jta_1.1_spec_1.1.1
org.apache.geronimo.specs.geronimo-osgi-registry_1.1.0
org.apache.geronimo.specs.geronimo-servlet_2.5_spec_1.2.0
org.apache.hadoop.zookeeper_3.3.2
org.apache.httpcomponents.httpclient_4.3.3
org.apache.httpcomponents.httpcore_4.3.2
org.apache.jasper_5.5.17.v201101211617
org.apache.log4j_1.2.15.v201012070815
org.apache.servicemix.bundles.fastinfoset_1.2.13.1
org.apache.servicemix.bundles.jaxb-impl_2.2.1.1_2
org.apache.servicemix.bundles.jaxb-xjc_2.2.1.1_2
org.apache.servicemix.bundles.wsdl4j_1.6.3.1
org.apache.servicemix.bundles.xmlresolver_1.2.0.5
org.apache.servicemix.specs.activation-api-1.1_2.2.0
org.apache.servicemix.specs.jaxb-api-2.2_2.2.0
org.apache.servicemix.specs.jaxws-api-2.2_2.2.0
org.apache.servicemix.specs.jsr339-api-m10_2.2.0
org.apache.servicemix.specs.saaj-api-1.3_2.2.0
org.apache.servicemix.specs.stax-api-1.0_2.2.0
org.apache.ws.xmlschema.core_2.0.3
org.apache.xmlbeans_0.2.0.SNAPSHOT
org.codehaus.jettison.jettison_1.3.4
org.eclipse.equinox.console_1.0.0.v20120522-1841
org.eclipse.equinox.ds_1.1.1.R35x_v20090806
org.eclipse.equinox.event_1.1.101.R35x_v20100209
org.eclipse.equinox.log_1.2.0.v20090520-1800
org.eclipse.equinox.util_1.0.100.v20090520-1800
org.eclipse.jetty.client_7.6.8.v20121106
org.eclipse.jetty.continuation_7.6.8.v20121106
org.eclipse.jetty.http_7.6.8.v20121106
org.eclipse.jetty.io_7.6.8.v20121106
org.eclipse.jetty.io_9.2.0.RC0
org.eclipse.jetty.jmx_7.6.8.v20121106
org.eclipse.jetty.jndi_7.6.8.v20121106
org.eclipse.jetty.plus_7.6.8.v20121106
org.eclipse.jetty.security_7.6.8.v20121106
org.eclipse.jetty.server_7.6.8.v20121106
org.eclipse.jetty.servlet_7.6.8.v20121106
org.eclipse.jetty.servlets_7.6.8.v20121106
org.eclipse.jetty.util_7.6.8.v20121106
org.eclipse.jetty.util_9.2.0.RC0
org.eclipse.jetty.webapp_7.6.8.v20121106
org.eclipse.jetty.websocket.api_9.2.0.RC0
org.eclipse.jetty.websocket.client_9.2.0.RC0
org.eclipse.jetty.websocket.common_9.2.0.RC0
org.eclipse.jetty.websocket.javax.websocket_9.2.0.RC0
org.eclipse.jetty.websocket_7.6.8.v20121106
org.eclipse.jetty.xml_7.6.8.v20121106
org.eclipse.osgi.services_3.3.0.v20110513
org.eclipse.osgi.util_3.2.0.v20090520-1800
org.eclipse.osgi_3.8.0.v20120529-1548
org.json-wrapper_0.1.0.SNAPSHOT
org.ops4j.base.lang_1.4.0
org.ops4j.pax.logging.pax-logging-api_1.7.0
org.ops4j.pax.logging.pax-logging-service_1.7.0
org.ops4j.pax.web.pax-web-api_1.1.14
org.ops4j.pax.web.pax-web-extender-whiteboard_1.1.14
org.ops4j.pax.web.pax-web-jetty_1.1.14
org.ops4j.pax.web.pax-web-runtime_1.1.14
org.ops4j.pax.web.pax-web-spi_1.1.14
stax2-api_3.1.1
woodstox-core-asl_4.2.0
Related
Camel Context Not Listed in Hawtio JMX At All
I have deployed three example apache camel examples into tomcat: /camel-example-activemq-tomcat-3.5.0-SNAPSHOT /camel-example-cxf-tomcat-3.5.0-SNAPSHOT /camel-example-servlet-tomcat-3.5.0-SNAPSHOT They're all up and running OK. One of them uses ActiveMQ and I can see the queues from Hawtio. However, under JMX, the Camel Context is not listed/discovered. Refreshing the page changes nothing. Executing mBeanServersInfo() (full path Code>http://localhost:8080/hawtio-default-2.10.0/jolokia/exec/jolokia:type=ServerHandler,qualifier=hawtio/mBeanServersInfo()), which looks like it provides the raw data to display in the JMX tree, produces the following: Found 1 MBeanServers ++ com.sun.jmx.mbeanserver.JmxMBeanServer#56620197: default domain = DefaultDomain, 284 MBeans Domains: == java.util.logging type=Logging == jdk.management.jfr type=FlightRecorder == org.apache.activemq brokerName=myBroker,connectionName=vm_//myBroker#0,connectionViewType=remoteAddress,connector=clientConnectors,connectorName=vm,type=Broker brokerName=myBroker,connectionName=vm_//myBroker#2,connectionViewType=remoteAddress,connector=clientConnectors,connectorName=vm,type=Broker brokerName=myBroker,clientId=ID_WIN-10-DM-63203-1594039525518-3_1,endpoint=dynamicProducer,producerId=ID_WIN-10-DM-63203-1594039525518-4_1_2_1,type=Broker brokerName=myBroker,destinationName=ActiveMQ.Advisory.Connection,destinationType=Topic,type=Broker brokerName=myBroker,destinationName=ActiveMQ.Advisory.Queue,destinationType=Topic,type=Broker brokerName=myBroker,destinationName=inbox,destinationType=Queue,type=Broker brokerName=myBroker,connector=clientConnectors,connectorName=tcp,type=Broker brokerName=myBroker,instanceName=KahaDBPersistenceAdapter[C_\xampp\activemq-data\myBroker\KahaDB_Index_C_\xampp\activemq-data\myBroker\KahaDB],service=PersistenceAdapter,type=Broker brokerName=myBroker,connectionName=ID_WIN-10-DM-63203-1594039525518-3_1,connectionViewType=clientId,connector=clientConnectors,connectorName=vm,type=Broker brokerName=myBroker,type=Broker brokerName=myBroker,connector=clientConnectors,connectorName=vm,type=Broker brokerName=myBroker,clientId=ID_WIN-10-DM-63203-1594039525518-3_1,consumerId=ID_WIN-10-DM-63203-1594039525518-4_1_-1_1,destinationName=ActiveMQ.Advisory.TempQueue_ActiveMQ.Advisory.TempTopic,destinationType=Topic,endpoint=Consumer,type=Broker brokerName=myBroker,clientId=ID_WIN-10-DM-63203-1594039525518-5_1,endpoint=dynamicProducer,producerId=ID_WIN-10-DM-63203-1594039525518-6_1_1_1,type=Broker brokerName=myBroker,clientId=ID_WIN-10-DM-63203-1594039525518-5_1,consumerId=ID_WIN-10-DM-63203-1594039525518-6_1_-1_1,destinationName=ActiveMQ.Advisory.TempQueue_ActiveMQ.Advisory.TempTopic,destinationType=Topic,endpoint=Consumer,type=Broker brokerName=myBroker,destinationName=ActiveMQ.Advisory.Consumer.Queue.inbox,destinationType=Topic,type=Broker brokerName=myBroker,service=Health,type=Broker brokerName=myBroker,clientId=ID_WIN-10-DM-63203-1594039525518-3_1,consumerId=ID_WIN-10-DM-63203-1594039525518-4_1_1_1,destinationName=inbox,destinationType=Queue,endpoint=Consumer,type=Broker brokerName=myBroker,connectionName=ID_WIN-10-DM-63203-1594039525518-5_1,connectionViewType=clientId,connector=clientConnectors,connectorName=vm,type=Broker brokerName=myBroker,destinationName=outbox,destinationType=Queue,type=Broker brokerName=myBroker,destinationName=ActiveMQ.Advisory.MasterBroker,destinationType=Topic,type=Broker == java.nio name=direct,type=BufferPool name=mapped,type=BufferPool == Users database=UserDatabase,rolename="admin-script",type=Role database=UserDatabase,rolename="manager-gui",type=Role database=UserDatabase,rolename="admin-gui",type=Role database=UserDatabase,type=User,username="tomcat" database=UserDatabase,type=UserDatabase database=UserDatabase,rolename="manager-status",type=Role database=UserDatabase,rolename="manager-jmx",type=Role database=UserDatabase,rolename="manager-script",type=Role == JMImplementation type=MBeanServerDelegate == java.lang name=Metaspace Manager,type=MemoryManager name=Metaspace,type=MemoryPool name=CodeHeap 'profiled nmethods',type=MemoryPool type=ClassLoading type=Runtime name=CodeCacheManager,type=MemoryManager type=OperatingSystem name=Compressed Class Space,type=MemoryPool type=Threading name=CodeHeap 'non-nmethods',type=MemoryPool name=G1 Eden Space,type=MemoryPool name=G1 Old Gen,type=MemoryPool name=G1 Survivor Space,type=MemoryPool name=G1 Young Generation,type=GarbageCollector type=Memory type=Compilation name=G1 Old Generation,type=GarbageCollector name=CodeHeap 'non-profiled nmethods',type=MemoryPool == com.sun.management type=HotSpotDiagnostic type=DiagnosticCommand == jmx4perl qualifier=hawtio,type=Config == org.apache.logging.log4j2 component=ContextSelector,type=20ca6c9a component=ContextSelector,type=6f5f79f0 component=Loggers,name=,type=6f5f79f0 component=Appenders,name=console,type=6f5f79f0 component=Loggers,name=,type=2cfeff1b component=Appenders,name=console,type=20ca6c9a type=2cfeff1b component=ContextSelector,type=2cfeff1b type=6f5f79f0 component=Appenders,name=console,type=2cfeff1b component=StatusLogger,type=2cfeff1b type=20ca6c9a component=StatusLogger,type=20ca6c9a component=StatusLogger,type=6f5f79f0 component=Loggers,name=,type=20ca6c9a == hawtio type=Registry type=About type=IdeFacade type=ConfigFacade type=LogQuery type=TreeWatcher name=RBACRegistry,type=security area=jmx,name=HawtioDummyJMXSecurity,rank=0,type=security == Catalina context=/host-manager,host=localhost,type=Loader J2EEApplication=none,J2EEServer=none,WebModule=//localhost/host-manager,j2eeType=Servlet,name=HostManager context=/hawtio-default-2.10.0,host=localhost,name=hawtio/role,resourcetype=Context,type=Environment context=/manager,host=localhost,type=Cache J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=wsEchoMessage J2EEApplication=none,J2EEServer=none,WebModule=//localhost/camel-example-activemq-tomcat-3.5.0-SNAPSHOT,j2eeType=Servlet,name=default J2EEApplication=none,J2EEServer=none,WebModule=//localhost/camel-example-cxf-tomcat-3.5.0-SNAPSHOT,name=jsp,type=JspMonitor name="http-bio-8080",type=GlobalRequestProcessor J2EEApplication=none,J2EEServer=none,WebModule=//localhost/manager,j2eeType=Servlet,name=default context=/hawtio-default-2.10.0,host=localhost,name=hawtio/realm,resourcetype=Context,type=Environment name=HttpRequest4,type=RequestProcessor,worker="http-bio-8080" context=/hawtio-default-2.10.0,host=localhost,name=NonLoginAuthenticator,type=Valve J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Filter,name=XContentTypeOptionsFilter J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//localhost/hawtio-default-2.10.0 context=/manager,host=localhost,type=Loader J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=SessionExample J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=RequestHeaderExample J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Filter,name=XXSSProtectionFilter J2EEApplication=none,J2EEServer=none,WebModule=//localhost/manager,j2eeType=Filter,name=Tomcat WebSocket (JSR356) Filter J2EEApplication=none,J2EEServer=none,WebModule=//localhost/camel-example-servlet-tomcat-3.5.0-SNAPSHOT,j2eeType=Filter,name=Tomcat WebSocket (JSR356) Filter context=/host-manager,host=localhost,name=StandardContextValve,type=Valve context=/camel-example-cxf-tomcat-3.5.0-SNAPSHOT,host=localhost,type=Manager J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=wsEchoStream type=Service J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=jsp context=/docs,host=localhost,name=NonLoginAuthenticator,type=Valve context=/hawtio-default-2.10.0,host=localhost,name=hawtio/rolePrincipalClasses,resourcetype=Context,type=Environment context=/hawtio-default-2.10.0,host=localhost,type=Cache J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Servlet,name=keycloak context=/camel-example-servlet-tomcat-3.5.0-SNAPSHOT,host=localhost,name=StandardContextValve,type=Valve J2EEApplication=none,J2EEServer=none,WebModule=//localhost/manager,name=jsp,type=JspMonitor J2EEApplication=none,J2EEServer=none,WebModule=//localhost/camel-example-servlet-tomcat-3.5.0-SNAPSHOT,name=jsp,type=JspMonitor name=HttpRequest2,type=RequestProcessor,worker="http-bio-8080" J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//localhost/docs context=/camel-example-activemq-tomcat-3.5.0-SNAPSHOT,host=localhost,type=Manager context=/examples,host=localhost,type=Manager context=/examples,host=localhost,name=minExemptions,resourcetype=Context,type=Environment context=/docs,host=localhost,type=Loader type=StringCache J2EEApplication=none,J2EEServer=none,WebModule=//localhost/camel-example-servlet-tomcat-3.5.0-SNAPSHOT,j2eeType=Servlet,name=jsp context=/camel-example-cxf-tomcat-3.5.0-SNAPSHOT,host=localhost,type=WebappClassLoader J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Filter,name=Tomcat WebSocket (JSR356) Filter context=/examples,host=localhost,type=WebappClassLoader J2EEApplication=none,J2EEServer=none,WebModule=//localhost/camel-example-cxf-tomcat-3.5.0-SNAPSHOT,j2eeType=Filter,name=Tomcat WebSocket (JSR356) Filter J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Servlet,name=plugin context=/host-manager,host=localhost,type=Manager J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//localhost/camel-example-activemq-tomcat-3.5.0-SNAPSHOT J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Filter,name=Tomcat WebSocket (JSR356) Filter context=/,host=localhost,type=NamingResources context=/camel-example-servlet-tomcat-3.5.0-SNAPSHOT,host=localhost,type=Manager context=/camel-example-servlet-tomcat-3.5.0-SNAPSHOT,host=localhost,type=NamingResources context=/camel-example-activemq-tomcat-3.5.0-SNAPSHOT,host=localhost,type=WebappClassLoader J2EEApplication=none,J2EEServer=none,WebModule=//localhost/manager,j2eeType=Filter,name=CSRF type=Engine context=/camel-example-servlet-tomcat-3.5.0-SNAPSHOT,host=localhost,type=Cache context=/camel-example-servlet-tomcat-3.5.0-SNAPSHOT,host=localhost,type=WebappClassLoader J2EEApplication=none,J2EEServer=none,WebModule=//localhost/docs,j2eeType=Servlet,name=jsp J2EEApplication=none,J2EEServer=none,WebModule=//localhost/host-manager,j2eeType=Servlet,name=jsp J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Servlet,name=login context=/camel-example-cxf-tomcat-3.5.0-SNAPSHOT,host=localhost,type=Cache J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,name=jsp,type=JspMonitor context=/camel-example-activemq-tomcat-3.5.0-SNAPSHOT,host=localhost,type=Loader J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=ChatServlet J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Filter,name=Request Dumper Filter J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=RequestParamExample J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Servlet,name=default J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Filter,name=SessionExpiryFilter J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Filter,name=ContentSecurityPolicyFilter context=/camel-example-cxf-tomcat-3.5.0-SNAPSHOT,host=localhost,type=Loader realmPath=/realm0/realm0,type=Realm J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,name=jsp,type=JspMonitor context=/camel-example-activemq-tomcat-3.5.0-SNAPSHOT,host=localhost,type=NamingResources name=HttpRequest8,type=RequestProcessor,worker="http-bio-8080" type=MBeanFactory J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//localhost/ port=8080,type=ProtocolHandler name=StandardEngineValve,type=Valve J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=CookieExample J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//localhost/examples J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=RequestInfoExample context=/manager,host=localhost,type=Manager name=HttpRequest7,type=RequestProcessor,worker="http-bio-8080" context=/camel-example-activemq-tomcat-3.5.0-SNAPSHOT,host=localhost,name=NonLoginAuthenticator,type=Valve context=/manager,host=localhost,name=StandardContextValve,type=Valve context=/examples,host=localhost,type=Loader J2EEApplication=none,J2EEServer=none,WebModule=//localhost/docs,j2eeType=Servlet,name=default context=/manager,host=localhost,type=WebappClassLoader J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Filter,name=Compression Filter context=/docs,host=localhost,type=NamingResources J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=wsChat name=HttpRequest6,type=RequestProcessor,worker="http-bio-8080" J2EEApplication=none,J2EEServer=none,WebModule=//localhost/manager,j2eeType=Filter,name=SetCharacterEncoding J2EEApplication=none,J2EEServer=none,WebModule=//localhost/manager,j2eeType=Servlet,name=Status J2EEApplication=none,J2EEServer=none,WebModule=//localhost/,j2eeType=Filter,name=Tomcat WebSocket (JSR356) Filter J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=wsSnake context=/hawtio-default-2.10.0,host=localhost,name=StandardContextValve,type=Valve J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//localhost/camel-example-cxf-tomcat-3.5.0-SNAPSHOT J2EEApplication=none,J2EEServer=none,WebModule=//localhost/manager,j2eeType=Servlet,name=JMXProxy J2EEApplication=none,J2EEServer=none,WebModule=//localhost/manager,j2eeType=Servlet,name=HTMLManager J2EEApplication=none,J2EEServer=none,WebModule=//localhost/camel-example-servlet-tomcat-3.5.0-SNAPSHOT,j2eeType=Servlet,name=default name=HttpRequest5,type=RequestProcessor,worker="http-bio-8080" context=/host-manager,host=localhost,type=NamingResources J2EEApplication=none,J2EEServer=none,WebModule=//localhost/host-manager,j2eeType=Filter,name=Tomcat WebSocket (JSR356) Filter J2EEApplication=none,J2EEServer=none,WebModule=//localhost/camel-example-cxf-tomcat-3.5.0-SNAPSHOT,j2eeType=Servlet,name=CXFServlet context=/,host=localhost,type=Loader context=/docs,host=localhost,type=WebappClassLoader J2EEApplication=none,J2EEServer=none,WebModule=//localhost/camel-example-activemq-tomcat-3.5.0-SNAPSHOT,name=jsp,type=JspMonitor context=/camel-example-activemq-tomcat-3.5.0-SNAPSHOT,host=localhost,type=Cache context=/camel-example-cxf-tomcat-3.5.0-SNAPSHOT,host=localhost,type=NamingResources context=/examples,host=localhost,name=name3,resourcetype=Context,type=Environment J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//localhost/camel-example-servlet-tomcat-3.5.0-SNAPSHOT context=/hawtio-default-2.10.0,host=localhost,type=Loader context=/examples,host=localhost,type=NamingResources context=/hawtio-default-2.10.0,host=localhost,type=NamingResources type=NamingResources context=/,host=localhost,type=WebappClassLoader J2EEApplication=none,J2EEServer=none,WebModule=//localhost/camel-example-cxf-tomcat-3.5.0-SNAPSHOT,j2eeType=Servlet,name=jsp J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=stock context=/hawtio-default-2.10.0,host=localhost,type=WebappClassLoader context=/examples,host=localhost,name=foo/name1,resourcetype=Context,type=Environment J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=ServletToJsp context=/camel-example-servlet-tomcat-3.5.0-SNAPSHOT,host=localhost,name=NonLoginAuthenticator,type=Valve context=/docs,host=localhost,name=StandardContextValve,type=Valve J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Filter,name=cache J2EEApplication=none,J2EEServer=none,WebModule=//localhost/host-manager,j2eeType=Servlet,name=HTMLHostManager J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Servlet,name=jsp J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Servlet,name=user J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=async1 J2EEApplication=none,J2EEServer=none,WebModule=//localhost/host-manager,j2eeType=Servlet,name=default J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=async0 realmPath=/realm0,type=Realm J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=async3 J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=async2 context=/manager,host=localhost,type=NamingResources host=localhost,type=Deployer class=org.apache.catalina.UserDatabase,name="UserDatabase",resourcetype=Global,type=Resource J2EEApplication=none,J2EEServer=none,WebModule=//localhost/manager,j2eeType=Servlet,name=Manager context=/host-manager,host=localhost,name=BasicAuthenticator,type=Valve J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Filter,name=AuthenticationFilter context=/examples,host=localhost,type=Cache context=/hawtio-default-2.10.0,host=localhost,name=hawtio/keycloakEnabled,resourcetype=Context,type=Environment J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Filter,name=Timing filter name=HttpRequest1,type=RequestProcessor,worker="http-bio-8080" name=HttpRequest9,type=RequestProcessor,worker="http-bio-8080" J2EEApplication=none,J2EEServer=none,WebModule=//localhost/,j2eeType=Servlet,name=default J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=CompressionFilterTestServlet J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Servlet,name=logout port=8080,type=Connector J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Servlet,name=jolokia-agent context=/,host=localhost,type=Cache name=HttpRequest3,type=RequestProcessor,worker="http-bio-8080" J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Filter,name=StrictTransportSecurityFilter J2EEApplication=none,J2EEServer=none,WebModule=//localhost/host-manager,j2eeType=Filter,name=CSRF J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//localhost/manager host=localhost,name=ErrorReportValve,type=Valve host=localhost,type=Host J2EEApplication=none,J2EEServer=none,WebModule=//localhost/host-manager,name=jsp,type=JspMonitor J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Servlet,name=jolokia-proxy J2EEApplication=none,J2EEServer=none,WebModule=//localhost/docs,name=jsp,type=JspMonitor port=8080,type=Mapper context=/examples,host=localhost,name=FormAuthenticator,type=Valve J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=default context=/,host=localhost,type=Manager context=/manager,host=localhost,name=BasicAuthenticator,type=Valve context=/examples,host=localhost,name=StandardContextValve,type=Valve context=/host-manager,host=localhost,type=WebappClassLoader host=localhost,name=AccessLogValve,type=Valve J2EEApplication=none,J2EEServer=none,WebModule=//localhost/,j2eeType=Servlet,name=jsp context=/hawtio-default-2.10.0,host=localhost,name=hawtio/authenticationEnabled,resourcetype=Context,type=Environment J2EEApplication=none,J2EEServer=none,WebModule=//localhost/docs,j2eeType=Filter,name=Tomcat WebSocket (JSR356) Filter J2EEApplication=none,J2EEServer=none,WebModule=//localhost/,name=jsp,type=JspMonitor context=/camel-example-servlet-tomcat-3.5.0-SNAPSHOT,host=localhost,type=Loader J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Filter,name=XFrameOptionsFilter context=/hawtio-default-2.10.0,host=localhost,name=hawtio/keycloakClientConfig,resourcetype=Context,type=Environment context=/docs,host=localhost,type=Cache host=localhost,name=StandardHostValve,type=Valve context=/docs,host=localhost,type=Manager J2EEApplication=none,J2EEServer=none,WebModule=//localhost/host-manager,j2eeType=Filter,name=SetCharacterEncoding J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Filter,name=PublicKeyPinningFilter J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Filter,name=BaseTagHrefFilter J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Filter,name=LoginRedirectFilter J2EEApplication=none,J2EEServer=none,WebModule=//localhost/camel-example-activemq-tomcat-3.5.0-SNAPSHOT,j2eeType=Servlet,name=jsp J2EEApplication=none,J2EEServer=none,WebModule=//localhost/hawtio-default-2.10.0,j2eeType=Filter,name=CORSFilter J2EEApplication=none,J2EEServer=none,WebModule=//localhost/camel-example-cxf-tomcat-3.5.0-SNAPSHOT,j2eeType=Servlet,name=default name="http-bio-8080",type=ThreadPool context=/hawtio-default-2.10.0,host=localhost,name=hawtio/sessionTimeout,resourcetype=Context,type=Environment J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Servlet,name=HelloWorldExample J2EEApplication=none,J2EEServer=none,WebModule=//localhost/camel-example-activemq-tomcat-3.5.0-SNAPSHOT,j2eeType=Filter,name=Tomcat WebSocket (JSR356) Filter context=/hawtio-default-2.10.0,host=localhost,type=Manager J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//localhost/host-manager type=Server J2EEApplication=none,J2EEServer=none,WebModule=//localhost/manager,j2eeType=Servlet,name=jsp context=/camel-example-cxf-tomcat-3.5.0-SNAPSHOT,host=localhost,name=NonLoginAuthenticator,type=Valve context=/,host=localhost,name=StandardContextValve,type=Valve J2EEApplication=none,J2EEServer=none,WebModule=//localhost/camel-example-servlet-tomcat-3.5.0-SNAPSHOT,j2eeType=Servlet,name=CamelServlet name=HttpRequest10,type=RequestProcessor,worker="http-bio-8080" context=/hawtio-default-2.10.0,host=localhost,name=hawtio/authenticationContainerDiscoveryClasses,resourcetype=Context,type=Environment context=/,host=localhost,name=NonLoginAuthenticator,type=Valve context=/examples,host=localhost,name=foo/name4,resourcetype=Context,type=Environment context=/camel-example-activemq-tomcat-3.5.0-SNAPSHOT,host=localhost,name=StandardContextValve,type=Valve context=/camel-example-cxf-tomcat-3.5.0-SNAPSHOT,host=localhost,name=StandardContextValve,type=Valve context=/examples,host=localhost,name=foo/bar/name2,resourcetype=Context,type=Environment J2EEApplication=none,J2EEServer=none,WebModule=//localhost/examples,j2eeType=Filter,name=Set Character Encoding context=/host-manager,host=localhost,type=Cache == jolokia type=Discovery qualifier=hawtio,type=Config qualifier=hawtio,type=ServerHandler Platform MBeanServer: com.sun.jmx.mbeanserver.JmxMBeanServer#56620197 As you can see there is no == org.apache.camel listed. The Hawtio Management Console lists the following versions: Hawtio 2.10.0 Hawtio Core 4.13.0 Hawtio Integration 4.13.5 Hawtio OAuth 4.12.1 The whole setup is running in a XAMPP server: Apache Tomcat is v7.0.104 and the whole thing is running on Java SE v11.07. Thanks in advance for any assistance you can offer.
JMX is disabled by default since Camel 3.0. To enable JMX, you need to add camel-management dependency. If you are using maven, add camel-management to pom.xml: <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-management</artifactId> <version>${camel.version}</version> </dependency>
Is there a simply way to list of consumer components for an Interface?
Fellow coders, I'm currently trying to find a simple and concise way to get a listing of of Services/Components that use a given Interface. I'm using the gogo-shell of a running Liferay 7.1.x server and can't seem to find an easy and direct way to to just that. We want to override references to the used service via OSGI-configuration, but first need to find all components using it. As there are static reluctant references to the service component, simply providing an alternative with a higher ranking is not a viable solution. Here are the gogo related bundles I'm using: 35|Active | 6|Apache Felix Gogo Command (1.0.2)|1.0.2 36|Active | 6|Apache Felix Gogo Runtime (1.1.0.LIFERAY-PATCHED-2)|1.1.0.LIFERAY-PATCHED-2 72|Active | 6|Apache Felix Gogo Shell (1.1.0)|1.1.0 542|Active | 10|Liferay Foundation - Liferay Gogo Shell - Impl (1.0.13)|1.0.13 543|Active | 10|Liferay Gogo Shell Web (2.0.25)|2.0.25 So far I've been able to list all providers of an interface via se (interface=com.liferay.saml.runtime.servlet.profile.WebSsoProfile): {com.liferay.saml.runtime.profile.WebSsoProfile, com.liferay.saml.runtime.servlet.profile.WebSsoProfile}={service.id=6293, service.bundleid=79, service.scope=bundle, component.name=com.liferay.saml.opensaml.integration.internal.servlet.profile.WebSsoProfileImpl, component.id=3963} "Registered by bundle:" de.haufe.leong.com.liferay.saml.opensaml.integration [79] "Bundles using service" com.liferay.saml.web_2.0.11 [82] com.liferay.saml.impl_2.0.12 [78] See all bundle requirements via: inspect cap service: com.liferay.saml.impl_2.0.12 [78] requires: ... service; com.liferay.saml.runtime.profile.WebSsoProfile, com.liferay.saml.runtime.servlet.profile.WebSsoProfile provided by: de.haufe.leong.com.liferay.saml.opensaml.integration [79] ... But listing the actual services from within these bundles that use the given interface (or the service component) has eluded me so far. The only solution I see so far is listing all provided services of these bundles via scr:list bid and then check each service with scr:info componentId to see if it uses the WebSsoProfile service. Do you guys know a faster way to find the services using the WebSsoProfile-service? [EDIT]: We solved the problem without having to provide config overrides for all consumers of the WebSsoProfile service but rather ensure that our implementation is used by deactivating the default service on Server startup. You can see the approach described here. Anyways for debugging purposes this kind of lookup would be very useful. So if anyone knows a way to retrieve the list of all consumers of an interface then please post your solution!
The standard solution is using the inspect command. It has a special namespace for services. Since a service registration is a capability, you can use inspect capability service: g! inspect c service org.apache.felix.framework [0] provides: ---------------------------------------- service; org.osgi.service.resolver.Resolver with properties: service.bundleid = 0 service.id = 1 service.scope = singleton service; org.osgi.service.packageadmin.PackageAdmin with properties: service.bundleid = 0 service.id = 2 service.scope = singleton service; org.osgi.service.startlevel.StartLevel with properties: service.bundleid = 0 service.id = 3 service.scope = singleton .... However, I find this command seriously useless. The command is inflexible and has a horrible output. However, Gogo is way more powerful than people know. For one, you can use all the methods on the bundle context. g! servicereferences org.osgi.service.startlevel.StartLevel null 000003 0 StartLevel If you want to see the properties of each service: g! each (servicereferences org.osgi.service.startlevel.StartLevel null) { $it properties } [service.id=3, objectClass=[Ljava.lang.String;#4acd14d7, service.scope=singleton, service.bundleid=0] You can make this into a built-in function: g! srv = { servicereferences $1 null } servicereferences $1 null g! srv org.osgi.service.startlevel.StartLevel 000003 0 StartLevel Unfortunately, the OSGi added an overloaded method in the Bundle Context for getServiceReferences() that throws an NPE when called with null. Gogo is awful with overloaded methods :-( However, it is trivial to add your own command with a declarative service component. You could use the following: #GogoCommand(scope="service", function="srv") #Component(service=ServiceCommand.class) public class ServiceCommand { #Activate BundleContext context; #Descriptor("List all services") public ServiceReference<?>[] srv() throws InvalidSyntaxException { return context.getAllServiceReferences(null, null); } #Descriptor("List all services that match the name") public ServiceReference<?>[] srv( String... names) throws InvalidSyntaxException { ServiceReference<?>[] allServiceReferences = context.getAllServiceReferences(null,null); if ( allServiceReferences==null) return new ServiceReference[0]; return Stream.of(allServiceReferences) .filter(r -> { String[] objectClass = (String[]) r.getProperty(Constants.OBJECTCLASS); for (String oc : objectClass) { for (String name : names) if (oc.contains(name)) return true; } return names.length == 0; }).sorted().toArray(ServiceReference[]::new); } } This adds the srv command to Gogo: g! srv Help Basic 000004 1 Basic 000005 1 Inspect Update If you want to find which bundles are using a specific service, you could use: g! each (srv X) { $it usingbundles } Make sure you got the following dependencies on your classpath: -buildpath: \ org.osgi.service.component.annotations,\ org.apache.felix.gogo.runtime, \ org.osgi.framework
Creating DB2 XA Datasource using JBoss-CLI
I am trying to create DB2 XA Datasource using JBoss-cli using the following command. /profile=full-ha/subsystem=datasources/xa-data-source=DB2DSXA3:add(jndi-name="java:/DB2DSXA3",connection-url="jdbc:db2://localhost:50000/TESTDB",driver-name=db2jccxa,is-same-rm-override="false",user-name=sambati,password=Summi135#,recover-plugin-class-name="org.jboss.jca.core.recovery.ConfigurableRecoveryPlugin",valid-connection-checker-class-name="org.jboss.jca.adapters.jdbc.extensions.db2.DB2ValidConnectionChecker",stale-connection-checker-class-name="org.jboss.jca.adapters.jdbc.extensions.db2.DB2StaleConnectionChecker",exception-sorter-class-name="org.jboss.jca.adapters.jdbc.extensions.db2.DB2ExceptionSorter") Looks like some mandatory fields are missing. i am getting the following error message: connection-url' is not found among the supported properties: [allocation-retry, allocation-retry-wait-millis, allow-multiple-users, authentication-context, background-validation, background-validation-millis, blocking-timeout-wait-millis, capacity-decrementer-class, capacity-decrementer-properties, capacity-incrementer-class, capacity-incrementer-properties, check-valid-connection-sql, connectable, connection-listener-class, connection-listener-property, credential-reference, driver-name, elytron-enabled, enabled, enlistment-trace, exception-sorter-class-name, exception-sorter-properties, flush-strategy, idle-timeout-minutes, initial-pool-size, interleaving, jndi-name, max-pool-size, mcp, min-pool-size, new-connection-sql, no-recovery, no-tx-separate-pool, pad-xid, password, pool-fair, pool-prefill, pool-use-strict-min, prepared-statements-cache-size, query-timeout, reauth-plugin-class-name, reauth-plugin-properties, recovery-authentication-context, recovery-credential-reference, recovery-elytron-enabled, recovery-password, recovery-plugin-class-name, recovery-plugin-properties, recovery-security-domain, recovery-username, same-rm-override, security-domain, set-tx-query-timeout, share-prepared-statements, spy, stale-connection-checker-class-name, stale-connection-checker-properties, statistics-enabled, track-statements, tracking, transaction-isolation, url-delimiter, url-property, url-selector-strategy-class-name, use-ccm, use-fast-fail, use-java-context, use-try-lock, user-name, valid-connection-checker-class-name, valid-connection-checker-properties, validate-on-match, wrap-xa-resource, xa-datasource-class, xa-resource-timeout] can some one help me please.
The error indicates that the connection-url is not a property on an xa-data-source resource. The connection URL will need to be added as a property in a batch command. Here's an example MySQL CLI command: module add --name=com.mysql --resources=~/Downloads/mysql-connector-java-5.1.37/mysql-connector-java-5.1.37-bin.jar --dependencies=javax.api,javax.transaction.api batch /subsystem=datasources/jdbc-driver=com.mysql:add(driver-name=com.mysql, driver-module-name=com.mysql, driver-xa-datasource-class-name=com.mysql.jdbc.jdbc2.optional.MysqlXADataSource) /subsystem=datasources/xa-data-source=mysql:add(driver-name=com.mysql, jndi-name="java:/jdbc/MySQLXA", enabled=true) /subsystem=datasources/xa-data-source=mysql/xa-datasource-properties=URL:add(value="jdbc:mysql://localhost:3306/temp?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8") run-batch
Whitelisting all the Google JDBC Service IP addresses in CPanel
I am trying to connect a Google Docs extension to a MySQL database via JDBC Service. The MySQL database is running on a shared server that requires using CPanel. CPanel only lets me add one whitelist rule at a time, and I can only use the % wildcard character (which matches to 0 or more of any type of character). I wrote a script to generate rules in this format from the IP address ranges, but there are more than 300 of them. I'm trying to find an easier way to do this. Is there a domain name for the Google JDBC Service that I can whitelist instead of the IP address ranges? Does CPanel have a more efficient whitelisting mechanism that I'm not aware of? Is there a program that could automate filling out CPanel's webform with my whitelist? Here is the CPanel-formatted whitelist I generated, in case someone with the same problem finds my question. 64.18.0.% 64.18.1.% 64.18.2.% 64.18.3.% 64.18.4.% 64.18.5.% 64.18.6.% 64.18.7.% 64.18.8.% 64.18.9.% 64.18.10.% 64.18.11.% 64.18.12.% 64.18.13.% 64.18.14.% 64.233.160.% 64.233.161.% 64.233.162.% 64.233.163.% 64.233.164.% 64.233.165.% 64.233.166.% 64.233.167.% 64.233.168.% 64.233.169.% 64.233.170.% 64.233.171.% 64.233.172.% 64.233.173.% 64.233.174.% 64.233.175.% 64.233.176.% 64.233.177.% 64.233.178.% 64.233.179.% 64.233.180.% 64.233.181.% 64.233.182.% 64.233.183.% 64.233.184.% 64.233.185.% 64.233.186.% 64.233.187.% 64.233.188.% 64.233.189.% 64.233.190.% 66.102.0.% 66.102.1.% 66.102.2.% 66.102.3.% 66.102.4.% 66.102.5.% 66.102.6.% 66.102.7.% 66.102.8.% 66.102.9.% 66.102.10.% 66.102.11.% 66.102.12.% 66.102.13.% 66.102.14.% 66.249.80.% 66.249.81.% 66.249.82.% 66.249.83.% 66.249.84.% 66.249.85.% 66.249.86.% 66.249.87.% 66.249.88.% 66.249.89.% 66.249.90.% 66.249.91.% 66.249.92.% 66.249.93.% 66.249.94.% 72.14.192.% 72.14.193.% 72.14.194.% 72.14.195.% 72.14.196.% 72.14.197.% 72.14.198.% 72.14.199.% 72.14.200.% 72.14.201.% 72.14.202.% 72.14.203.% 72.14.204.% 72.14.205.% 72.14.206.% 72.14.207.% 72.14.208.% 72.14.209.% 72.14.210.% 72.14.211.% 72.14.212.% 72.14.213.% 72.14.214.% 72.14.215.% 72.14.216.% 72.14.217.% 72.14.218.% 72.14.219.% 72.14.220.% 72.14.221.% 72.14.222.% 72.14.223.% 72.14.224.% 72.14.225.% 72.14.226.% 72.14.227.% 72.14.228.% 72.14.229.% 72.14.230.% 72.14.231.% 72.14.232.% 72.14.233.% 72.14.234.% 72.14.235.% 72.14.236.% 72.14.237.% 72.14.238.% 72.14.239.% 72.14.240.% 72.14.241.% 72.14.242.% 72.14.243.% 72.14.244.% 72.14.245.% 72.14.246.% 72.14.247.% 72.14.248.% 72.14.249.% 72.14.250.% 72.14.251.% 72.14.252.% 72.14.253.% 72.14.254.% 74.125.% 173.194.% 207.126.144.% 207.126.145.% 207.126.146.% 207.126.147.% 207.126.148.% 207.126.149.% 207.126.150.% 207.126.151.% 207.126.152.% 207.126.153.% 207.126.154.% 207.126.155.% 207.126.156.% 207.126.157.% 207.126.158.% 209.85.128.% 209.85.129.% 209.85.130.% 209.85.131.% 209.85.132.% 209.85.133.% 209.85.134.% 209.85.135.% 209.85.136.% 209.85.137.% 209.85.138.% 209.85.139.% 209.85.140.% 209.85.141.% 209.85.142.% 209.85.143.% 209.85.144.% 209.85.145.% 209.85.146.% 209.85.147.% 209.85.148.% 209.85.149.% 209.85.150.% 209.85.151.% 209.85.152.% 209.85.153.% 209.85.154.% 209.85.155.% 209.85.156.% 209.85.157.% 209.85.158.% 209.85.159.% 209.85.160.% 209.85.161.% 209.85.162.% 209.85.163.% 209.85.164.% 209.85.165.% 209.85.166.% 209.85.167.% 209.85.168.% 209.85.169.% 209.85.170.% 209.85.171.% 209.85.172.% 209.85.173.% 209.85.174.% 209.85.175.% 209.85.176.% 209.85.177.% 209.85.178.% 209.85.179.% 209.85.180.% 209.85.181.% 209.85.182.% 209.85.183.% 209.85.184.% 209.85.185.% 209.85.186.% 209.85.187.% 209.85.188.% 209.85.189.% 209.85.190.% 209.85.191.% 209.85.192.% 209.85.193.% 209.85.194.% 209.85.195.% 209.85.196.% 209.85.197.% 209.85.198.% 209.85.199.% 209.85.200.% 209.85.201.% 209.85.202.% 209.85.203.% 209.85.204.% 209.85.205.% 209.85.206.% 209.85.207.% 209.85.208.% 209.85.209.% 209.85.210.% 209.85.211.% 209.85.212.% 209.85.213.% 209.85.214.% 209.85.215.% 209.85.216.% 209.85.217.% 209.85.218.% 209.85.219.% 209.85.220.% 209.85.221.% 209.85.222.% 209.85.223.% 209.85.224.% 209.85.225.% 209.85.226.% 209.85.227.% 209.85.228.% 209.85.229.% 209.85.230.% 209.85.231.% 209.85.232.% 209.85.233.% 209.85.234.% 209.85.235.% 209.85.236.% 209.85.237.% 209.85.238.% 209.85.239.% 209.85.240.% 209.85.241.% 209.85.242.% 209.85.243.% 209.85.244.% 209.85.245.% 209.85.246.% 209.85.247.% 209.85.248.% 209.85.249.% 209.85.250.% 209.85.251.% 209.85.252.% 209.85.253.% 209.85.254.% 216.239.32.% 216.239.33.% 216.239.34.% 216.239.35.% 216.239.36.% 216.239.37.% 216.239.38.% 216.239.39.% 216.239.40.% 216.239.41.% 216.239.42.% 216.239.43.% 216.239.44.% 216.239.45.% 216.239.46.% 216.239.47.% 216.239.48.% 216.239.49.% 216.239.50.% 216.239.51.% 216.239.52.% 216.239.53.% 216.239.54.% 216.239.55.% 216.239.56.% 216.239.57.% 216.239.58.% 216.239.59.% 216.239.60.% 216.239.61.% 216.239.62.%
Oday, Your suggestion won't work as the IP ranges aren't all inclusive. Here is the list that Google says to whitelist. As an example...how do I white list 64.18.0.x to 64.18.15.x I should have looked harder in stackoverflow. For others that stumble upon this post, here is the answer that I found at Whitelist IP addresses ranges using cPanel 64.18.0-15.% 64.233.160-191.% 64.102.0-15.% 66.249.80-95.% 72.14.192-255.% 74.125.% 173.194.% 207.126.144-159.% 209.85.128-255.% 216.239.32-63.%
This is long overdue, but the easiest solution is to use the % wildcard like this to make it easier: 64.18.%.% 64.233.%.% 66.102.%.% ...etc
web services calling error in flex
When i call web services, i got below mentioned error [FaultEvent fault=[RPC Fault faultString="Error #1098: Illegal prefix ns0 for no namespace." faultCode="EncodingError" faultDetail="null"] messageId=null type="fault" bubbles=false cancelable=true eventPhase=2] <mx:WebService id="myWebService1" wsdl="URL"> <mx:operation name="loginservice" result="getMonths_result(event);" fault="getMonths_fault(event);"> </mx:operation> </mx:WebService>
I know nothing about flex4 but it seems that there is a XML document somewere wich has prefixed elements (<ns0:Element>) but it has not a defined namespace (xmlns:ns0 = "URI"). OR There is not an URI in the namespace definition (xmlns:ns0 = "")