Error after calling render() on a webPart object

LabKey Support Forum (Inactive)
Error after calling render() on a webPart object Leo Dashevskiy  2012-07-02 16:20
Status: Closed
 
Uncaught SyntaxError: Unexpected token < ext-all-debug.js:4934
(anonymous function) ext-all-debug.js:4934
loadAjaxContent Utils.js:1105
renderPart WebPart.js:168
Ext.extend.handleResponse ext-all-debug.js:4643
handleTransactionResponse ext-base-debug.js:1888
checkResponse ext-base-debug.js:1936
(anonymous function)

In line 168 of WebPart.js

LABKEY.Utils.loadAjaxContent(response, targetElem, _success, _scope):

targetElem is an existing <div> in the DOM hard-coded in the HTML file and
response is an object with some attributes like
status: 200
statusText: OK
responseText:

<table class="labkey-output"><tr><td><pre>File already exists, no need to recreate it!
</pre></td></tr></table><br/>

which is what I'm after: my R code is

if ( true )
 txt <- "File already exists, no need to recreate it!";

write(txt, file="${txtout:textOutput}");

So what is the issue/problem here?

Is the Ext.util.JSON.decode() method not liking the <br/> piece at the end?
It was working before for me...

Recently I upgraded the server from 12.1 to 12.2

Thanks.
-Leo
 
 
Ben Bimber responded:  2012-07-02 16:27
Hi Leo,

Thanks for reporting this. We have been changing how we load content from webparts, and this appears to be a bug. I'll look into it.

However, could you also say a little about where you got the 12.2 build? If you go to the admin console, could you say what the SVN revision is for the core module? (see the module list in the bottom right).

Thanks.
 
Leo Dashevskiy responded:  2012-07-02 16:45
Is this what you asking:

Core 12.11
Build OS    Linux
Build Path    /home/ldashevs/Labkey/release/server/../build/modules/core
Build Time    June 26 2012, 12:06 PM
Build User    ldashevs
Extracted Path    /home/ldashevs/Labkey/release/build/deploy/modules/core
Module Class    org.labkey.core.CoreModule
Module Dependencies    <none>
SVN Revision    20898
SVN URL    https://hedgehog.fhcrc.org/tor/stedi/trunk/server
Version    12.11

Should I upgrade to the absolute latest?
 
Leo Dashevskiy responded:  2012-07-02 17:55
Code base changes are pretty high paced at the bleeding edge here...