#25 UNIX symbolic links do not work as "border" paths

open-accepted
nobody
None
5
2007-12-14
2007-11-22
Anonymous
No

Hi,

* it took me hours figuring out where my problem was,
but now I think I narrowed it !

* actually I tried to use "borders" with links at various places in the paths:

** 1 ** symbolic link as a directory in the path
------------------------------------------------
I get this ugly result:

--- Java stack trace: ---

PROCESSING SESSION STARTED: Thu Nov 22 14:08:14 CET 2007
FMPP version: 0.9.12 (using FreeMarker 2.3.10)

>>> TERMINATED WITH INTERNAL ERROR <<<
--- Java stack trace: ---
java.lang.NullPointerException
at fmpp.Engine.isDirMarkedWithIgnoreFile(Engine.java:404)
at fmpp.Engine.isDirMarkedWithIgnoreFile(Engine.java:405)
at fmpp.Engine.isDirMarkedWithIgnoreFile(Engine.java:405)
at fmpp.Engine.isDirMarkedWithIgnoreFile(Engine.java:405)
at fmpp.Engine.isDirMarkedWithIgnoreFile(Engine.java:405)
at fmpp.Engine.isDirMarkedWithIgnoreFile(Engine.java:405)
at fmpp.Engine.isDirMarkedWithIgnoreFile(Engine.java:405)
at fmpp.Engine.isDirMarkedWithIgnoreFile(Engine.java:405)
at fmpp.Engine.isDirMarkedWithIgnoreFile(Engine.java:405)
at fmpp.Engine.processFile(Engine.java:654)
at fmpp.Engine.processDir(Engine.java:642)
at fmpp.Engine.processDir(Engine.java:640)
at fmpp.Engine.process(Engine.java:362)
at fmpp.setting.Settings.doProcessing(Settings.java:1516)
at fmpp.setting.Settings.execute_common(Settings.java:2247)
at fmpp.setting.Settings.execute(Settings.java:1238)
at fmpp.tools.CommandLine.run(CommandLine.java:744)
at fmpp.tools.CommandLine.execute(CommandLine.java:130)
at fmpp.tools.CommandLine.main(CommandLine.java:104)

** 2 ** a symbolic link as the file name at the end of the path
-----------------------------------------------------
The file won't even be seen and no processing occurs.

* software stack:
-----------------
(yes, I know it's not the bleeding edge... (-; )

- Java 1.3.1
- AIX 4.3
- latest FMPP + FreeMarker

* thanks for your help.

Regards,

E. M.

Discussion

    • status: open --> open-accepted
     
  • Logged In: YES
    user_id=546667
    Originator: NO

    Frankly, I have never used FMPP with symblic links, and I think I didn't even considered that case back when I written it... so I'm not sure if at how many places gets FMPP confused because of them. That said, you better avoid symbolic links. (Note that you may use the "freemarkerLinks" settings when the common files are #imported/#included.)

    Anyway, I think I see what caused the NullPointerException, and this should fix that: http://fmpp.sourceforge.net/qfix/fmpp.jar

    How files that are symblic links manage to avoid processing without generating any warning or error, I don't know, but its quite strange. I don't promise that I will look into that in the near future.

     
  • Logged In: YES
    user_id=546667
    Originator: NO

    After (supposedly) fixing the NullPointerException, I think this report has better place in the RFE section. Moved it...

     
    • labels: 580614 -->