List of usage examples for java.util.logging Level WARNING
Level WARNING
To view the source code for java.util.logging Level WARNING.
Click Source Link
From source file:de.digiway.rapidbreeze.server.model.storage.provider.ShareOnlineBizTest.java
@Before public void setup() throws IOException { boolean hasHoster = StorageDownloadTestUtil.hasStorageDownload(ShareOnlineBizTest.class); if (!hasHoster) { LOG.log(Level.WARNING, "Not going to execute test class:{0} because properties are missing", ShareOnlineBizTest.class.getSimpleName()); }//from ww w. j a v a 2 s . co m Assume.assumeTrue(hasHoster); storageDownload = new ShareOnlineBiz(); storageDownload.authenticate(StorageDownloadTestUtil.getUsername(ShareOnlineBizTest.class), StorageDownloadTestUtil.getPassword(ShareOnlineBizTest.class)); url = new URL(StorageDownloadTestUtil.getTestLink(ShareOnlineBizTest.class)); }
From source file:edu.usu.sdl.openstorefront.service.manager.MailManager.java
public static void init() { //pull properties String server = PropertiesManager.getValue(PropertiesManager.KEY_MAIL_SERVER); String serverPort = PropertiesManager.getValue(PropertiesManager.KEY_MAIL_SERVER_PORT); String serverUser = PropertiesManager.getValue(PropertiesManager.KEY_MAIL_SERVER_USER); String serverPW = PropertiesManager.getValue(PropertiesManager.KEY_MAIL_SERVER_PW); String useSSL = PropertiesManager.getValue(PropertiesManager.KEY_MAIL_USE_SSL); String useTLS = PropertiesManager.getValue(PropertiesManager.KEY_MAIL_USE_TLS); if (StringUtils.isNotBlank(server)) { TransportStrategy transportStrategy = TransportStrategy.SMTP_PLAIN; if (Convert.toBoolean(useSSL)) { transportStrategy = TransportStrategy.SMTP_SSL; } else if (Convert.toBoolean(useTLS)) { transportStrategy = TransportStrategy.SMTP_TLS; }//from ww w. java 2 s . com mailer = new Mailer(server, Convert.toInteger(serverPort), serverUser, serverPW, transportStrategy); } else { log.log(Level.WARNING, "No mail server is set up. See application properties file to configure."); } }
From source file:ca.sfu.federation.utils.ParametricModelFilter.java
/** * Determine whether the file is a directory. * @param f File./*w ww. ja v a 2 s.co m*/ * @return True if the file is a directory, false otherwise. */ public boolean accept(File f) { try { if (f.getCanonicalPath().endsWith("\\.mdl")) { return true; } } catch (IOException ex) { String stack = ExceptionUtils.getFullStackTrace(ex); logger.log(Level.WARNING, "{0}", stack); } return false; }
From source file:com.symbian.driver.core.controller.utils.ControllerUtils.java
/** * Returns the certificate file.// w w w. j av a 2 s . c om * * @return The file location of the SIS file certificate. * @throws IOException If the certificate has an I/O problem. */ public static final File getCert() throws IOException { if (sCert == null) { String lCert = null; try { lCert = TDConfig.getInstance().getPreference(TDConfig.CERT); } catch (ParseException lParseException) { LOGGER.log(Level.WARNING, "Could not get the custom Certificate Location.", lParseException); } if (lCert != null && new File(lCert).isFile()) { sCert = new File(lCert); return sCert; } if ((sCert = JarUtils.extractResource(ControllerUtils.class, "/resource/testdriver.cert")) == null) { throw new IOException("Could not extract Certificate."); } try { TDConfig.getInstance().setPreference(TDConfig.CERT, sCert.getAbsolutePath()); } catch (ParseException lParseException) { LOGGER.log(Level.SEVERE, "Could not set cetificate location in config.", lParseException); } } return sCert; }
From source file:com.joyfulmongo.db.ContainerObjectDate.java
@Override public void onQuery(String collectionName, JSONObject theChild) { JSONObject childJson = theChild.getJSONObject(key); String iso = childJson.getString("iso"); try {//from w ww.j a v a 2s . c o m Date date = Utils.getParseDateFormat().parse(iso); theChild.put(key, date); } catch (ParseException e) { // do nothing LOGGER.log(Level.WARNING, "Wrong format of date string, skip convert."); } }
From source file:net.erdfelt.android.sdkfido.configer.EnumConverter.java
public EnumConverter(Class<?> type) { this.enumclass = type; this.values = new HashMap<String, Object>(); for (Field f : enumclass.getFields()) { if (f.isEnumConstant()) { String key = f.getName().toUpperCase(); try { Object val = f.get(null); values.put(key, val); } catch (IllegalArgumentException e) { LOG.log(Level.WARNING, "Unable to get value for field " + type.getName() + "#" + f.getName(), e);//ww w . ja va 2s. c o m } catch (IllegalAccessException e) { LOG.log(Level.WARNING, "Unable to get value for field " + type.getName() + "#" + f.getName(), e); } } } }
From source file:com.microsoft.azuretools.adauth.ResponseUtils.java
public static AuthorizationResult parseAuthorizeResponse(String webAuthenticationResult, CallState callState) throws URISyntaxException, UnsupportedEncodingException { AuthorizationResult result = null;/*www . java 2 s .c om*/ URI resultUri = new URI(webAuthenticationResult); // NOTE: The Fragment property actually contains the leading '#' character and that must be dropped String resultData = resultUri.getQuery(); if (resultData != null && !resultData.isEmpty()) { // Remove the leading '?' first Map<String, String> map = UriUtils.formQueryStirng(resultData); if (map.containsKey(OAuthHeader.CorrelationId)) { String correlationIdHeader = (map.get(OAuthHeader.CorrelationId)).trim(); try { UUID correlationId = UUID.fromString(correlationIdHeader); if (!correlationId.equals(callState.correlationId)) { log.log(Level.WARNING, "Returned correlation id '" + correlationId + "' does not match the sent correlation id '" + callState.correlationId + "'"); } } catch (IllegalArgumentException ex) { log.log(Level.WARNING, "Returned correlation id '" + correlationIdHeader + "' is not in GUID format."); } } if (map.containsKey(OAuthReservedClaim.Code)) { result = new AuthorizationResult(map.get(OAuthReservedClaim.Code)); } else if (map.containsKey(OAuthReservedClaim.Error)) { result = new AuthorizationResult(map.get(OAuthReservedClaim.Error), map.get(OAuthReservedClaim.ErrorDescription), map.get(OAuthReservedClaim.ErrorSubcode)); } else { result = new AuthorizationResult(AuthError.AuthenticationFailed, AuthErrorMessage.AuthorizationServerInvalidResponse); } } return result; }
From source file:net.bluemix.connectors.core.creator.CouchDbInstanceCreator.java
@Override public CouchDbInstance create(CloudantServiceInfo serviceInfo, ServiceConnectorConfig serviceConnectorConfig) { HttpClient httpClient;/*from w ww. ja va2 s . c o m*/ try { httpClient = new StdHttpClient.Builder().url(serviceInfo.getUrl()).build(); return new StdCouchDbInstance(httpClient); } catch (MalformedURLException e) { LOG.logp(Level.WARNING, CouchDbInstanceCreator.class.getName(), "create", "Error parsing URL", e); return null; } }
From source file:com.moneydance.modules.features.importlist.io.DirectoryValidator.java
@Override public boolean accept(final File file) { try {//from w w w. j a v a 2s . c om return FileFilterUtils.and(CanReadFileFilter.CAN_READ, FileFilterUtils.directoryFileFilter()) .accept(file); } catch (SecurityException e) { LOG.log(Level.WARNING, e.getMessage(), e); return false; } }
From source file:com.levalo.contacts.view.ContactView.java
public void doCreateOrUpdateContact() { try {/*from w w w .j a v a 2s .c o m*/ contactService.createOrUpdate(this.contact); this.init(); } catch (ServiceException ex) { logger.log(Level.WARNING, ex.getMessage()); } }