This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gems :005 > FoursquareVenue.create(hsh) | |
Java::JavaLang::NullPointerException: | |
from org.jruby.exceptions.RaiseException.<init>(RaiseException.java:101) | |
from org.jruby.Ruby.newRaiseException(Ruby.java:3348) | |
from org.jruby.Ruby.newEncodingCompatibilityError(Ruby.java:3323) | |
from org.jruby.RubyString.cat(RubyString.java:1285) | |
from org.jruby.RubyString.cat19(RubyString.java:1221) | |
from org.jruby.RubyHash$5.visit(RubyHash.java:727) | |
from org.jruby.RubyHash.visitAll(RubyHash.java:594) | |
from org.jruby.RubyHash.inspectHash(RubyHash.java:721) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.java_libs.delete_if {|f| f =~ /jruby-(core|stdlib|complete)-*/} | |
config.java_libs += FileList["lib/jars/*.jar"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
gem 'rails', '3.1.3' | |
gem 'warbler', '1.3.2' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
platforms :ruby do | |
# gem 'sqlite3' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable Rake-environment-task framework detection by uncommenting/setting to false | |
Warbler.framework_detection = false | |
class Warbler::Config; def auto_detect_rails; true; end; end | |
# Warbler web application assembly configuration file | |
Warbler::Config.new do |config| | |
# Features: additional options controlling how the jar is built. | |
# Currently the following features are supported: | |
# - gemjar: package the gem repository in a jar file in WEB-INF/lib | |
# - executable: embed a web server and make the war executable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable Rake-environment-task framework detection by uncommenting/setting to false | |
Warbler.framework_detection = false | |
class Warbler::Config; def auto_detect_rails; true; end; end | |
# Warbler web application assembly configuration file | |
Warbler::Config.new do |config| | |
# Features: additional options controlling how the jar is built. | |
# Currently the following features are supported: | |
# - gemjar: package the gem repository in a jar file in WEB-INF/lib | |
# - executable: embed a web server and make the war executable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{11-12-14 13:17}[jruby-1.6.5]normandy:~/Turf/server/tgc/lib/jars@master sf% jar tf jruby-complete-1.6.5.jar | |
META-INF/MANIFEST.MF | |
META-INF/ | |
META-INF/LICENSE.txt | |
META-INF/NOTICE.txt | |
META-INF/jruby.home/ | |
META-INF/jruby.home/bin/ | |
META-INF/jruby.home/bin/ast | |
META-INF/jruby.home/bin/gem | |
META-INF/jruby.home/bin/gem.bat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@dev logs]# jstack 23891 | |
23891: Unable to open socket file: target process not responding or HotSpot VM not loaded | |
The -F option can be used when the target process is not responding |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 def connect | |
26 # Connect nonblock is broken in current versions of JRuby | |
27 if RUBY_PLATFORM == 'java' | |
28 require 'timeout' | |
29 if @connect_timeout | |
30 Timeout::timeout(@connect_timeout, OperationTimeout) do | |
31 @socket.connect(@socket_address) | |
32 end | |
33 else | |
34 @socket.connect(@socket_address) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sportsnetwork.api.models | |
import com.sportsnetwork.api.dao._ | |
import java.util.Date | |
import com.mongodb.casbah.Imports._ | |
import com.novus.salat._ | |
import com.novus.salat.global._ | |
import org.json4s.CustomSerializer | |
import org.json4s._ | |
import org.slf4j.{Logger, LoggerFactory} |