JConsole and MX4J - Unable to connect.

Hi, I am trying to connect to an application that uses MX4J for its JMX monitoring, but I am unable to connect to any remote or local JVMs.
Java version=1.6.0_01-b06
I can see my local process but if I try connect to it I just get the info window saying connecting to <and then the pid number>, but never connects.
If I try connect to the remote process using the server host and port it tries for a long time before it fails to connect.
service:jmx:rmi:///jndi/rmi://host:port/myconnector
Firstly can you use JConsole if you are using MX4J?
Is there a log file that gives more info about the failed connection?
Any ideas would be appreciated:
Thanks,
Shawn

I will answer my own question.
Yes you can use MX4J with JConsole. The problem I was having was because of the way we block our main thread.
When we start our services we kick off a new thread from the main thread and then our main thread goes into a wait where it listens for IO from the user using the System.in.
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
String in = null;
do {
// Waits for user input from the console
in = r.readLine(); //blocks the main thread, this blocks the JConsole from being attaching to the MBeanServer
Shawn
www.whatjar.co.uk

Similar Messages

  • After I updated lion to 10.7.4, app store does not recognize my ID APPLE and it unable to connect me to app store in order to update/download apps? What have I to do? I have the same problem with mac mini e mac book air. Please help me!

    After I updated lion to 10.7.4, app store does not recognize my ID APPLE and it unable to connect me to app store in order to update/download apps? What have I to do? I have the same problem with mac mini e mac book air. Please help me!

    Your advice did not help me. I also installed 10.7.4 combo but the situation is the same.
    my internet connection is ok, mail is ok, but app store after 3 resets does not recognize my ID and it says "connection is not possible". Why? I have the same problem in both my mac mini late 2009 and mac book air 2010? Is it a problem of 10.7.4 update? I have to solve this problem and how can i return to 10.7.3 if my last backup was not with 10.7.3???thank you for your kind collaboration...

  • When I want to get on my wifi I tap my wifi in settings but it just loads and says unable to connect. It wont let me sign in. All my family's apple products are working. Why is this happening?

    When I want to get on my wifi I tap my wifi in settings but it just loads and says unable to connect. It wont let me sign in. All my family's apple products are working. Why is this happening?

    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • TS1368 I got an new nano for christmas and l put it in to the computer, l just got Windows 8 on my computer, l am unable to connect my new nano to my computer. l have deleted itunes and put it back on my computer and still unable to connect please help me

    I got a new nano l am unable to connect it on my computer, l have windows 8. I have deleted itunes and downloaded back on my computer, l still am unable to connect my nano to my computer.
    When l put my nano on the computer itunes saids "Accessing Itunes" it is not connecting.
    Please help me.
    Thanks

    Uninstalling and reinstalling iTunes has no affect on the media on the computer or the account it is linked to.
    If the media was purchased under another iTunes account, then it is permanently tied to that account.
    Using mulitple iDevices with one computer

  • MDM 71 - mdm console and clix - unable to connect to database server

    Hi,
    environment, MDM 7.1, AIX 6, Oracle 10.2.0.4 (installed as part of a standalone java AS)
    i've an issue. I have installed MDM 71 via sapinst, before that I installed a standalone java application server. During the installation, i gave the 'oracle client', 'oracle home' and 'oracle sqlplus utility' to be those of the oracle database installed for the java AS.
    After sapinst completed I tested my connection to the database via
    tnsping <SID> = OK
    sqlplus system/passwd@<SID> = OK
    When i start up the mdm console (7.1.02.90) i can mount the MDM server, BUT when I try to configure the database settings i get
    error  'unable to connect to database server'
    I get the same error when i use clix dblist
    Error: 0x84020004, Unable to connect with Database Server
    Has anybody got any ideas.

    To see why the MDM is not able to connect to database, do the following:
    % cd /usr/sap/<SID>/MDSxx/log
    % ls -ltr
    You will find last updated log file with name like MDS_LogXXUX101224X164953.csv
    % tail -100 MDS_LogXXUX101224X164953.csv
    You will see the reason for not being able to connect. If the reason is:
    ",MDSAdminServerXGetAvailableReps,Oracle_DBConnection.cpp,205,,,,server_user,server_global,,,
    2011-09-23T06:10:48.933,6       ,24,"Service 'SID', Schema 'system', ERROR CODE=12154 ||| ORA-12154: TNS:could not resolve the connect identifier specified
    OCI Attach, try again ...
    Then edit the /oracle/SID/112_64/network/admin/tnsnames.ora with entry like following:
    SID.WORLD =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS =
            (COMMUNITY = SAP.WORLD)
            (PROTOCOL = TCP)
            (HOST = hostname)
            (PORT = PORT_NO)
        (CONNECT_DATA =
          (SID = SID)
          (GLOBAL_NAME = SID.WORLD)
    then issue:
    tnsping SID
    If result is like
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (COMMUNITY = SAP.WORLD) (PROTOCOL = TCP) (HOST = hostname) (PORT = PORT_NO))) (CONNECT_DATA = (SID = SID) (GLOBAL_NAME = SID.WORLD)))
    OK (0 msec)

  • XL Reporter and SQLEXPRESS: unable to connect to XL Reporter

    I have installed B1, for demo purposes, on a Windows Vista Ultimate laptop and I am using MS SQL 2008 Express. I can connect to XL Reporter from the Add-on Manager, but when I try to open XL Reporter, I get the following error:
    Unable to connect to XL Reporter.
    Error! Server communication failed!
    Cause: Server DELL15
    The connect information provided in Metainfo.xml is wrong.
    (Please contact the administrator to run ChangeDBPassword)
    I have been through many posts and notes on related subjects, but none have helped. I have uninstalled, removed XL Reporter folder and .sbo files, and reinstalled and still no luck.
    I ran ConnectionManager.exe and the default DELL15 server with the admin userid and appropriate password does not work. When I change this to DELL15\SQLEXPRESS then I connect from within the ConnectionManager. But, when I try to start XL Reporter from the menu in Business One again, I get the same error. When I recheck the server that is in ConnectionManager.exe, it has been set back to DELL15. Is this value stored in a database somewhere that overwrites the data in the XML file?
    I appreciate any help you can give.

    Hi Alan,
    This fix is tried and tested for SAP 2007A so I am not sure if it will work with 8.8.
    To change the server in 8.8 -
    Go to your Server Tools, select the License Manager and click on Settings.
    Bottom Left is a new button called Configure Security
    Enter your B1SiteUser details
    This will then give you the option to change the server.
    If DELL15\SQLEXPRESS fails to get you any closer try .\SQLEXPRESS (note the full stop at the front).  Normally this is the Server you put in when logging into SAP on the database server and the client you put DELL15\SQLEXPRESS.
    Let me know if you still have issues.
    Thanks,
    Michelle

  • Having issues getting Apple TV to connect to comcast wifi. Sees the router' enter password and says unable to connect. Router connected to iPad and pcs with no issues..., thoughts?

    At a loss. Have comcast wifi. No issues connecting to iPad and laptop. However, when I try to connect iPhone 5 with OS 7 or applets with latest software I get unable to connect message.   I can get the iPhone to connect if right next to modem, but unable to connect one room away. iPads have no issues and connect from any room.

    Hello Tvsteven,
    Thank you for providing all the details regarding the Wi-Fi connection issue you are experiencing with your Apple TV.  I found an article with some steps you can take to troubleshoot an issue like this.
    I recommend reviewing the full article, but the section titled "If you can see your Wi-Fi network, but you are unable to connect to it" specifically stands out to me for the situation you described:
    Apple TV (2nd and 3rd generation): Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/TS4546
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I just got Apple TV and am unable to connect to Netflix.  Any suggestions?

    I get a message that says "unable to connect to Netfllix, try again later."  I've tried several times....any suggestions?

    do other Internet based features such as trailers or youtube works ok ?

  • Why does my apple tv constantly stop streaming and become unable to connect to itunes?

    I have a 2nd gen Apple TV, which I bought in Dec'10. Lately, as in the last month, it just stops streaming. It will be streaming content, then all of a sudden, it stops, and bar comes up on the bottom of the screen, showing the length of the video, with a spinning icon on the left, where the play/RW/FF icon usually appear. It never recovers. I'll stop the video, and try playing again, but it will say that "netflix" or "iTunes" etc. is currently not available. It's as if it's getting knocked offline. I check my setting, and the ip address is fine, it is not assigning itself an ip address. My internet is working with no issues at all. I'll try doing a network test but it sits there trying to connect to itunes, then it says it's unable to do so.
    It's becoming more and more frequent. The only thing that works is resetting it, and sometimes even that doesn't work. So, I have to restore it. I've had to restore a couple times in the past month, and I'm resetting almost daily.
    Also, sometimes it just reboots itself for no reason at all. This, too is occuring more and more on a regular basis.
    I have the apple tv plugged right into my Time Capsule via ethernet. The hdmi out is going to an input on my surround sound receiver. I've also bypassed the receiver, just to rule it out. I typically get anywhere from 30-40 mbps when I do a speedtest from my macbook on speedtest.net or speakeasy. I'm mentioning this because my connection is more than sufficient to stream the 720p content the apple tv is limited to. My interenet has gone out in the past, but it's rare. It's not the culprit, since someone is always on line when this happens, so we'd know right away if it was the internet going out. It's always the first thing I check when this happens, even though I'm pretty sure my connection is not the issue. Also, I don't start freaking out, the second it happens. I usually don't look into it until a minute or so after the video has frozen. At that point I usually hit MENU, to escape the current screen, then try playing the content again. That's when it can't do anything, and I'm often forced to reset or reboot.
    I have tried searching for others with this issue, but haven't come across anything. The closest I've seen are situations where people can't stream at all, due to a network issue. Also, it's been getting worse, which makes me wonder if it's a hardware issue. Again, the apple tv is on a wired connection to my Time Capsule, and the ip address is not self assigned, it starts with DHCP, not 169... And, my internet connection is not the issue.
    Any help would be appreciated, and sorry if I repeated myself, I just wanted to make sure I didn't leave anything out.

    I had problems with streaming until I changed the WiFi channel that I was using.  The original one conflicted with my neighbor.  After that, MOST of my streaming problems vanished.  Occasionally, a movie would pause for more buffering and I eventually ran an ethernet cable from the Apple TV to my Apple Extreme (to eliminate the Wifi).  I have not had a single problem since then (except to repair the drywall after running the ethernet from one floor to another).  :-)

  • After seeing on tv a woman got a 14Grand bill for notifications I turned mine off and now unable to connect to wifi on 4S, my laptop, my sons 3G, main comp working

    Hi changed some notification settings on phone after seeing on tv  a woman got a $14,000 bill not sure what else Ive done but my Iphone 4S, my sons 3GS and my HP laptop can't connect to the WiFi at home the main computer has wifi operating and so does my dinasaur Ipad1 Ive tried filling out passwords etc but just keep getting message unable to join please help

    Reboot your router by powering it off for 30-60 seconds.

  • I downloaded the corresponding Apple app, version 1.0.3627. I carefully followed the sync instructions several times and was unable to connect. 4 emails with no response. Help

    I received a cookoo watch as a gift. After downloading the Apple App, version 1.0.3627, I carefully followed the instructions repeatedly to connect to my iphone 5 only to fail to get a connections. I tried rebooting, turning of and on bluetooth and wifi with the same results.  I have connected to the help link in the app and after four emails over the past week, have not had a response. Any suggestions? I almost feel like someone gave me an expensive bird house that happened to contain a cheap watch.

    Definitely seems to me this is a problem with the App Developer. Hope they can get your cuckoo working.

  • After downloading, I lost my "favorites in google and am "unable to connect."

    I had been using Google successfully prior to just downloading Firefox upon suggestion. I lost all of my favorites with the Google browser. Also I cannot connect to anything with the newly installed Firefox.

    The Google Toolbar "will not be supported on Firefox 5 and future versions." <br />
    http://googletoolbarhelp.blogspot.com/2011/07/update-on-google-toolbar-for-firefox.html
    http://kb.mozillazine.org/Using_Google_Toolbar_features_without_toolbars

  • I am running OSX 10.9.1 and am unable to connect it to my HP deskjet990cxi - any solution?

    I have a very reliable HP deskject 990cxi and have just bought a new iMac with OSX 10.9.1. Now I am unable to print - where can I find a suitable printer driver?

    I don't see that model listed here:
    OS X: Printer and scanner software available for download

  • I am using eStn c510 and am unable to connect

    I can print to this printer from other computers at home but not this one. PC says it is not connected but I don't know how to connect.

    Hi tgeorge,
    From the home screen of the Zeen:
    Select the Menu icon (four lines by the home icon).
    Select System Notifications.
    Record the IP address in the middle box (that is the IP address of the printer).
    From the PC:
    Go to Start.
    Go to All Programs.
    Go to the HP folder.
    Go to the HP Photosmart eStation folder.
    Select Update IP Address.
    Enter the IP address obtained from the Zeen tablet.
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • HT4061 I have iphone3GS and its unable to connect to cellular network. I am not sure whether it can be resolved? If so how much it would cost me?

    One of my friend purchased Apple Iphone 3GS an year back. But due to various reasons, he did not use the phone. But when he recently tried using it, Its unable to detect the cellular network.
    I see that the  product warranty period is over and now not sure whether it can be resolved? If it can be, guess, it would cost me more. Is there any help someone can provide me in this issue to have it resolved?

    Is the phone activated?  Tell your friend to contact the cell provider.

Maybe you are looking for

  • Blue screen crash/freeze immediately after Intel iMac goes to sleep

    Howdy all, I have a new Intel 24" iMac, less than 3 days out of the box. Almost every time the computer goes to sleep (except twice so far when I first started using the machine) the screen goes dark for a few seconds, then turns light blue and freez

  • How to put main process to sleep??

    Hi experts I have another problem in my ajav application , When I press execute button, it creates a process which run a bat file. the bat file actuallty run something and produce the output file. then main process read that output file and show the

  • Best way to manage IE 10 and IE 9 on same LAN

    Hi, What is the best way to manage a network that has a mix of IE9 and IE10 browsers? Single GPO? GPO + registry? Separate ILT GPO's? Not recommended?  Thank you.

  • Preview opens blank jpg over vnc

    Hello and Happy Thanksgiving to everyone. I am using VNC to access my iMac from a Windows 7 machine.  When I open a .jpg in Preview, remotely, I get a blank Preview window (except for the file name at the top and the various icons, i.e., "Previous,"

  • Statistics in 2004s

    Hi, What are the possibilities for running statistics on user activity in the portal - KM repository activity and browsing (page/iView hits) etc. Regards, Erik