BJTAWJ / webclient-mobile-for-ca-plex

Automatically exported from code.google.com/p/webclient-mobile-for-ca-plex
0 stars 0 forks source link

Uncaught SyntaxError: Unexpected token ILLEGAL - Ext.util.JSON.decode #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Remove a required SingleFetch from exclipse and re-build & deploy
2. Try to run the application and error appears in console
3. Look at webclient.log for [http-8080-5:ERROR] - Cannot find class...

What is the expected output? What do you see instead?
WebClient is trying to send a user friendly web page with the error text - but 
that web page is failing with a JSON error. See below for the value of s when 
Ext.util.JSON.decode fails.

What version of the product are you using? On what operating system?
Version shipped with conference tutorial.

Please provide any additional information below.

s: "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
"http://www.w3.org/TR/html4/strict.dtd"><html><head><title>WebClient - Error 
Report</title><style>H1 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-s
ize:22px;}↵H2 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-s
ize:16px;}↵H3 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-s
ize:14px;}↵BODY 
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;font-siz
e:12px;width:100%;}↵B 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}↵P 
{font-family:Tahoma,Arial,sans-serif;background-color:white;color:black;font-siz
e:12px;}↵.footer {color:#555555;}↵A {color : black;}↵A.name {color : 
black;}↵HR {color : #525D76;}↵</style>↵</head><body>↵<h1>WebClient - 
Error Report</h1>↵<p>
↵<p><b>An internal error has occurred running this Web 
Application:</b></p><p>Error ID: 
java.lang.NullPointerException</p><p>1309332837471.1</p><HR size="1" 
noshade="noshade"><h3>Stack 
trace:</h3><pre>java.lang.NullPointerException↵   MobileApp.XE3dF_ObFnc.ObSbr_XE
3dF16(XE3dF_ObFnc.java:2432)↵ MobileApp.XE3dF_ObFnc.ObSbr_XE3dF16(XE3dF_ObFnc.
java)↵    MobileApp.XE3dF_ObFnc.ObSbr_XE3dF1(XE3dF_ObFnc.java:1222)↵    MobileApp.
XE3dF_ObFnc.ObSbr_XE3dF1(XE3dF_ObFnc.java)↵   MobileApp.XE3dF_ObFnc.ObRun(XE3dF_
ObFnc.java:252)↵  MobileApp.XE3dF_ObFnc.ObRun(XE3dF_ObFnc.java)↵    MobileApp.XE
GrpLst_ObFnc.ObSbr_XEGrpLst12(XEGrpLst_ObFnc.java:2296)↵  MobileApp.XEGrpLst_Ob
Fnc.ObSbr_XEGrpLst12(XEGrpLst_ObFnc.java)↵    MobileApp.XEGrpLst_ObFnc$XEGrpLst_O
bPnl.eventsHandler(XEGrpLst_ObFnc.java:762)↵  com.adcaustin.webplex.WebPanel.pr
ocessEvent(WebPanel.java:304)↵    MobileApp.XEGrpLst_ObFnc.resume(XEGrpLst_ObFnc.
java)↵    com.adcaustin.webplex.WebFrame.resume(WebFrame.java:31)↵  com.adcausti
n.webplex.PlexPanelFrame.resume(PlexPanelFrame.java:32)↵  sun.reflect.NativeMet
hodAccessorImpl.invoke0(Native 
Method)↵  sun.reflect.NativeMethodAccessorImpl.invoke(Unknown 
Source)↵  sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown 
Source)↵  java.lang.reflect.Method.invoke(Unknown 
Source)↵  com.adcaustin.webplex.WebSession.run(WebSession.java:461)↵    com.adca
ustin.webplex.WebSession.resume(WebSession.java:443)↵ com.adcaustin.webclient.
servletproxy.CallWebClientFunction.CallWebClientFunction(CallWebClientFunction.j
ava:463)↵ com.adcaustin.webclient.servletproxy.WebClientServlet.service(WebCli
entServlet.java:419)↵ javax.servlet.http.HttpServlet.service(HttpServlet.java:
717)↵ org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)↵    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
298)↵ org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.j
ava:864)↵ org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.p
rocess(Http11AprProtocol.java:579)↵   org.apache.tomcat.util.net.AprEndpoint$Wor
ker.run(AprEndpoint.java:1665)↵   java.lang.Thread.run(Unknown Source)↵</pre>
↵</p><HR size="1" noshade="noshade"><div class="footer">
↵<span style='float:right;'>Copyright 2010 Advanced Development Centers of 
America, Inc.</span>
↵WebClient i+ v1.6.3↵
↵</div></body>
↵"

Original issue reported on code.google.com by darryl.m...@radmt.com on 29 Jun 2011 at 7:48

GoogleCodeExporter commented 8 years ago
Agreed on need for a more user friendly response. 

One work around in general is to run the application in Java Swing for initial 
testing to ensure all required classes are present.

Original comment by jdrhodes...@gmail.com on 29 Jun 2011 at 12:39