Skip to main content

LiveCycle ES2.5 - FileUtilsService: Find

Today's little hiccup: I'm extracting email attachments to a directory and I need to read the list of files that have been extracted. Here's where the Foundation FileUtils Find operation comes in.
The documentation states:
"...
Regular Expression
A string value that represents the regular expression used to match the file and directory names. The default is * which matches any file and directory name. (See Regular expressions syntax.)
..."

Using the default value of "*" produces this result:
ALC-FUT-001-007: Syntax error in the regular expression *.
at com.adobe.livecycle.fileutils.FileUtilsService.list(FileUtilsService.java:809)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.java:118)
...
(and there's about another 92 lines more of this rubbish)

And the stupid thing is that the Regular Expression field is, in fact, defaulted to "*". I think they meant: ".*"

Lads, I think you need to brush up on your regex syntax.

Comments

Popular posts from this blog

Windows 7 Printer Registry

Here's today's annoyance: Adding a new network printer to Windows 7 failed to update the Windows registry properly. At work the other day I needed to add a new network printer. Pretty easy huh? After browsing for the network device, installing the correct driver and running of a test page I thought I was done. Apparently I was mistaken. Here's what happened after the printer was added: Applications such as Adobe Reader X fail to "see" the added printer. Applications such as Microsoft Word 2010 or Excel 2010 can "see" the printer (kinda) but will not let you select it. Could not set and/or change the default printer, fails with " Operation could not be completed (error 0x00000709). Double check the printer name and make sure that printer is connected to the network. ". Thinking there was something wrong with the network, printer driver and/or ports I (attempted to) uninstall/re-install the printer several times - ending up with severa...

Well, it's been a minute...

Holy crap, I can't believe that this blog still exists! 😮 I mean, I got some such notification that the Blogger app was shutting down and to be honest, I thought that this content had all been archived and removed from the interwebs ages ago. Well, colour me surprised that all I needed to do was to re-verify my user profile and voilà - it's all back in action. Well, as you may image, many, many things have happened in the interim: 2025 now finds us relocated yet again, this time all the way across the globe to Oxford, UK . I've also changed jobs from Company A , via Company T and I'm now working for Company B, with some role change and career growth thrown in for good measure. Oh, and we have somehow managed to aquire two dogs and, errm, five cats as well. Life is good. Anway, thanks for sticking around all this time. At least it's not as bad as waiting for The Winds of Winter ... 

Connecting to HyperSQL with OpenOffice.org

For those of you who wished for a 'user-friendly' graphical interface for a HyperSQL database, your wait is over! OpenOffice.org Base is the preferred graphical environment for a HyperSQL database as OOo actually utilises HyperSQL as its embedded database engine. Here's what you'll need: A HyperSQL database server. You can download HyperSQL from here: http://sourceforge.net/projects/hsqldb/files/ OpenOffice.org Base. You can download the full OpenOffice.org suite from here: http://download.openoffice.org/   And here's how to get it up and running: 1. Extract the downloaded HyperSQL bundle to a location on your local machine, e.g. C:\hsqldb-1.8.0.10 [optional]: Add the following entries to your system environment variables: name: HSQLDB_HOME value: <path to your HyperSQL installation, e.g. C:\hsqldb-1.8.0.10> name: PATH value: ;%HSQLDB_HOME%\lib; Note: This value should be added to your existing PATH value! 2. Install OpenOffice.org. 3. Confi...