Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.AkibanInternalException


                // Back-off, via onError(), is already provided in commitTransaction[Internal]
                LOG.debug("Retry attempt {} due to rollback", tries, e);
            } catch(RuntimeException e) {
                throw  FDBAdapter.wrapFDBException(session, e);
            } catch(Exception e) {
                throw new AkibanInternalException("Unexpected Exception", e);
            } finally {
                rollbackTransactionIfOpen(session);
            }
        }
    }
View Full Code Here


                    new ProtobufDecompiler(writer).decompile(fileProto);
                }
                reader = new BufferedReader(new FileReader(tempFile));
            }
            catch (IOException ex) {
                throw new AkibanInternalException("decompiling error", ex);
            }
            messagesSent = 0;
        }
View Full Code Here

            String line;
            try {
                line = reader.readLine();
            }
            catch (IOException ex) {
                throw new AkibanInternalException("temp file error", ex);
            }
            if (line == null)
                return null;
            else
                return Collections.singletonList(line);
View Full Code Here

            MessageDigest md = MessageDigest.getInstance("MD5");
            md.update(password.getBytes("UTF-8"));
            return formatMD5(md.digest(), true);
        }
        catch (NoSuchAlgorithmException ex) {
            throw new AkibanInternalException("Cannot create digest", ex);
        }
        catch (UnsupportedEncodingException ex) {
            throw new AkibanInternalException("Cannot create digest", ex);
        }
    }
View Full Code Here

            md.update((":" + REALM + ":").getBytes("UTF-8"));
            md.update(password.getBytes("UTF-8"));
            return formatMD5(md.digest(), true);
        }
        catch (NoSuchAlgorithmException ex) {
            throw new AkibanInternalException("Cannot create digest", ex);
        }
        catch (UnsupportedEncodingException ex) {
            throw new AkibanInternalException("Cannot create digest", ex);
        }
    }
View Full Code Here

            md.update(password.getBytes("UTF-8"));
            md.update(user.getBytes("UTF-8"));
            return formatMD5(md.digest(), false);
        }
        catch (NoSuchAlgorithmException ex) {
            throw new AkibanInternalException("Cannot create digest", ex);
        }
        catch (UnsupportedEncodingException ex) {
            throw new AkibanInternalException("Cannot create digest", ex);
        }
    }
View Full Code Here

            md.update(base.getBytes("UTF-8"), 3, 32); // Skipping "md5".
            md.update(salt);
            return formatMD5(md.digest(), false);
        }
        catch (NoSuchAlgorithmException ex) {
            throw new AkibanInternalException("Cannot create digest", ex);
        }
        catch (UnsupportedEncodingException ex) {
            throw new AkibanInternalException("Cannot create digest", ex);
        }
    }
View Full Code Here

   
    protected String checkFieldForMatch(IndexColumn field) {
        String fieldName = field.getColumn().getName();
        AkCollator collator = field.getColumn().getCollator();
        if ((collator != null) && !collator.isCaseSensitive()) {
            throw new AkibanInternalException("Building a term for field that may need analysis: " + fieldName);
        }
        return fieldName;
    }
View Full Code Here

                jg.writeEndObject();
                jg.close();
                json = str.toString();
            }
            catch (IOException ex) {
                throw new AkibanInternalException("Error writing to string", ex);
            }
        }
        call.setString(1, json);
        call.execute();
        writer.append(call.getString(2));
View Full Code Here

            JsonNode parsed;
            try {
                parsed = jsonParser(jsonParams).readValueAsTree();
            }
            catch (IOException ex) {
                throw new AkibanInternalException("Error reading from string", ex);
            }
            if (parsed.isObject()) {
                Iterator<String> iter = parsed.fieldNames();
                while (iter.hasNext()) {
                    String field = iter.next();
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.AkibanInternalException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.