<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Exception when i try to extract fields in the web interface in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Exception-when-i-try-to-extract-fields-in-the-web-interface/m-p/70914#M992</link>
    <description>&lt;P&gt;No matter on what message i try to extract fileds i end up with a short Python exception (Error 500):&lt;/P&gt;

&lt;P&gt;AttributeError: 'str' object has no attribute 'toPrimitive'&lt;/P&gt;

&lt;P&gt;Here's the full exception:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2010-10-14 14:44:00,261 INFO    [4cb6fb0ef723b24d0] FieldLearning:56 - GENERATING RULES FROM 100 EVENTS
2010-10-14 14:44:00,994 WARNING [4cb6fb0ef723b24d0] format:47 - There was an error parsing the feed document. Error: PCDATA invalid Char value 27, line 24899, column 44
2010-10-14 14:44:00,995 INFO    [4cb6fb0ef723b24d0] _cplogging:55 - [14/Oct/2010:14:44:00] HTTP 
Request Headers:
  REFERER: &lt;A href="http://172.20.50.235:8000/en-US/app/search/flashtimeline?q=search%20*" target="test_blank"&gt;http://172.20.50.235:8000/en-US/app/search/flashtimeline?q=search%20*&lt;/A&gt;
  HOST: 172.20.50.235:8000
  ACCEPT: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
  ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.3
  USER-AGENT: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3
  CONNECTION: keep-alive
  COOKIE: session_id_8000=d350af526b47d6a37201356333c4206785356e8e
  Remote-Addr: 172.20.50.105
  ACCEPT-LANGUAGE: en-US,en;q=0.8
  ACCEPT-ENCODING: gzip,deflate,sdch
2010-10-14 14:44:00,995 DEBUG   [4cb6fb0ef723b24d0] _cplogging:55 - [14/Oct/2010:14:44:00] HTTP Traceback (most recent call last):
  File "/data/splunk/lib/python2.6/site-packages/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/data/splunk/lib/python2.6/site-packages/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/lib/routes.py", line 307, in default
    return route.target(self, **kw)
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 38, in rundecs
    return fn(*a, **kw)
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 93, in check
    return fn(self, *a, **kw)
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 141, in validate_ip
    return fn(self, *a, **kw)
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 275, in preform_sso_check
    return fn(self, *a, **kw)
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 312, in check_login
    return fn(self, *a, **kw)
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 333, in handle_exceptions
    return fn(self, *a, **kw)
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/controllers/ifx.py", line 97, in index
    if not fieldNameExtractionExists(args, regex):
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/controllers/ifx.py", line 414, in fieldNameExtractionExists
    props = bundle.getConf('props', sessionkey, namespace, owner)
  File "/data/splunk/lib/python2.6/site-packages/splunk/bundle.py", line 46, in getConf
    stanzas = confFeed.toPrimitive()
AttributeError: 'str' object has no attribute 'toPrimitive'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Thu, 14 Oct 2010 19:49:53 GMT</pubDate>
    <dc:creator>dkerwin</dc:creator>
    <dc:date>2010-10-14T19:49:53Z</dc:date>
    <item>
      <title>Exception when i try to extract fields in the web interface</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Exception-when-i-try-to-extract-fields-in-the-web-interface/m-p/70914#M992</link>
      <description>&lt;P&gt;No matter on what message i try to extract fileds i end up with a short Python exception (Error 500):&lt;/P&gt;

&lt;P&gt;AttributeError: 'str' object has no attribute 'toPrimitive'&lt;/P&gt;

&lt;P&gt;Here's the full exception:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2010-10-14 14:44:00,261 INFO    [4cb6fb0ef723b24d0] FieldLearning:56 - GENERATING RULES FROM 100 EVENTS
2010-10-14 14:44:00,994 WARNING [4cb6fb0ef723b24d0] format:47 - There was an error parsing the feed document. Error: PCDATA invalid Char value 27, line 24899, column 44
2010-10-14 14:44:00,995 INFO    [4cb6fb0ef723b24d0] _cplogging:55 - [14/Oct/2010:14:44:00] HTTP 
Request Headers:
  REFERER: &lt;A href="http://172.20.50.235:8000/en-US/app/search/flashtimeline?q=search%20*" target="test_blank"&gt;http://172.20.50.235:8000/en-US/app/search/flashtimeline?q=search%20*&lt;/A&gt;
  HOST: 172.20.50.235:8000
  ACCEPT: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
  ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.3
  USER-AGENT: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3
  CONNECTION: keep-alive
  COOKIE: session_id_8000=d350af526b47d6a37201356333c4206785356e8e
  Remote-Addr: 172.20.50.105
  ACCEPT-LANGUAGE: en-US,en;q=0.8
  ACCEPT-ENCODING: gzip,deflate,sdch
2010-10-14 14:44:00,995 DEBUG   [4cb6fb0ef723b24d0] _cplogging:55 - [14/Oct/2010:14:44:00] HTTP Traceback (most recent call last):
  File "/data/splunk/lib/python2.6/site-packages/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/data/splunk/lib/python2.6/site-packages/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/lib/routes.py", line 307, in default
    return route.target(self, **kw)
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 38, in rundecs
    return fn(*a, **kw)
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 93, in check
    return fn(self, *a, **kw)
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 141, in validate_ip
    return fn(self, *a, **kw)
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 275, in preform_sso_check
    return fn(self, *a, **kw)
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 312, in check_login
    return fn(self, *a, **kw)
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 333, in handle_exceptions
    return fn(self, *a, **kw)
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/controllers/ifx.py", line 97, in index
    if not fieldNameExtractionExists(args, regex):
  File "/data/splunk/lib/python2.6/site-packages/splunk/appserver/mrsparkle/controllers/ifx.py", line 414, in fieldNameExtractionExists
    props = bundle.getConf('props', sessionkey, namespace, owner)
  File "/data/splunk/lib/python2.6/site-packages/splunk/bundle.py", line 46, in getConf
    stanzas = confFeed.toPrimitive()
AttributeError: 'str' object has no attribute 'toPrimitive'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2010 19:49:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Exception-when-i-try-to-extract-fields-in-the-web-interface/m-p/70914#M992</guid>
      <dc:creator>dkerwin</dc:creator>
      <dc:date>2010-10-14T19:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when i try to extract fields in the web interface</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Exception-when-i-try-to-extract-fields-in-the-web-interface/m-p/70915#M993</link>
      <description>&lt;P&gt;I recommend &lt;A href="https://www.splunk.com/index.php/submit_issue" rel="nofollow"&gt;contacting Splunk support&lt;/A&gt; about this issue.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2010 20:34:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Exception-when-i-try-to-extract-fields-in-the-web-interface/m-p/70915#M993</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2010-10-14T20:34:01Z</dc:date>
    </item>
  </channel>
</rss>

