File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes java.io.File exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "java.io.File exception" Watch "java.io.File exception" New topic
Author

java.io.File exception

parth jeevan
Greenhorn

Joined: Jun 19, 2006
Posts: 17
Hello all

I am getting an exception in an application that im supporting.
Can anyone give me any suggestions?

heres the exception
==========================================================================
java.lang.NullPointerException
at java.io.File.<init>(File.java:180)
at com.esb.server.TriggerFileMsgProcessor.deliver(TriggerFileMsgProcessor.java:34)
at com.esb.server.BasicMsgProcessor.onMessage(BasicMsgProcessor.java:167)
at com.b2b.mdbc.MessageDispatcher.run(MessageDispatcher.java:181)


==========================================================================
The statement at TriggerFileMsgProcessor.java:34 is


Does anyone have any suggestions regarding this java.io.File error?
Any suggestions would be helpful
parth jeevan
Greenhorn

Joined: Jun 19, 2006
Posts: 17
By the way the java version is 1.4.2_12
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24057
    
  13

I may be going out on a limb, here... but have you considered the possibility that "archiveDirectory" may be null?


[Jess in Action][AskingGoodQuestions]
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 16695
    
  19

An excerpt from the JavaDoc... for the particular constructor being called.


File

public File(String pathname)-- Creates a new File instance by converting the given pathname string into an abstract pathname. If the given string is the empty string, then the result is the empty abstract pathname.

Parameters:
pathname - A pathname string

Throws:
NullPointerException - If the pathname argument is null


Henry
[ August 25, 2006: Message edited by: Henry Wong ]

Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.io.File exception
 
Similar Threads
how to upload using html or javascript?
what happens when v compile...
How to UnDo java.io.File.setReadOnly() state?
Problem creating File object using a URI
executable jar exception