Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
4b5a0194
Commit
4b5a0194
authored
Dec 02, 2019
by
Piotr Gawron
Browse files
hibernate exceptions on uploading project weren't caught properly
parent
eb818a26
Pipeline
#17291
failed with stage
in 16 minutes and 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
4b5a0194
...
...
@@ -3,6 +3,8 @@ minerva (14.0.5) stable; urgency=medium
content
dialog
could
crash
upload
(#
1040
)
*
Bug
fix
:
some
annotators
(
like
Cazy
)
were
crashing
on
old
installations
(#
1029
)
*
Bug
fix
:
uploading
a
map
that
breaks
postgres
constraints
hung
upload
of
the
project
(#
1028
)
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Mon
,
02
Dec
2019
16
:
00
:
00
+
0200
...
...
service/src/main/java/lcsb/mapviewer/services/impl/ProjectService.java
View file @
4b5a0194
...
...
@@ -5,6 +5,7 @@ import java.util.*;
import
java.util.concurrent.CountDownLatch
;
import
javax.mail.MessagingException
;
import
javax.persistence.PersistenceException
;
import
org.apache.commons.io.FileUtils
;
import
org.apache.logging.log4j.LogManager
;
...
...
@@ -394,7 +395,7 @@ public class ProjectService implements IProjectService {
}
logger
.
info
(
"Project "
+
project
.
getProjectId
()
+
" created successfully."
);
}
catch
(
Hibernat
eException
e
)
{
}
catch
(
Persistenc
eException
e
)
{
outOfMemoryBuffer
=
null
;
logger
.
error
(
"Problem with database"
,
e
);
handleHibernateExceptionReporting
(
params
,
e
);
...
...
@@ -1050,7 +1051,7 @@ public class ProjectService implements IProjectService {
* @param e
* exception that occurred during uploading of the project
*/
private
void
handleHibernateExceptionReporting
(
CreateProjectParams
params
,
Hibernat
eException
e
)
{
private
void
handleHibernateExceptionReporting
(
CreateProjectParams
params
,
Persistenc
eException
e
)
{
// we need to open separate thread because current one thrown db exception
// and transaction is corrupted and will be rolledback
Thread
reportInSeparateThread
=
new
Thread
(
new
Runnable
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment