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

Java's ParseException

I've been investigating Java's ParseException, when trying to write my own method that parses from a String to an int, and have two questions: When should I throw it? Java's Integer.parseInt(String string) throws a NumberFormatException when an…
4
votes
4 answers

MismatchedTokenException on hive create table query

I'm trying to create a Hive table with the following query: CREATE TABLE IF NOT EXISTS BXDataSet (ISBN STRING, BookTitle STRING, BookAuthor STRING, YearOfPublication STRING, Publisher STRING, ImageURLS STRING, …
bachr
  • 4,844
  • 10
  • 48
  • 82
4
votes
2 answers

ParseException for org.osmdroid.DefaultResourceProxyTest

When I try to run this Android project in Eclipse Kepler 4.3.2 on Ubuntu 13.10. the dexer throws this ParseException: $ Dx UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dx.cf.iface.ParseException: class name …
JJD
  • 44,755
  • 49
  • 183
  • 309
3
votes
4 answers

struck in parsing custom data format in java

I am trying to parse the date in a particular custom format. WEDNESDAY 25th JAN 2012 - 12:44:07 PM like this.. I created a SimpleDateFormat for this.. SimpleDateFormat sdf = new SimpleDateFormat("EEEE DD MMM YYYY - HH:MM:SS aa" ); the problem is…
karthik
  • 441
  • 4
  • 15
3
votes
1 answer

SEVERE: Parse error in application web.xml file

I'm trying to deploy an application on tomcat 7.0.23 (the web app is all compiled and built), and I've been getting this error in catalina.out: INFO: validateJarFile(/Library/Tomcat/webapps/app2/WEB-INF/lib/javaee-api-6.0.jar) - jar not loaded. See…
David Zhao
  • 3,726
  • 11
  • 42
  • 58
3
votes
5 answers

Java ParseException while attempting String to Date parsing

I'm having a hard time Parsing/Formatting a Date string received back from a web service. I've attempted multiple approaches, but with no luck. Sample Date String: 2011-10-05T03:00:00Z Exception: W/System.err(10072): java.text.ParseException:…
hooked82
  • 6,026
  • 4
  • 38
  • 44
3
votes
6 answers

Calculating days between two dates in JAVA (catch ParseException error)

I’m trying to calculate the number of days between 2 dates. When I run this, it throws the catch (ParseException ex). import java.text.SimpleDateFormat; import java.text.ParseException; import java.util.Date; import…
M0nzter
  • 53
  • 4
3
votes
2 answers

Android Parse Exception when I build

I am developing an app for my family business and I can't figure out what the source of this build time error is? Error:com.android.dx.cf.iface.ParseException: class name (BaseHTTPServer$py) does not match path (Lib/BaseHTTPServer$py.class) I…
Fischerk12
  • 125
  • 1
  • 9
3
votes
1 answer

ParseException: Encountered "/" content.xml for list type

I was trying to generate a PDF from an existing ODT template with list fields. My ODT template looks like the following. And I have a method to get ByteArrayOutputStream object for further processing. public ByteArrayOutputStream…
Philip John
  • 4,128
  • 8
  • 34
  • 60
3
votes
3 answers

java.lang.IllegalArgumentException: Parse error - Date format error?

I am storing the current date in SQLite db using the variable CURRENT_DATE. I found that the date format used is yyyy-mm-dd in the same. I want to parse the date in the code but I get this error: java.lang.IllegalArgumentException: Parse error: …
Java Enthusiast
  • 1,131
  • 1
  • 13
  • 29
3
votes
2 answers

How to parse String to BigDecimal without getting error

When I want to parse value from String array to BigDecimal I have this error: Exception in thread "main" java.text.ParseException: Unparseable number: "86400864008640086400222" I am searching on internet for the solution how to fix this. Maybe you…
Agnes
  • 33
  • 1
  • 5
3
votes
3 answers

SimpleDateFormat possible error in method parse

I receive a string that represent a date, I need convert this string to date, and validate that the string is a valid date. I receive the string 33-12-2013 a the parse method return a date 01-01-2014, the code: Date…
victorpacheco3107
  • 752
  • 3
  • 10
  • 26
3
votes
1 answer

org.apache.el.parser.ParseException: Encountered "(" at line X, column Y. Was expecting one of [...]

The below JSF snippet: Throws this exception: Encountered "(" at line 1, column 18. Was expecting one of: "}" ... "." ... "[" ... ">" ... "gt" ... "<" ... "lt" ... ">=" ... "ge" ... "<=" ...…
Shankar
  • 145
  • 2
  • 7
  • 16
2
votes
2 answers

How to make a program that reads a date and calculate the number of days left until the end of year?

i have a really simple problem, i don't know how to deduct the user's date by 01/01 / (the user year) +1. Im really stuck at this point. public static void main(String[] args) { String date; Scanner teclado = new Scanner (System.in); …
2
votes
1 answer

Handle SAX parserexception

I have a problem with a SAX xml parser. I want to parse a xml file which obviously is not valid (I get an ExpatParser$ParseException: At line 5, column 169: not well-formed (invalid token)). I know what is wrong, but the xml file ist not created by…
jpm
  • 2,686
  • 1
  • 15
  • 20
1
2
3
11 12