All,
        I'm working on JIRA XCF-3103 and want to handle the exception in
the web code.

        I added the try/catch to pageBeginRender in CdrPage.java:

try {
    if (!crp.isEnabled() && getTab().equals(ACTIVE_TAB)) {
        setTab(HISTORIC_TAB);
    }
} catch (XmlRpcRemoteException)


I changed SipxProcessContextImpl.getStatus to throw the exception up to
SipxProcess.searchProcess() which throws it to SipxProcess.isEnabled()


The exception is caught but I get an internal error.
It seems to be a problem around line 7 in CdrPage.html
ognl:!callResolverProcess.enabled

I'm wondering have I broken this, the fact the SipxProcess.isEnabled()
now throws the exception?

Can anyone help me with this?

Here is the trace I get:

============================================================

An internal error has occurred. Click here to continue.

[ +/- ] Exception: Unable to read OGNL expression '<parsed OGNL
expression>' of $cdrpage...@3c1[cdr/CdrPage]: enabled
org.apache.tapestry.BindingException 
binding: ExpressionBinding[cdr/CdrPage !callResolverProcess.enabled]  
location: context:/WEB-INF/cdr/CdrPage.html, line 7
2    <h2><span key="title">Call Monitoring</span></h2> 
3    <span jwcid="@common/QuickHelp" value="message:cdr.quick.help"/> 
4  
5    <span jwcid="@common/TabNavigation" tabNames="ognl:tabNames"
selectedTab="ognl:tab"/> 
6  
7    <span jwcid="@If" condition="ognl:!callResolverProcess.enabled"> 
8   <span key="warning.call-resolver-off" class="user-warning" /> 
9    </span> 
10  
11    <div id="settings-content"> 
12      <span jwcid="@common/ErrorMsg"/> 
 
   
[ +/- ] Exception: Unable to read OGNL expression '<parsed OGNL
expression>' of $cdrpage...@3c1[cdr/CdrPage]: enabled
org.apache.hivemind.ApplicationRuntimeException 
component: $cdrpage...@3c1[cdr/CdrPage]  
location: context:/WEB-INF/cdr/CdrPage.page, line 3, column 22
1 <?xml version="1.0" encoding="UTF-8"?> 
2 <!DOCTYPE page-specification PUBLIC "-//Apache Software
Foundation//Tapestry Specification 4.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";> 
3 <page-specification/> 
 
   
[ +/- ] Exception: enabled ognl.OgnlException 
   
[ +/- ] Exception: a.b.com
org.sipfoundry.sipxconfig.common.UserException 
Stack Trace: 
org.sipfoundry.sipxconfig.admin.commserver.SipxProcessContextImpl.getSta
tus(SipxProcessContextImpl.java:80) 
org.sipfoundry.sipxconfig.admin.commserver.SipxProcess.searchProcess(Sip
xProcess.java:42) 
org.sipfoundry.sipxconfig.admin.commserver.SipxProcess.isEnabled(SipxPro
cess.java:32) 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39) 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25) 
java.lang.reflect.Method.invoke(Method.java:597) 
ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:851) 
ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:1414) 
ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.j
ava:60) 
ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:147)

ognl.OgnlRuntime.getProperty(OgnlRuntime.java:2210) 
ognl.ASTProperty.getValueBody(ASTProperty.java:114) 
ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) 
ognl.SimpleNode.getValue(SimpleNode.java:258) 
ognl.ASTChain.getValueBody(ASTChain.java:141) 
ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) 
ognl.SimpleNode.getValue(SimpleNode.java:258) 
ognl.ASTNot.getValueBody(ASTNot.java:49) 
ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) 
 
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to