Skip to content

Instantly share code, notes, and snippets.

View galderz's full-sized avatar

Galder Zamarreño galderz

View GitHub Profile
@galderz
galderz / gitsyncupstream.sh
Created November 15, 2010 10:53 — forked from maniksurtani/gitsyncupstream.sh
A forked version of Manik's script that avoids issues stashing when only untracked files are present (i.e. old branch that has not had git ignores updated)
#!/bin/bash
####################################################################################
#
# This script syncs your private, personal checkout with an upstream repository.
#
###################################################################################
# This is where your local, priave copy is checked out
LOCAL_REPO=${HOME}/Code/infinispan/my_repo
[z@ec-87:~/Go/demos/news]% jruby -S rake torquebox:deploy --trace
(in /Users/z/Go/demos/news)
rake aborted!
uninitialized constant News::Application::TorqueBox
org/jruby/RubyModule.java:2526:in `const_missing'
/opt/torquebox-1.0.0.CR1/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2503:in `const_missing'
/Users/z/Go/demos/news/config/application.rb:13:in `Application'
/Users/z/Go/demos/news/config/application.rb:10:in `News'
/Users/z/Go/demos/news/config/application.rb:9:in `(root)'
org/jruby/RubyKernel.java:1038:in `require'
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# If you have a Gemfile, require the gems listed there, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env) if defined?(Bundler)
module News
class Application < Rails::Application
source 'http://rubygems.org'
gem 'rails', '3.0.7'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# Use unicorn as the web server
source 'http://rubygems.org'
gem 'rails', '3.0.7'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# Use unicorn as the web server
require 'sinatra/base'
# require 'active_support/cache/torque_box_store'
require 'hotrod-jruby/remote_cache'
class SinatraHotRod < Sinatra::Base
set :cache, RemoteCache.new
get '/time' do
settings.cache.put "now", Time.now
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project infinispan-parent: Failed to
retrieve remote metadata org.infinispan:infinispan-parent:5.0.0-SNAPSHOT/maven-metadata.xml: Could not transfer metadata org.infinispan:infinispan-
parent:5.0.0-SNAPSHOT/maven-metadata.xml from/to jboss-snapshots-repository (https://repository.jboss.org/nexus/content/repositories/snapshots/):
Error transferring file: sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
@Override
public Object createExternal(Class<?> subjectType, ObjectInput input, Creator defaultCreator) throws IOException, ClassNotFoundException {
CarJBoss o = new CarJBoss();
o.plateNumber = (String) input.readObject();
return o;
}
2011-05-17 11:25:59,195 360064 TRACE [org.infinispan.client.hotrod.impl.operations.HotRodOperation] (Timer-0:) wrote header for message 14724. Operation code: 0x17. Flags: 0x0
2011-05-17 11:25:59,195 360064 TRACE [org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport] (Timer-0:) Flushed socket: Socket[addr=perf18/10.16.90.54,port=11222,localport=46181]2011-05-17 11:25:59,195 360064 ERROR [org.infinispan.client.hotrod.impl.operations.HotRodOperation] (Timer-0:) Invalid message id. Expected 14724 and received 6899
2011-05-17 11:25:59,195 360064 TRACE [org.infinispan.client.hotrod.impl.operations.PingOperation] (Timer-0:) Failed to validate transport: TcpTransport{socket=Socket[addr=perf18/10.16.90.54,port=11222,localport=46181], serverAddress=perf18/10.16.90.54:11222, id =3}
org.infinispan.client.hotrod.exceptions.InvalidResponseException:: Invalid message id. Expected 14724 and received 6899
[DEBUG] /mnt/master/slave/workspace/Infinispan-master-JDK6-tcp/server/core/src/main/scala
[INFO] includes = [**/*.scala,**/*.java,]
[INFO] excludes = []
[INFO] /mnt/master/slave/workspace/Infinispan-master-JDK6-tcp/server/core/src/main/scala:-1: info: compiling
[INFO] Compiling 18 source files to /mnt/master/slave/workspace/Infinispan-master-JDK6-tcp/server/core/target/classes at 1305706585438
[DEBUG] use java command with args in file forced : false
[DEBUG] plugin jar to add :/scratch/hudson/workspace/Infinispan-master-JDK6-tcp/.repository/org/scala-tools/maven-scala-plugin/2.15.2/maven-scala-plugin-2.15.2.jar
[DEBUG] cmd: /opt/java/sdk/Sun/i586/jdk1.6.0_24/jre/bin/java -classpath /mnt/master/slave/workspace/Infinispan-master-JDK6-tcp/.repository/org/scala-lang/scala-compiler/2.8.1/scala-compiler-2.8.1.jar:/mnt/master/slave/workspace/Infinispan-master-JDK6-tcp/.repository/org/scala-lang/scala-library/2.8.1/scala-library-2.8.1.jar:/mnt/master/slave/workspace/Infinispan-master-JDK6-tcp/.repository/org/scala-t