Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: kevinwang on June 03, 2010, 12:40:49 PM
-
I am doing customization about GAD, trying to update some calling list record field.
but when I use myOutboundRecord.setCustomField("WrapUpCode",wrapUpCode), there is always an error message, " Unknown custom field", I am very sure the custom field name is correct, exactly same as in the database.
and it's no problem when I set Time zone using myOutboundRecord.setTimeZone("EST");
has anyone here run into similar problem?
The following is error message.
org.apache.jasper.JasperException: Exception in JSP: /custom/disposition-codes-view.jsp:33
30: OutboundRecord myOutboundRecord = myOutboundChain.getActiveRecord();
31: Integer wrapUpCode = new Integer(5);
32: String aaa = "aaaaa";
33: myOutboundRecord.setCustomField("WrapUpCode",wrapUpCode);
34: //myOutboundRecord.setCustomField("Customer_name","kevin");
35: myOutboundRecord.setTimeZone("EST");
36:
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.genesyslab.uadthin.filter.CachePreventFilter.doFilter(CachePreventFilter.java:30)
com.genesyslab.uadthin.filter.UTF8Filter.doFilter(UTF8Filter.java:127)
root cause
javax.servlet.ServletException: Unknown custom field
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
org.apache.jsp.custom.disposition_002dcodes_002dview_jsp._jspService(disposition_002dcodes_002dview_jsp.java:185)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.genesyslab.uadthin.filter.CachePreventFilter.doFilter(CachePreventFilter.java:30)
com.genesyslab.uadthin.filter.UTF8Filter.doFilter(UTF8Filter.java:127)
root cause
com.genesyslab.ail.exception.InvalidParameterException: Unknown custom field
com.genesyslab.ail.core.outbound.OutboundRecordImpl.setCustomField(OutboundRecordImpl.java:411)
com.genesyslab.ail.core.outbound.OutboundRecordImpl.setCustomField(OutboundRecordImpl.java:401)
org.apache.jsp.custom.disposition_002dcodes_002dview_jsp._jspService(disposition_002dcodes_002dview_jsp.java:87)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.genesyslab.uadthin.filter.CachePreventFilter.doFilter(CachePreventFilter.java:30)
com.genesyslab.uadthin.filter.UTF8Filter.doFilter(UTF8Filter.java:127)
-
Actually, I can output custom field WrapUpCode by
"WrapUpCode: <%=myOutboundRecord.getCustomField("WrapUpCode")%>"
that means custom field name is correct, it looks like the type of value doesn't match?
Kevin
-
Because WrapUpCode is int type in database, so I use "Integer wrapUpCode = new Integer(5)" to convert a int nubmer to Integer before I use setCustomField("WrapUpCode",wrapUpCode).
there must be a type dismatch problem.
The following is setCustomfield() method definition:
Setcustomfield(java.lang.String field_name, java.lang.Object value)
Kevin