Skip to content

Instantly share code, notes, and snippets.

<html><head><title>Apache Tomcat/7.0.42 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - Request processing failed; nested exception is java.lang.RuntimeException</h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u>Request processing failed; nested exception is java.lang.RuntimeException</u></p><p><b>description</b> <u>The server encountered an internal error that pr
// Intercept 401s and redirect you to login
$httpProvider.interceptors.push(['$q', '$location', function($q, $location) {
return {
'responseError': function(response) {
if(response.status === 401) {
$location.path('/login');
return $q.reject(response);
}
else {
return $q.reject(response);
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<style type="text/css">
/* Based on The MailChimp Reset INLINE: Yes. */
/* Client-specific Styles */
#outlook a {
$module: '.select-component';
.select-component {
display: inline-block;
margin-right: 20px;
position: relative;
vertical-align: top;
&:focus {
text-decoration: none;
@zolotyh
zolotyh / gist:ef01fb94f1637f8f512b
Created October 15, 2014 10:10
Так выглядит редактирование вывод персоны для чтения
{
"firstName": "Алексей",
"lastName": "Золотых",
"patronymic": "Александрович",
"position": {
"id": 1,
"name": "Кассир"
},
"lastSessionPlace": {
"id": 1,
@zolotyh
zolotyh / Редактирование меню "menuCategory:id" PUT
Last active August 29, 2015 14:07
Чтение menu для плитки (только 2 уровня вложенности)
{
// id нужно возвращать после редактирования
"name": "",
"color": "#FFFF",
"parents": [1]
}
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building neemble 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:1.1.6.RELEASE:run (default-cli) > test-compile @ neemble >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) @ neemble ---
[INFO]
[DEBUG] ru.neemble.api.aop.logging.LoggingAspect - Enter: ru.neemble.api.web.rest.ProductResource.delete() with argument[s] = [1]
[DEBUG] ru.neemble.api.web.rest.ProductResource - REST request to delete Product : 1
Hibernate: select product0_.id as id1_55_0_, product0_.description as descript2_55_0_, product0_.meta_product_id as meta_pro7_55_0_, product0_.name as name3_55_0_, product0_.price_type as price_ty4_55_0_, product0_.price as price5_55_0_, product0_.priority as priority6_55_0_, product0_.sequence_id as sequence8_55_0_ from T_PRODUCT product0_ where product0_.id=?
Hibernate: delete from T_PRODUCT where id=?
[WARN] org.hibernate.engine.jdbc.spi.SqlExceptionHelper - SQL Error: 0, SQLState: 23503
[ERROR] org.hibernate.engine.jdbc.spi.SqlExceptionHelper - ERROR: update or delete on table "t_product" violates foreign key constraint "fk_menu_product_product" on table "t_menu_product"
Detail: Key (id)=(1) is still referenced from table "t_menu_product".
[ERROR] ru.neemble.api.aop.logging.LoggingAspect - Ex
{"name":"test","parent":null,"id":"","description":"test","color":""}
Remote Address:0.0.0.0:8080
Request URL:http://0.0.0.0:8080/rest/1.0/users
Request Method:POST
Status Code:401 Unauthorized
Request Headersview parsed
POST /rest/1.0/users HTTP/1.1
Host: 0.0.0.0:8080
Connection: keep-alive
Content-Length: 575
Accept: application/json, text/plain, */*