Hello everyone! Would be very grateful if someone could help me. The goal is to insert some java code into the jsp page, and assign the output to VXML Variable. Here is the example:
[2012/07/16 10:07:36.194] 204A0 BeginSession.cpp:555 C=12:L=1:U=321:D=E_12_137 Exception caught within <ACCEPT_CALL>.Execute:URL is http://172.29.0.9:8082/BAKCELLIVR/vxml/start.jsp?NEXTACTION=START&ANI=994555902585&DID=8888&SESSIONID={008B4E3A-E7E7-1003-A2BA-AC1D000EAA77}
[2012/07/16 10:07:36.196] 204A0 XMLData.cpp:2570 C=12:L=1:U=321:D=E_12_234 Trap Sent:The ErrorString is :NETWORK_ERROR : Server Error ErrorURL: http://172.29.0.9:8082/BAKCELLIVR/vxml/start.jsp?NEXTACTION=START&ANI=994555902585&DID=8888&SESSIONID={008B4E3A-E7E7-1003-A2BA-AC1D000EAA77}: CCThread:Inbound PortNumber:7021
[2012/07/16 10:07:36.199] 204A0 XMLData.cpp:2570 C=12:L=1:U=321:D=E_12_234 Trap Sent:The ErrorString is :CALL_TRANSFERRED : REASON: Primary WAS Failure. No Backup WAS Provisioned. Error number = 87878. ANI=994555902585 DID=7000 TollFreeNum=8888 Reseller=GVPOwner Customer=Admin Application=BAKCELLIVRTEST SessionID={008B4E3A-E7E7-1003-A2BA-AC1D000EAA77} LastError=NETWORK_ERROR LastErrorString=Server Error ErrorURL: http://172.29.0.9:8082/BAKCELLIVR/vxml/start.jsp?NEXTACTION=START&ANI=994555902585&DID=8888&SESSIONID={008B4E3A-E7E7-1003-A2BA-AC1D000EAA77}: CCThread:Inbound PortNumber:7021
[2012/07/16 10:07:38.528] 201FA GenericGlobalData.cpp:262 C=34:L=2:U=0 sendTrap(): GenericParser makeIAction, could not find make function for action
[2012/07/16 10:07:38.530] 201FA GenericParser.cpp:57 C=35:L=1:U=0 makeIAction could not find make function for action requesttimeout
[2012/0
This is PopGatewayâs logfile. Log of catalina is empty
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 10 in the jsp file: /vxml/start.jsp
Timestamp cannot be resolved to a type
7: <%@taglib prefix="debug" uri="/WEB-INF/tlds/debug"%>
8:
9: <%
10: java.sql.Timestamp timestamp = new Timestamp(System.currentTimeMillis());
11: pageContext.setAttribute("timestamp ", timestamp);
12: System.out.println(timestamp);
13: %>
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.18
Well, I noticed that all efforts to assign value to VXML variable using are ending with server error. Must be the specifications of VXML it can only accept static values in value=ââ expression, not the server code like <% %>
Thatâs why I used <c:set > instead. But it doesnât put any value to variable, it remains empty. This construction <%
java.sql.Timestamp timestamp = new Timestamp(System.currentTimeMillis());
pageContext.setAttribute("timestamp ", timestamp);
System.out.println(timestamp);
%> is working fine, I see it in catalina.out (the println function) the problem is to assign this output to VXML variable. Somebody has any thoughts on that ?
Construction <%= ⌠%> is never passed to VoiceXML interpreter as it is processed by your Java server.
Your problem is related to the fact that your Java server doesnât know âTimestampâ type (class). Please fix this error first.
An error occurred at line: 10 in the jsp file: /vxml/start.jsp
Timestamp cannot be resolved to a type
7: <%@taglib prefix="debug" uri="/WEB-INF/tlds/debug"%>
8:
9: <%
10: java.sql.Timestamp timestamp = new Timestamp(System.currentTimeMillis());
11: pageContext.setAttribute("timestamp ", timestamp);
12: System.out.println(timestamp);
13: %>
By the way, when I was getting the timestamp like this: 2012-07-18 17:08:00.563 PopGateway was throwing errors, that this value cannot be assigned to a variable. Maybe some VXML restrictions, I donât know.