Skip to content

Instantly share code, notes, and snippets.

[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.torquebox:torquebox-integration-tests:jar:2.4.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin de.saumya.mojo:jruby-maven-plugin @ line 537, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
@jkutner
jkutner / Gemfile1.rb
Created May 11, 2013 14:31
Rails 4.0.0.rc1 on JRuby
# Use jdbcsqlite3 as the database for Active Record
gem 'activerecord-jdbcsqlite3-adapter'
gem 'jruby-openssl'
Error message
Error: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:jboss/datasources/mysql.production.common_cluster.read
Sample stack trace (hide Rails)
…boss.jca.adapters.jdbc.WrapperDataSource.getConnection (WrapperDataSource.java:147)
sun.reflect.GeneratedMethodAccessor73.invoke (Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke (Method.java:601)
…vasupport.JavaMethod.invokeDirectWithExceptionHandling (JavaMethod.java:440)
org.jruby.javasupport.JavaMethod.invokeDirect (JavaMethod.java:304)
Java::JavaSql::SQLException - javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:jboss/datasources/mysql.production.cluster.read:
org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:147)
sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:601)
org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:440)
org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:304)
org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:52)
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:56)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:134)
/** rb_ary_push - specialized rb_ary_store
*
*/
@JRubyMethod(name = "<<", required = 1)
public RubyArray append(IRubyObject item) {
modify();
int valuesLength = values.length - begin;
if (realLength == valuesLength) {
if (realLength == Integer.MAX_VALUE) throw getRuntime().newArgumentError("index too big");
@jkutner
jkutner / gist:6311339
Created August 22, 2013 19:01
.profile
#------------------------------------------------
# git repo and branch info
parse_git_branch () {
git name-rev HEAD 2> /dev/null | sed 's#HEAD\ \(.*\)# (git::\1)#'
}
parse_svn_branch() {
parse_svn_url | sed -e 's#^'"$(parse_svn_repository_root)"'##g' | awk '{print " (svn::"$1")" }'
}
parse_svn_url() {
svn info 2>/dev/null | sed -ne 's#^URL: ##p'
Completed 500 Internal Server Error in 67ms
RSolr::Error::Http (RSolr::Error::Http - 500 Internal Server Error
Error: Severe errors in solr configuration.
Check your log files for more detailed information on what may be wrong.
If you want solr to continue after configuration errors, change:
<abortOnConfigurationError>false</abortOnConfigurationError>
$ be rake sunspot:mongo:reindex
reindexing Document
rake aborted!
RSolr::Error::Http - 500 Internal Server Error
Error: Severe errors in solr configuration.
Check your log files for more detailed information on what may be wrong.
If you want solr to continue after configuration errors, change:
$ gem install nokogiri
...
Building native extensions. This could take a while...
...
checking for libxml/parser.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
...
21:09:17,019 ERROR [org.apache.catalina.connector] (ajp-/100.67.74.42:8159-6) JBWEB001018: An exception or error occurred in the container during the request processing: java.lang.NullPointerException
at org.jboss.as.web.session.ClusteredSession.update(ClusteredSession.java:973) [jboss-as-web-7.2.x.slim.tb3.incremental.2.jar:7.2.x.slim.tb3.incremental.2]
at org.jboss.as.web.session.DistributableSessionManager.loadSession(DistributableSessionManager.java:1389) [jboss-as-web-7.2.x.slim.tb3.incremental.2.jar:7.2.x.slim.tb3.incremental.2]
at org.jboss.as.web.session.DistributableSessionManager.findSession(DistributableSessionManager.java:681) [jboss-as-web-7.2.x.slim.tb3.incremental.2.jar:7.2.x.slim.tb3.incremental.2]
at org.jboss.as.web.session.DistributableSessionManager.findSession(DistributableSessionManager.java:84) [jboss-as-web-7.2.x.slim.tb3.incremental.2.jar:7.2.x.slim.tb3.incremental.2]
at org.apache.catalina.connector.Request.doGetSession(Request.java:2605) [jbossweb-7.2.0.Final.jar:7.2.0.Final]