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.

188 questions
0
votes
1 answer

Android SimpleDateFormat gives different timezone on different Android version

I've read many answers to this issue but couldn't figure out why this is happening. Below is the code. Creating date format instance variable in the constructor of a class: format = new SimpleDateFormat("ddMMyy",Locale.US);…
0
votes
1 answer

SimpleDateFormat ParseException: Unparseable date

I want to parse the following date: 24 07 2017 3:47:57 AM with the following format: SimpleDateFormat df2 = new SimpleDateFormat("dd MM yyyy hh:mm:ss a"); df2.setTimeZone(TimeZone.getTimeZone("UTC")); try { df2.parse(dateStr + " "+…
farahm
  • 1,326
  • 6
  • 32
  • 70
0
votes
0 answers

Fetch contacts from google contact api java

I am able to get access token for google contact API. Now I am not able to figure out how to use that token to fetch contacts. The method available in Google Contact API documentation does not involve access token. Also I don't know how to call that…
prsht
  • 11
  • 2
0
votes
2 answers

Hive create external table

I'm trying to create the table in the hive but am getting the below-mentioned error. Can anyone help me what is the issue? CREATE EXTERNAL TABLE IF NOT EXISTS flightInfo2008 (Year INT, Month INT, DayofMonth INT, DayOfWeek INT, DepTime…
mia
  • 73
  • 10
0
votes
1 answer

JavaCC get ParseException error when lookahead > 0

I'm getting this error when I try to make a simple parser. The parser should be accepting (01|10|00|11)*(00|11). When I use lookahead = 0, 00100100 will trigger an error, even though its a correct input. Because JavaCC read it as 00 1 00 1 00, not…
tettra
  • 3
  • 3
0
votes
2 answers

why the ParseException appears when use SimpleDateFormat

I wrote the code below with eclipse: String d = "2014-6-1 21:05:36"; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date date =sdf.parse(d); System.out.print(date); and the line 4 throws an Unhandled exception…
luckydog
  • 21
  • 1
  • 4
0
votes
0 answers

ParseUser SignUpInBackground issue: Value == Null

I've been trying to use the Parse library to access MongoDB in order to create users or objects for my Android application. The issue is that every time I attempt to SignUpInBackground or SignInInBackground I get this super unspecific…
Seithes
  • 1
  • 2
0
votes
2 answers

Unable to parse comma separated string amount. Originally with Currency symbol

I'm trying to convert a String money value which is comma-separated. It originally has a currency sign. In this case, the Peso sign. What I did was to remove the Pesos sign first and get the value from column 2 of JTable which gave me a String…
heisenberg
  • 1,784
  • 4
  • 33
  • 62
0
votes
1 answer

ParseException while parsing string to date

I want to parse string format "9/7/2016 07:40 p.m." into date. But I am getting parse exception. I tried using two three formats. But still getting the Exception. I want to compare this parsed date with current date. SimpleDateFormat df = new…
user6265109
0
votes
2 answers

JavaParser: Constructor ParseException(String) is undefined

in another thread about JavaParser you wrote: "it should not have any dependency". But JavaParser has a dependency to a special ParseException: In JavaParser, line 205: throw new ParseException(ioe.getMessage()) The constructor…
Fifi
  • 13
  • 6
0
votes
3 answers

Android: Simple Date Format Parse Exception

I am trying to use Simple date Format for change the data, but am getting the parse exception java.text.ParseException: Unparseable date: "11/08/2016 02:00:00 PM" (at offset 20) at java.text.DateFormat.parse(DateFormat.java:579) My input date is…
Binil Surendran
  • 2,524
  • 6
  • 35
  • 58
0
votes
2 answers

Unable to Parse the Date, ParseException is thrown

Unable to parse the given date String DT = "14 Jun 2016 09:54:02 GMT"; DateFormat simpleDateFormat = new SimpleDateFormat("dd MM yyyy HH:mm:ss z"); Date date = simpleDateFormat.parse(DT); after this I want to convert to CST Time in this…
0
votes
1 answer

Teradata conversion to hive sql

I am trying to convert the below teradata sql to hive sql but am getting error near the end line :ParseException line 83:6 missing ) at 'qualify' near 'qualify' line 83:14 missing EOF at 'row_number' near 'qualify' I am very new to hive . Any help…
0
votes
1 answer

Simpledateformat Error - unparseable date Mon Dec 14 13:25:00 CET 2015

I am receiving this standard date time from server: Mon Dec 14 13:25:00 CET 2015 I use this code to covert it into date: DateFormat formatter; //"Mon Dec 14 13:25:00 CET 2015 formatter = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy"); But…
0
votes
1 answer

SimpleDateFormat throws exception on a real phone but works correctly on an emulator

Trying to format date and put it into TextView in Android Studio from Mon, 29 Feb 2016 22:31:00 GMT to 2016-02-29 22:31:00 In my Genymotion Google Nexus 5, Samsung Galaxy S5, etc devices it looks perfect. When i run this application on a real…