Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

java.io.File exception

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By the way the java version is 1.4.2_12
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I may be going out on a limb, here... but have you considered the possibility that "archiveDirectory" may be null?
 
author
Posts: 23956
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic