NIO Bug Bad Address Exception

I've been developing a file transfer system using the transferTo and transferFrom methods. My method will throw intermittently IOExceptions
"Bad address". Has anyone else seen this? There is a bug report out on this however it was not reproducible. We are able to reproduce this error
at an alarming rate. I am using java 1.4.0_01.

There is a bug in 1.4.0.01 and there is no work around. I was force to use the old IO classes, and tweek the Garbage collector, and classes to ensure maximum through put. I was informed by the Java Team that this problem was fixed in 1.4.1. I that is not the case you will have to submit another bug report.

Similar Messages

  • The operation couldn't be completed. Bad address

    Until yesterday, FCP was working fine. today I get that message : The operation couldn’t be completed. Bad address
    This week is my biggest post-prod week and I really have no time or patience to deal with this kind of sh***
    Here what happens...
    When I try to create a new Event, I get that message. If I quit and reopen FCP, the event has been created and I can import into it
    But then I get this message: Final Cut Pro cannot save changes to projects or Events.
    Quit or continue
    I get the message : The operation couldn’t be completed. Bad address i
    when I try to create a new project. Except that after quitting and reoppening
    I don't have a projet but a folder  instead and I can't do anything with it.
    I read all the forums and did everything that was suggested
    - disconnected all external HD
    - Trashed the pref files
    - Repaired disk permissions
    - made sure I only have one copy of FCP X
    WHAT ELSE CAN I DO ?
    (using FCP 10.0.9)

    This looks like some kind of drive or permissions issue.
    If your projects are in an external drive, try checking the "Ignore ownership on this volume" box.
    Select your drive in the Finder, Cmd-I to open the Get Info window, and tick the little checkbox.

  • "mprotect reset: Bad address"  Help

    Hi,
    I am running a server built in java which accepts lots of tcp connections from clients and performs database operations on their behalf.
    I compile the server with Suns jdk1.3 but run it with IBMJava2-13.
    The following message gets printed to standard error
    mprotect: Bad address
    mprotect reset: Bad address
    Sometimes the jvm crashes after printing this message and sometimes it just hangs taking up 90% of the cpu. At other times it carries on running without problems
    I assume this means that there has been a memory access violation. Also the problem seems to be with the jvm rather than my code because if the code had a bug then there would be an indication to the buggy portion of the code along with the above message.
    Could it be that the problem is that I am compiling and running the program using different java products? I know that java code is portable in that sense but in the real world this is obviously not the case.

    hi , i tried compiling the .java files and running them with IBM jdk , but it still gives the same problems. I have not yet compiled as well as run it using suns' jdk. the problem is that it is very difficult for me to recreate the situation.

  • How can I purge a bad address from iPad Mail?

    I have entered a bad address for my husband, thinking it was his correct e-mail address. I finally figured out it was wrong(there was an extra letter in it) and I changed it in contacts to correct it(Mobile Me corrected it on all my devices).
    Now when I type in his name to send him an e-mail, iPad keeps wanting to send it to the old incorrect address, instead of the corrected address shown in contacts. Please tell me how I can purge the incorrect address from the mail program.

    The more times that you use the correct email address, the sooner the correct address should come up as the first option in the list. Still can't delete it, but eventually the correct address should pop up as the first option over the incorrect address.

  • I have started to get this error message: 5.1.3 bad address syntax in my email account. I am using Outlook 2011. It does not appear to be affecting sending or receiving email. I have no idea what it means or how to resolve the issue. Any advice?

    I have started to get this error message: "5.1.3 bad address syntax" in my email account. I am using Outlook 2011. It does not appear to be affecting sending or receiving email. I have no idea what it means or how to resolve the issue. Any advice?  My email account is through Optimum online and I am using Airpost Express.
    P.S. The error sound "bong" is driving us nuts!

    Please post on the Office for Mac product forums that Microsoft hosts. It's their product and they can best troubleshoot the issue.

  • Message Exception and Internet Address exception in Java mail API

    Hi,
    Using JAVA mail api while using sendmessage method i am getting Invalid address exception..TO address and from address are same as my mail id..Someone please tell why these exceptions come.
    Thanks..

    To prevent spammers using your system's mail transfer agent as a channel for spam most MTAs are set up to send message either from a recognised local address to a remote address, or from remote to local. "Unable to relay" generally means that your MTA doesn't recognise the machine that tried to send the e-mail as "local".
    You probably need to make changes to the configuration of the MTA (Sendmail or whatever) that runs on the machine you've designated as mail host.

  • Matrix Bad Value exception in ItemCode column

    hello ,
    i faced an exception with filling itemcode column
    As u know this column is linked object and have CFL (choose from list)
    the problem i faced that on choosing from list i choose an item to add new line in matrix
    this event done and a new line added sucessfully
    but the problem was with CFL , that it didnt able to close , it still opened and you need to press ESC or click on cancel to close it
    when i tracking the exception i found "Bad value" exception, although the itemcode column filled but the
    also i bind all matrix columns with data sources and i can fill matix at first , but when i want to add new line i faced this problem
    best regards and thank you in advance ....
    Ammar

    Thanks Rasmus,
    But that's something I've already tried - it doesn't seem to make any difference.

  • Bug in Address Book search function?

    Here's an annoying bug in Address Book - maybe this has been noted here before.
    Like most people, I like to divide my numbers into smaller blocks for legibility - it makes them easier to memorise.
    So +49303912345 becomes + 49 30 391 2345 where the country and area codes are separated by a space.
    The problem is that if I search for 12345 it will only give me the first result as it thinks that there is a gap/empty space between the 1 and the 2.
    This is unhelpful and rather surprising - anyone else notice this - is it a bug?

    Don't think it's a bug... It's the way it works.
    Are these phone numbers? and are you entering them into the phone number field?
    If there appears a gap/empty space between the 1 and 2, then you should expect that it will think there is a gap/empty space between 1 and 2.
    Basically, AddressBook - and the other Spotlight interfaces - treat numbers the same as any other text, so that '1 2345' is no more the same as '12345' than 'a star' is the same as 'astar'.
    If you've memorized it by blocks, then it should be easier to enter it by the same blocks.
    Of course, if you want to see it change, you can always submit feedback
    Message was edited by: Mike N. (nahyunil)

  • Unusual Bad Padding Exception

    I am writing a class to encrypt licencing information onto a text file in Base64 encoding. This write aspect works fine but the reading the licence back throw a Bad Padding Exception. (error and code below) Any assistance will be much appreciated
    javax.crypto.BadPaddingException: Given final block not properly padded
    at com.sun.crypto.provider.SunJCE_h.b(DashoA6275)
    at com.sun.crypto.provider.SunJCE_h.b(DashoA6275)
    at com.sun.crypto.provider.AESCipher.engineDoFinal
    (DashoA6275)
    at javax.crypto.Cipher.doFinal(DashoA6275)
    at Encryptor.encrypt(Encryptor.java:117)
    at Encryptor.loadAllEncryptedLayerLicences
    (Encryptor.java:158)
    at Encryptor.main(Encryptor.java:183)
    KeyGenerator kgen = KeyGenerator.getInstance("AES");
    kgen.init(128);
    SecretKey skey = kgen.generateKey();
    byte[] raw = skey.getEncoded();
    SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES");
    Cipher cipher = Cipher.getInstance("AES");
    //encrypt
    cipher.init(Cipher.ENCRYPT_MODE, skeySpec);
    byte[] encrypted = cipher.doFinal(value.getBytes());
    //CONVERT TO BASE64 Encoding
    String s = new sun.misc.BASE64Encoder().encode(encrypted);
    //write the encrypted data to the file
    fos = new FileOutputStream("C:\\aes\\output.properties");
    new PrintStream(fos).println("layerhandle\t"+s);
    fos.flush();
    //fos.close();
    //decrypt
    byte[] buf = new sun.misc.BASE64Decoder().decodeBuffer(value);
    cipher.init(Cipher.DECRYPT_MODE, skeySpec);
    //read from file and decrypt the values
    byte[] unecrypted = cipher.doFinal(buf);
    String word = new String(unecrypted);

    String s = new
    sun.misc.BASE64Encoder().encode(encrypted);
    //write the encrypted data to the file
    fos = new
    FileOutputStream("C:\\aes\\output.properties");
    new PrintStream(fos).println("layerhandle\t"+s);
    fos.flush();
    //fos.close();This looks suspicious. You should close the PrintStream and not just flush 'fos'. Closing the PrintSteam will close 'fos'. This failure to close the print stream could be the cause your problem.
    >
    >
    //decrypt
    byte[] buf = new
    sun.misc.BASE64Decoder().decodeBuffer(value);If there is a problem with decrypt then it may be because you have not read the 'value' or the 'key' properly.

  • Why bad padding exception???

    hi guys
    here i am trying to decrypt the already encrypted string by one different encrpytion algo.
    in the example i have encrypted the string by des and then i tried to decrypt it using blowfish but it gives as the output null instead of a random string...because of a bad padding exception(check line 86). help to remove the exception.
    if we try to decrypt the des encrypted string by des again it give n padding exception. why with blowfish???
    // CIPHER / GENERATORS
    import javax.crypto.Cipher;
    import javax.crypto.SecretKey;
    import javax.crypto.KeyGenerator;
    // KEY SPECIFICATIONS
    import java.security.spec.KeySpec;
    import java.security.spec.AlgorithmParameterSpec;
    import javax.crypto.spec.PBEKeySpec;
    import javax.crypto.SecretKeyFactory;
    import javax.crypto.spec.PBEParameterSpec;
    // EXCEPTIONS
    import java.security.InvalidAlgorithmParameterException;
    import java.security.NoSuchAlgorithmException;
    import java.security.InvalidKeyException;
    import java.security.spec.InvalidKeySpecException;
    import javax.crypto.NoSuchPaddingException;
    import javax.crypto.BadPaddingException;
    import javax.crypto.IllegalBlockSizeException;
    import java.io.UnsupportedEncodingException;
    import java.io.IOException;
    public class StringEncrypter {
    Cipher ecipher;
    Cipher dcipher;
    StringEncrypter(SecretKey key, String algorithm) {
    try {
    ecipher = Cipher.getInstance(algorithm);
    dcipher = Cipher.getInstance(algorithm);
    ecipher.init(Cipher.ENCRYPT_MODE, key);
    dcipher.init(Cipher.DECRYPT_MODE, key);
    } catch (NoSuchPaddingException e) {
    System.out.println("EXCEPTION: NoSuchPaddingException");
    } catch (NoSuchAlgorithmException e) {
    System.out.println("EXCEPTION: NoSuchAlgorithmException");
    } catch (InvalidKeyException e) {
    System.out.println("EXCEPTION: InvalidKeyException");
    public String encrypt(String str) {
    try {
    // Encode the string into bytes using utf-8
    byte[] utf8 = str.getBytes("UTF8");
    // Encrypt
    byte[] enc = ecipher.doFinal(utf8);
    // Encode bytes to base64 to get a string
    return new sun.misc.BASE64Encoder().encode(enc);
    } catch (BadPaddingException e) {
    } catch (IllegalBlockSizeException e) {
    } catch (UnsupportedEncodingException e) {
    } catch (IOException e) {
    return null;
    public String decrypt(String str) {
    try {
    // Decode base64 to get bytes
    byte[] dec = new sun.misc.BASE64Decoder().decodeBuffer(str);
    // Decrypt
    byte[] utf8 = dcipher.doFinal(dec);
    // Decode using utf-8
    return new String(utf8, "UTF8");
    } catch (BadPaddingException e) {
    System.out.println("BAd padding excception");
    } catch (IllegalBlockSizeException e) {
    System.out.println("IllegalBlockSizeException");
    } catch (UnsupportedEncodingException e) {
    System.out.println("UnsupportedEncodingException");
    } catch (IOException e) {
    System.out.println("IOException");
    return null;
    public static void testUsingSecretKey() {
    try {
              String secretString = "code cant be decrypted!";
              SecretKey desKey = KeyGenerator.getInstance("DES").generateKey();
              SecretKey blowfishKey = KeyGenerator.getInstance("Blowfish").generateKey();
         StringEncrypter desEncrypter = new StringEncrypter(desKey, desKey.getAlgorithm());
              StringEncrypter blowfishEncrypter = new StringEncrypter(blowfishKey, blowfishKey.getAlgorithm());
              String desEncrypted = desEncrypter.encrypt(secretString);     
         String desDecrypted = desEncrypter.decrypt(desEncrypted);
         String blowfishDecrypted = blowfishEncrypter.decrypt(desEncrypted);      
         System.out.println(desKey.getAlgorithm() + " Encryption algorithm");
         System.out.println(" Original String : " + secretString);
         System.out.println(" Encrypted String : " + desEncrypted);
         System.out.println(" Decrypted String : " + desDecrypted);
         System.out.println();
         System.out.println(blowfishKey.getAlgorithm() + " Encryption algorithm");
         System.out.println(" Original String : " + desEncrypted);
         System.out.println(" Decrypted String : " + blowfishDecrypted);
         System.out.println();
         } catch (NoSuchAlgorithmException e) {
         public static void main(String[] args) {
         testUsingSecretKey();
    }

    peter_crypt wrote:
    you are right but this is my question. why cant we do that?? it should be possible.by the way i am working on a project for cryptanalysis . there i need to implement it.You need to spend more time studying and less time programming -
    1) Applied Cryptography, Schneier, Wiley, ISBN 0-471-11709-9
    2) Practical Cryptography, Ferguson and Schneier, Wiley, ISBN 0-471-22357-3
    3) Java Cryptography, Knudsen, O'Reilly, ISBN 1-56592-402-9 dated but still a good starting point
    4) Beginning Cryptography with Java, written by David Hook and published by WROX .

  • Error: 'bad address'

    So, I've created an iBook. Closed it. Opened it a few hours later to edit some more. Tried to save it, responding in the error:
    "The document 'xxx' couldn't be saved. Bad address."
    Now what?

    Have a look at metalink Note:395350.1
    Basically, this document describes it's a problem in DIO (direct IO), which can be tuned using vxtunefs (per filesystem).
    The document describes to enlarge the buffer bigger than the described number (which is 1MB)
    dynamically: vxtunefs -o discovered_direct_iosz=1572864 /mount/point (replace /mount/point with the oracle mount point(s))
    statically in /etc/vx/tunefstab: /dev/vx/dsk/oracle/oravol discovered_direct_iosz=1048577 (replace with your oracle filesystems)

  • Bad Padding Exception using AES/ECB/PKCS5Padding

    Hi, I need some help Tryng to crypt and decrypt a String using AES/ECB/PKCS5Padding
    I paste my code below
    Crypt
    Cipher cipher;
             byte[] pass=new byte[]{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}; // just for example
            SecretKeySpec key = new SecretKeySpec(pass, "AES");
            cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
            cipher.init(Cipher.ENCRYPT_MODE, key);        
            byte[] utf8 = da_cifrare.getBytes("utf-8");
            byte[] enc = cipher.doFinal(utf8);
            String cifrata =new String (Base64.encodeBase64(enc));
            return cifrata;
    And on the other side Decrypt
    Cipher decipher;
               byte[] pass=new byte[]{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}; // just for example
               SecretKeySpec key = new SecretKeySpec(pass, "AES");
               decipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
               decipher.init(Cipher.DECRYPT_MODE, key); 
               byte[] buf =Base64.decodeBase64(da_decifrare.getBytes("utf-8"));
               byte[] recoveredBytes = decipher.doFinal(buf);
               String in_chiaro = new String (recoveredBytes,"utf-8");
               return (in_chiaro);I'm getting Bad padding exception when I try to Decrypt, any ideas ??

    Nothing obviously wrong but we have no view of your Base64 encoder and decoder. You should check
    a) that the bytes of your key are the same in both methods
    b) that the bytes resulting in your decrypt methodbyte[] buf =Base64.decodeBase64(da_decifrare.getBytes("utf-8"));are exactly the same as those created in the encrypt method using  byte[] enc = cipher.doFinal(utf8);
          Note - since Base64 consists of only ASCII characters you should use String cifrata =new String (Base64.encodeBase64(enc),"ASCII");and byte[] buf =Base64.decodeBase64(da_decifrare.getBytes("ASCII"));though this flaw should not be the cause of your exception.
    Edited by: sabre150 on Dec 15, 2009 12:32 PM

  • Bad Padding Exception

    I've got a small program to save/load passwords from a file, but the encryption is causing me a few issues, currently I'm stuck on a bad padding exception (line 120).
    The code can be found here: http://www.rafb.net/paste/results/R8NoZB78.html
    Does anyone know how I can resolve the error? Thanks.

        private String decrypt(String encrypted) {
            try {
                Cipher cipher = Cipher.getInstance("DES");
                cipher.init(Cipher.DECRYPT_MODE, key);
                return new String(Base64.decodeBase64(cipher.doFinal(encrypted.getBytes())));
            } catch (Exception e) { e.printStackTrace(); }
            return null;
        private String encrypt(String plaintext) {
            try {
                Cipher cipher = Cipher.getInstance("DES");
                cipher.init(Cipher.ENCRYPT_MODE, key);
                return new String(cipher.doFinal(Base64.encodeBase64(plaintext.getBytes())));
            } catch (Exception e) { e.printStackTrace(); }
            return null;
        }decrypt()
    string -> encrypted encoded bytes -> encoded bytes -> bytes -> string
    encrypt()
    string -> bytes -> encoded bytes -> encrypted encoded bytes -> string
    I do ask myself first. And no, I still don't get what the problem is - I really think there's something, probably very simple, that I don't know about and that's why I'm not getting this.

  • Blocking all MAC addresses except for the ones you allow

    I have a Cisco Aironet 1200 Access Point. I want to block all MAC addresses from accessing the access point, except for the ones I've allowed. First I went to the Address Filters page and clicked on Allowed, then listed all the MAC address I want to be able to access the access point. Then I went to the Ethernet Advanced page, and set the Default Multicast Address Filter to Disallowed, and the Default Unicast Address Filter to Disallowed. Then I went to the AP Radio: Internal Advanced page, clicked on the Advanced Primary SSID Setup link, and set the Default Unicast Address Filter to Disallowed. Accept Authentication Type is set to Open with Shared and Network-EAP cleared, and the Require EAP check boxes are all cleared.
    When using a computer whose MAC address is not listed on the Address Filters page, I am still able to connect to the network through the access point. I am also able to connect to the access point from any pc on my network by entering its IP address in Internet Explorer.
    What do I need to do to block any pc without a listed MAC address from connecting to the access point?
    Thanks, Jeff

    Here's the instructions and URL on how to create an MAC based filter:
    Follow these steps to create a MAC address filter:
    Step 1 Follow the link path to the Address Filters page.
    Step 2 Type a destination MAC address in the New MAC Address Filter: Dest
    MAC Address field. You can type the address with colons separating the character pairs
    (00:40:96:12:34:56, for example) or without any intervening characters (004096123456, for example).
    Note If you plan to disallow traffic to all MAC addresses except
    those you specify as allowed, put your own MAC address in the list of allowed MAC
    addresses. If you plan to disallow multicast traffic, add the broadcast MAC address
    (ffffffffffff) to the list of allowed addresses.
    Step 3 Click Allowed to pass traffic to the MAC address or click Disallowed
    to discard traffic to the MAC address.
    Step 4 Click Add. The MAC address appears in the Existing MAC Address
    Filters list. To remove the MAC address from the list, select it and click Remove.
    Step 5 Click OK. You return automatically to the Setup page.
    Step 6 Click Advanced in the AP Radio row of the Network Ports section at
    the bottom of the Setup page for the radio you want to configure. The AP Radio Advanced page appears.

  • Block all ip addresses except one

    I want to block all ip addresses except one from connecting to the computer. Is there a device (firewall) for the same?

    Hi,
    If you have an existing firewall and the traffic destined for that host is going through the firewall then naturally you can use the firewall to block the traffic. The firewall however wont be able to control the traffic between the devices in the same network.
    It would seem to me though that you are probably looking for something to enable blocking connections on a certain host/PC from all but one source IP address. This would sound more like a situation where you would use some software on the host/PC itself to control the access.
    Cant say much more with the provided information which was minimal.
    - Jouni

Maybe you are looking for

  • Bad Bluetooth behavior with iPhone 4S / iOS 5.0.1

    I'm having a very strange issue with my iPhone 4S the last few days. I own a Hyundai Sonata, which has built-in Bluetooth for hands-free use, and it's been paired with my 4S since the day I got it (and my old 3G before that). Up until a few days ago,

  • Developer 10g 9.0.4.2 for Linux -- why does web report run so slow?

    Hello, I have a particular report that runs for 10 minutes, getting to formatting page 45 of 50, and then just stops when running from the web with RUN_REPORT_OBJECT, destype=file desformat=pdf. However when I run it from the builder or with rwrun.sh

  • Popping and static during playback

    When I am playing music through iTunes there is a static popping sound in the background. This occurs through speakers and headphones (brand new Bose) but does not happen when listening to the same songs on my iPod. As far as I can tell it is happeni

  • 32k Rowsize Limit (ORA-006502) for Report Query Shared Objects in Apex 4.1

    We're trying to move legacy reports off of PlanetPress into Apex. One of the report queries has over 20 tables and attempting to run with the "Test Report" button in the Edit Report Query screen gets the error message: Error ORA-06502: PL/SQL: numeri

  • How can I change the Safari toolbar for easier reading?

    Just about everything on iMac can be adjusted for us old timers, except the Safari tool bar. The favorites bar has print which cannot be read without a magnifying glass. Placing grey type on a grey background compounds the problem. I am helping my ol