List of usage examples for java.util.logging Level SEVERE
Level SEVERE
To view the source code for java.util.logging Level SEVERE.
Click Source Link
From source file:com.mmone.gpdati.config.GpDatiDbRoomMap.java
public GpDatiDbRoomMap(Database database) { this.database = database; try {// w w w. j ava2 s . c o m loadAll(); } catch (SQLException ex) { Logger.getLogger(GpDatiDbRoomMap.class.getName()).log(Level.SEVERE, null, ex); } }
From source file:com.crocodoc.ws.implementacao.WebServicesCrocoDoc.java
@Override public Boolean delete(String uuid) { try {/*from w ww . ja v a 2 s.c o m*/ return CrocodocDocument.delete(uuid); } catch (CrocodocException ex) { Logger.getLogger(WebServicesCrocoDoc.class.getName()).log(Level.SEVERE, null, ex); } return null; }
From source file:com.nebel_tv.content.utils.ConnectionUtils.java
/** * * @param url/*from w w w . ja v a2 s .c om*/ * @return * @throws Exception */ public static InputStream getResponseAsStream(String url) throws Exception { if (ids.empty()) { init(); } String developerId = ids.pop(); url = url + "&Developerid=" + developerId; try { String result = IOUtils.toString(new URL(url)); ids.push(developerId); return new ByteArrayInputStream(result.getBytes()); } catch (MalformedURLException ex) { Logger.getLogger(ConnectionUtils.class.getName()).log(Level.SEVERE, null, ex); } catch (IOException ex) { Logger.getLogger(ConnectionUtils.class.getName()).log(Level.WARNING, null, ex); } return null; }
From source file:com.me.SmartContracts.Utils.DocumentReader.java
public static String readDocument(String filepath, String fileName) { Tika tika = new Tika(); final File folder = new File(filepath); String fileEntry = filepath + fileName; String filetype = tika.detect(fileEntry); System.out.println("FileType " + filetype); BodyContentHandler handler = new BodyContentHandler(-1); Metadata metadata = new Metadata(); FileInputStream inputstream = null; try {//from w ww .j av a 2 s.c om inputstream = new FileInputStream(fileEntry); } catch (FileNotFoundException ex) { Logger.getLogger(ElasticSearch.class.getName()).log(Level.SEVERE, null, ex); } ParseContext pcontext = new ParseContext(); //parsing the document using PDF parser PDFParser pdfparser = new PDFParser(); try { pdfparser.parse(inputstream, handler, metadata, pcontext); } catch (IOException ex) { Logger.getLogger(ElasticSearch.class.getName()).log(Level.SEVERE, null, ex); } catch (SAXException ex) { Logger.getLogger(ElasticSearch.class.getName()).log(Level.SEVERE, null, ex); } catch (TikaException ex) { Logger.getLogger(ElasticSearch.class.getName()).log(Level.SEVERE, null, ex); } //getting the content of the document docText = handler.toString().replaceAll("(/[^\\da-zA-Z.]/)", ""); outputArray = docText.split("Article|Section|Borrower|Agents"); return docText; }
From source file:com.webpagebytes.cms.utility.CmsConfigurationFactory.java
public static CmsConfiguration getConfiguration() { if (configuration == null) { InputStream is = null;/* w ww.ja v a2 s. c om*/ synchronized (lock) { try { try { is = new FileInputStream(configPath); } catch (FileNotFoundException e) { is = CmsConfigurationFactory.class.getClassLoader().getResourceAsStream(configPath); } XMLConfigReader reader = new XMLConfigReader(); configuration = reader.readConfiguration(is); } catch (Exception e) { log.log(Level.SEVERE, e.getMessage(), e); return null; } finally { IOUtils.closeQuietly(is); } } } return configuration; }
From source file:researchbehaviour.MoreAboutApplicant.java
/** * @param args the command line arguments *//*from ww w .j a v a 2 s . c om*/ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(MoreAboutApplicant.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(MoreAboutApplicant.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(MoreAboutApplicant.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(MoreAboutApplicant.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> //</editor-fold> //</editor-fold> //</editor-fold> //</editor-fold> //</editor-fold> //</editor-fold> //</editor-fold> //</editor-fold> //</editor-fold> //</editor-fold> //</editor-fold> //</editor-fold> //</editor-fold> //</editor-fold> //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { try { new MoreAboutApplicant().setVisible(true); } catch (IOException ex) { Logger.getLogger(MoreAboutApplicant.class.getName()).log(Level.SEVERE, null, ex); } } }); }
From source file:com.nessacademy.connection.QueryInstance.java
public String getQuery(String query) { this.queryLoader = QueryLoader.instance(); try {/*from ww w .ja va 2s. c o m*/ Map<String, String> queries = queryLoader.load(SQL_FILE); return queries.get(query); } catch (IOException ex) { Logger.getLogger(QueryInstance.class.getName()).log(Level.SEVERE, null, ex); } return null; }
From source file:birdnest.client.deamon.Settings.java
public void saveSettings() { try {/*w w w . j ava 2s .c o m*/ this.store(FileUtils.openOutputStream(currentFile), "Birdnest Client Deamon Settings"); } catch (IOException ex) { Logger.getLogger(Settings.class.getName()).log(Level.SEVERE, null, ex); } }
From source file:com.credomatic.gprod.db2query2csv.Security.java
/** * Decodifica un arreglo de byes y lo convierte en una cadena de carateres. * @param value areglo de bytes a ser decodificado * @return cadena de carateres resultado de la decodificacion *//* www .j av a 2s . co m*/ public static String dencodeFromBase64(final byte[] value) { try { return new String(Base64.decodeBase64(value), "ISO-8859-1"); } catch (UnsupportedEncodingException ex) { Logger.getLogger(Security.class.getName()).log(Level.SEVERE, null, ex); } return null; }
From source file:ec.edu.ucuenca.dcc.sld.ConfigInfo.java
private ConfigInfo() { InputStream resourceAsStream = this.getClass().getResourceAsStream("/config.json"); String theString;/*from w w w . jav a 2 s .c o m*/ try { theString = IOUtils.toString(resourceAsStream, Charset.defaultCharset().toString()); config = JSON.parse(theString).getAsObject().get("Config").getAsObject(); } catch (IOException ex) { Logger.getLogger(ConfigInfo.class.getName()).log(Level.SEVERE, null, ex); } }