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
0
votes
1 answer

How to resolve java.text.ParseException

I'm having a directory which is having the folders with the name of date format. I have a code to delete the folders which are in format other than the date format.Its working but throwing Exception. My code is: DateFormat dateFormat=new…
Vignesh Vino
  • 1,182
  • 4
  • 20
  • 49
0
votes
1 answer

android sip api SipProfile builder probleme

hi am working on android sip api i have a problem with creating profile. i have tested 2 methodes : 1) try { SipProfile.Builder builder = new SipProfile.Builder("sip:165@40.134.279.145"); builder.setPassword("******"); …
Kolombo90
  • 41
  • 8
0
votes
4 answers

How to JUnit test ParseException

So, I am working on a project, and I have to test if my method catches a ParseException when it occures. Here is how the method that I need to test looks like: public void convertToModel(final BuildStone bs, final TextBuildStone model) { try { …
user2440009
  • 13
  • 1
  • 4
0
votes
1 answer

Unparseable date at offset 25

I'm having trouble fixing the issue. I'm trying to parse a date string 2013-05-23T19:00:00GMT-00 into the StandardFormat which is yyyy-MM-dd'T'HH:mm:ssz but I always get a ParseException at position 25. // Get a human readable format. …
Alessandro
  • 175
  • 2
  • 17
0
votes
1 answer

SimpleDateFormatter throws ParseException

I have these two methods that are written right now. As the scenario goes, when I grab a data field from the database, it is in BigDecimal format. So I decided to write a test for it (the formatDate() method). I pass in the BigDecimal to the…
ResourceReaper
  • 487
  • 2
  • 10
  • 26
-1
votes
2 answers

Need to Format String Date in different format in java

I have a String date "30 Aug 2019". I want to format in "2019-08-30'. I am trying with following code. It is not working. String input = "30 Aug 2019"; Date date = sdf.parse(input); // Date to String: String strDate =…
Shashank
  • 9
  • 3
-1
votes
2 answers

Java: Unparseable date error

I have a date in the following format: 2017-04-09T11:15:39.200+03:00 I used the following format string: new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); But i am getting an exception" java.text.ParseException: Unparseable date:…
john paul
  • 1
  • 2
-1
votes
1 answer

com.ibm.icu.text.DecimalFormat always throws ParseException

With the following code I only want to allow positive numbers. For some reason i am not even able to parse the strings correctly: DecimalFormat dfNoNegative = new DecimalFormat("#,##0.00"); dfNoNegative.setNegativePrefix(""); try { …
XtremeBaumer
  • 5,158
  • 1
  • 15
  • 44
-1
votes
1 answer

ParseException cannot find symbol getErrorOffset

Using JavaCC 6.0_1, with JDK_VERSION set to (the default of) 1.5, I'm unable to use the getErrorOffset method of ParseException - despite the Java docs stating that it exists. Is there something I've missed? Minimum example: PARSER_BEGIN(B) class B…
-1
votes
1 answer

How to make custom JavaCC Exception messages?

I want to just start this of by saying I know that a similar question exists here: How to create specific error messages based on parse exceptions in JavaCC But I don't have the required 50 rep to comment on it to ask my question. I'm trying to…
Rikg09
  • 137
  • 2
  • 2
  • 12
-1
votes
2 answers

Extract only mp4 links by jsoup

I have aEditText to insert the URL, a button to lunch the HTML parsing and another EditText to show the results, how to i extract a website source with jsoup only that links ended with .mp4 ? This is my profile…
ring4
  • 3
  • 4
-1
votes
2 answers

java.text.ParseException: Unparseable date but still the code works

I am trying to create a service that does a series of operations on a database and then returns a set of information. Among these information there's the birthdate of a series of customers. When I try to parse (and then format) this dates I get…
Leon
  • 443
  • 1
  • 8
  • 27
-1
votes
1 answer

String to date conversion having exception in parsing

Hi I need to convert string to date below is my code, String string = "January 2, 2010"; DateFormat format = new SimpleDateFormat("MM/dd/yyyy", Locale.ENGLISH); Date date = format.parse(string); System.out.println("Date././."+date); If i run my…
Suganth.MKR
  • 35
  • 1
  • 6
-1
votes
2 answers

Unparseable date error

I have this java.text.ParseException: Unparseable date: "Thu, 21 Apr 2016 18:00:00 +0000" (at offset 26) when using new SimpleDateFormat("E, dd MMMM yyyy hh:mm:ss a", Locale.ROOT); Why is that can be? EDIT: This is correct answer due to parsing…
Kyryl Zotov
  • 1,366
  • 2
  • 19
  • 38
-1
votes
1 answer

java.text.ParseException: Unparseable date: "20, 1 20, 2016 10:28 am" (at offset 0)

I am working on android application in which i want to parse my date according to my format. But i am getting Unparseable date exception on it. My code is given below, please help me out to parse my date according to my format. …
1 2 3
11
12