Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    Try this-

    SimpleDateFormat sdf = new SimpleDateFormat("hh:mm:ssaa");

Solutions on the web

via Stack Overflow by Abhilash
, 1 year ago
Unparseable date: "2016-09-06 05:18:06.023 PM" (at offset 24) Weird part is that the device on which this exception has occurred is a friend's Nexus 5. However, if I debug this same string on my Nexus 5 / several other emulators, it works fine. Here
via GitHub by MisterY
, 2 years ago
via GitHub by eichelbe
, 1 year ago
Unparseable date: "02/06/2017,15:56:00"
via Stack Overflow by Piotr
, 1 year ago
Unparseable date: "24 Oct 2016 7:31 pm" (at offset 3) W/System.err:
via Oracle Community by 807607, 1 year ago
Unparseable date: "02/09/20 05 07:30:3a GMT+05:26"
via Stack Overflow by hdf
, 1 year ago
java.text.ParseException: Unparseable date: "2016-09-06 05:18:06.023 PM" (at offset 24) Weird part is that the device on which this exception has occurred is a friend's Nexus 5. However, if I debug this same string on my Nexus 5 / several other emulators, it works fine. Here is the code that I'm using. SimpleDateFormat belongs to java.text package. Date belongs to java.util package     SimpleDateFormat formatGMT = new SimpleDateFormat("yyyy-MM-dd KK:mm:ss.SSS a");
    formatGMT.setTimeZone(TimeZone.getTimeZone("GMT"));
    try {
      date = formatGMT.parse("2016-09-06 05:18:06.023 PM");
     } catch (ParseException e) {
      Crashlytics.log(Log.ERROR, "DB Insertion error", e.getMessage().toString());
      Crashlytics.logException(e);
      e.printStackTrace();
     }
 Here is the full stack trace.   # Crashlytics - plaintext stacktrace  Wed, 07 Sep 2016 03:37:44 GMT
# Platform: android
# Bundle Identifier: com.mypackage.app
# Issue #: 306
# Date: 2016-09-06T17:18:04Z
# OS Version: 6.0.1
# Device: Nexus 5
# RAM Free: 36.5%
# Disk Free: 11%
#0. Crashed: pool-3-thread-3: 0 0 0x0000000000000000	at java.text.DateFormat.parse(DateFormat.java:579)	at com.mypackage.app.MyService$16$1.execute(MyService.java:1670)	at io.realm.Realm$1.run(Realm.java:1187)	at io.realm.internal.async.BgPriorityRunnable.run(BgPriorityRunnable.java:34)	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)	at java.util.concurrent.FutureTask.run(FutureTask.java:237)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)	at java.lang.Thread.run(Thread.java:818)