Possible to get ReadableByteChannel from MulticastSocket???

Hi,
I am trying to get a ReadableByteChannel from a Multicast socket. The MulticastSocket class inherits from DatagramSocket which has a getChannel() method. The channel is always null when I try to use it (I dont' think it is getting initialized properly....see below)
InetAddress group = InetAddress.getByName(hostname);
MulticastSocket s = new MulticastSocket(port);
ReadableByteChannel source = s.getChannel();  // this is always returning null
s.joinGroup(group);
I think the reason it is null is because:
A datagram socket will have a channel if, and only if, the channel itself was created via the DatagramChannel.open method.
I can't figure out how to use this properly. Any ideas???

You are correct. As there is no MulticastSocketChannel (yet), you can't have created one by calling MulticastSocketChannel.open(), so MulticastSocket.getChannel() returns null.
It's coming in 1.7 (finally ...)

Similar Messages

  • Is it possible to get data from a smashed/broken iPod touch 4th gen?

    Is it possible to get data from a smashed/broken iPod touch 4th gen?

    - If when you connect the iPod to your computer it appears in iTunes then you can make a backup and then restore another iPod or other iOS device from that backup.
    - Otherwise you will have to go to a data recovery company.
    - When I go to the YouTube link I can't get the video to play.

  • It is possible to get info from the PDF

    Hi Everyone,
    I'm new baby to acrobat using javascript. It is possible to get info from the PDF.
    The Info contain like Color space, Trim size, which font  used depend on pages and which color is used for image & text.
    Thanks in advance.
    -yajiv

    Hi GKaiseril,
    Thanks for prompt response.
    Actually I'm a new baby to Acrobat script. Please explain briefly How do I write java script and execute.
    I'm familiar with Photoshop and Indesign Script. We are using ExtendedScript Toolkit editor for writing script.
    Thanks in advance.
    -yajiv

  • Is that possible to get data from the red trace in this BMP file

    I have an instrument, which only export image file. I want use labview to replot it and do some analysis. The image file is like attachment. Is that possible to get data from the red  trace in this BMP file via labview vis?
    Attachments:
    coax312.bmp ‏4741 KB

    I looks to me that 515 pixels represents 200 meters, so multiply the
    x-values by 0.3885 meters/pixel to get the true x-values.  I don't
    have enough information to scale the y-axis.
    Randall Pursley
    Attachments:
    Compute from BMP.vi ‏66 KB

  • Is it possible to get logs from a 3850 Cisco member switch in a stack?

    %STACKMGR-1-STACK_LINK_CHANGE: MEMBER: 4 stack-mgr:  Stack port 2 on switch 4 is down
    %STACKMGR-1-STACK_LINK_CHANGE: STANDBY:2 stack-mgr:  Stack port 1 on switch 2 is down  (OC-SWTCH)
    %STACKMGR-6-SWITCH_REMOVED: STANDBY:2 stack-mgr:  Switch 3 has been removed from the stack.
    I recieved errors on a 3850 switch 3 in my stack, it's removed from my stack and after 5 minutes it comes back up. I want to know what the switch was doing for those 5 minutes, is it possible to get the log files for only switch 3? Telneting to the switch stack or connecting a console cable directly to switch 3 only gives me the logs for master switch logs. Ideally when a switch reconnects to a stack, the master switch should ask the joining switch for it's logs, and merge them into it's own logs so it has a record of the switch did when it wasn't communitating.

    HI,
    create a internal with type of the structure and populate values into that n do wat ever u want.
    ex:
    data: itab type zstruct occurs 0 with header line. // where zstruct is a structure in a database.
    select * from .............. into table itab where ...............
    loop at itab.
    write:/10 itab-fld1,
              20    itab-fld2,
    endloop.
    if helpful reward some points.
    with regards,
    suresh aluri.

  • IS Possible to get information from GetUserProfileByName inside of repeat section

    IS  Possible to get the values from GetUserProfileByName inside of repeat section? by Codeless
     and then with this result used to filter DDL
    Or GetUserProfileByName  is only useful when it is used for FORM LOAD
    CRISTINA&amp MICROSOFT Forum

    Hi,
    According to your description, my understanding is that you want to use the GetUserProfileByName service in InfoPath form.
    We can get information from GetUserProfileByName inside of repeating section, however you need to give the name of user so that the service can be used to get the details of the user.
    Please refer to the link below:
    http://thinketg.com/using-infopath-and-the-web-service-getuserprofilebyname/
    You can create rules to query for data using GetUserProfileByName, and it is not only useful for form load.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Is it possible to get itunes from a broken computer to a new one?

    My old laptop freezes up after about 3 minutes and itunes is located on that laptop. Is there any way possible to get my music on my new laptop?

    See Recover your iTunes library from your iPod or iOS device.
    It may also be possible to extract the hard drive from the laptop and mount it in an external drive bay to recover your library and the rest of your personal files directly.
    tt2

  • It is possible to get data from Excel file and put them in BusinessObject Entreprise?

    Hi everybody,
    How i can get the information (data table) from a excel file?
    I just want to open a file excel in BusinessObject Entreprise XI. It is possible?
    Thanks

    What is BI launch pad?
    BI platform includes BI launch pad, a web application that acts as a window to business information
    about your company. In BI launch pad, you can perform the following tasks:
    • Access Crystal reports, Web Intelligence documents, and other objects and organize them to suit
    your needs
    • View information in a web browser, export it to other business applications (such as Microsoft Excel
    and SAP StreamWork), and save it to a specified location
    9 2012-03-14
    Getting Started
    • Use analytic tools to explore the business information in detail
    The features of BI launch pad vary by content type, and various applications are available in BI launch
    pad, if you have the appropriate licenses. For information about the features in your BI platform
    deployment, contact your system administrator.
    plz download this file and u can get you answer
    http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CCMQFjAA&url=http%3A%2F%2Fhelp.sap.…

  • Possible to get data from a partly optimized/stripped core file?

    Hello,
    This may not be possible, but I figured it was worth asking about.
    I've got a C/C++ GUI application compiled with Solaris Studio 12.3 that is experiencing an infrequent crash when compiled for production and running on production boxes.  This is on Solaris 10 for x86 running in 64-bit mode.  Most of the app is in libraries which are statically linked.
    I working on trying to replicate the issue in a development environment, but have not had luck yet. In any case, it would be interesting to know what kind of data can be gleaned postmortem from the core file I've got access to.
    The application is actually a small "main.c" file which is complied and linked in debug mode with "-g" and no optimization, but this thin wrapper calls into the main logic in statically linked libraries which are optimized and not built in debug mode.  (See the call stack below.)
    From the core file :
    1) For functions in the call stack that have names, can I get the value of one of the parameters?  I ask because several such functions take pointers to structs with data that should be very useful.
    2) For functions in the call stack that appear as ??????, is it possible to determine at least what .o or .a file they came from?  This could help narrow things down.
    Some basic Googling indicates that either of the above may not be trivial or even possible.  But I'm wondering if the fact that we've got a "main.c" debuggable wrapper might somehow help.
    As a related question, pstack produces sensible output, but dbx shows the error: "dbx: internal error: could not iterate over load objects -- link-maps are not initialized".  Is there some flag I need to supply to dbx?
    Thank you for any help,
    David
    Background info:
    I've been unable to replicate on non-production deployments, but the machines do differ a bit.   Eventually I will be able to borrow a production box to deploy an instrumented binary, but for now all I've got is a core file and access to source.
    The core was generated with gcore while the app was displaying a popup from it's SIGABRT cleanup handler.   The production build scripts do some binary stripping, but I'm not yet sure where it is getting done.
    Here is the (slightly cleaned up) output of pstack for the core file:
    fffffd7ffeb3244a nanosleep (fffffd7fffdfd4b0, 0)
    0000000000514485 ZWidget_ModalEventLoop () + 65
    00000000004f74a9 ZWidget_ShowPopup () + 4a9
    000000000049d2ab ???????? ()
    fffffd7ffeb2dd16 __sighndlr () + 6
    fffffd7ffeb225e2 call_user_handler () + 252
    fffffd7ffeb2280e sigacthandler (6, 0, fffffd7fffdfd640) + ee
    --- called from signal handler with signal 6 (SIGABRT) ---
    fffffd7ffeb3351a _lwp_kill () + a
    fffffd7ffead81b9 raise () + 19
    fffffd7ffeab6b4e abort () + 5e
    000000000052c3bc ZUtil_Query () + 3c
    000000000059b66e ZUtil_QueryString () + 3e
    00000000004a1e2a ???????? ()
    00000000004a0879 ???????? ()
    000000000058b303 ???????? ()
    000000000052d517 ZUtil_Set () + 767
    00000000004f4805 ZUtil_DBSet () + 35
    00000000005094b5 ZWidget_ProcessCallback () + 465
    0000000000516814 ???????? ()
    fffffd7fff242424 XtCallCallbackList () + 114
    fffffd7ffef84d2e ActivateCommon () + 126
    fffffd7ffef84b72 Activate () + 1e
    fffffd7fff244efa HandleActions () + 14a
    fffffd7fff24b1b7 HandleComplexState () + 177
    fffffd7fff243a9e _XtTranslateEvent () + 4e
    fffffd7fff24382a XtDispatchEventToWidget () + 2ea
    fffffd7fff2430ee _XtDefaultDispatcher () + 15e
    fffffd7fff242db6 XtDispatchEvent () + 106
    00000000005142df ZWidget_ProcessEvent () + ff
    0000000000514099 ZWidget_ProcessEvents () + 19
    00000000005ac67a ZEventLoop_ProcessEvents () + 5a
    00000000005ac528 ZEventLoop_Execute () + 48
    000000000049d133 Main () + c93
    000000000049bdf9 main () + 9
    000000000049bc7b ???????? ()

    Thanks for reporting this problem.
    >1) For functions in the call stack that have names, can I get the value of one of the parameters?  I ask because several such functions take pointers to structs with data that should be very useful.
    Use compiler option -preserve_argvalues={none|simple|complete} to preserve incoming argument values. Note that this feature was introduced in Oracle Solaris Studio 12.4.
    You may also be interested in a new option in Oracle Solaris Studio 12.4 which provides much finer-grained control over debug information, which allows you to choose how much information is provided and to reduce the amount of disk space needed for the executable. Dev Tip: How to Get Finer-Grained Control of Debugging Information.
    >2) For functions in the call stack that appear as ??????, is it possible to determine at least what .o or .a file they came from?  This could help narrow things down.
    The following 2 commands may help:
    where -l        
    # Include library name with function name.
    whereis -a <addr-of-?????> # Print location of an address expression
    >As a related question, pstack produces sensible output, but dbx shows the error: "dbx: internal error: could not iterate over load objects -- link-maps are not initialized".  Is there some flag I need to supply to dbx?
    This may be caused by corefile mismatch. See dbx online help: "help core mismatch" for suggestions.
    Hope this helps.

  • Hard-drive Crash!! - Possible to get files from Apple TV to my new hdd?

    My hard-drive just crashed and I just received the new hard-drive. I was wondering if there is a possiblity to restore into my new hard-drive the files I had downloaded from my old hard-drive to my apple TV. I have a alot of music, photos etc on my apple tv hard-drive, I hope there is a way to restore the files back to my new hard-drive.
    Thank you.

    there is no easy way... people need to realize that appleTV is not a backup drive and with all the valuable, irreplaceable things on your computer you need to have a backup strategy... can you really afford to lose everything on your computer? don't buy one hard drive, buy two... one to replace the dead one and one for a backup drive or buy a hard drive and a time capsule (with time capsule you can do wireless backups from your macbook).
    getting the files off would involve breaking your warrantee...
    1) taking the appleTV apart (not an easy task, but you can find instructions online), removing the hard drive, hooking it up to your computer... by putting it into a USB enclosure or eSATA or internally
    2) hacking your appleTV (instructions online) SSHing to it and getting the files off that way...

  • Possible to get length from midi files?

    Is it possible to retrieve the length from a midi file, for example in miliseconds?

    And how is that helping me?So my taking my limited free time to consider your question, do a search on google, and pull up a very appropriate article -- all as a volunteer mind you -- is not helpful?
    A word of advice: you will have a much greater chance of getting more help if you show appreciation for anyone who takes the time out to consider your problem and offer any even remotely useful solution.
    just my 2 Shekel's worth...
    It explains how MIDI format is built...
    I am no pro as you may understand, because I posted
    in "New To Java".And I can magically read your mind and know exactly where you are in your java development? Sorry, I left my mind-reading cap at work. You were not exactly detailed in what you were seeking, what you know, and what you've found so far. Another word of advice: try to put as much effort into asking your question as you'd like someone would to answer it.
    And I know you can get length of .wav files for
    example by using Clip. That's why I am asking if
    there's a way for midi files as well. Like a method
    for AudioStream or whichever.I hope you find your method. But this is all the help you are going to get from me. Geeze...

  • Is it possible to get music from iPod to iTunes?

    THis question is not as stupid as it sounds. I recently had to purchase a new computer because my old one with all my music files crashed. I have all my music files on my iPod and wanted to know if there was anyway I could take them off my iPod and put them all into the iTunes on my new computer. I also had my iPod to synch with iTunes and I want to turn that option off but I am not sure how to. If anyone knows the answers to either of these questions your help would be greatly needed. Thanks!

    Connect your iPod to your computer. If it is set to update automatically you'll get a message that it is linked to a different library and asking if you want to link to this one and replace all your songs etc, press "Cancel". Pressing "Erase and Sync" will irretrievably remove all the songs from your iPod. Your iPod should appear in the iTunes source list from where you can change the update setting to manual and use your iPod without the risk of accidentally erasing it. Also when using most of the utilities listed below your iPod needs to be enabled for disc use, changing to manual update will do this by default. Check the "manually manage music and videos" box in Summary then press the Apply button: Managing content manually on iPod
    Once you are safely connected there are a few things you can do to restore your iTunes from the iPod. If you have any iTunes Music Store purchases the transfer of purchased content from the iPod to authorised computers was introduced with iTunes 7. You'll find details in this article: Transfer iTunes Store purchases using iPod
    The transfer of content from other sources such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. You'll find that they have varying degrees of functionality and some will transfer movies, videos, photos, podcasts and games as well. Have a look at the web pages and documentation, this is just a small selection of what's available, they are generally quite straightforward. You can also read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    TuneJack Windows Only
    iPod2PC Windows Only
    iGadget Windows Only
    iDump Windows Only
    iRepo Mac and Windows
    iPodRip Mac & Windows
    YamiPod Mac and Windows
    Music Rescue Mac & Windows
    iPodCopy Mac and Windows
    There is also a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows or a Mac. The procedure is a bit involved and won't recover playlists but if you're interested it's available at this link: Two-way Street: Moving Music Off the iPod
    Whichever of these retrieval methods you choose, keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync. I would also advise that you get yourself an external hard drive and back your stuff up, relying on an iPod as your sole backup is not a good idea and external drives are comparatively inexpensive these days, you can get loads of storage for a reasonable outlay.

  • HT3302 I recently fried my iPhone 3GS in water. Is it still possible to get pictures from the SIM card and transfer them to my new iPhone 5s?

    I recently fried my iphone3gs from accidental water submersion . Is it possible to retrieve any photos from the some card and transfer to my new iphone5

    It depends on what kind of sim card and carrier you have, but the most likely answer is no. Contacts, maybe, but pictures are very unlikely. Sorry.

  • Not possible to get software from Apple support

    I am trying to fix my Shuffle, however i cannot get the driver from Apple support.
    the website states "your software will be automatically downloaded" and then remains silent as a civil servant.
    This is no way to start friday.

    I had the same problem with IE. My solution was downloading Firefox and then it worked just fine.
    (Firefox is better anyway. Grinners.)

  • Is it possible to get hacked from safari on your Iphone

    When I was browsing a site a white badge icon popped up and asked if I wanted to go to a site. Assuming that this was malicious I went to take safari off multitask. When I did that my screen went black w/the white apple logo and a few seconds later my normal locked screen appeared. When I went back into my phone I assumed it was a virus and cleared all the cookies/history from safari. After that I spent the next couple of hours downloading avast and resorting my phone. My only concerns are if they hacked me and stole any information from my phone (that being the reason I restored my phone). My question to you guys is has this ever happened to you guys and should I still be concerned? Its been a day and I'm still shaken up.

    Unless your iPhone has been jailbroken there is nothing known that can attack the iOS...and be sure to download the latest iOS, 7.0.6 as that has security patches and SSL patches.
    There can be browser pop-ups, but those are from the website and not things that can self-install on an iOS device.  They can be a scary thing to deal with, however.  Basically what you did is great...I would not bother with anything like Avast.  With an experience like that, double click the home button, dismiss all recent apps by swiping the material above the icon up and away, then reboot by holding both the power and home buttons until the apple logo appears.  Ignore the red slider if that appears.
    Doing that stops all apps that could be running even in the background, clears all memory, and resets the iOS device.  No data or settings will be affected by doing that.

Maybe you are looking for

  • Payroll -Offcycle Payment reversal

    We are trying to reverese a payment whihc was posted to finance already. It shows it is reversed succesfully and when i see payroll results, it shows R (Out of sequence reversal) I am checkng payroll Journal and wagetype reporter , the Year to date e

  • Can't transfer files from PC to Nokia 5320

    can anyone help? i've installed PC suite 7.1 and i made connection via data cable,but i can't transfer files(music,pics,video,apps)...system shows me message:"Connection with the phone is lost".i don't know what to do!? p.s. i also tryed transfer via

  • DOOL Season Pass

    What in the world happened to our regular 20(?) episode season passes of Days of Our Lives? Now you have to spend over $700 and buy the entire year? iTunes hasn't answered me yet. I asked Support on Aug. 3. Anybody have an answer?

  • Does E71 (RM-346) support PBAP? If yes, with which...

    Dear Friends, i've carefully searched the Nokia Discussion forums for the above question, and so far there's no authoritative response. One lucky Nokia E71 owner was able to get phonebook synchronization with his (Audi?), but in many other cases the

  • Impossible d'exporter un calque 3D - problème IBL

    Bonjour, Quand je veux exporter un calque 3D, je reçois le message suivant : J'ai vérifié que le fichier Default.IBL s'ouvre bien dans Camera Raw. Que se passe-t-il et que dois-je faire ? Merci d'avance. Win7 64bits - Photoshop CC à jour