Skip to content

Instantly share code, notes, and snippets.

View msavy's full-sized avatar
👋
Apiman Man

Marc Savy msavy

👋
Apiman Man
View GitHub Profile
@msavy
msavy / ticket.rb
Last active August 29, 2015 14:01
require 'activesupport/json_encoder'
class A
def initialize; @thing = "zoidberg"; end
def as_json(options={})
{
:whynot => @thing,
:this => "string"
}
17:39:54,958 INFO >> Executing REST Test [Update Service Plans (error 500)] - test-plan-data/services/plans/012_update-version-1.0-plans-500.resttest
17:39:54,976 WARN SQL Error: 23502, SQLState: 23502
17:39:54,977 ERROR NULL not allowed for column "VERSION"; SQL statement:
insert into ServiceVersionBean_plans (ServiceVersionBean_id, planId, version) values (?, ?, ?) [23502-168]
17:39:54,979 ERROR Error while committing the transaction
javax.persistence.RollbackException: Error while committing the transaction
at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:92)
at org.overlord.apiman.dt.api.jpa.AbstractJpaStorage.update(AbstractJpaStorage.java:99)
at org.overlord.apiman.dt.api.jpa.JpaStorage.update(JpaStorage.java:86)
at org.overlord.apiman.dt.api.jpa.JpaStorage$Proxy$_$$_WeldClientProxy.update(JpaStorage$Proxy$_$$_WeldClientProxy.java)
/*
* Copyright 2014 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
[msavy@mmbp tmp]$ curl -vv http://127.0.0.1:8080/apiman-gateway/123/echo/1.0 -H 'Authorization: eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiI3NzAyNWUzYS03Y2Q1LTQyNTgtODRhMy04MDQzODljYjViZWMiLCJleHAiOjE0MjY2MDc3NzUsIm5iZiI6MCwiaWF0IjoxNDI2NjA2NTc1LCJpc3MiOiJhcGltYW4iLCJhdWQiOiJjdXJsIiwic3ViIjoiZGRhNjRlYzAtZWNmMC00NmQ3LTk2ODgtYTc2NzdmMTk2YjViIiwiYXpwIjoiY3VybCIsInNlc3Npb25fc3RhdGUiOiJmZGFlMjQ1My1jMWIxLTRhOWEtYTgxZC02NjNhNjcxMzRhNDQiLCJhbGxvd2VkLW9yaWdpbnMiOltdLCJyZXNvdXJjZV9hY2Nlc3MiOnt9fQ.Lcer7FUviyrs92hr-7ecSq6U2XiHkXT8iTdHVj1GAbMjLozgXbQtDbO2KF8pGTCzaB9hw9ZHd50pYQDxGExc32qw7jQMblh_YcLNkNgDVvQcxyTi7LLnOSHyhAXCBpnnhLk_IxG6IfgPcJjYMIdTRaAz6E4IpEqgfGzd0zBqRVY'
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET /apiman-gateway/123/echo/1.0 HTTP/1.1
> User-Agent: curl/7.37.1
> Host: 127.0.0.1:8080
> Accept: */*
> Authorization: eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiI3NzAyNWUzYS03Y2Q1LTQyNTgtODRhMy04MDQzODljYjViZWMiLCJleHAiOjE0MjY2MDc3NzUsIm5iZiI6MCwiaWF0IjoxNDI2NjA2
XMLHttpRequest cannot load http://localhost:8080/apiman/organizations/blah/roles. The 'Access-Control-Allow-Origin' header contains multiple values 'http://localhost:2772, http://localhost:2772', but only one is allowed. Origin 'http://localhost:2772' is therefore not allowed access.
{
"@timestamp": "2015-05-01T13:53Z",
"level": "INFO",
"loggerName": "io.apiman.manager.api.rest.impl.OrganizationResourceImpl",
"thread": "default task-56",
"message": "Created an org: the-illuminati-",
"throwable": {
"message": "boom, boom, boom!",
"cause": {
"cause": null,

Asciidoctor

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi enim sapien, gravida eget orci at, ullamcorper semper neque. Ut sed molestie urna. Ut id massa a velit convallis lacinia. In maximus ultrices est sed posuere. Fusce id mauris neque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vitae elementum metus. Mauris vitae odio a nisl convallis mattis ac a diam.

16:23:28,464 INFO [Neuronne] initialized
----------- Starting the ES node.
16:23:28,464 INFO [Neuronne] starting ...
16:23:28,471 INFO [Neuronne] bound_address {local[1]}, publish_address {local[1]}
16:23:28,477 INFO [Neuronne] apiman/B8xpdZDISjC9tceGlCkb7w
16:23:28,479 INFO [Neuronne] new_master [Neuronne][B8xpdZDISjC9tceGlCkb7w][mmbp.local][local[1]]{local=true}, reason: local-disco-initial_connect(master)
16:23:28,498 INFO [Neuronne] recovered [0] indices into cluster_state
16:23:28,527 INFO [Neuronne] bound_address {inet[/0:0:0:0:0:0:0:0:6500]}, publish_address {inet[/10.63.0.219:6500]}
16:23:28,527 INFO [Neuronne] started
----------- ES node was successfully started.
[msavy@marc steamcannon-appliances]$ sudo rake rpm:all
(in /home/msavy/testing/steamcannon-appliances)
mkdir -p build/topdir/rhel/5/tmp
mkdir -p build/topdir/rhel/5/SPECS
mkdir -p build/topdir/rhel/5/SOURCES
mkdir -p build/topdir/rhel/5/BUILD
mkdir -p build/topdir/rhel/5/RPMS
mkdir -p build/topdir/rhel/5/SRPMS
mkdir -p build/topdir/rhel/5/RPMS/i386
mkdir -p build/topdir/rhel/5/RPMS/x86_64
[msavy@marc steamcannon-appliances]$ sudo rake rpm:all
(in /home/msavy/testing/steamcannon-appliances)
I, [2010-11-09T15:32:54.956000 #3841] INFO -- : Building package 'steamcannon-agent-0.0.1-1.fc13.x86_64.rpm'...
E, [2010-11-09T15:36:13.581005 #3841] ERROR -- : Command return:
+++++
Building target platforms: x86_64
Building for target x86_64
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.rRfCk9
+ umask 022
+ cd /home/msavy/testing/steamcannon-appliances/build/topdir/fedora/13/BUILD