Page 1 of 1

Message: "Error"

PostPosted: Sat Mar 17, 2012 3:43 pm
by tofuSCHNITZEL
Problem Description:
When I open the subsonic webpage I get a Javascript MessageBox with the Content: "Error". Everything is working fine. Navigating the site does not display the error but when I refresh the whole thing the MessageBox pops up again. I narrowed it down to the "right.view" page. When I open this the Error MessageBox appears. The error was not there all the time but I can't remember when I first saw it.
The easiest solution would be to disable the chat entirely...
Subsonic Version:
4.6 (build 2583) – December 6, 2011
Server Version:
Apache Tomcat/6.0.35, java 1.6.0_30, Windows Server 2008 R2 (117.1 MB / 385.9 MB)
Hardware Platform:
Windows Server 2008 R2 x64

the subsonic log does not contain any errors (only indexing status messages)

here is a copy of the firebug log:
Image Version:
http://i42.tinypic.com/124cyg6.jpg
Code: Select all
POST https://xxxx/subsonic/dwr/call/plaincall/__System.pageLoaded.dwr
   
200 OK
      116ms   
engine.js (line 1)
HeadersPostResponse

throw 'allowScriptTagRemoting is false.';
//#DWR-INSERT
dwr.engine.remote.handleNewScriptSession("D376B23DD0EFECA0C5E3E410A06F25E6");
//#DWR-REPLY
dwr.engine.remote.handleCallback("0","0",null);

POST https://xxxx/subsonic/dwr/call/plaincall/nowPlayingService.getNowPlaying.dwr
   
200 OK
      323ms   
engine.js (line 1)
HeadersPostResponse

throw 'allowScriptTagRemoting is false.';
//#DWR-INSERT
//#DWR-REPLY
dwr.engine.remote.handleException("1","0",{javaClassName:"java.lang.Throwable",message:"Error"});

POST https://xxxx/subsonic/dwr/call/plaincall/chatService.addMessage.dwr
   
200 OK
      470ms   
engine.js (line 1)
HeadersPostResponse

throw 'allowScriptTagRemoting is false.';
//#DWR-INSERT
//#DWR-REPLY
dwr.engine.remote.handleCallback("2","0",null);

setErrorHandler()engine.js (line 1)
message = "Error: undefined, Error"
stacktrace = true
setErrorHandler()engine.js (line 1)
message = "Error"
ex = Object { javaClassName="java.lang.Throwable", message="Error"}
setErrorHandler()engine.js (line 1)
batchId = "1"
callId = "0"
ex = Object { javaClassName="java.lang.Throwable", message="Error"}
eval()3 (line 4)
setErrorHandler()engine.js (line 1)
script = "\r\n//#DWR-INSERT\r\n//#DWR...e",message:"Error"});\r\n"
setErrorHandler()engine.js (line 2)
batch = Object { async=true, charsProcessed=0, handlers=[1], more...}
setErrorHandler()engine.js (line 1)
Error: undefined, Error
engine.js (line 1)
POST https://xxxx/subsonic/dwr/call/plaincall/chatService.getMessages.dwr
   
200 OK
      159ms   
engine.js (line 1)
HeadersPostResponse

throw 'allowScriptTagRemoting is false.';
//#DWR-INSERT
//#DWR-REPLY
dwr.engine.remote.handleCallback("3","0",{messages:[],revision:277035414});

Re: Message: "Error"

PostPosted: Sun Mar 18, 2012 4:28 am
by ytechie
This is great! Finally some log output for this bug... Check it out: viewtopic.php?f=2&t=8579

Re: Message: "Error"

PostPosted: Sun Mar 18, 2012 6:25 am
by tofuSCHNITZEL
I'm glad that this may be helpful...
I just restarted the tomcat service and the error went away. Let's see how long it lasts ;-)

Re: Message: "Error"

PostPosted: Tue Mar 20, 2012 3:05 pm
by Aethies
tofuSCHNITZEL wrote:I'm glad that this may be helpful...
I just restarted the tomcat service and the error went away. Let's see how long it lasts ;-)


It is just one of the things that I have learned to just deal with. It is not often but it does happen. So just restarting the service makes it go away for a while. Not that big of a deal. :)

Re: Message: "Error"

PostPosted: Thu Mar 22, 2012 12:36 am
by ytechie
I never had the error on my server, but I have seen it on someone else's. I am pretty sure it has to do with the user misidentification issue.

viewtopic.php?f=2&t=7837&p=37965

Re: Message: "Error"

PostPosted: Thu Mar 22, 2012 12:53 am
by GJ51
Clear browser cache, reboot server. That always clears it for me.

Re: Message: "Error"

PostPosted: Thu Mar 22, 2012 5:48 am
by ytechie
One of these days I hope to post my fix. I wrote some javascript to take care of the entire issue! It's terrific!

I was waiting to see if Sindre is taking care of the issue on the java side, because my script is a workaround.

Re: Message: "Error"

PostPosted: Thu Mar 22, 2012 4:35 pm
by Aethies
ytechie wrote:One of these days I hope to post my fix. I wrote some javascript to take care of the entire issue! It's terrific!

I was waiting to see if Sindre is taking care of the issue on the java side, because my script is a workaround.


Well, I am pretty sure others are thinking the same thing... Better spill it ytechie! :)