Getting "connection refused"

Hi,
I just started looking at Oracle CEP. I created a simple Helloworld project that uses a built-in Pub-Sub adapter. I am facing the following problems:
1. I am getting "Connection Refused" when I add/publish the project to Oracle CEP server. I am using port 9102 on Windows XP server.
2. I am not able to find any decent client example that I can use to access this flow. I tried Dojo Bayeus client example but these are pieces
here and there and most of them are outdated, can somebody please provide a sample code for Async client?
3. I tried to create a custom Adapter as servlet instead of using pub-sub but I am not able to find full documnetation on how to deploy a servlet or register
it in Oracle CEP, I could not find anything on how to do this looking into different OSGi, Spring and Oracle sites.
Any help is highly appreciated.
Thanks,
Firas
Edited by: kfiras on Mar 8, 2010 5:41 AM
Edited by: kfiras on Mar 8, 2010 5:46 AM

Hi Seth,
It is giving a different error when swiching to 9002:
<Mar 9, 2010 4:00:15 PM EST> <Notice> <Spring> <BEA-2047001> <The application context "ServletHelloWorld" was shutdown successfully>
WARNING: [Mar 9, 2010 4:00:15 PM] FrameWorkLogger: Bundle ServletHelloWorld: Warning: org.osgi.framework.BundleException: The bundle class path entry "lib/servlet-api-6.0.14.jar" could not be found for the bundle "file:/E:/oracle/Middleware/user_projects/domains/ocep_domain/defaultserver/applications/ServletHelloWorld/ServletHelloWorld.jar"
org.osgi.framework.BundleException: The bundle class path entry "lib/servlet-api-6.0.14.jar" could not be found for the bundle "file:/E:/oracle/Middleware/user_projects/domains/ocep_domain/defaultserver/applications/ServletHelloWorld/ServletHelloWorld.jar"
     at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassPathEntry(ClasspathManager.java:170)
     at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.buildClasspath(ClasspathManager.java:147)
     at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.initialize(ClasspathManager.java:81)
     at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.initialize(DefaultClassLoader.java:267)
     at org.eclipse.osgi.internal.loader.BundleLoader.createBCL(BundleLoader.java:838)
     at org.eclipse.osgi.internal.loader.BundleLoader.createBCLPrevileged(BundleLoader.java:814)
     at org.eclipse.osgi.internal.loader.BundleLoader.createClassLoader(BundleLoader.java:360)
     at org.eclipse.osgi.internal.loader.BundleLoader.getParentClassLoader(BundleLoader.java:340)
     at org.eclipse.osgi.internal.loader.BundleLoader.getResources(BundleLoader.java:711)
     at org.eclipse.osgi.framework.internal.core.BundleHost.getResources(BundleHost.java:286)
     at org.springframework.osgi.util.BundleDelegatingClassLoader.findResources(BundleDelegatingClassLoader.java:137)
     at java.lang.ClassLoader.getResources(ClassLoader.java:1016)
     at org.apache.commons.logging.LogFactory$4.run(LogFactory.java:1317)
     at org.apache.commons.logging.LogFactory.getResources(LogFactory.java:1336)
     at org.apache.commons.logging.LogFactory.getConfigurationFile(LogFactory.java:1398)
     at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:417)
     at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.<init>(DefaultSingletonBeanRegistry.java:83)
     at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.<init>(FactoryBeanRegistrySupport.java:41)
     at org.springframework.beans.factory.support.AbstractBeanFactory.<init>(AbstractBeanFactory.java:146)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:144)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:155)
     at org.springframework.beans.factory.support.DefaultListableBeanFactory.<init>(DefaultListableBeanFactory.java:121)
     at org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:176)
     at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:121)
     at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
     at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)
     at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)
     at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
     at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)
     at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)
     at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
     at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
     at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)
     at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:61)
     at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
WARNING: [Mar 9, 2010 4:00:15 PM] FrameWorkLogger: Bundle ServletHelloWorld: Warning: org.osgi.framework.BundleException: The bundle class path entry "lib/org.osgi.compendium-1.2.0.jar" could not be found for the bundle "file:/E:/oracle/Middleware/user_projects/domains/ocep_domain/defaultserver/applications/ServletHelloWorld/ServletHelloWorld.jar"
org.osgi.framework.BundleException: The bundle class path entry "lib/org.osgi.compendium-1.2.0.jar" could not be found for the bundle "file:/E:/oracle/Middleware/user_projects/domains/ocep_domain/defaultserver/applications/ServletHelloWorld/ServletHelloWorld.jar"
     at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassPathEntry(ClasspathManager.java:170)
     at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.buildClasspath(ClasspathManager.java:147)
     at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.initialize(ClasspathManager.java:81)
     at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.initialize(DefaultClassLoader.java:267)
     at org.eclipse.osgi.internal.loader.BundleLoader.createBCL(BundleLoader.java:838)
     at org.eclipse.osgi.internal.loader.BundleLoader.createBCLPrevileged(BundleLoader.java:814)
     at org.eclipse.osgi.internal.loader.BundleLoader.createClassLoader(BundleLoader.java:360)
     at org.eclipse.osgi.internal.loader.BundleLoader.getParentClassLoader(BundleLoader.java:340)
     at org.eclipse.osgi.internal.loader.BundleLoader.getResources(BundleLoader.java:711)
     at org.eclipse.osgi.framework.internal.core.BundleHost.getResources(BundleHost.java:286)
     at org.springframework.osgi.util.BundleDelegatingClassLoader.findResources(BundleDelegatingClassLoader.java:137)
     at java.lang.ClassLoader.getResources(ClassLoader.java:1016)
     at org.apache.commons.logging.LogFactory$4.run(LogFactory.java:1317)
     at org.apache.commons.logging.LogFactory.getResources(LogFactory.java:1336)
     at org.apache.commons.logging.LogFactory.getConfigurationFile(LogFactory.java:1398)
     at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:417)
     at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.<init>(DefaultSingletonBeanRegistry.java:83)
     at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.<init>(FactoryBeanRegistrySupport.java:41)
     at org.springframework.beans.factory.support.AbstractBeanFactory.<init>(AbstractBeanFactory.java:146)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:144)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:155)
     at org.springframework.beans.factory.support.DefaultListableBeanFactory.<init>(DefaultListableBeanFactory.java:121)
     at org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:176)
     at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:121)
     at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
     at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)
     at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)
     at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
     at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)
     at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)
     at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
     at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
     at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)
     at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:61)
     at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
WARNING: [Mar 9, 2010 4:00:15 PM] FrameWorkLogger: Bundle ServletHelloWorld: Warning: org.osgi.framework.BundleException: The bundle class path entry "lib/org.osgi.core-1.0.0.jar" could not be found for the bundle "file:/E:/oracle/Middleware/user_projects/domains/ocep_domain/defaultserver/applications/ServletHelloWorld/ServletHelloWorld.jar"
org.osgi.framework.BundleException: The bundle class path entry "lib/org.osgi.core-1.0.0.jar" could not be found for the bundle "file:/E:/oracle/Middleware/user_projects/domains/ocep_domain/defaultserver/applications/ServletHelloWorld/ServletHelloWorld.jar"
     at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassPathEntry(ClasspathManager.java:170)
     at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.buildClasspath(ClasspathManager.java:147)
     at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.initialize(ClasspathManager.java:81)
     at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.initialize(DefaultClassLoader.java:267)
     at org.eclipse.osgi.internal.loader.BundleLoader.createBCL(BundleLoader.java:838)
     at org.eclipse.osgi.internal.loader.BundleLoader.createBCLPrevileged(BundleLoader.java:814)
     at org.eclipse.osgi.internal.loader.BundleLoader.createClassLoader(BundleLoader.java:360)
     at org.eclipse.osgi.internal.loader.BundleLoader.getParentClassLoader(BundleLoader.java:340)
     at org.eclipse.osgi.internal.loader.BundleLoader.getResources(BundleLoader.java:711)
     at org.eclipse.osgi.framework.internal.core.BundleHost.getResources(BundleHost.java:286)
     at org.springframework.osgi.util.BundleDelegatingClassLoader.findResources(BundleDelegatingClassLoader.java:137)
     at java.lang.ClassLoader.getResources(ClassLoader.java:1016)
     at org.apache.commons.logging.LogFactory$4.run(LogFactory.java:1317)
     at org.apache.commons.logging.LogFactory.getResources(LogFactory.java:1336)
     at org.apache.commons.logging.LogFactory.getConfigurationFile(LogFactory.java:1398)
     at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:417)
     at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.<init>(DefaultSingletonBeanRegistry.java:83)
     at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.<init>(FactoryBeanRegistrySupport.java:41)
     at org.springframework.beans.factory.support.AbstractBeanFactory.<init>(AbstractBeanFactory.java:146)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:144)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:155)
     at org.springframework.beans.factory.support.DefaultListableBeanFactory.<init>(DefaultListableBeanFactory.java:121)
     at org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:176)
     at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:121)
     at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
     at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)
     at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)
     at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
     at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)
     at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)
     at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
     at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
     at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)
     at org.springframework.scheduling.commonj.DelegatingWork.run(DelegatingWork.java:61)
     at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
<Mar 9, 2010 4:00:16 PM EST> <Notice> <Spring> <BEA-2047000> <The application context for "ServletHelloWorld" was started successfully>
<Mar 9, 2010 4:00:16 PM EST> <Error> <HTTP Pubsub Server> <BEA-2150002> <No permission on channel operation: User null has no permission to create channel /helloworld>
<Mar 9, 2010 4:00:16 PM EST> <Error> <PubSubAdapter> <BEA-2041408> <HTTP pub/sub adapter got unsuccessful response to subscribe request from server http://localhost:9002/pubsub: 406:No permission on channel operation: User null has no permission to create channel /helloworld:No permission.>
<Mar 9, 2010 4:00:16 PM EST> <Warning> <Spring> <BEA-2047006> <Work {0} terminated with exception = commonj.work.WorkException: java.lang.RuntimeException: Error establishing initial connection to http://localhost:9002/pubsub, channel /helloworld
commonj.work.WorkException: java.lang.RuntimeException: Error establishing initial connection to http://localhost:9002/pubsub, channel /helloworld
     at weblogic.work.commonj.CommonjWorkManagerImpl$WorkStatus.setThrowable(CommonjWorkManagerImpl.java:260)
     at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:198)
     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused By: java.lang.RuntimeException: Error establishing initial connection to http://localhost:9002/pubsub, channel /helloworld
     at com.bea.wlevs.adapters.httppubsub.HttpSubAdapter.run(HttpSubAdapter.java:52)
     at com.bea.wlevs.adapters.httppubsub.HttpSubAdapter$$FastClassByCGLIB$$d6027a4e.invoke(<generated>)
     at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
     at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
     at com.bea.wlevs.ede.spi.AbstractStageProxy.invoke(AbstractStageProxy.java:78)
     at com.bea.wlevs.eventstore.recplay.RecordPlayProxy.invoke(RecordPlayProxy.java:227)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.wlevs.ede.spi.AbstractStageProxy.invoke(AbstractStageProxy.java:78)
     at com.bea.wlevs.monitor.internal.MonitoringProxy.invoke(MonitoringProxy.java:165)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
     at com.bea.wlevs.adapters.httppubsub.HttpSubAdapter$$EnhancerByCGLIB$$895c9014.run(<generated>)
     at com.bea.wlevs.spring.RunnableBeanPostProcessor$RunnableWrapper.run(RunnableBeanPostProcessor.java:117)
     at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused By: java.io.IOException: Connect request received unsuccessful response from server
     at com.bea.wlevs.adapters.httppubsub.HttpSubAdapter.establishConnection(HttpSubAdapter.java:104)
     at com.bea.wlevs.adapters.httppubsub.HttpSubAdapter.run(HttpSubAdapter.java:49)
     at com.bea.wlevs.adapters.httppubsub.HttpSubAdapter$$FastClassByCGLIB$$d6027a4e.invoke(<generated>)
     at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
     at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
     at com.bea.wlevs.ede.spi.AbstractStageProxy.invoke(AbstractStageProxy.java:78)
     at com.bea.wlevs.eventstore.recplay.RecordPlayProxy.invoke(RecordPlayProxy.java:227)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.wlevs.ede.spi.AbstractStageProxy.invoke(AbstractStageProxy.java:78)
     at com.bea.wlevs.monitor.internal.MonitoringProxy.invoke(MonitoringProxy.java:165)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
     at com.bea.wlevs.adapters.httppubsub.HttpSubAdapter$$EnhancerByCGLIB$$895c9014.run(<generated>)
     at com.bea.wlevs.spring.RunnableBeanPostProcessor$RunnableWrapper.run(RunnableBeanPostProcessor.java:117)
     at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
>

Similar Messages

  • When I try to log in from desktop I get "Connection Refused" message. How do I fix this?

    I tried to activate Mozilla Firefox today using the normal & routine method, clicking on the Firefox Icon.
    Each time I tried I got the same message "Connection Refused".
    I went to the Firefox site and read the message regarding disabling Java, so I opened ADD ONS and Plug Ins and disabled Java.
    Still no change, so I shut down and restarted my computer.
    I keep getting the same Connection Refused message.
    What needs to be done to restore Firefox?

    Another user also reported a problem with the AT&T Yahoo home page in the past few minutes. When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    orange Firefox button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?

  • [SOLVED]dbus and systemd: "systemctl --user" gets "Connection refused"

    Hi,
    I want to enable some systemd user service. Here is what I get
    $ LANG=C systemctl --user
    Failed to get D-Bus connection: Connection refused
    $ echo $DBUS_SESSION_BUS_ADDRESS
    unix:abstract=/tmp/dbus-RboLZS2wF3,guid=feb8bd85248906d12a826acd54e3c4ad
    I don't believe I've ever touched dbus, so I'm a bit lost. There's the following line in my ~/.xinitrc:
    exec dbus-launch xmonad
    Seems like I'm not the only one with trouble on that topic, but I could not solve my problem.
    Additional resources:
    1. relevant pstree information
    systemd-+-acpid
    |-at-spi-bus-laun-+-dbus-daemon
    | |-{dconf worker}
    | |-{gdbus}
    | `-{gmain}
    |-3*[dbus-daemon]
    |-dbus-launch
    |-login---startx---xinit-+-Xorg
    | `-xmonad-x86_64-l-+-tons
    | |-of
    | |-stuff
    |-polkitd-+-{JS GC Helper}
    | |-{JS Sour~ Thread}
    | |-{gdbus}
    | |-{gmain}
    | `-{runaway-killer-}
    |-systemd---(sd-pam)
    |-systemd-journal
    |-systemd-logind
    |-systemd-udevd
    2.
    $ pgrep -af systemd
    1 /usr/lib/systemd/systemd --system --deserialize 16
    149 /usr/lib/systemd/systemd-journald
    171 /usr/lib/systemd/systemd-udevd
    257 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
    263 /usr/lib/systemd/systemd-logind
    316 /usr/lib/systemd/systemd --user
    3.
    $ pgrep -af dbus
    257 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
    385 dbus-launch --sh-syntax --exit-with-session
    386 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
    459 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
    470 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
    4. Playing with processus #1
    - Killing it doesn't change anything
    $ /usr/lib/systemd/systemd --user
    Failed to create root cgroup hierarchy: Permission denied
    Failed to allocate manager object: Permission denied
    $ sudo /usr/lib/systemd/systemd --user
    Trying to run as user instance, but $XDG_RUNTIME_DIR is not set.
    $ echo $XDG_RUNTIME_DIR
    /run/user/1000
    $ sudo -i
    # XDG_RUNTIME_DIR=/run/user/1000 /usr/lib/systemd/systemd
    Startup finished in 41ms. // keeps running
    But I still cannot do "systemctl --user"....
    Last edited by Laugarhraun (2015-02-18 17:03:57)

    Heyyy I'm dumb!
    $ alias systemctl
    alias systemctl='sudo systemctl'
    $ LANG=C /usr/bin/systemctl --user
    Failed to list units: Process org.freedesktop.systemd1 exited with status 1
    New error = progress! yay!

  • How to send a file without getting Connection Refused??

    Hello everyone!
    I'm developing a FTP (Client and Server) program as a project and I have 2 main problems:
    1. The program can't connect to computers with router (Connection Refused error)
    2. If a computer with router connects to me, the program will not transfer the file (Connection Refused error again). but if it does, my friend's internet is suddenly disconnect after one transfer
    what should i do?!? : //
    everything is working well on one computer, but when i'm trying to work on 2 computers its screwed
    ***FOR EVERY TRANSFER I OPEN A DIFFERENT SOCKET AND CLOSE IT (AND ALL THE OTHER STREAMS) IN CASE OF EXCEPTION OR COMPLETION
    Thanks!!

    cotton.m wrote:
    Oron wrote:
    lol
    sorry..just want you to notice
    so how the other ftp programs transfer files? : //
    i have a test up against 2 testers and my program will not transfer files between 2 computers : ///Are these two computers on the same network? Aka behind the same router? If so then there is another problem, which is either a bug in your program and/or a firewall on one or both of the computers.
    How does FTP work normally? Well in most cases you are talking to a server that is on the internet. This server has been configured to be behind or on a network where the routers are not blocking requests to connect to FTP ports (among other services). So nothing different other than it is configured correctly.
    I do suspect your program may have some bugs as well. For example when you talk about it dropping the connection after one transfer. That doesn't sound too great.when i checked the program...no
    in the test...yes
    so the server has no blocking ports, but what about a client with a router?..how do the programs pass the client blocking?
    when i checked the program with a friend (i have a modem and i was the server) all the data was perfectly transfered (moving among folders, deleting files, creation of folders-->all these actions on the server..sending codes, strings and stuff), but when i tried to transfer a file it did connection refused :S
    i can bring a link to the file that do the transfer and if you have patience to read

  • How to start RSH on MAC mountain lion? I'm getting connection refused error

    How to start rshd on mountaion lion??
    >mac-29#rsh CMD 'rsh' '10.73.105.131' '-l' 'root' '/bin/mkdir /mnt; echo END'_'COMMAND'_'OUTPUT'
    <<mac-29#rsh|10.73.105.131: Connection refused\r\n

    Wow, no answer yet?  It's been 6 months.

  • Connection refused in SQL Server 2005

    I have just installed SQL Server 2005 Developer Edition, and
    I still have SQL Server 7 running on port 1433.
    I have many SQL7 databases connected to CF7.0.2
    When I try to connect to a new database that I can read and
    write to in SQL2005, I get a connection refused error.
    I'm not sure what port to connect to as SQL2005 port shows 0
    which apparently means dynamic port allocation.
    When I try port 1434 I get connection refused.
    I have user name set to sa (and this is enabled in SQL2005)
    and no password (windows authentication). Same result if user name
    is blank.
    Anyone got any idea what these settings should be?
    Doug

    I have now switched off dynamic port allocation and changed
    the port to 1435 and I think I now connect to SQL Server 2005, but
    I now get the error:
    The user is not associated with a trusted SQL Server
    connection.
    I have tried using sa and tried setting up another user name,
    but cannot get past this error.
    Any help would be appreciated.
    Doug

  • Connection refused by host in Nagios NRPE

    Hi Experts
    I had configured Nagios in Redhat linux everthing is working smoothly
    My problem is i have Solaris 8,9,10 now i am installing NRPE plugings and NRPE in Solaris 10 to get the details of swap space & Machine load information all the compilation went smoothly.
    When i run the given below command i am getting connection refused by host.
    bash-2.05# /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
    Connection refused by host
    One more query how to start xinetd in solaris10 and other solaris platform.I saw in nagios NRPE document it says to run "make install-xinetd" if it is there how to start it i think most probly xinet is not running
    Could any please help me on this
    Thanks
    kr

    Describe your setup and what internet realated applications you've installed and i'm sure someone will be able to help you.
    - How are you connecting - via a swtich, usb or ethernet modem somehow?
    - What other apps are installed - any download managers or things that integrate with your web browser?

  • Connection Refused Error In Connection Client

    Hello Geeks
    I am runnig a RMI application in which runs on internet , i have setup RMI server on a host server and it is running there.
    Now, when i try to call client using ip address of the Host , i am getting Connection Refused error.
    Example :
    Registry registry=LocateRegistry.getRegistry("70.33.246.110");
    System.out.println("Above connectMe");
    String  serverName = "rmi://70.33.246.110:2786/connectUser";
    connectMe stub=(connectMe)Naming.lookup(serverName);
    System.out.println("Below connectMe");
    boolean log=stub.login(username,password,1);
    System.out.println("Below login");Here "connectuser" is name i have given in server to which client lookups.I am getting -> Above connectMe and Below connectMe
    but then i am getting connection refused error.
    Please Help Me Out.....ASAp
    Edited by: Hardik.Mishra on Oct 3, 2009 5:46 PM

    Registry registry=LocateRegistry.getRegistry("70.33.246.110");There's no point to doing that ...
    System.out.println("Above connectMe");
    String serverName = "rmi://70.33.246.110:2786/connectUser";
    connectMe stub=(connectMe)Naming.lookup(serverName);... if you're doing that. The getRegistry() doesn't do a network operation, it just constructs a stub to that Registry locally. Only by using it would you find out whether it meant anything: and you're not using it.
    I am getting -> Above connectMe and Below connectMe
    but then i am getting connection refused error.See item A.1 on the RMI Frequently Asked Questions list in the Javadoc.

  • "connection refused" in Safari

    Recently uninstalled Safari "Ad-block" extension. Now I am getting "connection refused" errors when trying to access some web pages. Can someone help!

    I know there's an uninstall button in Safari / Preferences - Extension but just in case...
    Go to ~/Library/Safari/Extensions
    If the Adblock extension is in the list, move it to the Trash.
    ~ (Tilde) character represents the Home folder.
    For LIon:   To find the Home folder in OS X Lion, open the Finder, hold the Option key, and choose Go > Library
    And sometimes restarting your Mac after you uninstall an Extension helps.

  • Connection refused error showing in ironport s170 - WSA

    Connection refused error showing in ironport s170 -  WSA
    I am getting “Connection refused” error while I connect ironport s170 through console cable. also i am not able to connect it through HTTP and SSH. Complete output is given below.
    Last login: Thu Sep 11 07:16:59 on cuad0
    Copyright (c) 2001-2011, Cisco Systems, Inc.
    AsyncOS 7.5.2 for Web build 303
    Welcome to the Cisco IronPort S170 Web Security Appliance
    Traceback (most recent call last):
      File "/usr/build/iproot/ap/ipoe/ipoe/bootstrap.py", line 55, in <module>
      File "/data/lib/python2.6_7_i386_nothr/runpy.py", line 128, in _run_module_as_
    main
        "__main__", fname, loader, pkg_name)
      File "/data/lib/python2.6_7_i386_nothr/runpy.py", line 34, in _run_code
        exec code in run_globals
      File "build/bdist.freebsd-7.2-RELEASE-p2-i386/egg/cli.py", line 426, in <modul
    e>
      File "build/bdist.freebsd-7.2-RELEASE-p2-i386/egg/external_auth/__init__.py",
    line 212, in initialize
      File "build/bdist.freebsd-7.2-RELEASE-p2-i386/egg/external_auth/__init__.py",
    line 118, in _setup_old_authentication
      File "build/bdist.freebsd-7.2-RELEASE-p2-i386/egg/command_client.py", line 674
    , in quick_read_var
      File "build/bdist.freebsd-7.2-RELEASE-p2-i386/egg/command_client.py", line 133
    , in connect
    Commandment.CommunicationError: <host name>: Network communication error
    : Connection refused
    AsyncOS <host name> (cuad0)
    login:

    Hi,
    You can upgrade to 7.7+ but if you require a root cause analysis I suggest you to open a TAC case.
    Regards,
    Luis Silva

  • Sun Java Portal Server 7.1 Connection Refused

    I am having issues with connecting to Portal Server, I am able to connect to web console and the directory server is running and to amconsole but am unable to connect to the portal server. I keep getting connection refused please help.

    Hi ,
    Do you mean the welcome page that is provided and which point to the three sample portals ? or the login page ?
    The login page can be customized see in the Access Manager Documentation :
    http://docs.sun.com/app/docs/doc/819-4675/6n6qfk0qb?a=view
    Michel

  • Connection refused in Mission control

    Hi !
    I created a simple application just for demo and I start it with
    java prim.Prim 100000000 -XX:+UnlockCommercialFeatures -XX:+FlightRecorder
    But I can't connect, when  doing 'Start jmx-console' I get  connection refused after a while.
    The same problem when starting the application in NetBeans .

    At least that makes sense (JConsole not working either). Okay, so something is messed up regarding local attach on your machine. Let's try not using local attach. What happens if you try adding the following to the command line, and then set up a connection in JMC manually (click the "new custom connection" icon in the JVM Browser)?
    -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=7091 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false

  • Connecting from outside - Connection refused

    Hey,
    I am trying to connect to my home computer using VNC / FreeNX.
    When trying to connect from inside the home network, everything works OK (using the internal network IP).
    But, when trying to connect to the same computer using its internet IP, I get "connection refused".
    Please note that I use a router for my home network, and I have DMZ enabled to the desktop computer.
    I know that DMZ works OK (checked it with aMule).
    hosts.allow and hosts.deny both contain nothing.
    Tnx
    Fiod

    Check the logs on the box you're trying to connect to - you should be able to determine whether the connection attempt reached it and was rejected for some reason, or didn't reach it at all. In the first case, the log messages should give you some idea on how to fix it; in the second case, the problem would be on your router.

  • Socket mostly times out, connection refused.

    Hello,
    I am writing my own version of dc-hub in Java. This is my first networking program I make.
    The main class has a ServerSocket running on port 411 and it will then make another socket when someone connects. Although at the moment 198 users are connected, it seems that the server mostly gives a time out when you try to connect. It's not a firewall problem, because I get them (localhost) as well. The server also runs on localhost.
    This is the code:
    ServerSocket serverSock = new ServerSocket(411);while(true) {      Socket sock = serverSock.accept();      new ConnectorThread(sock,P,U);}
    I really have no clue why I and a lot of other users get time outs...
    I'll post the results from the client program (DC++):
    [17:39] *** Connection refused by target machine
    [17:39] *** Connecting to localhost...
    [17:39] *** Connection refused by target machine
    [17:39] *** Connecting to localhost...
    [17:40] *** Connection refused by target machine
    [17:40] *** Connecting to localhost...
    [17:40] *** Connected
    [17:40] <Hub-Security> Welcome to Tom's personal hubsoftware V1.0
    Oh... yeah... I get Connection refused, while my friends are receiving "Connection time out..."
    Again: It's not a firewall or router problem... I know that 100% sure...
    I hope someone knows how to fix this problem, I've searched the forum without a result for my problem.
    Thank you in advance,
    Tom

    I am running 1.4.2_05 on win2000
    Client code
    //{{{  Imports
    import java.io.*;
    import java.net.* ;
    * This class provides access to the IOR String via HTTP protocol.
    * Server accepts connection from anywhere
    public class SockClient // extends Thread
    //  public static int HTTPIORPort = 2096;
    //  ServerSocket incommingSocket = null;
    //  private int SockTimeout = 5000; // 5 seconds
      SockClient()
        for (int i = 0 ; i < 40 ; i++)
          try
            new GetThread(i);
          catch (Exception e)
            System.out.println("Caught Exception:");
            e.printStackTrace();
      public static void main (String args[])
        new SockClient();   
      class GetThread extends Thread
        int gen;
        GetThread(int i)
          //setDaemon(true);
          setDaemon(false);
          gen = i;
          start();
        public void run()
          int count = 69;
          try
            Socket socket = new Socket(InetAddress.getByName("localhost"), 2096);
            //System.out.println("timeout="+ socket.getSoTimeout());
            InputStream in = socket.getInputStream();
            OutputStream out = socket.getOutputStream();
            String get = "GET / HTTP/1.1\r\n\r\n";
            out.write(get.getBytes());
            byte[] buf = new byte[1024];
            while (count > 0)
              count = in.read(buf);
          catch (Exception e)
            System.out.println("Caught exception (g="+gen+"):("+count+")"+e.toString());
            //e.printStackTrace();
    }Server code:
    *  Handles HTTP requests
    //{{{  Imports
    import java.io.*;
    import java.net.* ;
    import java.util.* ;
    * This class provides access to the IOR String via HTTP protocol.
    * Server accepts connection from anywhere
    public class SockServer // extends Thread
      public static int HTTPIORPort = 2096;
      ServerSocket incommingSocket = null;
      private int sockTimeout = 5000; // 5 seconds
      public static void main (String args[])
        try
          new SockServer();
        catch (Exception e)
          System.out.println("main: Exception"+e.toString());
      SockServer() throws IOException
        System.out.println("Thread running: HTTPListener");
        Socket incommingRequest = null;
        try
          incommingSocket = new ServerSocket(HTTPIORPort);
          System.out.println("Timeout set to "+incommingSocket.getSoTimeout());
          //incommingSocket.setSoTimeout(sockTimeout); // 5 seconds
        catch (Exception e)
          System.out.println("Unable to start HTTP IOR Server");
          System.exit(1);
        //  Ready to Accept connections
        System.out.println("Started HTTPListener listening on "+HTTPIORPort);
        while (true)
          try
            synchronized(incommingSocket)
              incommingRequest = incommingSocket.accept();
              handleRequest(incommingRequest);
          catch (java.net.SocketTimeoutException to)
          catch (Exception e)
            System.out.println("Could not accept HTTP request: "+e.toString());
            break;
        // Close sockets
        try
          incommingRequest.close();
          incommingSocket.close();
        catch (Exception e) { }
        System.out.println("Thread exit: HTTPListener");
      void handleRequest(Socket ic)
        System.out.println("Received HTTP IOR Request from: "+
            ic.getInetAddress().getHostAddress()+":"+ic.getPort());
        final Socket httpRequest = ic;
        final String qmVersion = "1.0";
        final BufferedReader inData ;
        final OutputStream outData;
        try
          inData = new BufferedReader(new InputStreamReader(httpRequest.getInputStream()));
          //PrintWriter outData = new PrintWriter(httpRequest.getOutputStream(), true);
          //DataOutputStream outData = new DataOutputStream(httpRequest.getOutputStream());
          outData = httpRequest.getOutputStream();
        catch (Exception e)
          System.out.println("Caught set up streams:" +e.toString());
          return;
        new Thread (null, null, "HTTPAnswerThread", 10 * 1024)
            String page = null;
            // Anonymous contructor
              setDaemon(true);
              start();
            // Anonymous Thread to handle http request
            public void run ()
                String input = "starting";
              try
                // Ditch incoming header
                while (input.length() != 0)
                  input = inData.readLine();
                  if (input == null)
                    System.out.println("input == null");
                    break;
                page = "IOR:000000000000002349444C3A515F5175656E74696E2F515F496E7465726E616C506F7274616C3A312E300000000000020000000000000070000102000000000D31302E3136322E36332E3438000011690000001C5374616E64617264496D706C4E616D652F011147170A2C332E013928000000020000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000010000002C0000000000000001000000010000001C00000000000100010000000105010001000101090000000105010001";
    //            outData.print(getHeader(page.length()));
    //            outData.print(page);
    //            outData.writeBytes(getHeader(page.length()));
    //            outData.writeBytes(page);
                //byte[] b = getHeader(page.length()).getBytes("ISO-8859-1");
                byte[] b = stringToBytes(getHeader(page.length()));
                outData.write(b);
                outData.flush();
                //byte[]
                //b = page.getBytes("ISO-8859-1");
                b = stringToBytes(page);
                outData.write(b);
                outData.flush();
                outData.close();
                inData.close();
                httpRequest.close();
              catch (Exception e)
                System.out.println("Unhandled http request:");
                e.printStackTrace();
            byte[] stringToBytes(String s)
              ByteArrayOutputStream os = new ByteArrayOutputStream();
              try
                DataOutputStream cob = new DataOutputStream(os);
                cob.writeBytes(s);
                cob.close();
              catch(Exception e)
                System.out.println("Caught unhandled exception:");
                e.printStackTrace();
              return os.toByteArray();
            String getHeader(int len)
              return
                 "HTTP/1.1 200 OK\r\n"+
                 "Date: "+ (new Date()).toString() + "\r\n"+
                 "Content-Type: text/plain\r\n"+
                 "Content-Length: "+ len +"\r\n"+
                 "Server: "+ qmVersion + "\r\n"+
                 "\r\n";
      }

  • Bluetooth Connection Refused obex

    I have succesfully paird my htc hero (running cm7) and my lg saber.  When i try to send a file I get connection refused.  I am using blueman.  I have tried using obexftp from command line and i get this output.
    obexftp -b B0:89:91:53:CC:EA -p wavycurls.jpg
    Browsing B0:89:91:53:CC:EA ...
    Connecting...failed: connect
    Tried to connect for 200ms
    error on connect(): Permission denied
    Still trying to connect
    Connecting..\done
    Tried to connect for 123ms
    Sending "picture.jpg"...-done
    Disconnecting..\done
    From command line, this does send the file.  I presume the front end halts at the permission denied error thus never sending the file.  I have other problems interfacing/ browsing my devices but I think they may be related to this and I am unfamiliar with bluetooth neuances in linux. 
    I am sure this is a linux software/config issue because if I reboot into my hackintosh partition I can send and browse fine, at least with my lg saber.
    Any help is appreciated since I cannot find a solution via google.

    I have gvfs-obex installed, not sure about gnome-polkit.  I tried on my desktop with the same bluetooth adapter and got to browse my phone.  I had to connect using a bluetooth app on my android phone.  If I tried to connect from the computer side and it crashed my phone, but I'm not sure that has anything to do with linux.  I have arch installed on both computers.  gnome-polkit not installed on desktop.  gvfs-obexftp is installed and works with pcmanfm on desktop.

Maybe you are looking for