イナバ化粧品店さんの取材記事はこちら
REXML::ParseException at /cgi-bin/feedlink/inaba.cgi

REXML::ParseException at /cgi-bin/feedlink/inaba.cgi

#<RuntimeError: Illegal character '&' in raw string " var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-200948-1']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_setDomainName', '.e-tsuyama.com']); var d = new Date(); var dow = ['1.Sunday','2.Monday','3.Tuesday','4.Wednesday','5.Thursday','6.Friday','7.Saturday']; _gaq.push(['_setCustomVar', 1,'dayofweek',dow[d.getDay()],2]); if (document.referrer && !document.referrer.match(/\.e-tsuyama\.com/)) { _gaq.push(['_setCustomVar', 2, 'original referrer', document.referrer, 3]); } _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? '//ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); "> /usr/lib/ruby/1.8/rexml/text.rb:92:in `initialize' /usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:43:in `new' /usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:43:in `parse' /usr/lib/ruby/1.8/rexml/document.rb:245:in `build' /usr/lib/ruby/1.8/rexml/document.rb:43:in `initialize' ./feedlink.rb:291:in `new' ./feedlink.rb:291:in `to_s' ./feedlink.rb:287:in `each' ./feedlink.rb:287:in `to_s' /var/www/cgi-bin/feedlink/inaba.cgi:40:in `call' /usr/lib/ruby/gems/1.8/gems/rack-1.4.5/lib/rack/showexceptions.rb:24:in `call' /usr/lib/ruby/gems/1.8/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward' /usr/lib/ruby/gems/1.8/gems/rack-cache-1.2/lib/rack/cache/context.rb:207:in `validate' /usr/lib/ruby/gems/1.8/gems/rack-cache-1.2/lib/rack/cache/context.rb:181:in `lookup' /usr/lib/ruby/gems/1.8/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!' /usr/lib/ruby/gems/1.8/gems/rack-cache-1.2/lib/rack/cache/context.rb:49:in `call' /usr/lib/ruby/gems/1.8/gems/rack-1.4.5/lib/rack/handler/cgi.rb:33:in `serve' /usr/lib/ruby/gems/1.8/gems/rack-1.4.5/lib/rack/handler/cgi.rb:9:in `run' /var/www/cgi-bin/feedlink/inaba.cgi:72 ... Illegal character '&' in raw string " var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-200948-1']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_setDomainName', '.e-tsuyama.com']); var d = new Date(); var dow = ['1.Sunday','2.Monday','3.Tuesday','4.Wednesday','5.Thursday','6.Friday','7.Saturday']; _gaq.push(['_setCustomVar', 1,'dayofweek',dow[d.getDay()],2]); if (document.referrer && !document.referrer.match(/\.e-tsuyama\.com/)) { _gaq.push(['_setCustomVar', 2, 'original referrer', document.referrer, 3]); } _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? '//ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); " Line: Position: Last 80 unconsumed characters: </script> </head> <body> <div class="container"> <header class="row page-header

Ruby /usr/lib/ruby/1.8/rexml/parsers/treeparser.rb: in parse, line 92
Web GET www.e-tsuyama.com/cgi-bin/feedlink/inaba.cgi

Jump to:

Traceback (innermost first)

  • /usr/lib/ruby/1.8/rexml/parsers/treeparser.rb: in parse
    1. end
    2. end
    3. rescue REXML::Validation::ValidationException
    4. raise
    5. rescue REXML::UndefinedNamespaceException
    6. raise
    7. rescue
    1. raise ParseException.new( $!.message, @parser.source, @parser, $! )...
    1. end
    2. end
    3. end
    4. end
    5. end
  • /usr/lib/ruby/1.8/rexml/document.rb: in build
    1. def document
    2. self
    3. end
    4. private
    5. def build( source )
    1. Parsers::TreeParser.new( source, self ).parse...
    1. end
    2. end
    3. end
  • /usr/lib/ruby/1.8/rexml/document.rb: in initialize
    1. super()
    2. @context = context
    3. return if source.nil?
    4. if source.kind_of? Document
    5. @context = source.context
    6. super source
    7. else
    1. build( source )...
    1. end
    2. end
    3. def node_type
    4. :document
    5. end
  • ./feedlink.rb: in new
    1. urls = []
    2. @feed_urls.each do |data|
    3. url = data[:url]
    4. doc = nil
    5. begin
    1. doc = REXML::Document.new(open(url).read)...
    1. rescue OpenURI::HTTPError => e
    2. #
    3. end
    4. if doc
    5. retrieve_title = nil
    6. retrieve_alternate = nil
    7. retrieve_handheld = nil
  • ./feedlink.rb: in to_s
    1. urls = []
    2. @feed_urls.each do |data|
    3. url = data[:url]
    4. doc = nil
    5. begin
    1. doc = REXML::Document.new(open(url).read)...
    1. rescue OpenURI::HTTPError => e
    2. #
    3. end
    4. if doc
    5. retrieve_title = nil
    6. retrieve_alternate = nil
    7. retrieve_handheld = nil
  • ./feedlink.rb: in each
    1. excludes << url
    2. end
    3. end
    4. end
    5. urls = []
    1. @feed_urls.each do |data|...
    1. url = data[:url]
    2. doc = nil
    3. begin
    4. doc = REXML::Document.new(open(url).read)
    5. rescue OpenURI::HTTPError => e
    6. #
    7. end
  • ./feedlink.rb: in to_s
    1. excludes << url
    2. end
    3. end
    4. end
    5. urls = []
    1. @feed_urls.each do |data|...
    1. url = data[:url]
    2. doc = nil
    3. begin
    4. doc = REXML::Document.new(open(url).read)
    5. rescue OpenURI::HTTPError => e
    6. #
    7. end
  • /var/www/cgi-bin/feedlink/inaba.cgi: in call
    1. html = feedlink.to_s(
    2. :latest => latest,
    3. :handheld => true,
    4. :limit => limit || 20,
    5. :template => '・<a href="#{url}">#{title}</a> #{options[:new] if published > Time.now - 60*60*24*30}<br /> <font size="-1">#{ published.strftime("%Y.%m.%d") }</font><br />',
    6. :new => '<font color="red">[e:B36]</font>')
    7. else
    1. html = feedlink.to_s(...
    1. :latest => latest,
    2. :limit => limit,
    3. :new => '<img src="http://www.e-tsuyama.com/top/image/new.gif" />')
    4. end
    5. case req.params['ocode']
    6. when 'sjis'
    7. html = NKF.nkf('-Ws --cp932', html)
  • /usr/lib/ruby/gems/1.8/gems/rack-1.4.5/lib/rack/showexceptions.rb: in call
    1. def initialize(app)
    2. @app = app
    3. @template = ERB.new(TEMPLATE)
    4. end
    5. def call(env)
    1. @app.call(env)...
    1. rescue StandardError, LoadError, SyntaxError => e
    2. exception_string = dump_exception(e)
    3. env["rack.errors"].puts(exception_string)
    4. env["rack.errors"].flush
    5. if prefers_plain_text?(env)
  • /usr/lib/ruby/gems/1.8/gems/rack-cache-1.2/lib/rack/cache/context.rb: in forward
    1. true
    2. end
    3. end
    4. end
    5. # Delegate the request to the backend and create the response.
    6. def forward
    1. Response.new(*backend.call(@env))...
    1. end
    2. # The request is sent to the backend, and the backend's response is sent
    3. # to the client, but is not entered into the cache.
    4. def pass
    5. record :pass
    6. forward
  • /usr/lib/ruby/gems/1.8/gems/rack-cache-1.2/lib/rack/cache/context.rb: in validate
    1. # We keep the etags from the client to handle the case when the client
    2. # has a different private valid entry which is not cached here.
    3. cached_etags = entry.etag.to_s.split(/\s*,\s*/)
    4. request_etags = @request.env['HTTP_IF_NONE_MATCH'].to_s.split(/\s*,\s*/)
    5. etags = (cached_etags + request_etags).uniq
    6. @env['HTTP_IF_NONE_MATCH'] = etags.empty? ? nil : etags.join(', ')
    1. response = forward...
    1. if response.status == 304
    2. record :valid
    3. # Check if the response validated which is not cached here
    4. etag = response.headers['ETag']
    5. return response if etag && request_etags.include?(etag) && !cached_etags.include?(etag)
  • /usr/lib/ruby/gems/1.8/gems/rack-cache-1.2/lib/rack/cache/context.rb: in lookup
    1. if entry
    2. if fresh_enough?(entry)
    3. record :fresh
    4. entry.headers['Age'] = entry.age.to_s
    5. entry
    6. else
    7. record :stale
    1. validate(entry)...
    1. end
    2. else
    3. record :miss
    4. fetch
    5. end
    6. end
    7. end
  • /usr/lib/ruby/gems/1.8/gems/rack-cache-1.2/lib/rack/cache/context.rb: in call!
    1. @default_options.each { |k,v| env[k] ||= v }
    2. @env = env
    3. @request = Request.new(@env.dup.freeze)
    4. response =
    5. if @request.get? || @request.head?
    6. if !@env['HTTP_EXPECT'] && !@env['rack-cache.force-pass']
    1. lookup...
    1. else
    2. pass
    3. end
    4. else
    5. invalidate
    6. end
  • /usr/lib/ruby/gems/1.8/gems/rack-cache-1.2/lib/rack/cache/context.rb: in call
    1. end
    2. # The Rack call interface. The receiver acts as a prototype and runs
    3. # each request in a dup object unless the +rack.run_once+ variable is
    4. # set in the environment.
    5. def call(env)
    6. if env['rack.run_once']
    1. call! env...
    1. else
    2. clone.call! env
    3. end
    4. end
    5. # The real Rack call interface. The caching logic is performed within
    6. # the context of the receiver.
  • /usr/lib/ruby/gems/1.8/gems/rack-1.4.5/lib/rack/handler/cgi.rb: in serve
    1. "rack.url_scheme" => ["yes", "on", "1"].include?(ENV["HTTPS"]) ? "https" : "http"
    2. })
    3. env["QUERY_STRING"] ||= ""
    4. env["HTTP_VERSION"] ||= env["SERVER_PROTOCOL"]
    5. env["REQUEST_PATH"] ||= "/"
    1. status, headers, body = app.call(env)...
    1. begin
    2. send_headers status, headers
    3. send_body body
    4. ensure
    5. body.close if body.respond_to? :close
    6. end
    7. end
  • /usr/lib/ruby/gems/1.8/gems/rack-1.4.5/lib/rack/handler/cgi.rb: in run
    1. require 'rack/rewindable_input'
    2. module Rack
    3. module Handler
    4. class CGI
    5. def self.run(app, options=nil)
    6. $stdin.binmode
    1. serve app...
    1. end
    2. def self.serve(app)
    3. env = ENV.to_hash
    4. env.delete "HTTP_CONTENT_LENGTH"
    5. env["SCRIPT_NAME"] = "" if env["SCRIPT_NAME"] == "/"
  • /var/www/cgi-bin/feedlink/inaba.cgi: in nil
    1. cache = Rack::Cache.new(
    2. Rack::ShowExceptions.new(App.new),
    3. :verbose => true,
    4. :metastore => 'file:' + File.join(File.dirname(File.expand_path(__FILE__)), 'tmp/inaba/meta'),
    5. :entitystore => 'file:' + File.join(File.dirname(File.expand_path(__FILE__)), 'tmp/inaba/body')
    6. )
    1. Rack::Handler::CGI.run cache...

Request information

GET

Variable Value
ocode
"sjis"

POST

No POST data.

No cookie data.

Rack ENV

Variable Value
DOCUMENT_ROOT
/var/www/html/movabletype
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING
x-gzip, gzip, deflate
HTTP_CONNECTION
close
HTTP_HOST
www.e-tsuyama.com
HTTP_IF_MODIFIED_SINCE
nil
HTTP_IF_NONE_MATCH
nil
HTTP_USER_AGENT
CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_VERSION
HTTP/1.0
HTTP_X_FORWARDED_FOR
54.80.10.56
HTTP_X_FORWARDED_HOST
www.e-tsuyama.com
HTTP_X_FORWARDED_PROTO
http
HTTP_X_FORWARDED_SERVER
www.e-tsuyama.com
HTTP_X_REAL_IP
54.80.10.56
PATH
/usr/local/rbenv/bin:/sbin:/usr/sbin:/bin:/usr/bin
QUERY_STRING
ocode=sjis
REMOTE_ADDR
54.80.10.56
REMOTE_PORT
37726
REQUEST_METHOD
GET
REQUEST_PATH
/
REQUEST_URI
/cgi-bin/feedlink/inaba.cgi?ocode=sjis
SCRIPT_FILENAME
/var/www/cgi-bin/feedlink/inaba.cgi
SCRIPT_NAME
/cgi-bin/feedlink/inaba.cgi
SERVER_ADDR
127.0.0.1
SERVER_ADMIN
post@e-tsuyama.com
SERVER_NAME
www.e-tsuyama.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.0
SERVER_SIGNATURE
<address>Apache/2.2.15 (CentOS) Server at www.e-tsuyama.com Port 80</address>
SERVER_SOFTWARE
Apache/2.2.15 (CentOS)
on
127.0.0.1
rack-cache.allow_reload
false
rack-cache.allow_revalidate
false
rack-cache.cache_key
Rack::Cache::Key
rack-cache.default_ttl
0
rack-cache.entitystore
file:/var/www/cgi-bin/feedlink/tmp/inaba/body
rack-cache.ignore_headers
["Set-Cookie"]
rack-cache.metastore
file:/var/www/cgi-bin/feedlink/tmp/inaba/meta
rack-cache.private_headers
["Authorization", "Cookie"]
rack-cache.storage
#<Rack::Cache::Storage:0x7f5c5649b0b0 @entitystores={"file:/var/www/cgi-bin/feedlink/tmp/inaba/body"=>#<Rack::Cache::EntityStore::Disk:0x7f5c56469fd8 @root="/var/www/cgi-bin/feedlink/tmp/inaba/body">}, @metastores={"file:/var/www/cgi-bin/feedlink/tmp/inaba/meta"=>#<Rack::Cache::MetaStore::Disk:0x7f5c5646a870 @root="/var/www/cgi-bin/feedlink/tmp/inaba/meta">}>
rack-cache.use_native_ttl
false
rack-cache.verbose
true
rack.errors
#<IO:0x7f5c570b5aa8>
rack.input
#<Rack::RewindableInput:0x7f5c5646b2e8 @unlinked=false, @rewindable_io=nil, @io=#<IO:0x7f5c570b5af8>>
rack.multiprocess
true
rack.multithread
false
rack.request.cookie_hash
{}
rack.request.query_hash
{"ocode"=>"sjis"}
rack.request.query_string
ocode=sjis
rack.run_once
true
rack.url_scheme
http
rack.version
[1, 1]

You're seeing this error because you use Rack::ShowExceptions.


〜イナバ化粧品店さんからご提供いただきました〜

   

がまぐちポーチ(スカイブルー

  ・パッションオレンジ

  ・ライムグリーン)を

  各お一人様にプレゼント!

 

1品で5役!洗顔後は

  これ1品でOK!

  弾力ジェルクリームを

  3名様にプレゼント!

 

ナチュラルローズの惠で

  贅沢リラックス「ばら園」

  シャンプーとコンディショナー

  セットを1名様にプレゼント!


その他、イナバ化粧品店で新製品3本買うと下記のプレゼントもあるそうです。

■詳細内容

【応募締切】 平成25年2月28日(木)まで
【提供者】 イナバ化粧品店様、津山瓦版(「ばら園」
【賞品】 がまぐちポーチ 3名様
アクアレーベル スペシャルジェルクリーム 3名様
「ばら園」シャンプー・コンディショナーセット 1名様
【応募要件】
  • アンケートにお答え下さい。(個人情報は公開しません)
【審査方法】 抽選により当選者を決定し、津山瓦版プレゼントコーナー内で発表します。
ご入力頂いた個人情報がプレゼントの発送以外に利用されることはありません。

 

ニックネーム(当選者発表用)
電子メールアドレス
お名前(公表されません)
プレゼント発送先郵便番号
プレゼント発送先住所
電話番号
性別
年齢
岡山県北在住以外の方にお尋ねします。
津山へ訪れたことはありますか?
訪れた目的は何ですか? ※訪れたことのある方のみ
観光等で訪れた方は、どこへ行きましたか?思い出に残った場所やエピソードはありますか? ※訪れたことのある方のみ
訪れたことのない方、あるかた両方の皆さんにお尋ねします。
これから行ってみたい場所やしてみたいことなどはありますか?
みなさんにお尋ねします。
ご意見・ご感想・スタッフやイナバ化粧品店へのメッセージなど自由に
入力忘れ、間違いがないことをよくご確認の上「応募確認画面へ」を押してください。
ご応募は締め切りました。