Unable to connect to remote JMX

Hi guys,
In our development environment in linux, we are using resin + jdk1.5.
i started my resin server with these options:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8004
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
It returns "Connection failed" when i tried to connect to it from local.
If i use those options and start it locally, i am able to connect.
Anyone has any ideas what am i missing?
Thanks.
Message was edited by:
jinchuriki

I'm also running into this issue on a Linux machine running JDK 1.6.0_12:
java -version
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) 64-Bit Server VM (build 11.2-b01, mixed mode)I'm running with the following VM parameters:
-Dcom.sun.management.jmxremote.port=9958 -Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=falseFrom a windows machine I run jconsole:
JConsole version "1.6.0_10-rc2-b32"
Java(TM) SE Runtime Environment (build 1.6.0_10-rc2-b32)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)jconsole 192.168.10.143:9958
It appears to begin to connect (I see the JMX monitoring tabs and a progress bar) then it says:
Connection Failed: Retry?
The connection to 192.168.10.143:9958 did not succeed. Would you like to try again?It seems like the JConsole is able to partial connect to the remote JMX service but then fails somewhere in the process.
If I try to connect to a non-JMX listening port on 192.168.10.143 I receive a message in the connection selection dialogue:
Connection failed: non-JRMP server at remote endpointIf I connect to a port that the remote server isn't listening to I do not get the Connection Failed error, it ends up timing out then I sending me back to the New Connection window.

Similar Messages

  • Connect to remote jmx with password

    Hello,
    now I�ve a problem to connect a remote jmx server with passord authentification. No idea why it does not work, here my configuration:
    jmxremote.password:
    ================
    # or specify another, less accessible file in the management config file
    # as described above.
    # Following are two commented-out entries. The "measureRole" role has
    # password "QED". The "controlRole" role has password "R&D".
    test test1
    jmxremote.access
    ================
    # Default access control entries:
    # o The "monitorRole" role has readonly access.
    # o The "controlRole" role has readwrite access.
    test readwrite
    This are my sys parameter:
    JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=9004"
    JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"
    JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
    JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.access.file=/home/tomcat/jmxremote.access"
    JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.password.file=/home/tomcat/jmxremote.password"
    The .access and .password file is on the correct place and there is no exception because of the file access rights. If I start the remote jconsole with -J-Djava.security.debug=all, this is the end:
    jar:
    jar: beginEntry com/sun/crypto/provider/SunJCE_i.class
    jar: Manifest Entry: com/sun/crypto/provider/SunJCE_i.class digest=SHA1
    jar: manifest d462e6ef45ec12081028cd7ccf922cc2ec553358
    jar: computed d462e6ef45ec12081028cd7ccf922cc2ec553358
    jar:
    Cipher: Crypto Permission check failed
    Cipher: granted: (CryptoPermission * 128)
    Cipher: requesting: (CryptoPermission AES 256)
    I�ve found already a solution for that and connect with jconsole with the url service:jmx:rmi:///jndi/rmi://hostname:9004/jmxconsole
    Provider: Set SUN provider property [SecureRandom.SHA1PRNG ImplementedIn/Software]
    Provider: Set SUN provider property [CertificateFactory.X.509 ImplementedIn/Software]
    Provider: Set SUN provider property [KeyStore.JKS ImplementedIn/Software]
    Provider: Set SUN provider property [CertPathValidator.PKIX ImplementedIn/Software]
    Provider: Set SUN provider property [CertPathBuilder.PKIX ImplementedIn/Software]
    Provider: Set SUN provider property [CertStore.LDAP ImplementedIn/Software]
    Provider: Set SUN provider property [CertStore.Collection ImplementedIn/Software]
    Provider: Set SUN provider property [CertStore.com.sun.security.IndexedCollection ImplementedIn/Software]
    ProviderConfig: Loaded provider SUN version 1.6
    Although there is no exception I am unable to connect to the remote jmx server...
    Thx for any help!
    Cheers,
    Thilko
    Edited by: smilie79 on Jan 17, 2008 1:53 AM
    Edited by: smilie79 on Jan 21, 2008 2:51 AM

    Hi,
    You might need to specify explicitely -Dcom.sun.management.jmxremote.authenticate=true on the command line.
    Hope this helps,
    -- daniel
    http://blogs.sun.com/jmxetc

  • SharePoint Online - "Unable to connect to remote server"

    Hi,
    I have a Provider Hosted App which gets the data from a different site collection. Now, when i try to connect to a different site collection, the TokenHelper
    class gives me an error -  "Unable to connect to remote server". 
    The error is thrown in the below line:
    acsMetadata = webClient.DownloadData(acsMetadataEndpointUrlWithRealm);
    The above error is not thrown always. It throws occasionally. I am not getting the reason for this. Could anybody explain what is the problem, please? 

    Hi,
    According to your description, my understanding is that the error "Unable to connect to remote server" occurs in the WebClient.DownloadData Function.
    As this error throws occasionally, it should be related to the network issue, for a better troubleshooting, I suggest you can check the detailed error message using Fiddler.
    Fiddler
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • SSRS 2008 - Unable to connect to remote server

    Win2k3 R2 SP2/SQL Server 2008 instance with SSRS/Visual Studio 2008
    I installed SQL 2008 and SSRS with native mode default configuration.
    All SQL 2008 services are running under "NT Authority\Network Service" account.
    When i try to deploy a new report, I get the "Unable to connect to remote server" error.
    The deploy operation creates empty folders on the web server (hosted by the SQL Server 2008 service)
    for e.g.
    my instance name is <machinename>$sql2008. i configured the WebService URL and the Reports Manager URL to port 85
    the deploy from VS creates ssrs2008Test folder and a Shared Data Sources folder in the following virtual directory
      - Report Manager URL: http://<machinename>:85/Reports_SQL2008/
      - Web Service URL: http://<machinename>:85/ReportServer_SQL2008
    however these folders are empty w/ no .rdl or .rds file. and i get the "Unable to connect to remote server"  error in Visual Studio 2008 when i deploy it.
    is there something else i have to tweak in either the SQL Server/SSRS Configuration Manager or the Windows Server Settings(like port settings or group policy) to get the reports to work?
    thanks
    -vt

    SecureConnectionLevel = 2
    From logFile:
    appdomainmanager!DefaultDomain!740!08/29/2008-08:00:30:: i INFO: Appdomain:6 ReportServer_SQL2008_0-3-128644956308203194 started.
    appdomainmanager!ReportServer_0-3!740!08/29/2008-08:00:31:: i INFO: RS authentication mode is 5; effective ASP.NET authentication mode is Windows. vdir=/ReportServer_SQL2008.
    httpruntime!ReportServer_0-3!740!08/29/2008-08:00:31:: i INFO: Report Builder manifest file C:\Program Files\Microsoft SQL Server\MSRS10.SQL2008\Reporting Services\ReportServer\ReportBuilder\ReportBuilder_2_0_0_0\MSReportBuilder.exe.manifest not found.
    appdomainmanager!DefaultDomain!740!08/29/2008-08:00:31:: i INFO: Appdomain:6 ReportServer_SQL2008_0-3-128644956308203194 initialized (#2).
    webserver!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Reporting Web Server started
    resourceutilities!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Reporting Services starting SKU: Developer
    resourceutilities!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Evaluation copy: 0 days left
    resourceutilities!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Running on 1 physical processors, 4 logical processors
    runningjobs!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Running Requests Scavenger timer enabled: Next Event: 60 seconds.  Cycle: 60 seconds
    runningjobs!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Running Requests DB timer enabled: Next Event: 60 seconds.  Cycle: 60 seconds
    runningjobs!ReportServer_0-3!740!08/29/2008-08:00:37:: i INFO: Memory stats update timer enabled: Next Event: 60 seconds.  Cycle: 60 seconds
    library!ReportServer_0-3!1588!08/29/2008-08:00:38:: Call to GetItemTypeAction(/ssrs2008Test).
    library!ReportServer_0-3!1588!08/29/2008-08:00:39:: i INFO: Catalog SQL Server Edition = Developer
    crypto!ReportServer_0-3!1588!08/29/2008-08:00:39:: i INFO: Initializing crypto as user: NT AUTHORITY\NETWORK SERVICE
    crypto!ReportServer_0-3!1588!08/29/2008-08:00:39:: i INFO: Exporting public key
    crypto!ReportServer_0-3!1588!08/29/2008-08:00:39:: i INFO: Performing sku validation
    crypto!ReportServer_0-3!1588!08/29/2008-08:00:39:: i INFO: Importing existing encryption key
    library!ReportServer_0-3!740!08/29/2008-08:00:39:: Call to GetItemTypeAction(/Data Sources).
    library!ReportServer_0-3!1588!08/29/2008-08:00:39:: Call to GetItemTypeAction(/Data Sources/masterDB).
    library!ReportServer_0-3!740!08/29/2008-08:00:40:: Call to GetItemTypeAction(/ssrs2008Test/sp_who2).

  • HTTP Response :500 unable to connect to remote system.

    Hi,
    I am doing proxy-xi-file scenario, where i am getting this error in sxmb_moni in R/3.
    The error reads with red flag:
    HTTP Response :500 unable to connect to remote system.
    Please  tell me what can be the reason.

    Snehal,
    Error: The error message 503 Service unavailable Application stopped! is displayed.
    Description: The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.
    Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish to simply refuse the connection.
    Possible Tips: Because of J2EE application com.sap.aii.af.ms.app not active
    • Try to (re)start the application using the Visual Administrator Choose Server --> Services --> Deploy --> View on Application or restart the J2EE engine
    • The problem is that not all J2EE services can be started by the J2EE. i.e Start the Visual Administrator and select Server->Services->Deploy in the tree on the left. On the right-hand side, choose the Runtime tab page. You see a tree in the right window with all applications if you select the APPLICATION radio button. Check if they are running, otherwise choose Start. Usually the J2EE engine starts all services automatically.
    • Refer SAP Note 803145,807000,791655
    You can have a look on this blog for the same.
    /people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi
    Regards,
    Sarvesh

  • Debugger unable to connect to remote process

    Hi There,
    I am running Jdev on pc and OAS 10g on an unix environment. I followed the step in the doc to set up the remote debugging. However, when I start the remote debugger from jdev, i got the following error message.
    Debugger attempting to connect to remote process at ax-portal-www6.dev.ipass.com 4000..
    Debugger unable to connect to remote process.
    Your help wuld be greatly appreciated.

    A couple things to try:
    1) Verify your jdk version and build bug 4411232
    2) Increase your Debugger preferences Connection retries to double the default (especially if multiple apps running, low memory or a slow machine)
    Without more specifics on versions, type of debugging or details not much more I can suggest.

  • Xcode - Unable to Connect to Remote Repository

    I have a mac mini running OS X Server 4 on Yosemite 10.10.1 and I am trying to set up the Xcode server to host my repositories.
    On my development machine, when I try to create a project on the remote server, or when I try to push to the server I get the error..
    "Unable to Connect to Remote Repository
    Could not connect to the remote repository because the server was unreachable. Verify the server is running and try again."
    My machine knows that the remote server is there and alive.  I am able to add the server in Xcode preferences without any problem.
    I can even pull projects that were already on the server.  But anything new I cannot push or create.
    All the other services I use on the server are working.  Hosting a website, Screen sharing and I can SSH into it without any problem.
    The strangest part is that when I get the error about being unable to connect, the project I am trying to push actually does show up on the server.
    The project shows up on the server in the Repositories.  Just my development machine doesn't know it.
    Its driving me nuts, can anyone offer any ideas?

         You said you had SSH access working so this may be a different issue.  I was able to ssh into my server only with my admin account which made me think that ssh was working, but it turns out it wasn't for all user accounts.   I had the same error message and it turned out I could not ssh into the server with my developer accounts.  If I tried to clone a local repository to the server I got the same error, however the repository was actually create, but it was empty.   For reasons that don't matter to this discussion I originally setup all my users as "local network users" with no "Home Folder".  And that was the problem.  Basically ssh won't allow you to login without a home directory. 
         I had to go back and add a "Home Folder" of  "Local Only" for those users who were going to have xCode access.  Once the "home" directory was created I could login via ssh on those accounts AND creating and cloning repositories through xCode worked fine. The admin account that I was able to login with already had a home directory and wasn't a network user.
    Your issue slightly different even though I got the same error message, so not sure if this will solve your issue or not.  But on the off  chance that it is the same issue,   I figured I would post my solution to my problem.  ymmv
    P.S. I did turn off websites on my server and haven't turned it back on yet, so not sure if that will be a problem if I turn it back on.

  • Unable to connect to remote Jrockit instance

    Hi,
    I Tried configuring Jrockit and integrating weblogic server with it.
    I was successfull in monitoring the locally deployed app through integrated weblogic in JRMC 4.0.
    Please suggest if the following steps mentioned are proper or not.
    1) Installed JRMC 4.0 .
    2. Configured in default domain/bin folder of Weblogic server setDomainEnv.cmd as follows:-(Configuring oracle Jrockit in Weblogic since i have to use Jrockit JVM instead of Sun JDK Hot Spot)
    set BEA_JAVA_HOME=C:\Program Files\Java\jrmc-4.0.0-1.6.0
    set SUN_JAVA_HOME=D:\Oracle\Middleware\jdk160_18
    if "%JAVA_VENDOR%"=="Oracle" (
         set JAVA_HOME=%BEA_JAVA_HOME%
    ) else (
    if "%JAVA_VENDOR%"=="Sun" (
              set JAVA_HOME=%SUN_JAVA_HOME%
         ) else (
              set JAVA_VENDOR=Oracle
              set JAVA_HOME=C:\Program Files\Java\jrmc-4.0.0-1.6.0
    3.Inturn i modified Java_Options in my local weblogic server startWebLogic.cmd and Remote weblogic server startWebLogic.cmd as follows:-
    Local weblogic server startWebLogic.cmd :-
    set SAVE_JAVA_OPTIONS="-Djava.rmi.server.hostname=ZSLW521 -Xmanagement:ssl=false,authenticate=false,port=7091,autodiscovery=true"
    export JAVA_OPTIONS
    Remote weblogic server startWebLogic.cmd :-
    set SAVE_JAVA_OPTIONS="-Djava.rmi.server.hostname=ZSLW577 -Xmanagement:ssl=false,authenticate=false,port=7091,autodiscovery=true"
    export JAVA_OPTIONS
    4. My Oracle Jrockit Start parameters are as follows:-
    C:\Program Files\Java\jrmc-4.0.0-1.6.0\bin>java -Xmanagement:port=7091,ssl=false,authenticate=false,autodiscovery=true
    and even i am getting the status as follows in command prompt:
    [INFO ][mgmnt  ] Remote JMX connector started at address zslw577:7091
    [INFO ][mgmnt  ] Local JMX connector started
    [INFO ][mgmnt  ] JDP autodiscovery started at address 232.192.1.212:7095
    Iin jrmc4.0 UI i am getting JDP (JRockit Discovered protocal)as follows:-
    1. Discovered --> JDP --> zslw577:zsl.local and
    zslw51
    2.But the Problem is that in the tabbed menu
    Discovered-->LOACL-->Getting Local JRockit Weblogic server Instance and Not Remote Server Weblogic Server Instance
    is when i am trying to establish a connection :-
    HOST:zslw521
    PORT:7091
    1.And testing the connection giving me : Unable to Connect
    Even If I want To test The JDP of Remote and Local JVM Instances by right clicking and selecting the option of START CONSOLE
    Could not open Management Console for zslw577.zsl.local.
    com.jrockit.mc.rjmx.ConnectionException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 172.16.26.60; nested exception is:
         java.net.ConnectException: Connection refused: connect]
    com.jrockit.mc.rjmx.ConnectionException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 172.16.26.60; nested exception is:
             java.net.ConnectException: Connection refused: connect]
         at com.jrockit.mc.rjmx.ConnectionManager.connect(ConnectionManager.java:63)
         at com.jrockit.mc.console.ui.actions.StartConsole$1.preConnect(StartConsole.java:39)
         at com.jrockit.mc.browser.utils.PreConnectJob.run(PreConnectJob.java:74)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 172.16.26.60; nested exception is:
             java.net.ConnectException: Connection refused: connect]
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:227)
         at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:593)
         at com.jrockit.mc.rjmx.internal.RJMXConnection.establishConnection(RJMXConnection.java:561)
         at com.jrockit.mc.rjmx.internal.RJMXConnection.setupServer(RJMXConnection.java:545)
         at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:145)
         at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.establishConnection(RJMXConnectorModel.java:114)
         at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.connect(RJMXConnectorModel.java:157)
         at com.jrockit.mc.rjmx.ConnectionManager.innerConnect(ConnectionManager.java:95)
         at com.jrockit.mc.rjmx.ConnectionManager.connect(ConnectionManager.java:61)
         ... 3 more
    Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 172.16.26.60; nested exception is:
             java.net.ConnectException: Connection refused: connect]
         at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
         at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
         at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
         ... 12 more
    Caused by: java.rmi.ConnectException: Connection refused to host: 172.16.26.60; nested exception is:
         java.net.ConnectException: Connection refused: connect
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
         at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
         at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
         at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:228)
         at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:594)
         at com.jrockit.mc.rjmx.internal.RJMXConnection.establishConnection(RJMXConnection.java:561)
         at com.jrockit.mc.rjmx.internal.RJMXConnection.setupServer(RJMXConnection.java:545)
         at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:146)
         at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.establishConnection(RJMXConnectorModel.java:114)
         at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.connect(RJMXConnectorModel.java:158)
         ... 5 more
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:525)
         at java.net.Socket.connect(Socket.java:475)
         at java.net.Socket.<init>(Socket.java:372)
         at java.net.Socket.<init>(Socket.java:186)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
         at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
         at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
         at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:227)
         at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:593)
         at com.jrockit.mc.rjmx.internal.RJMXConnection.establishConnection(RJMXConnection.java:561)
         at com.jrockit.mc.rjmx.internal.RJMXConnection.setupServer(RJMXConnection.java:545)
         at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:145)
         at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.establishConnection(RJMXConnectorModel.java:114)
         at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.connect(RJMXConnectorModel.java:157)
         ... 5 more
    Thanks in advance
    Regards
    RK
    Edited by: user9352887 on Jun 17, 2010 6:52 AM
    Edited by: user9352887 on Jun 17, 2010 7:07 AM
    Edited by: user9352887 on Jun 17, 2010 7:13 AM

    Probably, you'll have more luck on the JRockit forum, I would guess - or perhaps the WebLogic Server forum :)
    John

  • [E2010] [EWS] [C#] [Windows]: Unable to connect to remote server

    I have a Windows Service that uses EWS to connect to a mailbox and do some things with certain emails. The service has been running for a while now, with little to no issues. Just recently the service will stop and when viewing the event log, we receive
    the following error.
    Error Message: The request failed. Unable to connect to the remote server
    Inner Exception: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full
       at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
       at System.Net.Sockets.Socket.InternalBind(EndPoint localEP)
       at System.Net.Sockets.Socket.BeginConnectEx(EndPoint remoteEP, Boolean flowContext, AsyncCallback callback, Object state)
       at System.Net.Sockets.Socket.UnsafeBeginConnect(EndPoint remoteEP, AsyncCallback callback, Object state)
       at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
       --- End of inner exception stack trace ---
       at System.Net.HttpWebRequest.GetResponse()
       at Microsoft.Exchange.WebServices.Data.EwsHttpWebRequest.Microsoft.Exchange.WebServices.Data.IEwsHttpWebRequest.GetResponse()
       at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
    Target Site: Microsoft.Exchange.WebServices.Data.IEwsHttpWebResponse GetEwsHttpWebResponse(Microsoft.Exchange.WebServices.Data.IEwsHttpWebRequest)
    Source: Microsoft.Exchange.WebServices
    Stack Trace:    at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
       at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(IEwsHttpWebRequest& request)
       at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()
       at Microsoft.Exchange.WebServices.Data.ExchangeService.FindItems[TItem](IEnumerable`1 parentFolderIds, SearchFilter searchFilter, String queryString, ViewBase view, Grouping groupBy, ServiceErrorHandling errorHandlingMode)
       at Microsoft.Exchange.WebServices.Data.ExchangeService.FindItems(FolderId parentFolderId, SearchFilter searchFilter, ViewBase view)
       at MyClass.CleanupDeletedItems()
       at MyClass.ReadEmail()
       at MyService.WorkerFunction()
    This so far has only occured twice, but I am not sure if the issue is on the exchange servers, or the server where the service itself is running. Any ideas on what would cause this issue and how to go about fixing it?
    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
    Don't Retire Technet

    Hi Clayman
    Well it makes sense to me that the registry could help, checking the lines in the error code, it appears that the for some reason the server could not stablish a connection, the error states: because the system lacked sufficient buffer space or because a queue
    was full.
    It seems don't make sence untill you have a look at Socket Class (MSDN article), which say: The Socket class provides a rich set of methods and properties for network communications. The Socket class allows you to perform both synchronous and asynchronous data
    transfer using any of the communication protocols listed in the ProtocolType
    Checking also the HttpWebRequest Class, we can see the it also relays on Socket Class, as it says by the end of your exception:
    [at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)]
    I also don't know if you could reboot your machine, but it would be good.
    Also I really think its worthy a try, as not much information can befound on this EWS issue.
    MaxUserPort
    From <http://technet.microsoft.com/en-us/library/cc938196.aspx> 
    Socket Class
    From <http://msdn.microsoft.com/en-us/library/system.net.sockets.socket(v=vs.110).aspx> 
    HttpWebRequest.GetResponse Method
    From <http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.getresponse(v=vs.110).aspx> 
    HttpWebRequest Class
    From <http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest(v=vs.110).aspx> 
    If you apply the registry change, let me know.
    Think before you ask, be detalist as much as possible, then ask and you will get help! Always have in mind, people do not guess! :)

  • Cannot open Report Manager URL -- "Unable to Connect to Remote Server"

    Hi, 
    I have recently installed SSRS 2012 on my remote server (Native Mode). I had the default configurations set except for the port has been changed to "8081". I created an Inbound Rule in Firewall to make sure it's enabled. 
    I'm unable to connect to the report manager locally at all, I got a Domain\username authentication and the credentials are never accepted locally.  I tried accessing my report server using the remote server host name and I was successfully logged in,
    however,  I got a message "Unable to Connect to the remote server". 
    I checked the log folder and there was no files created for my unsuccessful login. 
    I've been stumbling with this issue for almost a week, Any ideas or suggestions ?

    Hi SB User,
    Per my understanding that after you change the IP to "8081" then you can't connect to the report server both locally and remotely, right?
    Is that mean before you have changed the IP, everything works fine and did you got some pop up window ask for credential when you connect to the report server?
    You issue can be caused by many factors, please try to check details information below and do some configurations:
    Go to Reporting Services Configuration Manager and change the account to "Network Service" to see if it will works fine.
    Change the account to domain account and re-enter the username and password to see if it works fine. 
    Remove the SSL if configured.
    Go to C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\rsreportserver.config 
    In rsreportserver.config Change the SecureConnectionLevel value to "0":
    <Add Key="SecureConnectionLevel" Value="0"/>
    Stop and restart the report services instance to see if you can connect to report server.
    please also Using IP instead of computer name as the <servername> in the URL to have a test.
    If your issue still exists, please try to change the IP to have a test.
    If you still have any problem,please fee free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Oracle 8.0.5 on RH6.0, unable to connect to remote database

    Hi Everybody,
    I have this problem, i have running oracle 8.0.5 on RH6.0
    everything works ok for me. But when i use sqlplus on box where
    is my Oracle running and try to connect to another database on
    my site (which is running on HPUX) I got resul ORA-01017 invalid
    username/password. Tnsping to this machine is ok, so i have this
    in my tnsname.ora When i create dabase link (with user which I
    try to use to connect remote database) on my local datbase to
    this database then link works sucessfully too. select * from
    dual@remote_database Ok. What's wrong ??? Remote database is
    Oracle 7.3.4.3 on HPUX. Any difference between SQL*Net of
    Oracle7 and 8 ???
    null

    Try putting
    disable_oob = ON
    in your sqlnet.ora file.
    Anwar.
    Radek Sedmak (guest) wrote:
    : Hi Everybody,
    : I have this problem, i have running oracle 8.0.5 on RH6.0
    : everything works ok for me. But when i use sqlplus on box where
    : is my Oracle running and try to connect to another database on
    : my site (which is running on HPUX) I got resul ORA-01017
    invalid
    : username/password. Tnsping to this machine is ok, so i have
    this
    : in my tnsname.ora When i create dabase link (with user which I
    : try to use to connect remote database) on my local datbase to
    : this database then link works sucessfully too. select * from
    : dual@remote_database Ok. What's wrong ??? Remote database is
    : Oracle 7.3.4.3 on HPUX. Any difference between SQL*Net of
    : Oracle7 and 8 ???
    null

  • Unable to connect to remote EJB

    Hi All,
    I have a remote Session Bean deployed on JBOSS App Server on a linux machine. and I am trying to call the session bean method from a servlet, which is deployed on Tomcat 5.5 web server on windows machine.
    My Session Code:_
    // My seesion bean
    public class HelloSessionBean implements SessionBean, HelloBeanSessionRemote
          private SessionContext context;
          public void setSessionContext(SessionContext aContext)
             context = aContext;   
          public void ejbActivate()
          public void ejbPassivate()
          public void ejbRemove()
          public void ejbCreate()
          public String hello()
                    SOP("Hi to ALL");
    // my remote Interfaces
    public interface HelloBeanSessionRemote extends EJBObject, HelloBeanSessionRemoteBusiness
    public interface HelloBeanSessionRemoteBusiness
         public String hello()  throws RemoteException;     
    //my home interface
    public interface HelloSessionRemoteHome extends EJBHome
        HelloBeanSessionRemote create()  throws CreateException, RemoteException;
    My Servlet Code:_
    // Servlet in TOMCAT
    public class RequestHandler extends HttpServlet
          protected void processRequest(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException
                    Context context = getInitialContext();
                        Object objectReference = context.lookup("HelloSessionBean");
                        HelloSessionRemoteHome home = (HelloSessionRemoteHome)
                                    PortableRemoteObject.narrow(objectReference, HelloSessionRemoteHome.class);
                   HelloBeanSessionRemoteBusiness remoteBusiness =  (HelloBeanSessionRemoteBusiness) home.create();          
              remoteBusiness.hello();
          public Context getInitialContext() throws Exception
                   Properties jbossProperties = new Properties();
                   jbossProperties.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
                   jbossProperties.put(Context.PROVIDER_URL, "jnp://myIP:1199");
                   jbossProperties.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
                   return new InitialContext(jbossProperties);
    }Now I am trying to call the session bean method from my servlet. But I am continously getting the following:
    javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
         java.net.SocketException: Connection reset]
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
         at javax.naming.InitialContext.lookup(Unknown Source)Please anyone try to sort my issue. I have been trying, but cudnt get a solution. Is it because both the JVMs are installed on a different platform OS.
    Thanking You.

    Hi All,
    I have a remote Session Bean deployed on JBOSS App Server on a linux machine. and I am trying to call the session bean method from a servlet, which is deployed on Tomcat 5.5 web server on windows machine.
    My Session Code:_
    // My seesion bean
    public class HelloSessionBean implements SessionBean, HelloBeanSessionRemote
          private SessionContext context;
          public void setSessionContext(SessionContext aContext)
             context = aContext;   
          public void ejbActivate()
          public void ejbPassivate()
          public void ejbRemove()
          public void ejbCreate()
          public String hello()
                    SOP("Hi to ALL");
    // my remote Interfaces
    public interface HelloBeanSessionRemote extends EJBObject, HelloBeanSessionRemoteBusiness
    public interface HelloBeanSessionRemoteBusiness
         public String hello()  throws RemoteException;     
    //my home interface
    public interface HelloSessionRemoteHome extends EJBHome
        HelloBeanSessionRemote create()  throws CreateException, RemoteException;
    My Servlet Code:_
    // Servlet in TOMCAT
    public class RequestHandler extends HttpServlet
          protected void processRequest(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException
                    Context context = getInitialContext();
                        Object objectReference = context.lookup("HelloSessionBean");
                        HelloSessionRemoteHome home = (HelloSessionRemoteHome)
                                    PortableRemoteObject.narrow(objectReference, HelloSessionRemoteHome.class);
                   HelloBeanSessionRemoteBusiness remoteBusiness =  (HelloBeanSessionRemoteBusiness) home.create();          
              remoteBusiness.hello();
          public Context getInitialContext() throws Exception
                   Properties jbossProperties = new Properties();
                   jbossProperties.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
                   jbossProperties.put(Context.PROVIDER_URL, "jnp://myIP:1199");
                   jbossProperties.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
                   return new InitialContext(jbossProperties);
    }Now I am trying to call the session bean method from my servlet. But I am continously getting the following:
    javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
         java.net.SocketException: Connection reset]
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
         at javax.naming.InitialContext.lookup(Unknown Source)Please anyone try to sort my issue. I have been trying, but cudnt get a solution. Is it because both the JVMs are installed on a different platform OS.
    Thanking You.

  • Unable to connect to remote JMS service

    Hi I am running J2EE server on a remote machine and trying to access it from a client. But I am getting this exception. Can anybody help me in fixing this problem.
    Aug 10, 2003 5:45:45 PM com.sun.jms.ConnectionFactoryImpl establishRemoteReferences
    SEVERE: ConnectionFactoryImpl: Failed to lookup or connect to JMS service because: javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
    Aug 10, 2003 5:45:45 PM com.sun.jms.ConnectionFactoryImpl establishRemoteReferences
    SEVERE: ConnectionFactoryImpl: Failed to lookup or connect to JMS service because: javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
    Exception in thread "main" java.lang.NullPointerException
    at com.sun.jms.client.ConnectionImpl.invokeRemoteCreateConnection(ConnectionImpl.java:161)
    at com.sun.jms.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:314)
    at com.sun.jms.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:74)
    at com.sun.jms.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:52)
    at com.sun.jms.connector.ra.JMSConnectionFactoryAdapter.createQueueConnection(JMSConnectionFactoryAdapter.java:97)
    at EventSender.initProcess(EventSender.java:189)
    at EventSender.start(EventSender.java:77)
    at EventSender.main(EventSender.java:21)
    The command I used is "java -Dorg.omg.CORBA.ORBInitialHost=www.salvias.net EventSender 0 2 q1 q2 q3". I am running server on salvias.net.
    tia,
    Srinivas

    I forgot to mention that lookuos are succeeding. When I print the results of lookup operation, null is not getting printed. The application is failing at this statment
    conn = qcFactory.createQueueConnection();
    I am using J2EE server provided by SUN. And also where can I find the source code of J2EE.
    tia
    Srinivas

  • Can JConsole connect to remote JMX agent using JMXMP and TLS?

    I have a JMX Enabled App that needs to be accessed with JConsole using TLS enabled JMXMP Connector.
    The same server can be accessed with a custom JMX client but JConsole is causing be trouble.
    I get error something like: "Client does not support profiles but the server requires it..."
    thanks
    Srini

    <p>Hi John,</p>
    <p>Unfortunately there isn't a simple solution for this because you cannot pass to JConsole the environment map to be used to configure your JMXMP connector client.</p>
    <p>In order to achieve that you will have to write your own JMXMP connector client provider (e.g. service:jmx:<b>secure-jmxmp</b>://host:port) that initializes the environment map with the appropriate security settings and then rewrites the JMXServiceURL to service:jmx:<b>jmxmp</b>://host:port and delegates to the existing JMXMP connector client provider.</p>
    <p>Of course, you will have to supply the javax.net.ssl.* SSL system properties in the command-line as you already do.</p>
    <p>Have a look at the JMX class JMXConnectorProvider for more detailed info.</p>
    <p>Regards,<br>
    Luis-Miguel Alventosa<br>
    Java SE JMX/JConsole development team<br>
    Sun Microsystems, Inc<br></p>

  • Unable to connect to my home PC from my home Mac using Windows Remote Desktop

    i have downloaded from the Microsoft website and also the Application from the App store and both fail to connect. i have connected to my PC using the migration assistant so they are able to recognise each other.
    on the Mac:
    - downloaded the app and also done the download from MS website - both fail and suggest to check that remote access is enabled.
    on the PC:
    - have my Ipaddress from "IPConfig"
    - have enabled remote access through windows firewall
    The PC is on and has a password enabled 
    Error on App:
    "Unable to connect to remote PC. Please verify remote desktop is enabled, the remote pc is turned on and available on the network and try again"
    both are connected to the internet and on the same home network. Can anyone please advise to any additional steps as this seems as though this should be really straightforward. as another note i don't have another firewall software interrupting - am just
    using windows firewall until i can get this working.

    Hi,
    Firstly, please refer to the article below to enable remote desktop connection on your Windows 7.
    Remote Desktop Connection: frequently asked questions
    http://windows.microsoft.com/en-us/windows/remote-desktop-connection-faq#1TC=windows-7
    On your Mac, you can download the app here.
    https://itunes.apple.com/hk/app/microsoft-remote-desktop/id715768417?mt=12
    More information:
    Getting Started with Remote Desktop Client on Mac
    http://technet.microsoft.com/library/dn473012
    Hope this helps.
    Jeremy Wu
    TechNet Community Support

Maybe you are looking for