I have a very simple JSP page generate WML output. Using JRUn 3.0 as Servlet
engine and Apache
When I tried to access the page using Phone.com emulator, I got HTTP 503
Error. I checked Jrun default-event.log and see these messages.
Any idea?
08/30 13:00:19 debug (JRun) HttpServletResponse.sendError(500,<PRE>
<B>/mega/wap/logo.jsp:</B>
1JSESSIONID=aaaXWFdMPFDGlz_igz
java.lang.NumberFormatException: 1JSESSIONID=aaaXWFdMPFDGlz_igz
at java.lang.Integer.parseInt(Integer.java(Compiled Code))
at
allaire.jrun.servlet.JRunCookieUtils.parseCookieString(JRunCookieUtils.java(
Compiled Code))
at
allaire.jrun.servlet.JRunCookieUtils.parseCookieString(JRunCookieUtils.java(
Compiled Code))
at
allaire.jrun.servlet.JRunCookieUtils.getCookies(JRunCookieUtils.java(Compile
d Code))
at allaire.jrun.servlet.JRunRequest.getCookies(JRunRequest.java:295)
at
allaire.jrun.servlet.RequestWrapper.getCookies(RequestWrapper.java(Compiled
Code))
at
allaire.jrun.session.JRunSessionService.getCookieSessionID(JRunSessionServic
e.java(Compiled Code))
at
allaire.jrun.servlet.ForwardRequest.getRequestedSessionId(ForwardRequest.jav
a(Compiled Code))
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:891)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:88)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
at allaire.jrun.ThreadPool.run(ThreadPool.java(Compiled Code))
at allaire.jrun.WorkerThread.run(WorkerThread.java(Compiled Code))
</PRE>
) [java.lang.NumberFormatException: 1JSESSIONID=aaaXWFdMPFDGlz_igz]
java.lang.NumberFormatException: 1JSESSIONID=aaaXWFdMPFDGlz_igz
at java.lang.Integer.parseInt(Integer.java(Compiled Code))
at
allaire.jrun.servlet.JRunCookieUtils.parseCookieString(JRunCookieUtils.java(
Compiled Code))
at
allaire.jrun.servlet.JRunCookieUtils.parseCookieString(JRunCookieUtils.java(
Compiled Code))
at
allaire.jrun.servlet.JRunCookieUtils.getCookies(JRunCookieUtils.java(Compile
d Code))
at allaire.jrun.servlet.JRunRequest.getCookies(JRunRequest.java:295)
at
allaire.jrun.servlet.RequestWrapper.getCookies(RequestWrapper.java(Compiled
Code))
at
allaire.jrun.session.JRunSessionService.getCookieSessionID(JRunSessionServic
e.java(Compiled Code))
at
allaire.jrun.servlet.ForwardRequest.getRequestedSessionId(ForwardRequest.jav
a(Compiled Code))
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:891)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:88)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
at allaire.jrun.ThreadPool.run(ThreadPool.java(Compiled Code))
at allaire.jrun.WorkerThread.run(WorkerThread.java(Compiled Code))
Here is my JSP code
<%@ page language="java"%>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.Date"%>
<%@ page import="java.net.URLEncoder" %>
<% response.setContentType("text/vnd.wap.wml"); %>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<!-- If WML 1.2 features are required, then use the following DOCTYPE
instead:
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
"http://www.wapforum.org/DTD/wml12.dtd">
-->
<wml>
<head>
<!-- Possible <head> element here. -->
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Cache-Control" content="must-revalidate"
forua="true"/>
<meta http-equiv="Cache-Control" content="max-age=0" forua="true"/>
</head>
<template>
<!-- Template implementation here. -->
<do type="prev"><prev/></do>
</template>
<card id="logo" title="MegaStation.com" ontimer="#message">
<timer value="50"/>
<p>
<img alt="z95" src="z95.wbmp" height="52" width="70"
align="middle"/></p>
<do type="accept" label="Next">
<go href="#message"/>
</do>
</card>
<card id="message" title="Z95.3 FM" ontimer="#enter">
<timer value="50"/>
<do type="accept" label="Next">
<go href="#enter"/>
</do>
<p>
<em>Today's Best Music! Z95.3 FM</em></p>
</card>
<%
Date showStart = new Date();
String phoneNum ="6021090";
String showStartStr = showStart.toString();
String url = "http://web1/mega/wap/enter_process.jsp?" +
URLEncoder.encode("WapPhoneID") + "=" +
URLEncoder.encode(phoneNum) + "&" +
URLEncoder.encode("ShowStart") + "=" +
URLEncoder.encode(showStartStr);
%>
<card id = "enter" ontimer="<%=url%>">
<timer value="50"/>
<do type="accept" label="Next">
<go href="<%=url%>"/>
</do>
<p> Select a tune to buy the CD or to get concert tix.
</p>
</card>
</wml>
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.