How to copy Inetaddress on passed one?

Hi all,
I am currently implementing an DatagramSocketImpl and have problems with the method
private InetAddress newInetAddress;
protected int peek(InetAddress i) throws java.io.IOException
one must implement. The method requires to transfer an InetAddress (here: newInetAddress) to the passed InetAddress i - but Inetaddress and its subclasses to not implement methods to set the required values. Even the copy-by-serialization trick does not work because I cannot pass the object at i as the target to de-serialize the InetAddress I want to give as the methods result...
Does anyone known how I can copy a newInetAddress to the InetAddress i within the method?
Thanks

>
Does anyone known how I can copy a newInetAddress to
the InetAddress i within the method?As you have already discovered you can't - normally. You should create a bug in the bug database.
There are two solutions.
Presumably you are using JNI. If so you can set the attributes directly in there.
Or there is a trick using reflection. You should verify the following, but every reflect item is derived from java.lang.reflect.AccessibleObject. And that has a setAccessible(boolean flag) method. Setting that to true will allow access to private/protected items.

Similar Messages

  • How to copy OVD configuration from one machine to another?

    We have two machines with OVD servers on them. The configurations should be identical from one machine to the other. We suspect there is a problem with the configuration on one of them. We need to know how to copy OVD configuration from one machine to another.
    Can you tell us how to do that?

    well i have this in mind which may help you.
    You would need to have a public ip address to the machine you have consoled to and on internet.
    Download the tftp software from below link.
    http://tftpd32.jounin.net/
    This software does not only act as the tftp server but also you can select the interface of you ethernet card as tftp server ip address.
    For ex if you are connected to a console and have a wireless card which is connected to internet also you connect you eth lan card to the eth or fast eth of the router.
    you can select which ever interface you want to act as the tftp server.
    you will need to add ip addres for you lan card and also config the router port as same if needed.

  • How to copy a folder from one document library to another document library ?

    How to copy a folder from one document library to another document library by programmtically?
    Samarendra Swain
    Team Sharepoint
    www.manuhsolutions.com

    You can use the SPFolder.CopyTo method.
    public static void CopyFolder()
    SPFolder folder = null;
    using (SPSite site = new SPSite("http://basesmcdev2/sites/tester1"))
    using (SPWeb web = site.OpenWeb())
    folder = web.GetFolder("shared%20documents/newfolder");
    folder.CopyTo("tester4/newfolder");
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfolder.copyto.aspx
    certdev.com

  • How to copy List item from one list to another using SPD workflow using HTTP call web service

    Hi,
    How to copy List item from one list to another using SPD workflow using HTTP call web service.
    Both the Lists are in different Web applications.
    Regards, Shreyas R S

    Hi Shreyas,
    From your post, it seems that you are using SharePoint 2013 workflow platform in SPD.
    If that is the case, we can use Call HTTP web service action to get the item data, but we cannot use Call HTTP web service to create a new item in the list in another web application with these data.
    As my test, we would get Unauthorized error when using Call HTTP web service action to create a new item in a list in another web application.
    So I recommend to achieve this goal programmatically.
    More references:
    https://msdn.microsoft.com/en-us/library/office/jj164022.aspx
    https://msdn.microsoft.com/en-us/library/office/dn292552.aspx?f=255&MSPPError=-2147217396
    Thanks,
    Victoria
    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]

  • HOW TO COPY A FORM FROM ONE TO ANOTHER CLIENT

    HOW TO COPY A FORM FROM ONE TO ANOTHER CLIENT

    Hi Tina,
    To copy either a Script or a Smartform fron one client to another client i.e from reference client 000 to any client say 010  follow instructions as given below:
    Go to Tcode SE71->Give Form name MEDRUCK then go to Menu path Utilities->Copy From Client, give
    Form Name: MEDRUCK
    SOURCE:000 (it will be already there)
    Target Form: Zmedruck(here give ur form zname)
    Execute
    It will be copied into all languages.
    Then come back to SE71
    Give your form name Zmedruck
    Language:: de then goto change mode
    then menu path->utilities->convert original languge to En and enter you will get a message original language of form zmedruck converted from de to en,
    now  change language de to en in se71 main screen and then do what ever changes you want to do , this is how you can copy a script or smartform from one client to another client.
    If this answer is useful reward points any queries revert me back.

  • How to copy pf-status from one program to another program

    Hi Gurus,
    Can any one tell me the procedure how to  copy pf-status of one program to another program .if i want to copy pf-status which is in production server to development server how can i do this.pls help me out.
    Regards.

    Hi,
    GO TO  SE41,
    Select Status,
    In from u can give  ur old pgm and staus name
    In To u can ur new one .
    Save and activate.
    Regards,
    S.nehru.

  • How To Copy Selected Music From One Library to Another?

    What is the best way to copy selected music from one library to another?
    I have a big and growing iTunes library -- 33,000 songs.
    A year ago I copied my library to my daughter's new iMac.  Now, a year later, I'm off to visit her and wonder how best to update her library.  In the past year I have added a number of items to my library and I'm sure she has done the same -- some might be the same but many will be different.
    How do I update her library with the new things I've added in the past year but not wipe out things she had added or duplicate when we each have a song?
    I can load any / all of my stuff on an external HD and take that to plug in to her computer.  Then what?  I want to avoid duplicates and make sure I get stuff like album artwork.
    I'm running iTune 10.4 on an iMac with OS X 10.6.8 -- my daughter will have the same iTunes and OS X once we update her software.
    Any advice would be great.
    Thanks

    If you're sharing the same Apple ID and all your songs are from the iTunes Store, it's easy:
    In iTunes on your computer, go to File->Preferences->Store and check the box next to MUSIC under AUTOMATIC DOWNLOADS.
    You should also read this article, the section titled TO DOWNLOAD PREVIOUSLY PURCHASED APPS, BOOKS, MUSIC, OR TV SHOWS TO YOUR COMPUTER:
    http://support.apple.com/kb/ht2519
    You could also use an rsync utility such as backuplist+ to perform a 2-way sync of the files in your two libraries while your computers are connected via FireWire with one of them in FireWire Target Disk Mode, or from your external hard drive with your daughter's computer and then to yours again. After that, you'll need to use iTunes on each computer to update its library with the new files:
    http://rdutoit.home.comcast.net/~rdutoit/pub/robsoft/pages/backup.html
    This last would also be the preferred method if you have authorized each other's computers for media purchased with each other's Apple IDs (i.e. you are not sharing the same Apple ID), or if you have music from sources other than the iTunes Store. Most likely, though, music from sources other than the iTunes Store would not be legal to copy in this way for this purpose, although there is probably no technical impediment.

  • How to copy a tab from one tab group to another?

    In Tab groups view, drag and drop allows one to move one tab from one group to another. But how to copy a tab?

    Press '''CTRL''' while dragging to copy instead of moving.

  • How to copy a PLD in one database to another.

    Hi,
    How can we copy a PLD in one database to the other without using Copy Express.
    I tried openin up the PLD in the Test DB and copying it over to the Live DB, using Edit copy and Paste, but it doesn't work....
    Is there any other way it can be done?
    Regards,
    Jyoti

    hi,
          you can copy print layout design using add-on Copy Express available with in SAP B1 add-on package.
    or using the sql statement in SQL Server directly
    QUERY FOR Copying PLD From one DB to another DB
    INSERT INTO [TARGET].[DBO].[RDOC]
    SELECT [SOURCE].[DBO].[RDOC].* FROM [SOURCE].[DBO].[RDOC]
    WHERE [SOURCE].[DBO].[RDOC].DOCCODE = 'CHO*****'
    INSERT INTO [TARGET].[DBO].[RITM]
    SELECT [SOURCE].[DBO].[RITM].*
    FROM [SOURCE].[DBO].[RITM]
    WHERE [SOURCE].[DBO].[RITM].DOCCODE = 'CHO*****' AND [SOURCE].[DBO].[RITM].DOCCODE
    IN (SELECT DOCCODE FROM [TARGET].[DBO].[RDOC])
    Replace the TARGET field by Target DB name and SOURCE field by Base DB name
    DOCCODE is taken from Target DBu2019s PLDu2019s Document Properties.
    SELECT DOCCODE FROM [SBODemo_India].[DBO].[RDOC] where docname = 'NEW_AP'
    If you know SQL Queries...it is very easy to transfer PLD from one DB to DB by using the above query
    or else if you donot kow sql then you can go for Copy express add-on, it is very much simple using that.
    hope this will solve your problem
    regards
    sandip

  • How to Copy Customized Partner From One Opprtunity to Another in CRM

    Hi experts,
    How to save more than one same type partner(with same partner FCT) in CRM opportunity Application?
    I am using following Function Module...
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
    EXPORTING
    it_partner = lt_partner_com
    CHANGING
    ct_input_fields = lt_input_fields
    EXCEPTIONS
    error_occurred = 1
    document_locked = 2
    no_change_allowed = 3
    no_authority = 4
    OTHERS = 5.
    I am giving the input field name as 'PARTNER_FCT', 'PARTNER_NO', 'DISPLAY_TYPE', 'NO_TYPE', 'MAIN_PARTNER' and 'RELATION_PARTNER'.
    I have created one partner function for saving additional entity. And I am trying copy one existion opportunity by using CRM_COPY_PROCESS. And I am maintaining that partner via 'CRM_ORDER_MAINTAIN'. But it is not saving the data in session level also.
    The limit of that partner FCT record is 0-999.
    Please help me how to save this.

    Hi,
    Forgive me if I've misunderstood your query, but what you are asking sounds like standard customization to me - Copy Control.  I assume you have created your own Opportunity type and that is where the problem lies?
    Have a look at the following IMG path (transaction SPRO > then press F5 on next screen to open the IMG):
    SAP Implementation Guide > Customer Relationship Management > Transactions > Settings for Opportunities > Define Copying Control for Opportunity Item to Opportunity
    Create an entry for your opportunity by entering the source opportunity (to copy the partner from) and the target opportunity (to copy the partner to) and tick the "Partners" checkbox for the new entry - that will automatically copy the partner from one opportunity to the next as specified.
    Hope this helps.
    Thanks,
    Andrew G.

  • How to copy a node from one dom document to another?

    I have one dom document that I have to split up into multiple dom documents. I am able to get the inividual nodes that I want to put into seperate documents.
    My problem occurs when I create a new dom document and try to add the node from the parent document. I get an exception saying (copied from api: WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node. )
    How can I make it so that I can copy a node from one document and add it to another.

    Have you checked out the API called importNode in the DOM Document. It lets you move nodes between different documents.
    This api lets you simply copy the existing node from one document into another. without creating any new nodes for it.
    I have done a small example please have a look.
    Book.xml
    <?xml version="1.0"?>
    <books>
      <book>
        <name>Inside Corba</name>
      </book>
      <book>
        <name>Inside RMI</name>
      </book>
    </books>------------------------
    Book2.xml
    <?xml version="1.0"?>
    <books>
      <book>
        <name>Core Java </name>
      </book>
      <book>
        <name>Core JINI</name>
      </book>
    </books>-------------------
    MoveNode.java (copies nodes from doc2 into doc1)
    import java.io.*;
    import javax.xml.parsers.*;
    // structures
    import org.w3c.dom.*;
    import org.xml.sax.*;
    public class MoveNode
      public static void main(String[] args)
        // step1. create a factory and configure it
        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        // step2. set various configurations
        factory.setValidating(false); // do not need validation at this time.
        factory.setIgnoringComments(false); // do not ignore comments
        factory.setIgnoringElementContentWhitespace(false); // do not ignore element content whitespace.
        factory.setCoalescing(false);
        factory.setExpandEntityReferences(true);
        // step 3 create a document builder
        DocumentBuilder builder = null;
        try
          builder = factory.newDocumentBuilder();
        catch(ParserConfigurationException e)
          e.printStackTrace();
        try
          Document doc1 = builder.parse(new File("book.xml"));
          Document doc2 = builder.parse(new File("book2.xml"));
          if (doc1 == null || doc2 == null)
            System.out.println("doc1 is null or doc2 is null");
            System.exit(1);
          } // if
          // fetch books from doc2
          NodeList list = doc2.getElementsByTagName("book");
          System.out.println("number of books found " + list.getLength());
          Node node1 = list.item(0);
          Node node2 = list.item(1);
          // get the root node of doc1
          Node root = (Node) doc1.getDocumentElement();
          root.appendChild(doc1.importNode(node1, false));
          root.appendChild(doc1.importNode(node2, false));
          //now doc1 should have 4 nodes
          System.out.println(doc1.getElementsByTagName("book").getLength());
        } // try
        catch(SAXException se)
          se.printStackTrace();
        catch(IOException ie)
          ie.printStackTrace();
    hope this helps.
    regards,
    Abhishek.

  • How to copy a table from one system to another system

    Hi all,
            can any one say how to copy table from one system(sys1) to another system(sys2).
    regards,
    nagaraj

    There are many ways.
    1. Use the already existing transaport request number for that table to do the transaport (Active)
    2. Create mannual transport request from SE01 and in the object list enter following
    R3TR -- TABI -- <Table Name>
    And do the transaport.
    3. Ask your basis consultant to do the transaport from oracle layer.
    Thanks,

  • How to copy a query from one infoprovider to another infoprovider

    Hi Experts,
    Could anyone suggest me on how to copy a particular query from one infoprovider to another infoprovider which are identical and have the same objects in them.
    Thanx in advance
    Lalit

    Hi Lalith,
    Use the Transaction RSZC and specify the - > Source InfoCube  -> Target InfoCube and select the queries  you want to copy.
    Hope it helps
    Regards
    Srikanth

  • How to copy iPhoto keywords from one library to another

    I have over 30 iPhoto Libraries.  Managing them is great using iPhoto Library, but keyword management is awful (if iPLM has a way I haven't found it).  I would like to know how to copy keywords from one library to another.  It's a pain to have to continually doing manual setup.
    In advance, THANKS!

    With that many photos you might consider using one of the high end DAM (digital asset management) applications.  I use Media Pro 1. It uses catalogs of thumbnails that are linked to the photos on your hard drive, CDs or wherever.  A single catalog can hold 250,000 images.  It uses Catalog Sets like Events in iPhoto.  There are Categories which are like albums in iPhoto.  Those and Catalog Sets are virtual.  You can batch rename files once in the catalog either by date or text.  The folders holding the photos on the hard drive can be set up auto update in the catalog so when you add a photo to the folder it will appear in the catalog. You can add keywords, hierarchical keywords, descriptions, etc. and write them back to the original file. 
    It has some built in editing capability and versioning capability. Clicking on a keyword will display all photos with that keyword quickly.  Searches can be made across multiple catalogs and have the results displayed in a new catalog.
    I use it as my primary DAM and iPhoto for special projects like books, etc. The catalogs can be viewed and keywords, descriptions added, etc. without the original files being available.  You just can't do any editing, slideshows or anything that requires the full sized file.
    OT

  • How to copy module pool prog one server to another server

    hi Experts,
    hi how to copy  the module pool prog(mpp)  one server to another server , like download and upload , in this i have 10 screen pbo , pai, includes , , in  this mpp
    will have other tcodes also ..
    is this possible ,  if yes how give me step by step process
    pls do help me in this requirment .
    thanks in advance ,
    m venu

    Do you have the ability to import a transport into your second server?  The easiest way to accomplish this is to create a Transport Request in your originating system, release the transport, and have you basis admins import it into the second server.
    Regards,
    Chris H.

Maybe you are looking for