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 Number Formatting Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Number Formatting Issue" Watch "Number Formatting Issue" New topic
Author

Number Formatting Issue

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1260
The following code generates a NullPointerException:

Console Output:

[7/30/09 8:57:58:889 CDT] 00000028 ServletWrappe A SRVE0242I: [ResourceManagementEAR] [/ResourceManagement] [ScheduledMonthDisplayServlet]: Initialization successful.
[7/30/09 8:57:59:498 CDT] 00000028 SystemOut O B: 990.0
[7/30/09 8:57:59:498 CDT] 00000028 ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet ScheduledMonthDisplayServlet. Exception thrown : java.lang.NullPointerException




This is also in the class:



Well, one more time I jumped the gun and as sonn as I posted the problem I found my error. All I had to do is remove the second DecimalFormat that was included in the constructor.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Number Formatting Issue
 
Similar Threads
Portal Server v6.0 Initialization Problem
Handeling SystemErr When using FTP Class
Help - Problems with redirect in servlet filter in my JSF web app
SRVE0181I: [XXX] [/XXX] [Servlet.LOG]: <null>: <null>
Custom Validation Messages - advanced