Discussions

EJB design: java.util.Calendar.setTime(Calendar.java:902)

  1. java.util.Calendar.setTime(Calendar.java:902) (5 messages)

    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 (5)

  2. Regarding This Error[ Go to top ]

    Hello Sir , i would like to know if there was any work around for this error.

    We have the same issue at production.

    Thanks.

  3. Regarding This Error[ Go to top ]

    Issue solved.It was a small server side issue.Nothing to do with date time implementation.
  4. Hello[ Go to top ]

    I also have the same issue like this.
  5. Regarding This Error[ Go to top ]

    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.

  6. I think its a bug, could you share the code. I know its resolved but may be not the right way..