NIO ServerSocketChannel Accepts in Mac OSX

I've got a problem with using NIO in MacOSX. I used it in Linux/Windows and everything was fine. But now, when I try to start it in MacOSX, my program refuses to accept connections. Corresponding code:
        _selector = Selector.open();
        _serverSocketChannel = ServerSocketChannel.open();
        _serverSocketChannel.configureBlocking(false);
        _serverSocketChannel.register(_selector, SelectionKey.OP_ACCEPT);
        _serverSocketChannel.socket().bind(new InetSocketAddress(InetAddress.getByName(aHost), aPort));And place, where everything stops:
        while (true) {
            try {
                int selectedKeys = _selector.select();
...It does not matter, what goes next, because program stops here. I try to connect, through telnet/test program/etc.
All firewalls are turned off. Servers (apache/php) work fine here.
Please, help. I'm new with MacOSX, and do not know even what can be here.

I've found an answer, but I'm really confused with it. In MacOSX I needed to swap lines
        _serverSocketChannel.register(_selector, SelectionKey.OP_ACCEPT);
        _serverSocketChannel.socket().bind(new InetSocketAddress(InetAddress.getByName(aHost), aPort));to get it working. As I remember, reverse variant is recommended.
So, do I've to create two different variants for different OSes?

Similar Messages

  • Where is button to accept end user agreement so I can download or read online file.  mac osx reader XI

    where is button to accept end user agreement so I can download or read online file.  mac osx reader XI
    every time i click  on a file to downloac
    i get a reader message Before viewing PDF ... you must launch adobe reader and then accept the End User License Agreement. Ive searched  every part of the menu for this and cant fine it

    Ok, so the Reader app works. Fine, but why did you say ",the reader won't open any more", that led us a confusing direction.
    Ok, the problem is most likely caused because you downloaded Acrobat Pro, which takes over from Reader, then got rid of it. You now have part of Acrobat in Safari, not part of Adobe Reader.
    There are two things to try to fix this. The first and easiest is to download and install Adobe Reader again. That should puts its stuff back in Safari with a bit of luck.
    Important note for others following this thread. Downloading Adobe Reader is not going to help you if you have not understood and followed the instructions to "launch" Adobe Reader (or Adobe Acrobat). Make sure you understand what "launch" means before downloading anything again.

  • I have a MacBook with no more guarantee and with  Mac OSX 10.5.8. There some sites which do not accept this version . I tried to update with no success. What do I have to do?

    I have a MacBook with no more guarantee and with  Mac OSX 10.5.8. There some sites which do not accept this version . I tried to update with no success. What do I have to do?

    Hi, which sites Andrea?
    You might update...
    Snow Leopard/10.6.x Requirements...
    General requirements
       * Mac computer with an Intel processor
        * 1GB of memory (I say 4GB at least, more if you can afford it)
        * 5GB of available disk space (I say 30GB at least)
        * DVD drive for installation
        * Some features require a compatible Internet service provider; fees may apply.
        * Some features require Apple’s MobileMe service; fees and terms apply.
    Which apps work with Mac OS X 10.6?...
    http://snowleopard.wikidot.com/
    It looks like they do still have it:
    http://store.apple.com/us/product/MC573Z/A?fnode=MTY1NDAzOA
    And it's been reported that if you have a MobileMe account Apple will send one free.

  • Mac OSX 10.9 and HP Officejet Pro 8100 Compatibility

    Can we please get a driver for the HP Officejet Pro 8100 that is compatible with the Mac OSX 10.9? I bought the printer so that my roommate and I could share it to print wirelessly, but I am unable to do that without a compatible driver. Please develop one as soon as possible!
    Thanks!

    Hi,
    The Drivers are available via Apple Software Update,
    In order to configure it wirelessly you may use the HP Easy Wireless Install app.
    You may find a step by step guide in the following document:
    h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay/?sp4ts.oid=4337543&spf_p.tpst...
    The app iself can be downloaded from the Mac App Store:
    https://itunes.apple.com/us/app/hp-easy-wireless-setup/id876495880?mt=12
    If you experience any issues while trying to locate the pritner during the wireless configuration. restoring the network defaults for the printer can be done by pressing and holding both the Cancel ( ), the Wireless ( ), and the Power ( ) buttons for three seconds.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Using a network-stored catalog with Mac OSX

    Greetings all.
    I am using Photoshop Elements 11 on Mac OSX Mountain Lion and want to store my catalog on a local network drive (FreeNAS).  I have encountered many problems while attempting to do this.  Then I noticed in the Elements Organizer help, under the section "Repair a catalog", the following: "Note:  (Mac OS) You cannot access catalogs present on a network drive."
    Is this true. or has someone found a workaround to the problem?
    Thanks!
    --John

    Thanks, for that ( I assume we have to carry on in English due to forum policy even though we are both of German tongue I assume)
    You mean the access problems are part of the "no network drive" thing? I suspected that. Took me a whole day in front of my computer to realign the mess.  So should one better not use the network drives at all? Quite a pity in times where everybody seems to use network storage.
    No, I did not use organizer to use the photos. So there is no way to reconnect them? Should I delete the catalogue and start with the photos from scratch?
    Regards
    Andibuch
    Am 02.01.2013 um 23:35 schrieb Barbara B.:
    Re: Using a network-stored catalog with Mac OSX
    created by Barbara B. in Photoshop Elements - View the full discussion
    Well, yes, these are part of the "no network drive" thing.
    As for moving the photos, did you use organizer to move them? You will always have trouble if you move photos outside of organizer, even on the same drive--you have to let it manage your photos or it doesn't have a clue as to what happened.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4963270#4963270
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4963270#4963270
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4963270#4963270. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop Elements by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • 3050A Scanner won't talk to my Mac OSX 10.6.8

    I originally had the issue where the scanner was simply scanning a portion of the page (mentioned and solved in another thread here). However, my problem has now grown....
    I was temporarily able to the scan images correctly by going through the Applications folders and clicking on the Scan 3 icon and directing the scan from this. However, now even this won't work and the scanner doesn't communicate at all with my Mac OSX 10.6.8 - I can't even get it to scan from the control panel on the product. The printer works fine - however I haven't acutally checked the printer again since doing the following:
    I have uninstalled the software and reinstalled. I have checked for updates and it is indicating that I have updated software, yet when I click on HP Utility, I get the following error msg:
    Some components installed on your computer were developed for another version of HP Utility. These components will not be loaded and some functionality related to your device will not be accessible. Please click HP Support item on the toolbar to visit HP Online Support site and download the latest versions of HP software.
    I did this but I keep getting the msg that my software is up to date. So what now?
    I have noticed that there are 2 scan icons in the Applications folder and one of them doesn't register the product at all when clicked. The Scan 3 icon used to work, but now just perpetually tries to open a connection with the printer and never can, when I try to cancel it it then goes into perpetual canceling mode and the only way I can shut it down is to Force Quit.
    Any suggestions on how to remedy this before I throw my new HP 3050A off of the balcony 
    This question was solved.
    View Solution.

    Hi,
    Please follow the steps below to fully remove any software component and reinstall the software:
    First, completely remove the software using the scrubber function:
    **Please be aware that performing the next steps will remove any installed HP Software.
    1. Click on Go menu (Click the desktop, then look at the menu in the bar at the top of the page)
    2. Select Applications
    3. Select the Hewlett-Packard folder
    4. Double-click HP Uninstaller application
    5. Follow the uninstallation till prompted to select a device to uninstall
    6. Press and hold Control + Alt + Cmd keys on the keyboard simultaneously while you click on Uninstall
    7. approve any prompt to uninstall any HP Software.
    Next, repair the disk permissions to avoid any possible issue:
    1. Open the the Applications folder.
    2. Go to the Utilities folder.
    3. Double-click on Disk Utility.
    4. Select the hard drive containing the boot volume.
    5. Go to the First Aid tab and select Repair Disk Permissions.
    Note: This process may take several minutes depending on the Mac and amount of permissions that need to be repaired. The Progress Log will indicate when the proccess has been completed.
    Next, Reset the printing as following:
    *Be aware that resetting the printer system will remove any existing print queue and reset any customized driver settings.
    Click the Apple menu, and then click System Preferences .
    Select Print & Fax.
    Right-click (or Ctrl + click) your product in the Printers list in the left panel, and then click Reset printing system .
    Click OK to confirm the reset.
    Type your user Name and Password .
    Click OK . The printing system resets.
    Now install the latest Full Feature Software below:
    http://ftp.hp.com/pub/softlib/software12/COL37730/al-93167-1/Deskjet-3050A-J611-series_v12.7.0.dmg
    Install any available HP update by clicking the Apple icon and then Software Update.
    Finally, install the patch below to fix the scan cropping issue and be able to update the settings:
    http://ftp.hp.com/pub/softlib/software12/COL41837/mp-101655-1/HP_Scan_for_Mac_OS_X_10.7_Update.dmg
    Please let me know of any further issue,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How can i cancel a password i set in the html config utility for laserjet p1102w under mac osx 10.6?

    After setting a password in the Networking tab of the HTML Config Utility for HP Laserjet P1102w under MAC OSx 10.6, I cannot access either the settings or the Networking tabs again. How can I access them or just cancel the password I set?

    hi,
    I beleive your question has been answered in a different post
    http://h30434.www3.hp.com/t5/Printer-Networking-and-Wireless/Reset-the-admin-password-on-the-web-pag...
    hope this helps
    Russ@HP
    Say thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as Accepted Solution
    (Although I am employed by HP, I am speaking for myself and not for HP)
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++

  • HP Deskjet 1000 j110 sleep mode on Mac OSX 10.7.2

    Just bought a Deskjet 1000 j110 for an iMac.  I have it hooked up and updated drivers loaded (as of 11/21/11).  When I let the printer sit idle, it appears to go into a sleep mode (power button fades in and out).  When attempting to print, I see "Waiting for printer to become available" in the print queue window.  It remains this way and never actually prints.  I hit the power button, thinking that pressing the it would bring the printer out of sleep mode, but it didn't work.  
    My work around is to physically pull the power cable from the printer and reconnect it.  Once that happens, the HP utilities see it again, and the print job goes through.  Obviously, this is not the way it should work.  It seems there is something wrong with the driver on Mac OSX 10.7.2 - I would think there would be code to 'waken' the printer and submit the job, but apparently not.  
    Does anyone have any ideas on what is wrong with this configuration and/or driver?  

    Hello cfournival,
    As this is an older thread I want to verify that you are using the latest driver and sofware for Mac OSX.
    You can find information about it here
    Software & Driver Downloads - HP Deskjet 1000 Printer - J110a
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • HP printer issue with Mac OSX 10.5.8

    How do i set up/connect HP officejet 4635 printer to Mac  OSX 10.5.8

    Hello @robjpell , welcome to the forums
    Unfortunately there are no drivers available for the Officejet 4635 on Mac OS X 10.5. You can try connecting a USB to see if it will work however, there is not a downloadable driver available.
    Here is also the link to the drivers page for your reference: HP Officejet 4635 e-All-in-One Printer Drivers
    I hope that clarifies your concern!
    Have a wonderful day
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Driver for HP Photosmart 7510 for Mac OSX 10.8.4

    Hi All,
    I have an HP Photosmart printer and the drivers won't install on my new MacBookPro which has Mac OSX 10.8.4
    I am unable to find any drivers on HP support for this OS. The drivers installed without any problems on my recent iMac which had OSX Lion. Can anyone help me with an answer. I can use the printer wirelessly with my iPad 3rd Gen, iPad Mini, and iPod Touch 4th Gen. Any assistance wolud be fantastic.
    Unkei
    "Life is a school. Study hard. The final exam is comprehensive and counts for 100 percent of your final grade."
    Unkei
    This question was solved.
    View Solution.

    Hi,
    Download and install the drivers below, be sure to select HP Recommended Software while installing:
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=mp-107205-1&cc=us&dlc=en&lc=en...
    Once the installation completes reboot your Mac and run Software Update to ensure the latest drivers are installed.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Photosmart D110a Wireless Troubleshooting with D-Link DIR-655 and Mac OSX 10.8

    Good evening all,
    Apologizes if this has already been posted. I've googled this issue a couple of times, but I still haven't found a solution for this problem.
    I have the Photosmart D110a and I'm running Mac OSX Mountain Lion, and my router is a D-Link DIR-655 and my security is WPA-Personal and the router is running in 802.11gn mode. My ISP is Optimum Online.
    The issue that I've been having is that the printer works wireless when everything has been recently booted up. As does the scanner. However, if it hasnt been used for a while, the printer shows up in the OSX Print & Scan settings page as idle, but when I try to print, the dialog just says "looking for printer" and never finds it, and just says "The printer is not connected" under the item in the OSX Print Queue. Because of this, I have to restart the computer or restart the printer for them to find each other again. 
    I've seen other solutions on here, such as giving the printer a static IP address, and this hasn't worked either. The printer is still accessible with the static IP address, which means it's still got a connection to my network, but for some reason the OS isn't recognizing it or something. 
    It's obvious that the printer works when everything is freshly rebooted, but I still haven't been able to figure out this issue once it's been idle for a while.
    Any help would be greatly appreciated!!
    Errold

    Hi,
    Try following my post below, I believe it might be relevant as the router drops the Bonjour connection:
    http://h30434.www3.hp.com/t5/Printer-Networking-and-Wireless/losing-connection-to-airprint-a-few-min...
    I would also suggest updating your router's firmware and check if that may help:
    http://www.dlink.com/us/en/support/product/dir-655-wireless-n-gigabit-router
    For any help with this proccess I would highly recommend contacting Dlink support.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Mac OSX wont reognise my internal hard disk drive

    I have a problem where for some reason when I start up my Macbook Pro (intel core duo) it does not detect the internal hard disk drive at all. I have run a hardware test and it shows no problems whatsoever. I have tried resetting the PRAM etc and to no avail. Yesterday the system hung and I tried to force quit and it wouldn't do anything so eventually I held down the power key and when it tried to reboot this is the problem I was faced with (it would boot up with the "no entry" sign). I accepted complete defeat and went to completely re-install OSX however it doesn't even show the internal hard drive when I wait for it to give me install destinations. I had tried seeing the hard drive through disk utility however it only shows the install DVD and that's it in the sidebar. I resigned myself further to thinking either the logic board or the HDD had packed in all and I took it round to my brother in law to see if there is anything he could do without opening the machine (he is Oxford educated and writes programmes etc so is very knowledgable), now this is the part that has miffed us both, he started it up using a Linux disc and once running, Linux see's the hard drive with no problems. He has been able to access the HDD with absolutely no problems under Linux both reading and writing to it. I even took my Mac Mini round and he booted them both up in Linux and completely copied Mac OSX from the mini to the macbook pro but still when I try booting up its as if the HDD isn't even there. Why can Linux see the drive and not Mac OSX? Please don't be affraid to get very technical in your answers as they may mean nothing to me but will probably all make sense to my brother in Law. Any sugestions at all would be greatly accepted.

    Dear mcdkev,
    You guys may have made a big error cloning the Mini HD into the MBP. They both have very different drivers and hardware settings and their OS X versions are customized to fit the hardware. That is why each mac comes with it's own version of OS X and their backup disks. That's a reason why it did not work.
    Ok, so now that you do not have any of the original info on the MBP try the following:
    Use linux to scan the disk surface & repair any problems.
    Reformat the drive as DOS or FAT 32. (I wouldn't go into any linux specific format unless you can "Apple" format it, which I don't think linux has that option.)
    Now, the MBP should be able to see it's drive...
    boot from the OS X DVD , from the Utilities menu choose Disk Utilities, partition the drive as GUI file system (in case the linux format made the drive a "system boot record", you do not want that... )
    Then format the drive as "OS X Extended Journaled"
    Now go back to install and install your original basic set of OS X (the factory default).
    *If nothing works, please do take your MBP to the Apple store or to a certified tech before you do more damage to the drive and it becomes unusable ...*

  • I have a Mac OSx 10.6.8 and iPhoto 7.1.5 and can no longer order printed photo albums unless i install new version of iPhoto. But reviews of new iPhoto so negative. Should I install it or steer clear of it??

    I have a Mac OSx 10.6.8 and iPhoto 7.1.5 and can no longer order printed photo albums unless I update to new version of iPhoto. But reviews of new iPhoto are so negative that I am uncomfortable about buying it. Will it be fine or should I steer clear of trouble and accept that i can no longer publish my photos?

    iPhoto '11 is working well.
    The reviews usually only show the comments of people who do not like the changed features.
    To get an idea what to expect, when you upgrade, look at the iPhoto '11 support sites.
    The video tutorials: http://help.apple.com/iphoto/index.html#button-0
    Browse the help, to see how it works:  http://help.apple.com/iphoto/index.html#button-1

  • MAC OSX 10.9 and Java Web start

    Hello All ,
    We are facing a warning when we tried to launch the JNLP on MAC using Java 1.7_45 .
    Warning message - "This Java Application will be blocked in a future Java Security update because the jar file manifest does not contain the Permissions attribute . Please contact the Publisher for
    more information "
    Warning is about adding permissions to application jar files but we have already done this on all the jars .
    Added code base and permissions attribute in manifest file of each jar . This works fine on Windows 7 and XP with same Java version .
    Example -
    Permissions: all-permissions
    Codebase: code base location from jnlp
    Interestingly Java console does not show any warnings so i am not sure why Java is showing this message that the application will be blocked in future java releases on MAC if permissions is not added to Jar file  .
    Looking at all the testing it seems there is some kind of issue between Java 7 update 45 and MAC OSX 10.9
    (As the same jnlp works without any warnings on other OS )
    Any help will be much appreciated .
    System Details
    OS - MAC OSX 10.9
    Java - 1.7_45
    thanks
    Rupesh

    Hi,
    The Drivers are available via Apple Software Update,
    In order to configure it wirelessly you may use the HP Easy Wireless Install app.
    You may find a step by step guide in the following document:
    h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay/?sp4ts.oid=4337543&spf_p.tpst...
    The app iself can be downloaded from the Mac App Store:
    https://itunes.apple.com/us/app/hp-easy-wireless-setup/id876495880?mt=12
    If you experience any issues while trying to locate the pritner during the wireless configuration. restoring the network defaults for the printer can be done by pressing and holding both the Cancel ( ), the Wireless ( ), and the Power ( ) buttons for three seconds.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • HP "another program has control of the device" Scanning Issue on Mac OSX 10.8.5

    I am running an HP C7200 series all-in-one on a Mac OSX 10.8.5 system. Everything has worked fine for years. Suddenly when I got to fax using HP Scan I get the following message: The scan cannot be performed because another program has control of the HP imaging device. This may be the result of a recent Mac update, but I'm not sure. I have tried many solutions from forums, including: restarting the program, restarting the printer while holding down the OK and Help keys, and installing RC Default Apps 2.1 and disabling the bundle extension preference. I have not yet uninstalled and reinstalled my HP software because I'm afraid something else will get messed up. 
    Also, I can scan by doing the following tedious chore. Open up the Systems Preferences, click on Print & Fax, click on Scan, Click on Open Scanner, click on Show Details, then fill in the scanning details. It's a pain compared to opening up HP Scan and clicking on scan. I can also scan via Image Capture but it also doesn't offer some of the nice features of HP Scan.
    Any other solutions?

    Hello NgnRoom,
    Welcome to the HP Forums.
    I see that you are having an issue with not being able to fax.
    As you stated , this could be caused by a Mac update.
    I suggest that we do an uninstall of the software and drivers and then while the unit is uninstalled, we then reset the printing system.  Here is a link on How to reset the printing system.  Once the reset is complete, I also suggest we Repair disk permissions.
    The next step would be to reinstall the printer on to the Mac.  Here is the link for the HP Print Drivers v3.0 for OS X.
    If the troubleshooting does not help resolve your issue, I would then suggest calling HP's Technical Support to see about further options for you. If you are calling within North America, the number is 1-800-474-6836 and for all other regions, click here: click here.
    Thanks for your time.
    Cheers,  
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

Maybe you are looking for

  • Create sysprepped VHD with SCCM 2012 R2

    Hi, I am very new to SCCM in general so please bare with me. I manage a SCVMM 2012 sp1 environment and I would like to use SCCM 2012 r2 to manage, update and publish new VHD's. However I am having trouble creating a sysprep'd VHD. The task sequence s

  • Content portlet suit error

    i tried to create new content in new page and choose portlets , i have this error : [2011-08-24T01:59:09.541+03:00] [DefaultServer] [ERROR] [] [oracle.portlet.binding] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning

  • Applet in Websphere

    Hi! I'm writing applet in WebSphere-4, Win2000, IE-5. It's only do System.out in it's init() function. When I put mouse over I see "applet found" in IE, but it doesn't writes nothing. Have somebody the same problem?

  • Tool Tip Code

    I have the below code that works great, however I want to make some minor adjustments to make the tool tip a bit more dynamic. 1) Need the Text to be Bold 2) I would like rounded corners instead of a plain box 3) I would like to add a slight drop sha

  • All photos suddenly appear "black" within their frames.  Help!

    Between importing photos from my camera and quitting, then reopening the program again a few days later, my photos all now suddenly appear completely black (the same color as the window's background). In every photo folder I have, the correct number