New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.sql.BatchUpdateException #5
Comments
I'm sorry, the error message is not very informative. My guess is something went wrong earlier, causing the rest of the script to fail. Do you have any information on what happens right at the moment when these messages start? |
I'm sorry, but I saw only this kind of error message. When I parse one XML file, it's OK. But when I try to parse multiple XML files, it shows like this. |
Hi @schuemie , https://raw.githubusercontent.com/phearun008/pubmed-log/master/log.txt |
It's working fine now. |
Why giving this error? No article was inserted to PostgreSQL.
|
I'm afraid these error messages aren't very informative. Most likely something else has gone wrong before these commands, and the connection has been terminated. I've just created a new release that should provide better error messaging. Could you try that one? |
Here are the errors printed on screen:
My "ini" file: |
Hmmm, the error message says a value is more than 255 characters, and therefore cannot fit in a The odd thing is that if you ran the analysis on all XML files, it should already have figured out those fields should be of type Could you check what the type of those two fields is? If they are not of type |
I changed them to
|
When parsing, I have another problem shown below. I already deleted all records before parsing. Is it possible to solve this?
|
I ran tool again, still the same:
|
The problem appears to be a duplicate primary key. Have you tried truncating all tables and just starting from scratch? |
Just 45min ago, I dropped database. Now tool analysing. I will report it to
you.
31 Oca 2018 16:08 tarihinde "Martijn Schuemie" <notifications@github.com>
yazdı:
… The problem appears to be a duplicate primary key. Have you tried
truncating all tables and just starting from scratch?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AcuNU2RxohX_-nOkzTniLTY2M_jblsGaks5tQGXmgaJpZM4PZJL->
.
|
Bad news. ` Processing pubmed18n0779.xml.gz Processing pubmed18n0780.xml.gz Exception in thread "Thread-0" |
I dropped all db and started with 20GB memory for java. Then problem gone! Java sometimes makes me so angry. Sorry for my disturbance... |
Hello Sir,
Thanks for your working hard with this library. I've been using your library to parse Medline data from XML to RDBMS, and I'm facing some problems like the image shown below.
I would like to know what is the problem and if there are any solutions with this?
Thanks,
The text was updated successfully, but these errors were encountered: