Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent parsing => REXML::ParseException #2

Open
eignerchris opened this issue Apr 21, 2010 · 0 comments
Open

Inconsistent parsing => REXML::ParseException #2

eignerchris opened this issue Apr 21, 2010 · 0 comments

Comments

@eignerchris
Copy link

on console...seeing inconsistent parsing behavior. first three times it returned all 100+ projects we have. waited 15 sec, tried again, got exception. example below.

irb(main):022:0> Lighthouse.account = LH_ACCOUNT
irb(main):022:0> Lighthouse.token = LH_TOKEN
irb(main):022:0> Lighthouse::Project.find(:all)
REXML::ParseException: #<REXML::ParseException: #<NoMethodError: undefined method []' for nil:NilClass> /opt/local/lib/ruby/1.8/rexml/parsers/baseparser.rb:330:in pull'
/opt/local/lib/ruby/1.8/rexml/parsers/treeparser.rb:22:inparse' /opt/local/lib/ruby/1.8/rexml/document.rb:227:in build'
/opt/local/lib/ruby/1.8/rexml/document.rb:43:ininitialize' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini/rexml.rb:17:in new'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini/rexml.rb:17:inparse' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini.rb:12:in send'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini.rb:12:inparse' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/conversions.rb:164:in from_xml'
/opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/formats/xml_format.rb:19:indecode' /opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/connection.rb:138:in get'
/opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/base.rb:639:infind_every' /opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/base.rb:582:in find'
(irb):22:inirb_binding' /opt/local/lib/ruby/1.8/irb/workspace.rb:52:in irb_binding'
:0
...
Exception parsing
Line:
Position:
Last 80 unconsumed characters:

/opt/local/lib/ruby/1.8/rexml/parsers/baseparser.rb:418:inpull' /opt/local/lib/ruby/1.8/rexml/parsers/treeparser.rb:22:in parse'
/opt/local/lib/ruby/1.8/rexml/document.rb:227:inbuild' /opt/local/lib/ruby/1.8/rexml/document.rb:43:in initialize'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini/rexml.rb:17:innew' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini/rexml.rb:17:in parse'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini.rb:12:in**send**' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini.rb:12:in parse'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/conversions.rb:164:infrom_xml' /opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/formats/xml_format.rb:19:in decode'
/opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/connection.rb:138:inget' /opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/base.rb:639:in find_every'
/opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/base.rb:582:infind' (irb):22:in irb_binding'
/opt/local/lib/ruby/1.8/irb/workspace.rb:52:in`irb_binding'
:0
-- truncated --

Exception parsing
Line:
Position:
Last 80 unconsumed characters:
</default-assigned-user
Line:
Position:
Last 80 unconsumed characters:
</default-assigned-user
from /opt/local/lib/ruby/1.8/rexml/parsers/treeparser.rb:92:in parse' from /opt/local/lib/ruby/1.8/rexml/document.rb:227:inbuild'
from /opt/local/lib/ruby/1.8/rexml/document.rb:43:in initialize' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini/rexml.rb:17:innew'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini/rexml.rb:17:in parse' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini.rb:12:insend'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini.rb:12:in parse' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/conversions.rb:164:infrom_xml'
from /opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/formats/xml_format.rb:19:in decode' from /opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/connection.rb:138:inget'
from /opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/base.rb:639:in find_every' from /opt/local/lib/ruby/gems/1.8/gems/activeresource-2.3.5/lib/active_resource/base.rb:582:infind'
from (irb):22
from :0

urbanautomaton referenced this issue in urbanautomaton/lighthouse-api Jun 19, 2013
Fix xml default for newer activesupport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant