-
java.util.Calendar.setTime(Calendar.java:902) (6 messages)
- Posted by: Chetans
- Posted on: September 02 2004 07:37 EDT
Hello All,
One of the class in our application uses DateFormat for providing different date formats. The code works fine in Development and Testing environment, but throws NullPointerException when moved to production server.
Can anyone explain why this might happen. I saw few questions on net regarding the same error.
The puzzling part is, it works fine in System Test environment as well but when moved to production this error occurs.
here is the stacktrace
java.lang.NullPointerException
at java.util.Calendar.setTime(Calendar.java:902)
at java.text.SimpleDateFormat.format(SimpleDateFormat.java:780)
at java.text.SimpleDateFormat.format(SimpleDateFormat.java:773)
at java.text.DateFormat.format(DateFormat.java:314)
at icp.warehouse.access.kalido.com.KalidoUtilities.Date2String(KalidoUtilities.java:305)
at jrun__webapp__Model2ejsp11.showObservationTime(jrun__webapp__Model2ejsp11.java:656)....Threaded Messages (6)
- Regarding This Error by Rahul R on February 16 2012 09:18 EST
- Regarding This Error by Rahul R on February 20 2012 04:00 EST
- Hello by Duke Philips on February 26 2012 07:35 EST
- Regarding This Error by Mike Peloso on April 11 2012 01:57 EDT
- Regarding This Error by Rahul R on February 20 2012 04:00 EST
- java.util.Calendar.setTime(Calendar.java:902) by Suresh Balan on April 20 2012 05:17 EDT
- Very good information by Sabre Schen on February 24 2013 23:38 EST
-
Regarding This Error[ Go to top ]
- Posted by: Rahul R
- Posted on: February 16 2012 09:18 EST
- in response to Chetans
Hello Sir , i would like to know if there was any work around for this error.
We have the same issue at production.
Thanks.
-
Regarding This Error[ Go to top ]
- Posted by: Rahul R
- Posted on: February 20 2012 04:00 EST
- in response to Rahul R
Issue solved.It was a small server side issue.Nothing to do with date time implementation. -
Hello[ Go to top ]
- Posted by: Duke Philips
- Posted on: February 26 2012 07:35 EST
- in response to Rahul R
I also have the same issue like this. -
Regarding This Error[ Go to top ]
- Posted by: Mike Peloso
- Posted on: April 11 2012 13:57 EDT
- in response to Rahul R
Issue solved.It was a small server side issue.Nothing to do with date time implementation.
What was the Server side Issue? Same thing here.
-
java.util.Calendar.setTime(Calendar.java:902)[ Go to top ]
- Posted by: Suresh Balan
- Posted on: April 20 2012 05:17 EDT
- in response to Chetans
I think its a bug, could you share the code. I know its resolved but may be not the right way..
-
Very good information[ Go to top ]
- Posted by: Sabre Schen
- Posted on: February 24 2013 23:38 EST
- in response to Chetans
Very good information. This is vry important, thanks for sharing it. - Texas Lending