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
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
2 answers

How to fix 'Date Time Parse Exception' in Java

I have a Date Time Formatter Which I am trying to format inputted dates into format (d/MM/yyyy) Shown Below DateTimeFormatter format = DateTimeFormatter.ofPattern("dd/MM/yyyy"); I am then using this formatter to take user input on date of birth as…
Chornologic
  • 117
  • 2
  • 8
2
votes
3 answers

Date Function is trimming seconds where seconds is 00

OffsetDateTime odtB = OffsetDateTime.parse("2019-02-02T13:55:00Z"); odtB.toString() prints 2019-02-02T13:55 as output. As because of this my conversion function is throwing error!! SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM\''YY…
KNDheeraj
  • 834
  • 8
  • 23
2
votes
2 answers

Getting ParseException on Transport.send(message)

For some reason I'm getting a javax.mail.internet.ParseException when I call Transport.send() on a MimeMessage. This worked before when it was only a plain text email, but when I changed it to have both text and html it started blowing up. Any…
TomahawkPhant
  • 1,130
  • 4
  • 15
  • 33
2
votes
1 answer

How to fix Velocity's ParseErrorException?

I'm passing to velocity template comma separated values and while starting I receive ParseErrorException. How to fix it? #set ($test=StringUtils.split($filterFieldCSV,",")) #foreach ( $filterField in $test )