ErrorCodeIOException 525

OpenOffice error code 525 is undocumented. (There’s a calc err 525, but this is different.) I grabbed errcode.hxx from the OpenOffice 3.0 source code in which these error codes are defined, and did the following math…

525 decimal = 00000010 00001101 binary

#define ERRCODE_AREA_SHIFT      13
#define ERRCODE_CLASS_SHIFT     8

so: 525 = 00000010 00001101
          aaaccccc eeeeeeee
    area = 0
    class = 2
    error = 13

#define ERRCODE_AREA_IO 	ERRCODE_AREA_TOOLS
#define ERRCODE_AREA_TOOLS	( 0UL << ERRCODE_AREA_SHIFT )

#define ERRCODE_CLASS_GENERAL (2UL << ERRCODE_CLASS_SHIFT)

#define ERRCODE_IO_GENERAL (13UL|ERRCODE_CLASS_GENERAL|ERRCODE_AREA_IO)



…and there you have it. Error 525 is an error in the IO area of class GENERAL, specifically an IO_GENERAL error. The first time I encountered this error our instance of OpenOffice 3.0 was borked and had to be reinstalled. The second time I encountered this error the permissions were bad on a file that was the target of a loadComponentFromURL invocation. I doubt this helps anyone very much, but at least you don’t have to dig the silly thing out of the source code now, right? Good luck!

Category: Java, OpenOffice One comment »

One Response to “ErrorCodeIOException 525”

  1. John

    When we ran into this problem, we were trying to xstorable.saveToURL() to a path whose permissions were wrong – so if you got here (like I did) trying to find out why you’re getting the 525 error, try changing perms to 777 on your target path and see if that helps.


Leave a Reply

CAPTCHA Image



Back to top