DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28308>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28308

ExtendedPropertiesReader broken on NFS files

           Summary: ExtendedPropertiesReader broken on NFS files
           Product: Velocity
           Version: 1.3.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Build
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hello, 
 
I am using Velocity (velocity-dep-1.3.1) to generate e-mails on the fly with a 
Java program. 
Velocity is initialized with a custom properties file, which however currently 
does not hold any velocity-relevant information. The property file resides on 
an NFS share. 
Everything used to work fine for several weeks but I am now getting 
nullpointer exceptions from velocity when initializing it with the properties 
file.  This behaviour seemingly started, after I mirrored the harddisc on 
which the properties files were on, to a new drive. The NFS export on that 
machine has not changed at all since it was an exact mirror. Other programs 
have not differed in behaviour, so this is definitely odd. 
Even more strange to me is that when initializing Velocity with it's own 
properties file (which means I am not passing any file as an argument to 
init() ), I still get the nullpointer exception. 
 
When copying the (Eclipse) project to my local disc and debug the program from  
there, everything works as expected. 
 
Thanks for your help. 
 
Here is the stack trace that is being generated: 
 
Thread [AWT-EventQueue-0] (Suspended (exception NullPointerException)) 
        ExtendedProperties$PropertiesReader.readProperty() line: 250 [local 
variables unavailable] 
        ExtendedProperties.load(InputStream, String) line: 467 
        ExtendedProperties.load(InputStream) line: 429 
        ExtendedProperties.<init>(String, String) line: 370 
        ExtendedProperties.<init>(String) line: 352 
        RuntimeInstance.init(String) line: 453 
        VelocityEngine.init(String) line: 135 
        TemplateEngine.<init>() line: 51 
        MailHandler.getMailContents(Bogen) line: 361 
        MailHandler.sendMails() line: 155 
        KommunikationWindow$NachrichtWindow
$OkCallback.actionPerformed(ActionEvent) line: 470 
        JButton(AbstractButton).fireActionPerformed(ActionEvent) line: 1786 
        AbstractButton$ForwardActionEvents.actionPerformed(ActionEvent) line: 
1839 
        DefaultButtonModel.fireActionPerformed(ActionEvent) line: 420 
        DefaultButtonModel.setPressed(boolean) line: 258 
        MetalButtonListener(BasicButtonListener).mouseReleased(MouseEvent) 
line: 245 
        JButton(Component).processMouseEvent(MouseEvent) line: 5100 
        JButton(Component).processEvent(AWTEvent) line: 4897 
        JButton(Container).processEvent(AWTEvent) line: 1569 
        JButton(Component).dispatchEventImpl(AWTEvent) line: 3615 
        JButton(Container).dispatchEventImpl(AWTEvent) line: 1627 
        JButton(Component).dispatchEvent(AWTEvent) line: 3477 
        LightweightDispatcher.retargetMouseEvent(Component, int, MouseEvent) 
line: 3483 
        LightweightDispatcher.processMouseEvent(MouseEvent) line: 3198 
        LightweightDispatcher.dispatchEvent(AWTEvent) line: 3128 
        KommunikationWindow
$NachrichtWindow(Container).dispatchEventImpl(AWTEvent) line: 1613 
        KommunikationWindow
$NachrichtWindow(Window).dispatchEventImpl(AWTEvent) line: 1606 
        KommunikationWindow$NachrichtWindow(Component).dispatchEvent(AWTEvent) 
line: 3477 
        EventQueue.dispatchEvent(AWTEvent) line: 456 
        EventDispatchThread.pumpOneEventForHierarchy(int, Component) line: 201 
        EventDispatchThread.pumpEventsForHierarchy(int, Conditional, 
Component) line: 151 
        EventDispatchThread.pumpEvents(int, Conditional) line: 145 
        EventDispatchThread.pumpEvents(Conditional) line: 137 
        EventDispatchThread.run() line: 100

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to