How do I know if a jruby module is even installed? - ruby

I'm super unfamiliar with Ruby, Rails, Jruby. But I really want to try out tabula-extractor. I believe I installed it properly, alltho I don't know how to check. This is my script, based on their initial suggestion:
#!/usr/bin/jruby
require 'tabula'
pdf_file_path = "page19.pdf"
outfilename = "page19.csv"
out = open(outfilename, 'w')
extractor = Tabula::Extraction::ObjectExtractor.new(pdf_file_path, :all )
extractor.extract.each do |pdf_page|
pdf_page.spreadsheets.each do |spreadsheet|
out << spreadsheet.to_csv
out << "\n\n"
end
end
out.close
This is what I get when I run it:
./tabula.rb:10: uninitialized constant Tabula (NameError)
from ./tabula.rb:3:in `require'
from ./tabula.rb:3
I'm not even sure how to interpret that. It isn't saying Tabula can't be found, just that there's a "NameError" with extractor = Tabula::Extraction::ObjectExtractor.new(pdf_file_path, :all )
I'm sure I'm missing something obvious. I can't even tell if tabula-extractor is really installed. I ran jruby -S gem install tabula-extractor and got this back:
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
System.java:-2:in `arraycopy': java.lang.ArrayIndexOutOfBoundsException
from DefaultResolver.java:111:in `makeTime'
from DefaultResolver.java:277:in `create'
from DefaultResolver.java:317:in `handleScalar'
from DefaultResolver.java:435:in `orgHandler'
from DefaultResolver.java:455:in `node_import'
from org/yecht/ruby/DefaultResolver$s_method_1_0$RUBYINVOKER$node_import.gen:65535:in `call'
from CachingCallSite.java:146:in `call'
from RubyLoadHandler.java:39:in `handle'
from Parser.java:300:in `addNode'
from DefaultYAMLParser.java:676:in `yyparse'
from Parser.java:290:in `yechtparse'
from Parser.java:284:in `parse'
from YParser.java:152:in `load'
from org/yecht/ruby/YParser$s_method_0_1$RUBYINVOKER$load.gen:65535:in `call'
from JavaMethod.java:630:in `call'
from DynamicMethod.java:186:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from CallOneArgNode.java:57:in `interpret'
from LocalAsgnNode.java:123:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:180:in `call'
from DefaultMethod.java:174:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from CallOneArgNode.java:57:in `interpret'
from LocalAsgnNode.java:123:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:180:in `call'
from DefaultMethod.java:174:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from CallOneArgNode.java:57:in `interpret'
from NewlineNode.java:104:in `interpret'
from RescueNode.java:199:in `executeBody'
from RescueNode.java:118:in `interpretWithJavaExceptions'
from RescueNode.java:110:in `interpret'
from InterpretedMethod.java:180:in `call'
from DefaultMethod.java:174:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from FCallOneArgNode.java:36:in `interpret'
from InstAsgnNode.java:95:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from EnsureNode.java:96:in `interpret'
from BeginNode.java:83:in `interpret'
from NewlineNode.java:104:in `interpret'
from WhenOneArgNode.java:36:in `whenSlowTest'
from WhenOneArgNode.java:46:in `when'
from CaseNode.java:133:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedBlock.java:373:in `evalBlockBody'
from InterpretedBlock.java:346:in `yield'
from InterpretedBlock.java:303:in `yield'
from Block.java:194:in `yield'
from YieldNode.java:112:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedBlock.java:373:in `evalBlockBody'
from InterpretedBlock.java:346:in `yield'
from InterpretedBlock.java:303:in `yield'
from Block.java:194:in `yield'
from RubyKernel.java:1251:in `loop_1_9'
from org/jruby/RubyKernel$s_method_0_0$RUBYFRAMEDINVOKER$loop_1_9.gen:65535:in `call'
from CachingCallSite.java:299:in `cacheAndCall'
from CachingCallSite.java:117:in `callBlock'
from CachingCallSite.java:132:in `callIter'
from FCallNoArgBlockNode.java:32:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedMethod.java:160:in `call'
from DefaultMethod.java:166:in `call'
from CachingCallSite.java:299:in `cacheAndCall'
from CachingCallSite.java:117:in `callBlock'
from CachingCallSite.java:122:in `call'
from CallNoArgBlockNode.java:64:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:242:in `call'
from DefaultMethod.java:198:in `call'
from CachingCallSite.java:339:in `cacheAndCall'
from CachingCallSite.java:197:in `callBlock'
from CachingCallSite.java:202:in `call'
from RubyClass.java:819:in `call'
from DynamicMethod.java:194:in `call'
from WrapperMethod.java:62:in `call'
from CachingCallSite.java:329:in `cacheAndCall'
from CachingCallSite.java:188:in `call'
from FCallTwoArgNode.java:38:in `interpret'
from LocalAsgnNode.java:123:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from EnsureNode.java:96:in `interpret'
from InterpretedMethod.java:242:in `call'
from DefaultMethod.java:198:in `call'
from CachingCallSite.java:339:in `cacheAndCall'
from CachingCallSite.java:197:in `callBlock'
from CachingCallSite.java:202:in `call'
from CallTwoArgBlockPassNode.java:62:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:283:in `call'
from DefaultMethod.java:214:in `call'
from CachingCallSite.java:359:in `cacheAndCall'
from CachingCallSite.java:237:in `callBlock'
from CachingCallSite.java:252:in `callIter'
from CallThreeArgBlockNode.java:64:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:262:in `call'
from DefaultMethod.java:206:in `call'
from CachingCallSite.java:349:in `cacheAndCall'
from CachingCallSite.java:228:in `call'
from FCallThreeArgNode.java:40:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedBlock.java:373:in `evalBlockBody'
from InterpretedBlock.java:346:in `yield'
from InterpretedBlock.java:303:in `yield'
from Block.java:194:in `yield'
from RubyIO.java:1106:in `open'
from RubyKernel.java:283:in `open'
from org/jruby/RubyKernel$s_method_0_2$RUBYFRAMEDINVOKER$open.gen:65535:in `call'
from DynamicMethod.java:198:in `call'
from CachingCallSite.java:339:in `cacheAndCall'
from CachingCallSite.java:197:in `callBlock'
from CachingCallSite.java:212:in `callIter'
from FCallTwoArgBlockNode.java:34:in `interpret'
from NewlineNode.java:104:in `interpret'
from IfNode.java:119:in `interpret'
from IfNode.java:119:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:221:in `call'
from DefaultMethod.java:190:in `call'
from CachingCallSite.java:329:in `cacheAndCall'
from CachingCallSite.java:188:in `call'
from CallTwoArgNode.java:59:in `interpret'
from InstAsgnNode.java:95:in `interpret'
from NewlineNode.java:104:in `interpret'
from RescueNode.java:199:in `executeBody'
from RescueNode.java:118:in `interpretWithJavaExceptions'
from RescueNode.java:110:in `interpret'
from BeginNode.java:83:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:242:in `call'
from DefaultMethod.java:198:in `call'
from CachingCallSite.java:339:in `cacheAndCall'
from CachingCallSite.java:197:in `callBlock'
from CachingCallSite.java:202:in `call'
from RubyClass.java:819:in `call'
from DynamicMethod.java:194:in `call'
from CachingCallSite.java:329:in `cacheAndCall'
from CachingCallSite.java:188:in `call'
from CallTwoArgNode.java:59:in `interpret'
from DAsgnNode.java:110:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedBlock.java:373:in `evalBlockBody'
from InterpretedBlock.java:346:in `yield'
from InterpretedBlock.java:303:in `yield'
from Block.java:194:in `yield'
from RubyArray.java:1630:in `eachCommon'
from RubyArray.java:1637:in `each'
from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen:65535:in `call'
from CachingCallSite.java:299:in `cacheAndCall'
from CachingCallSite.java:117:in `callBlock'
from CachingCallSite.java:122:in `call'
from CallNoArgBlockNode.java:64:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:221:in `call'
from DefaultMethod.java:190:in `call'
from CachingCallSite.java:329:in `cacheAndCall'
from CachingCallSite.java:188:in `call'
from CallTwoArgNode.java:59:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from RescueNode.java:199:in `executeBody'
from RescueNode.java:118:in `interpretWithJavaExceptions'
from RescueNode.java:110:in `interpret'
from BeginNode.java:83:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedBlock.java:373:in `evalBlockBody'
from InterpretedBlock.java:346:in `yield'
from InterpretedBlock.java:303:in `yield'
from Block.java:194:in `yield'
from RubyArray.java:1630:in `eachCommon'
from RubyArray.java:1637:in `each'
from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen:65535:in `call'
from CachingCallSite.java:299:in `cacheAndCall'
from CachingCallSite.java:117:in `callBlock'
from CachingCallSite.java:122:in `call'
from CallNoArgBlockNode.java:64:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:139:in `call'
from DefaultMethod.java:158:in `call'
from CachingCallSite.java:289:in `cacheAndCall'
from CachingCallSite.java:108:in `call'
from VCallNode.java:85:in `interpret'
from NewlineNode.java:104:in `interpret'
from IfNode.java:119:in `interpret'
from IfNode.java:119:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:180:in `call'
from DefaultMethod.java:174:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from CallSpecialArgNode.java:67:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from CaseNode.java:138:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:180:in `call'
from DefaultMethod.java:174:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from FCallOneArgNode.java:36:in `interpret'
from NewlineNode.java:104:in `interpret'
from RescueNode.java:199:in `executeBody'
from RescueNode.java:118:in `interpretWithJavaExceptions'
from RescueNode.java:110:in `interpret'
from InterpretedMethod.java:180:in `call'
from DefaultMethod.java:174:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from CallOneArgNode.java:57:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:180:in `call'
from DefaultMethod.java:174:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from gem:24:in `rescue_1$RUBY$__rescue___0'
from gem:23:in `__file__'
from gem:-1:in `load'
from Ruby.java:692:in `runScript'
from Ruby.java:575:in `runNormally'
from Ruby.java:418:in `runFromMain'
from Main.java:286:in `run'
from Main.java:128:in `run'
from Main.java:97:in `main'
which is neither an error nor a success message.

Per a comment on Jruby: NameError: uninitialized constant Neo4j I tried require 'tabula' in irb:
amanda#mona:tabula$ irb
irb(main):001:0> require 'tabula'
LoadError: no such file to load -- tabula
from (irb):1:in `require'
from (irb):1
from :0
irb(main):002:0>
That suggests it is not installed.

Related

stack level too deep. Function<SystemStackError>

I have following method thats throwing the error in title. I know it happens if the method is recursive means if it invokes itslef. But my method is not being called by itself. Does anyone know why i am getting this error?
def self.send_my_message
sqs = Aws::SQS::Client.new(region: 'us-east-2')
queue_name = "something"
queue_url = sqs.get_queue_url(queue_name: queue_name).queue_url
sqs.send_message(queue_url: queue_url, message_body: 'Hello world')
end
Full stack trace errors:
Response:
{
"errorMessage": "stack level too deep",
"errorType": "Function<SystemStackError>",
"stackTrace": [
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `initialize_dup'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `dup'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:134:in `as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `block in as_json'",
"/opt/ruby/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb:152:in `map'"
]
}

can't write unknown attribute `html` Trace of template inclusion

Getting a weird error in my ROR APP. I attached my _form.html.erbfile since this is where the browser says my error is. I am a beginner so not really sure what I am doing wrong in this instance. thanks!
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-title">
<h1>New Review</h1>
</div>
<%= form_for(#lawfirm, #review) do |f| %>
<% if #review.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(#review.errors.count, "error") %> prohibited this review from being saved:</h2>
<ul>
<% #review.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="form-group">
<%= f.label :rating %>
<%= f.number_field :rating, class: "form-control" %>
</div>
<div class="form-group">
<%= f.label :comment %>
<%= f.text_area :comment, class: "form-control" %>
</div>
<div class="form-group">
<%= f.submit class: "btn btn-primary"%>
</div>
</div>
<% end %>
</div>
</div>
here is my stack trace:
activerecord (4.2.5.1) lib/active_record/attribute.rb:138:in `with_value_from_database'
activerecord (4.2.5.1) lib/active_record/attribute_set.rb:39:in `write_from_user'
activerecord (4.2.5.1) lib/active_record/attribute_methods/write.rb:74:in `write_attribute_with_type_cast'
activerecord (4.2.5.1) lib/active_record/attribute_methods/write.rb:56:in `write_attribute'
activerecord (4.2.5.1) lib/active_record/attribute_methods/dirty.rb:96:in `write_attribute'
activerecord (4.2.5.1) lib/active_record/attribute_methods.rb:373:in `[]='
actionview (4.2.5.1) lib/action_view/helpers/form_helper.rb:424:in `form_for'
app/views/reviews/_form.html.erb:7:in `_app_views_reviews__form_html_erb___829028679_68515284'
actionview (4.2.5.1) lib/action_view/template.rb:145:in `block in render'
activesupport (4.2.5.1) lib/active_support/notifications.rb:166:in `instrument'
actionview (4.2.5.1) lib/action_view/template.rb:333:in `instrument'
actionview (4.2.5.1) lib/action_view/template.rb:143:in `render'
actionview (4.2.5.1) lib/action_view/renderer/partial_renderer.rb:339:in `render_partial'
actionview (4.2.5.1) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
actionview (4.2.5.1) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
activesupport (4.2.5.1) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (4.2.5.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.2.5.1) lib/active_support/notifications.rb:164:in `instrument'
actionview (4.2.5.1) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
actionview (4.2.5.1) lib/action_view/renderer/partial_renderer.rb:309:in `render'
actionview (4.2.5.1) lib/action_view/renderer/renderer.rb:47:in `render_partial'
actionview (4.2.5.1) lib/action_view/helpers/rendering_helper.rb:35:in `render'
app/views/reviews/new.html.erb:3:in `_app_views_reviews_new_html_erb___645944526_88267872'
actionview (4.2.5.1) lib/action_view/template.rb:145:in `block in render'
activesupport (4.2.5.1) lib/active_support/notifications.rb:166:in `instrument'
actionview (4.2.5.1) lib/action_view/template.rb:333:in `instrument'
actionview (4.2.5.1) lib/action_view/template.rb:143:in `render'
actionview (4.2.5.1) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
actionview (4.2.5.1) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
activesupport (4.2.5.1) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (4.2.5.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.2.5.1) lib/active_support/notifications.rb:164:in `instrument'
actionview (4.2.5.1) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
actionview (4.2.5.1) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
actionview (4.2.5.1) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
actionview (4.2.5.1) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
actionview (4.2.5.1) lib/action_view/renderer/template_renderer.rb:14:in `render'
actionview (4.2.5.1) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionview (4.2.5.1) lib/action_view/renderer/renderer.rb:23:in `render'
actionview (4.2.5.1) lib/action_view/rendering.rb:100:in `_render_template'
actionpack (4.2.5.1) lib/action_controller/metal/streaming.rb:217:in `_render_template'
actionview (4.2.5.1) lib/action_view/rendering.rb:83:in `render_to_body'
actionpack (4.2.5.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
actionpack (4.2.5.1) lib/action_controller/metal/renderers.rb:37:in `render_to_body'
actionpack (4.2.5.1) lib/abstract_controller/rendering.rb:25:in `render'
actionpack (4.2.5.1) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.2.5.1) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
activesupport (4.2.5.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
c:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
activesupport (4.2.5.1) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.2.5.1) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
actionpack (4.2.5.1) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
activerecord (4.2.5.1) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.2.5.1) lib/action_controller/metal/instrumentation.rb:43:in `render'
actionpack (4.2.5.1) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.2.5.1) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.2.5.1) lib/abstract_controller/base.rb:198:in `process_action'
actionpack (4.2.5.1) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.2.5.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
activesupport (4.2.5.1) lib/active_support/callbacks.rb:117:in `call'
activesupport (4.2.5.1) lib/active_support/callbacks.rb:117:in `call'
activesupport (4.2.5.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
activesupport (4.2.5.1) lib/active_support/callbacks.rb:505:in `call'
activesupport (4.2.5.1) lib/active_support/callbacks.rb:505:in `call'
activesupport (4.2.5.1) lib/active_support/callbacks.rb:92:in `__run_callbacks__'
activesupport (4.2.5.1) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
activesupport (4.2.5.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (4.2.5.1) lib/abstract_controller/callbacks.rb:19:in `process_action'
actionpack (4.2.5.1) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.2.5.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
activesupport (4.2.5.1) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (4.2.5.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.2.5.1) lib/active_support/notifications.rb:164:in `instrument'
actionpack (4.2.5.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.2.5.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.2.5.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.2.5.1) lib/abstract_controller/base.rb:137:in `process'
actionview (4.2.5.1) lib/action_view/rendering.rb:30:in `process'
actionpack (4.2.5.1) lib/action_controller/metal.rb:196:in `dispatch'
actionpack (4.2.5.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.2.5.1) lib/action_controller/metal.rb:237:in `block in action'
actionpack (4.2.5.1) lib/action_dispatch/routing/route_set.rb:74:in `call'
actionpack (4.2.5.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
actionpack (4.2.5.1) lib/action_dispatch/routing/route_set.rb:43:in `serve'
actionpack (4.2.5.1) lib/action_dispatch/journey/router.rb:43:in `block in serve'
actionpack (4.2.5.1) lib/action_dispatch/journey/router.rb:30:in `each'
actionpack (4.2.5.1) lib/action_dispatch/journey/router.rb:30:in `serve'
actionpack (4.2.5.1) lib/action_dispatch/routing/route_set.rb:815:in `call'
warden (1.2.6) lib/warden/manager.rb:35:in `block in call'
warden (1.2.6) lib/warden/manager.rb:34:in `catch'
warden (1.2.6) lib/warden/manager.rb:34:in `call'
rack (1.6.4) lib/rack/etag.rb:24:in `call'
rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'
rack (1.6.4) lib/rack/head.rb:13:in `call'
actionpack (4.2.5.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.2.5.1) lib/action_dispatch/middleware/flash.rb:260:in `call'
rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.2.5.1) lib/action_dispatch/middleware/cookies.rb:560:in `call'
activerecord (4.2.5.1) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.2.5.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
activerecord (4.2.5.1) lib/active_record/migration.rb:377:in `call'
actionpack (4.2.5.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.2.5.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
activesupport (4.2.5.1) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
activesupport (4.2.5.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (4.2.5.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.2.5.1) lib/action_dispatch/middleware/reloader.rb:73:in `call'
actionpack (4.2.5.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
actionpack (4.2.5.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
web-console (2.3.0) lib/web_console/middleware.rb:28:in `block in call'
web-console (2.3.0) lib/web_console/middleware.rb:18:in `catch'
web-console (2.3.0) lib/web_console/middleware.rb:18:in `call'
actionpack (4.2.5.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.2.5.1) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.2.5.1) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.2.5.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.2.5.1) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.2.5.1) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.2.5.1) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.2.5.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
rack (1.6.4) lib/rack/runtime.rb:18:in `call'
activesupport (4.2.5.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
rack (1.6.4) lib/rack/lock.rb:17:in `call'
actionpack (4.2.5.1) lib/action_dispatch/middleware/static.rb:116:in `call'
rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
railties (4.2.5.1) lib/rails/engine.rb:518:in `call'
railties (4.2.5.1) lib/rails/application.rb:165:in `call'
rack (1.6.4) lib/rack/lock.rb:17:in `call'
rack (1.6.4) lib/rack/content_length.rb:15:in `call'
rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
c:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
c:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
c:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
Request
Parameters:
{"lawfirm_id"=>"1"}
The problem might be here:
form_for(#lawfirm, #review)
The proper syntax for a nested resource in a form is:
form_for([#lawfirm, #review])
form_for expects only the first argument to be the resource (a nested resource in this case). The second argument would be a hash of options of which html is one of the supported option keys. This may be causing the error down the stack.

Sonar update 5.0.1 to 5.1: "Can not render widget measure_filter_list" on "Projects" dashboard

After successfully running the database upgrade during installation of the Sonar upgrade from 5.0.1 to 5.1, the homepage ("Projects" dashboard) displays an error message.
In the log file I see the following "Ruby on Rails" (?) stacktrace:
2016.01.28 14:25:35 ERROR web[rails] Can not render widget measure_filter_list:
ActionView::TemplateError (undefined method `to_date' for nil:NilClass) on line #207 of app/views/measures/_display_list.html.erb:
204: <% end %>
205: <% filter.display.columns.each do |column| %>
206: <td class="<%= column.align -%> <%= column.row_css -%>">
207: <%= list_cell_html(column, row) -%>
208: </td>
209: <% end %>
210: </tr>
app/helpers/application_helper.rb:118:in `human_short_date'
app/helpers/measures_helper.rb:57:in `list_cell_html'
app/views/measures/_display_list.html.erb:207
org/jruby/RubyArray.java:1613:in `each'
app/views/measures/_display_list.html.erb:205
org/jruby/RubyArray.java:1613:in `each'
app/views/measures/_display_list.html.erb:200
org/jruby/RubyKernel.java:2227:in `send'
gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:34:in `render'
gems/gems/actionpack-2.3.15/lib/action_view/base.rb:306:in `with_template'
gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:30:in `render'
gems/gems/actionpack-2.3.15/lib/action_view/renderable_partial.rb:20:in `render'
gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:30:in `benchmark'
gems/gems/actionpack-2.3.15/lib/action_view/renderable_partial.rb:19:in `render'
gems/gems/actionpack-2.3.15/lib/action_view/template.rb:205:in `render_template'
gems/gems/actionpack-2.3.15/lib/action_view/renderable_partial.rb:44:in `render_partial'
gems/gems/actionpack-2.3.15/lib/action_view/partials.rb:184:in `render_partial'
gems/gems/actionpack-2.3.15/lib/action_view/base.rb:267:in `render'
compiled-template:18:in `_run_inline_531921568_locals_dashboard_configuration_widget_widget_properties'
org/jruby/RubyKernel.java:2227:in `send'
gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:34:in `render'
gems/gems/actionpack-2.3.15/lib/action_view/base.rb:306:in `with_template'
gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:30:in `render'
gems/gems/actionpack-2.3.15/lib/action_view/base.rb:269:in `render'
app/helpers/dashboard_helper.rb:162:in `widget_body'
app/views/dashboard/_widget.html.erb:3
org/jruby/RubyKernel.java:2227:in `send'
gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:34:in `render'
gems/gems/actionpack-2.3.15/lib/action_view/base.rb:306:in `with_template'
gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:30:in `render'
gems/gems/actionpack-2.3.15/lib/action_view/renderable_partial.rb:20:in `render'
gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:30:in `benchmark'
gems/gems/actionpack-2.3.15/lib/action_view/renderable_partial.rb:19:in `render'
gems/gems/actionpack-2.3.15/lib/action_view/template.rb:205:in `render_template'
gems/gems/actionpack-2.3.15/lib/action_view/renderable_partial.rb:44:in `render_partial'
gems/gems/actionpack-2.3.15/lib/action_view/partials.rb:184:in `render_partial'
gems/gems/actionpack-2.3.15/lib/action_view/base.rb:267:in `render'
app/views/dashboard/index.html.erb:19
org/jruby/RubyArray.java:1613:in `each'
app/views/dashboard/index.html.erb:15
org/jruby/RubyRange.java:427:in `each'
app/views/dashboard/index.html.erb:9
org/jruby/RubyKernel.java:2227:in `send'
gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:34:in `render'
gems/gems/actionpack-2.3.15/lib/action_view/base.rb:306:in `with_template'
gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:30:in `render'
gems/gems/actionpack-2.3.15/lib/action_view/template.rb:205:in `render_template'
gems/gems/actionpack-2.3.15/lib/action_view/base.rb:265:in `render'
gems/gems/actionpack-2.3.15/lib/action_view/base.rb:348:in `_render_with_layout'
gems/gems/actionpack-2.3.15/lib/action_view/base.rb:262:in `render'
gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1252:in `render_for_file'
gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:936:in `render'
gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:51:in `render_with_benchmark'
gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:51:in `render_with_benchmark'
gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1328:in `default_render'
gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1334:in `perform_action'
gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:617:in `call_filters'
gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:610:in `perform_action_with_filters'
gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
gems/gems/actionpack-2.3.15/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'
gems/gems/actionpack-2.3.15/lib/action_controller/flash.rb:151:in `perform_action_with_flash'
org/jruby/RubyKernel.java:2223:in `send'
gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:532:in `process'
gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:606:in `process_with_filters'
gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:391:in `process'
gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:386:in `call'
gems/gems/actionpack-2.3.15/lib/action_controller/routing/route_set.rb:450:in `call'
gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:87:in `dispatch'
gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:121:in `_call'
gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
org/jruby/RubyProc.java:290:in `call'
org/jruby/RubyProc.java:224:in `call'
gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:29:in `call'
gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:9:in `cache'
gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:28:in `call'
gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
gems/gems/actionpack-2.3.15/lib/action_controller/string_coercion.rb:25:in `call'
gems/gems/actionpack-2.3.15/lib/action_controller/params_parser.rb:15:in `call'
file:/opt/tools/sonarqube-5.1/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/session_store.rb:70:in `context'
gems/gems/actionpack-2.3.15/lib/action_controller/failsafe.rb:26:in `call'
gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:106:in `call'
file:/opt/tools/sonarqube-5.1/lib/server/jruby-rack-1.1.13.2.jar!/rack/adapter/rails.rb:34:in `serve_rails'
file:/opt/tools/sonarqube-5.1/lib/server/jruby-rack-1.1.13.2.jar!/rack/adapter/rails.rb:39:in `call'
file:/opt/tools/sonarqube-5.1/lib/server/jruby-rack-1.1.13.2.jar!/rack/handler/servlet.rb:22:in `call'
Also, the "Time Machine" dashboard of all my existing projects are completely broken with a similar message:
2016.01.28 14:35:30 ERROR web[rails] Can not render widget time_machine: undefined method `to_date' for nil:NilClass
2016.01.28 14:35:30 ERROR web[rails] compiled-template:80:in `_run_inline_733135258_locals_dashboard_configuration_widget_widget_properties'
2016.01.28 14:35:30 ERROR web[rails] org/jruby/RubyArray.java:1613:in `each'
2016.01.28 14:35:30 ERROR web[rails] compiled-template:76:in `_run_inline_733135258_locals_dashboard_configuration_widget_widget_properties'
2016.01.28 14:35:30 ERROR web[rails] org/jruby/RubyKernel.java:2227:in `send'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:34:in `render'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:306:in `with_template'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:30:in `render'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:269:in `render'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/app/helpers/dashboard_helper.rb:162:in `widget_body'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/app/views/dashboard/_widget.html.erb:3:in `_run_erb_app47views47dashboard47_widget46html46erb_locals_object_widget'
2016.01.28 14:35:30 ERROR web[rails] org/jruby/RubyKernel.java:2227:in `send'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:34:in `render'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:306:in `with_template'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:30:in `render'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable_partial.rb:20:in `render'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:30:in `benchmark'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable_partial.rb:19:in `render'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/template.rb:205:in `render_template'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable_partial.rb:44:in `render_partial'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/partials.rb:184:in `render_partial'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:267:in `render'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/app/views/dashboard/index.html.erb:19:in `_run_erb_app47views47dashboard47index46html46erb'
2016.01.28 14:35:30 ERROR web[rails] org/jruby/RubyArray.java:1613:in `each'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/app/views/dashboard/index.html.erb:15:in `_run_erb_app47views47dashboard47index46html46erb'
2016.01.28 14:35:30 ERROR web[rails] org/jruby/RubyRange.java:427:in `each'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/app/views/dashboard/index.html.erb:9:in `_run_erb_app47views47dashboard47index46html46erb'
2016.01.28 14:35:30 ERROR web[rails] org/jruby/RubyKernel.java:2227:in `send'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:34:in `render'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:306:in `with_template'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:30:in `render'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/template.rb:205:in `render_template'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:265:in `render'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:348:in `_render_with_layout'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:262:in `render'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1252:in `render_for_file'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:936:in `render'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:51:in `render_with_benchmark'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:17:in `ms'
2016.01.28 14:35:30 ERROR web[rails] jar:file:/opt/tools/sonarqube-5.1/lib/server/jruby-complete-1.7.9.jar!/META-INF/jruby.home/lib/ruby/1.8/benchmark.rb:308:in `realtime'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:17:in `ms'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:51:in `render_with_benchmark'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1328:in `default_render'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1334:in `perform_action'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:617:in `call_filters'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:610:in `perform_action_with_filters'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:17:in `ms'
2016.01.28 14:35:30 ERROR web[rails] jar:file:/opt/tools/sonarqube-5.1/lib/server/jruby-complete-1.7.9.jar!/META-INF/jruby.home/lib/ruby/1.8/benchmark.rb:308:in `realtime'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:17:in `ms'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/flash.rb:151:in `perform_action_with_flash'
2016.01.28 14:35:30 ERROR web[rails] org/jruby/RubyKernel.java:2223:in `send'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:532:in `process'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:606:in `process_with_filters'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:391:in `process'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:386:in `call'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/routing/route_set.rb:450:in `call'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:87:in `dispatch'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:85:in `dispatch'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:121:in `_call'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
2016.01.28 14:35:30 ERROR web[rails] org/jruby/RubyProc.java:290:in `call'
2016.01.28 14:35:30 ERROR web[rails] org/jruby/RubyProc.java:224:in `call'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:29:in `call'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:9:in `cache'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:28:in `call'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/string_coercion.rb:25:in `call'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/rack-1.1.6/lib/rack/head.rb:9:in `call'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/rack-1.1.6/lib/rack/methodoverride.rb:24:in `call'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/params_parser.rb:15:in `call'
2016.01.28 14:35:30 ERROR web[rails] file:/opt/tools/sonarqube-5.1/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/session_store.rb:70:in `context'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/rack-1.1.6/lib/rack/session/abstract/id.rb:58:in `call'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/failsafe.rb:26:in `call'
2016.01.28 14:35:30 ERROR web[rails] /opt/tools/sonarqube-5.1/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:106:in `call'
2016.01.28 14:35:30 ERROR web[rails] file:/opt/tools/sonarqube-5.1/lib/server/jruby-rack-1.1.13.2.jar!/rack/adapter/rails.rb:34:in `serve_rails'
2016.01.28 14:35:30 ERROR web[rails] file:/opt/tools/sonarqube-5.1/lib/server/jruby-rack-1.1.13.2.jar!/rack/adapter/rails.rb:39:in `call'
2016.01.28 14:35:30 ERROR web[rails] file:/opt/tools/sonarqube-5.1/lib/server/jruby-rack-1.1.13.2.jar!/rack/handler/servlet.rb:22:in `call'
From what I can see in the database migration log output, a lot of "date" named columns have been renamed and/or removed from the database - somehow this seems to be related.
We are running SonarQube on a Linux box in an Oracle XE database. We want to upgrade to Sonar 5.3 in order to use some newer plugins. As we have some history for our projects, we do not want to lose it...
Are there some other pre-requisites not mentioned in the Upgrade guide of SonarQube (http://docs.sonarqube.org/display/SONAR/Upgrading and http://docs.sonarqube.org/display/SONAR/Release+5.1+Upgrade+Notes) that I need to fulfil?
As stated in the documentation http://docs.sonarqube.org/display/SONAR/Upgrading, you have to analysis your projects once the upgrade is finished to have fresh data.
Is it a step you performed ?

Cannot Display measure_filter_list in Sonar 4.3.2 after Schema Migraiton

We are using Sonarqube 4.3.2. We migrated the Oracle 11.2 Schema to a different Oracle DB server. After migration when logged in as admin, we get the following:
Error occurred while trying to display the widget "measure_filter_list
I tried changing the database entry to remove sort=links as suggested here. However that does not help.
Can you please suggest what can be done? We do not have an immediate plan to upgrade.
Any help appreciated.
Below is error log.
2015.07.02 09:54:04 ERROR web[rails] Can not render widget measure_filter_list: cannot convert instance of class org.jruby.RubyString to class java.lang.Long
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/app/models/measure_filter.rb:206:in `execute'
2015.07.02 09:54:04 ERROR web[rails] compiled-template:10:in `_run_inline_332360915_locals_dashboard_configuration_widget_widget_properties'
2015.07.02 09:54:04 ERROR web[rails] org/jruby/RubyKernel.java:2227:in `send'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:34:in `render'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:306:in `with_template'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:30:in `render'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:269:in `render'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/app/helpers/dashboard_helper.rb:161:in `widget_body'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/app/views/dashboard/_widget.html.erb:3:in `_run_erb_app47views47dashboard47_widget46html46erb_locals_object_widget'
2015.07.02 09:54:04 ERROR web[rails] org/jruby/RubyKernel.java:2227:in `send'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:34:in `render'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:306:in `with_template'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:30:in `render'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable_partial.rb:20:in `render'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:30:in `benchmark'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable_partial.rb:19:in `render'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/template.rb:205:in `render_template'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable_partial.rb:44:in `render_partial'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/partials.rb:184:in `render_partial'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:267:in `render'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/app/views/dashboard/index.html.erb:19:in `_run_erb_app47views47dashboard47index46html46erb'
2015.07.02 09:54:04 ERROR web[rails] org/jruby/RubyArray.java:1613:in `each'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/app/views/dashboard/index.html.erb:15:in `_run_erb_app47views47dashboard47index46html46erb'
2015.07.02 09:54:04 ERROR web[rails] org/jruby/RubyRange.java:427:in `each'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/app/views/dashboard/index.html.erb:9:in `_run_erb_app47views47dashboard47index46html46erb'
2015.07.02 09:54:04 ERROR web[rails] org/jruby/RubyKernel.java:2227:in `send'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:34:in `render'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:306:in `with_template'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/renderable.rb:30:in `render'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/template.rb:205:in `render_template'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:265:in `render'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:348:in `_render_with_layout'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_view/base.rb:262:in `render'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1252:in `render_for_file'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:936:in `render'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:51:in `render_with_benchmark'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:17:in `ms'
2015.07.02 09:54:04 ERROR web[rails] jar:file:/misc-app-data/sonar/sonarqube_uat-4.5/lib/server/jruby-complete-1.7.9.jar!/META-INF/jruby.home/lib/ruby/1.8/benchmark.rb:308:in `realtime'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:17:in `ms'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:51:in `render_with_benchmark'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1328:in `default_render'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:1334:in `perform_action'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:617:in `call_filters'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:610:in `perform_action_with_filters'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:17:in `ms'
2015.07.02 09:54:04 ERROR web[rails] jar:file:/misc-app-data/sonar/sonarqube_uat-4.5/lib/server/jruby-complete-1.7.9.jar!/META-INF/jruby.home/lib/ruby/1.8/benchmark.rb:308:in `realtime'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:17:in `ms'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/flash.rb:151:in `perform_action_with_flash'
2015.07.02 09:54:04 ERROR web[rails] org/jruby/RubyKernel.java:2223:in `send'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:532:in `process'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/filters.rb:606:in `process_with_filters'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:391:in `process'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/base.rb:386:in `call'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/routing/route_set.rb:450:in `call'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:87:in `dispatch'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:121:in `_call'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
2015.07.02 09:54:04 ERROR web[rails] org/jruby/RubyProc.java:290:in `call'
2015.07.02 09:54:04 ERROR web[rails] org/jruby/RubyProc.java:224:in `call'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:29:in `call'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:9:in `cache'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:28:in `call'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/string_coercion.rb:25:in `call'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/rack-1.1.6/lib/rack/head.rb:9:in `call'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/rack-1.1.6/lib/rack/methodoverride.rb:24:in `call'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/params_parser.rb:15:in `call'
2015.07.02 09:54:04 ERROR web[rails] file:/misc-app-data/sonar/sonarqube_uat-4.5/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/session_store.rb:70:in `context'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/rack-1.1.6/lib/rack/session/abstract/id.rb:58:in `call'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/failsafe.rb:26:in `call'
2015.07.02 09:54:04 ERROR web[rails] /misc-app-data/sonar/sonarqube_uat-4.5/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:106:in `call'
2015.07.02 09:54:04 ERROR web[rails] file:/misc-app-data/sonar/sonarqube_uat-4.5/lib/server/jruby-rack-1.1.13.2.jar!/rack/adapter/rails.rb:34:in `serve_rails'
2015.07.02 09:54:04 ERROR web[rails] file:/misc-app-data/sonar/sonarqube_uat-4.5/lib/server/jruby-rack-1.1.13.2.jar!/rack/adapter/rails.rb:39:in `call'
2015.07.02 09:54:04 ERROR web[rails] file:/misc-app-data/sonar/sonarqube_uat-4.5/lib/server/jruby-rack-1.1.13.2.jar!/rack/handler/servlet.rb:22:in `call'
From what I see in your previous question (Sonar Analysis Fails with error Unable to evict preview database in 4.3.2 following schema migration), your database has been manually altered so you can't expect SonarQube to work properly.

undefined method `cookie_expiration' for nil:NilClass

getting a no method error while using clearance for authentication, i was trying to create a user using sign_up
clearance (0.11.1)
rails 3.0.7
ruby 1.8.7
on Windows XP.
activesupport (3.0.7) lib/active_support/whiny_nil.rb:48:in `method_missing'
clearance (0.11.1) lib/clearance/authentication.rb:51:in `sign_in'
clearance (0.11.1) app/controllers/clearance/users_controller.rb:15:in `create'
actionpack (3.0.7) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (3.0.7) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (3.0.7) lib/abstract_controller/base.rb:150:in `process_action'
actionpack (3.0.7) lib/action_controller/metal/rendering.rb:11:in `process_action'
actionpack (3.0.7) lib/abstract_controller/callbacks.rb:18:in `process_action'
activesupport (3.0.7) lib/active_support/callbacks.rb:443:in `_run__901813995__process_action__524098549__callbacks'
activesupport (3.0.7) lib/active_support/callbacks.rb:410:in `send'
activesupport (3.0.7) lib/active_support/callbacks.rb:410:in `_run_process_action_callbacks'
activesupport (3.0.7) lib/active_support/callbacks.rb:94:in `send'
activesupport (3.0.7) lib/active_support/callbacks.rb:94:in `run_callbacks'
actionpack (3.0.7) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.0.7) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
activesupport (3.0.7) lib/active_support/notifications.rb:52:in `instrument'
activesupport (3.0.7) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.0.7) lib/active_support/notifications.rb:52:in `instrument'
actionpack (3.0.7) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.0.7) lib/action_controller/metal/rescue.rb:17:in `process_action'
actionpack (3.0.7) lib/abstract_controller/base.rb:119:in `process'
actionpack (3.0.7) lib/abstract_controller/rendering.rb:41:in `process'
actionpack (3.0.7) lib/action_controller/metal.rb:138:in `dispatch'
actionpack (3.0.7) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.0.7) lib/action_controller/metal.rb:178:in `action'
actionpack (3.0.7) lib/action_dispatch/routing/route_set.rb:62:in `call'
actionpack (3.0.7) lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
actionpack (3.0.7) lib/action_dispatch/routing/route_set.rb:27:in `call'
rack-mount (0.6.14) lib/rack/mount/route_set.rb:148:in `call'
rack-mount (0.6.14) lib/rack/mount/code_generation.rb:93:in `recognize'
rack-mount (0.6.14) lib/rack/mount/code_generation.rb:75:in `optimized_each'
rack-mount (0.6.14) lib/rack/mount/code_generation.rb:92:in `recognize'
rack-mount (0.6.14) lib/rack/mount/route_set.rb:139:in `call'
actionpack (3.0.7) lib/action_dispatch/routing/route_set.rb:493:in `call'
actionpack (3.0.7) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
actionpack (3.0.7) lib/action_dispatch/middleware/head.rb:14:in `call'
rack (1.2.3) lib/rack/methodoverride.rb:24:in `call'
actionpack (3.0.7) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.0.7) lib/action_dispatch/middleware/flash.rb:182:in `call'
actionpack (3.0.7) lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
actionpack (3.0.7) lib/action_dispatch/middleware/cookies.rb:302:in `call'
activerecord (3.0.7) lib/active_record/query_cache.rb:32:in `call'
activerecord (3.0.7) lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
activerecord (3.0.7) lib/active_record/query_cache.rb:12:in `cache'
activerecord (3.0.7) lib/active_record/query_cache.rb:31:in `call'
activerecord (3.0.7) lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call'
actionpack (3.0.7) lib/action_dispatch/middleware/callbacks.rb:46:in `call'
activesupport (3.0.7) lib/active_support/callbacks.rb:416:in `_run_call_callbacks'
actionpack (3.0.7) lib/action_dispatch/middleware/callbacks.rb:44:in `call'
rack (1.2.3) lib/rack/sendfile.rb:107:in `call'
actionpack (3.0.7) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.0.7) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
railties (3.0.7) lib/rails/rack/logger.rb:13:in `call'
rack (1.2.3) lib/rack/runtime.rb:17:in `call'
activesupport (3.0.7) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.2.3) lib/rack/lock.rb:11:in `call'
rack (1.2.3) lib/rack/lock.rb:11:in `synchronize'
rack (1.2.3) lib/rack/lock.rb:11:in `call'
actionpack (3.0.7) lib/action_dispatch/middleware/static.rb:30:in `call'
railties (3.0.7) lib/rails/application.rb:168:in `call'
railties (3.0.7) lib/rails/application.rb:77:in `send'
railties (3.0.7) lib/rails/application.rb:77:in `method_missing'
railties (3.0.7) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.2.3) lib/rack/content_length.rb:13:in `call'
rack (1.2.3) lib/rack/handler/webrick.rb:52:in `service'
c:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
c:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
c:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
c:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:162:in `start'
c:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
c:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:95:in `start'
c:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:92:in `each'
c:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:92:in `start'
c:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:23:in `start'
c:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:82:in `start'
rack (1.2.3) lib/rack/handler/webrick.rb:13:in `run'
rack (1.2.3) lib/rack/server.rb:217:in `start'
railties (3.0.7) lib/rails/commands/server.rb:65:in `start'
railties (3.0.7) lib/rails/commands.rb:30
railties (3.0.7) lib/rails/commands.rb:27:in `tap'
railties (3.0.7) lib/rails/commands.rb:27
script/rails:6:in `require'
script/rails:6
EDIT: Code added:
class ApplicationController < ActionController::Base
include Clearance::Authentication
protect_from_forgery
end
model:
class User < ActiveRecord::Base
include Clearance::User
end
HTML erb
<h2>Sign in</h2>
<%= form_for :session, :url => session_path do |form| %>
<div class="text_field">
<%= form.label :email %>
<%= form.text_field :email, :type => "email" %>
</div>
<div class="text_field">
<%= form.label :password %>
<%= form.password_field :password %>
</div>
<div class="submit_field">
<%= form.submit "Sign in" %>
</div>
<% end %>
<ul>
<li>
<%= link_to "Sign up", sign_up_path %>
</li>
<li>
<%= link_to "Forgot password?", new_password_path %>
</li>
</ul>
removed and re-installed clearance gem and gave a server-restart.
Not seeing the error anymore.

Resources