187 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
2
answers
104
views
Getting unparsable date error in groovy script
I have below code snippet :
java.util.Calendar calendar = java.util.Calendar.getInstance();
curdate = "2025年01月31日T12:27:00"
def parsedDate = new Date().parse("yyyy-MM-dd'T'HH:mm:ss&...
-1
votes
1
answer
87
views
supress Java checked Exception [duplicate]
I have writen the following code. I know it might not be the correct approach. but this is what i have done.
public class ValidationRule {
private static SimpleDateFormat sdf = new ...
0
votes
1
answer
58
views
difference between ParseException and TokenManagerError (javaCC)
What is the difference between ParseException and TokenManagerError?
Topic: javaCC, generate parser, error message
An example to explain would be good.
Tries to read in literature or error message, ...
1
vote
1
answer
187
views
"WITH x AS " ParseException Error in DataBricks notebook
I'm trying to JOIN two tables in a DataBricks Notebook. The first line in the SQL statement is erroring-out.
I can't determine why. The docs I've read say its typically due to a typo. But that is not ...
0
votes
1
answer
188
views
Why ParseException is not caught?
Why is ParseException not caught here? When I enter a date consisting of more than 4 digits it just accepts it, but it shouldn't as I set lenient to false. When I enter letters for the year I get ...
0
votes
2
answers
160
views
How to convert a date into another date as a String in Java?
I want to convert a date format into another date format. For example, I have this String "05-Apr-23" and I want to convert it into this String "05/04/23". And I did this ...
1
vote
1
answer
1k
views
java.text.ParseException: Unparseable date: "1 Sep, 2022"
In my android app, I am using following code to convert date in other format. But it is not working.
var format = SimpleDateFormat("dd MMM, yyyy")
var date2 = format.parse("1 Sep, 2022&...
1
vote
1
answer
409
views
NumberFormating issue with negative numbers in RTL Locale like Arabic
Locale locale = new Locale("ar", "AE");
NumberFormat format = NumberFormat.getNumberInstance(locale);
System.out.println(format.parse("55-"));
The above ...
1
vote
1
answer
266
views
Passing token in header through variable getting an error of ParseException
Will try to be precise in asking question. Sorry if couldn't do it up to the mark!
Was given an assignment to automate api from the given below link
https://restful-booker.herokuapp.com/apidoc/index....
0
votes
1
answer
280
views
Inserting Data from Dataframe into Ontology using SPARQL and RDFLIB in Python
I created an ontology using protegee and now want to insert data using RDFLIB in python. Because I have to write the update sparql statements in string and my data comes in various types including, ...
0
votes
1
answer
2k
views
Parseexception kw_end missing near 'as'
I am getting parseexception kw_end missing near 'as' error for the below query :
Case
when x=y then
case when g<h then 2 else 0 end
When x=z then
case when i>k then 6 else 0 end
else
...
5
votes
1
answer
5k
views
How to get json column as string in postgresql with jpa criteria builder?
I have a json column in table like:
@Type(type = "jsonb")
@Column(name = "json_data", columnDefinition = "json")
private List<Persion> jsonData = ...
1
vote
1
answer
1k
views
After i added throws ParseException, the parse excception still occured, why?
The question is to calculate the days between two dates. Here's my code
public static void main(String[] args) throws ParseException {
// TODO Auto-generated method stub
SimpleDateFormat sdf=...
0
votes
0
answers
450
views
NiFi Caused by: java.text.ParseException: Unparseable date
I'm trying to insert a flowfile from NiFi into PostgreSQL database. Flowfile is a JSON which keys are: id, timestamp, metric1, metric2, ..., and I have problems with timestamp data.
This is the value ...
0
votes
4
answers
631
views
I have a problem about SimpleDateFormat function in java
I don't know why there is no error. The code is
String datestr = "2021年01月01日";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM");
try {
System.out.println(sdf.parse(...