File tree 3 files changed +9
-3
lines changed
client-api/src/main/java/it/unibo/arces/wot/sepa/commons/properties
engine/src/main/java/it/unibo/arces/wot/sepa/engine/core
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,10 @@ protected Reader getReaderFromUri(String uri) throws SEPAPropertiesException {
241
241
} catch (FileNotFoundException ex ) {
242
242
Logging .logger .warn ("Failed to get file reader: " +ex .getMessage ());
243
243
Logging .logger .info ("Get resource from URI: " +uri );
244
+ if (getClass ().getClassLoader ().getResourceAsStream (uri ) == null ) {
245
+ Logging .logger .fatal ("Resource not found: " +uri );
246
+ throw new SEPAPropertiesException ("Resource not found: " +uri );
247
+ }
244
248
in = new InputStreamReader (Objects .requireNonNull (getClass ().getClassLoader ().getResourceAsStream (uri )));
245
249
}
246
250
}
Original file line number Diff line number Diff line change 41
41
*/
42
42
43
43
public class Engine implements EngineMBean {
44
- private final static String version = "v0.15.3 " ;
44
+ private final static String version = "v0.15.4 " ;
45
45
46
46
private EngineProperties properties = null ;
47
47
Original file line number Diff line number Diff line change @@ -311,8 +311,9 @@ public EngineProperties(String[] args) throws SEPASecurityException {
311
311
try {
312
312
endpointProperties = new SPARQL11Properties (endpointJpar );
313
313
} catch (SEPAPropertiesException e ) {
314
- Logging .logger .error ("Endpoint configuration file not found: " +endpointJpar +"USING DEFAULTS: Jena in memory" );
315
- endpointProperties = new SPARQL11Properties ("in-memory" ,ProtocolScheme .jena_api );
314
+ Logging .logger .fatal ("Endpoint configuration file not found: " +endpointJpar );
315
+ System .exit (-1 );
316
+ //endpointProperties = new SPARQL11Properties("in-memory",ProtocolScheme.jena_api);
316
317
}
317
318
318
319
parsingArgument (args );
@@ -606,6 +607,7 @@ private void parsingArgument(String[] args) throws PatternSyntaxException {
606
607
for (String var : envs .keySet ()) {
607
608
Logging .logger .trace ("Environmental variable " +var +" : " +envs .get (var ));
608
609
setParameter ("-" +var , envs .get (var ));
610
+ setParameter ("-" +var .replace ("_" , "." ), envs .get (var ));
609
611
}
610
612
}
611
613
You can’t perform that action at this time.
0 commit comments