Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
b14c93d6
Commit
b14c93d6
authored
Jun 26, 2020
by
Piotr Gawron
Browse files
handle situation where there is problem with dapi properly
parent
fc0cc75a
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
b14c93d6
minerva
(
15.0.1
)
stable
;
urgency
=
medium
*
Bug
fix
:
when
there
was
problem
with
DAPI
minerva
threw
unexpected
error
(#
1316
)
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Fri
,
26
Jun
2020
11
:
00
:
00
+
0200
minerva
(
15.0.0
)
stable
;
urgency
=
medium
*
Backward
incompatible
:
old
connection
to
CTD
is
removed
and
replaced
with
new
Data
-
API
interface
that
closely
check
license
compliance
...
...
annotation/src/main/java/lcsb/mapviewer/annotation/services/dapi/DapiConnectorImpl.java
View file @
b14c93d6
...
...
@@ -220,6 +220,7 @@ public class DapiConnectorImpl extends CachableInterface implements DapiConnecto
List
<
String
>
result
=
new
ArrayList
<>();
String
url
=
DAPI_BASE_URL
+
"database/"
;
String
content
=
getWebPageDownloader
().
getFromNetwork
(
url
);
logger
.
debug
(
content
);
JsonArray
array
=
new
JsonParser
()
.
parse
(
content
)
.
getAsJsonObject
()
...
...
@@ -230,7 +231,7 @@ public class DapiConnectorImpl extends CachableInterface implements DapiConnecto
result
.
add
(
array
.
get
(
i
).
getAsJsonObject
().
get
(
"name"
).
getAsString
());
}
return
result
;
}
catch
(
IO
Exception
e
)
{
}
catch
(
Exception
e
)
{
throw
new
DapiConnectionException
(
"Problem with accessing dapi"
,
e
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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