Questions tagged [parseexception]

A Java ParseException gets raised whenever a ParseObject issues an invalid request.

A Java ParseException gets raised whenever a ParseObject issues an invalid request, such as deleting or editing an object that no longer exists on the server, or when there is a network failure preventing communication with the Parse server.

177 questions
-1
votes
4 answers

Convert String to Timestamp Java

So I am having this issue that I can't wrap my head around. I've read similar questions posed but very case I've found there is an issue with the format, and my format is correct. Basically I am trying to convert a String into a Timestamp, and I get…
jensd
  • 31
  • 2
  • 6
-1
votes
3 answers

java.text.parseException:unparsable date

i am getting this error while i am trying to convert a string into date. unparasable data Below is my code:- String str = "hello"
user3005581
  • 31
  • 1
  • 4
-2
votes
5 answers

ParseException when parsing 3 character abbreviated month using SimpleDateFormat

Here is my code, SimpleDateFormat format = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss"); Date dft = (Date) format.parse("16-MAY-2018 09:30:22:000"); I am getting below exception java.text.ParseException: Unparseable date: "16-MAY-2018…
-2
votes
2 answers

SimpleDateFormat don't parse a string with a date when I use setLenient()

I don't understand what is going wrong with the code below: SimpleDateFormat formatter = new SimpleDateFormat("MM.dd.yy hh:mm:ss"); formatter.setLenient(false); formatter.parse("04.29.2017 00:55:05"); When I try to parse the string with a date I…
-2
votes
1 answer

Why do I get a parse exception

this programe should subtract 2 days tare3 and tare4 . tare3 valued from current day (from system ) tare4 value from text file (element [3]) , when i parsed string (element[3]) to date (tare4) its give`me parseexception date saved in file looked…
-3
votes
0 answers

How can I get over ParseExceptions?

In a program, I am using .json files. When creating a custom object named "JSONReader" I have to throw a ParseException. I managed to handle the IOExceptions but I still have to deal with ParseExceptions. I'm trying to figure out what error message…
Nephty
  • 17
  • 1
  • 5
-3
votes
1 answer

ParseException when using SimpleDateFormat.parse("yyyy-MM-dd")

My code looks as follows: (new SimpleDateFormat("yyyy-MM-dd")).parse("0000-12-25") This argument is supposed to pass a date object to a constructor, but I get a ParseException. I tried playing around with Locale.US and Locale.ENGLISH, no…
-3
votes
1 answer

Is ParseException only thrown for conversion from string to date?

I'm trying to become clear about ParseException. Its example focus is "convert from string to date", and I also found: This is a checked exception and it can occur when you fail to parse a String that is ought to have a special format. But I…
-3
votes
1 answer

Android - Unparseable date at offset

i was trying to parse string date to Date, it shows unparseable date at offset. Here is my code. String s= "2014-07-17 10:12:00"; SimpleDateFormat sdfDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z"); Date current = new Date(); Date givenDate…
srinu_stack
  • 107
  • 1
  • 2
  • 7
-3
votes
1 answer

ParseException for number java

ı don't use ParseException and ı didn't find in internet. so please can you give example ParseException ??? ı am waiting your codes. please help me ??? //how is try?? catch(ParseException e){ }
-5
votes
2 answers

Basic Javascript Algorithm (ParseExpression)

Hey i would like to ask, i have simple javascript problems, parse expression from string to array. I really confuse how to do that let string = "1+10-3"; string = ["1","+","10","-","3"]; Result i get it : string = ["1","+","1","0","-","3"]; 1 and…
-5
votes
2 answers

Java SimpleDateFormat Exception: unparseable date

I am trying to get Java to read in a date formatted as follows: Thu Mar 8 13:33:25 2012 But getting an unparseable exception. Here's the code: SimpleDateFormat formatter2 = new SimpleDateFormat("EEE MMM d HH:mm:ss yyyy", Locale.ENGLISH); String…
1 2 3
11
12