Project

General

Profile

Revision bb7b4f60

IDbb7b4f601b49f1ba29f149405246f120b4c46a9a
Parent a3e69a37
Child 868c5623

Added by Andreas Kohlbecker about 5 years ago

ref #6118 catching exception during checkConnection

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/source/CdmRemoteSourceBase.java
10 10

  
11 11
import java.util.Map;
12 12

  
13
import org.springframework.remoting.RemoteAccessException;
14

  
13 15
import eu.etaxonomy.cdm.api.application.CdmApplicationRemoteConfiguration;
14 16
import eu.etaxonomy.cdm.api.service.IMetadataService;
15 17
import eu.etaxonomy.cdm.config.CdmSource;
......
132 134
		// the connection is up
133 135
		// if no exception is thrown then we assume that the
134 136
		// connection is up
135
		// FIXME:Remoting is this really correct?
136
		metadataService.getDbSchemaVersion();
137
	    try {
138
	        metadataService.getDbSchemaVersion();
139
	    } catch (RemoteAccessException e) {
140
	        throw new CdmSourceException("RemoteAccessException: " + e.getMessage());
141
	    }
137 142

  
138 143
		return true;
139 144
	}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/CdmStore.java
198 198
            final DbSchemaValidation dbSchemaValidation,
199 199
            final Resource applicationContextBean,
200 200
            RemotingLoginDialog remotingLoginDialog) {
201

  
201 202
        RemotingLoginDialog loginDialog = remotingLoginDialog;
202 203
        if(isActive()) {
203 204
            // before we connect we clear the entity caches and the sessions
......
266 267
            ICdmSource cdmSource) {
267 268
        instance = new CdmStore(applicationController, cdmSource);
268 269
        CdmApplicationState.setCdmServiceCacher(new CdmServiceCacher());
269
        
270

  
270 271
    }
271 272

  
272 273
    private CdmStore(ICdmApplicationConfiguration applicationController,

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)