tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alberto Torna Jr." <alto...@hotmail.com>
Subject Re: foriegn characters turn to ? in database
Date Thu, 01 Jan 1970 00:00:00 GMT
<html><DIV>
<P>Bryan, does your database use foreign character sets?&nbsp; <BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: "Bryan Murtha" <BRYANMURTHA@HOTMAIL.COM>
<DIV></DIV>&gt;Reply-To: tomcat-user@jakarta.apache.org 
<DIV></DIV>&gt;To: tomcat-user@jakarta.apache.org 
<DIV></DIV>&gt;Subject: foriegn characters turn to ? in database 
<DIV></DIV>&gt;Date: Wed, 11 Jul 2001 20:58:53 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Hey All, 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; We are accepting form submissions from users all over the
world. 
<DIV></DIV>&gt;The foriegn characters end up in Sybase looking like a ?. Does

<DIV></DIV>&gt;someone 
<DIV></DIV>&gt;know how to deal with this? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Regards, 
<DIV></DIV>&gt;Bryan 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;----Original Message Follows---- 
<DIV></DIV>&gt;From: Stefanos Karasavvidis <STEFOS@MULTIMEDIA-SA.GR>
<DIV></DIV>&gt;Reply-To: tomcat-user@jakarta.apache.org 
<DIV></DIV>&gt;To: tomcat-user@jakarta.apache.org 
<DIV></DIV>&gt;Subject: getServletContext() throws NullPoinetException 
<DIV></DIV>&gt;Date: Tue, 10 Jul 2001 17:46:04 +0300 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;I've just installed tomcat 3.2.2 and have the following problem.

<DIV></DIV>&gt; 
<DIV></DIV>&gt;I want to call getServletContext() from a servlets service
method 
<DIV></DIV>&gt;but 
<DIV></DIV>&gt;get the folowing exception 
<DIV></DIV>&gt;*Internal Servlet Error:* 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;java.lang.NullPointerException 
<DIV></DIV>&gt; at 
<DIV></DIV>&gt;javax.servlet.GenericServlet.getServletContext(GenericServlet.java:205)

<DIV></DIV>&gt; at TestServlet.service(TestServlet.java:32) 
<DIV></DIV>&gt; at 
<DIV></DIV>&gt;org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)

<DIV></DIV>&gt; at org.apache.tomcat.core.Handler.service(Handler.java:287)

<DIV></DIV>&gt; at 
<DIV></DIV>&gt;org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

<DIV></DIV>&gt; at 
<DIV></DIV>&gt;org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)

<DIV></DIV>&gt; at 
<DIV></DIV>&gt;org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)

<DIV></DIV>&gt; at 
<DIV></DIV>&gt;org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)

<DIV></DIV>&gt; at 
<DIV></DIV>&gt;org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

<DIV></DIV>&gt; at 
<DIV></DIV>&gt;org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)

<DIV></DIV>&gt; at java.lang.Thread.run(Thread.java:484) 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Moreover the getServletConfig() returns null which is probably
the 
<DIV></DIV>&gt;main 
<DIV></DIV>&gt;reason for this problem 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Any ideas?? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Stefanos 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;_________________________________________________________________

<DIV></DIV>&gt;Get your FREE download of MSN Explorer at http://explorer.msn.com

<DIV></DIV>&gt; 
<DIV></DIV><br clear=all><hr>Get your FREE download of MSN Explorer
at <a href="http://explorer.msn.com">http://explorer.msn.com</a><br></p></html>

Mime
View raw message