473,725 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

looking for the solutiion of this:The server encountered an internal error () that pr

3 New Member
hi buddy,the error is:
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasp er.JasperExcept ion: java.lang.NullP ointerException
org.apache.jasp er.servlet.JspS ervletWrapper.h andleJspExcepti on(JspServletWr apper.java:541)
org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(JspServl etWrapper.java: 435)
org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(JspServl et.java:320)
org.apache.jasp er.servlet.JspS ervlet.service( JspServlet.java :266)
javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:803)
org.netbeans.mo dules.web.monit or.server.Monit orFilter.doFilt er(MonitorFilte r.java:390)


root cause

java.lang.NullP ointerException
org.apache.jsp. sender_jsp._jsp Service(sender_ jsp.java:84)
org.apache.jasp er.runtime.Http JspBase.service (HttpJspBase.ja va:70)
javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:803)
org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(JspServl etWrapper.java: 393)
org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(JspServl et.java:320)
org.apache.jasp er.servlet.JspS ervlet.service( JspServlet.java :266)
javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:803)
org.netbeans.mo dules.web.monit or.server.Monit orFilter.doFilt er(MonitorFilte r.java:390)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.14
the jsp page:
<%--
Document : sender
Created on : 2008-3-17, 14:01:17
Author : Administrator
--%>

<%@page contentType="te xt/html;charset=gb 2312" pageEncoding="U TF-8"%>
<%@page import="java.ut il.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gb 2312">
<title>JSP Page</title>
</head>
<body>

<form method="POST" action="">
绑定用户ID:<i nput type="text" name="userPhone " value="" /><br>
绑定命令:<inp ut type="text" name="command" value="" /><br>
<input type="radio" name="command" value="single" />单次定位
<input type="radio" name="command" value="consequa nce" />连续定位
<input type="radio" name="command" value="cease" />停止连续定位
<input type="radio" name="command" value="shutLED" />关闭定位器LED< br>
<input type="reset" value="重置" name="reset" />
<input type="submit" value="提交" name="submit" /><br>
</form>
<%
String commands=reques t.getParameter( "command");
//String userPhone=reque st.getParameter ("userPhone" );
String msgPrefix[]={"GG","GM","GS ","GL"};
String feedback="";

if(commands.equ als("single"))
feedback=new String(msgPrefi x[0]);
if(commands.equ als("consequanc e"))
feedback=new String(msgPrefi x[1]);
if(commands.equ als("cease"))
feedback=new String(msgPrefi x[2]);
if(commands.equ als("shutLED"))
feedback=new String(msgPrefi x[3]);
%>
<jsp:useBean id="sender" class="Bean.Sen der" scope="page"/>
<jsp:setPropert y name="sender" property="userP hone" param="userPhon e"/>
<jsp:setPropert y name="sender" property="sendD ata" param="<%=feedb ack%>"/>
<jsp:getPropert y name="sender" property="userP hone"/>
<jsp:getPropert y name="sender" property="sendD ata"/>
<%
//sender.sendComm ands();
%>
<h2>first try,Hello World!</h2>
</body>
</html>
the javaBean code:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package Bean;
import java.net.*;
import java.io.*;
/**
*
* @author Administrator
*/
public class Sender {
public String sendData;
public String userPhone;
public void setSendData(Str ing sendData){this. sendData=sendDa ta;}
public void setuserPhone(St ring add){this.userP hone=add;}
public String getSendData(){r eturn this.sendData;}
public String getuserPhone(){ return this.userPhone; }
public Sender(){ }
/*public void sendCommands(){
if(sendData!=nu ll){
byte buffer[]=sendData.getBy tes();
try{
InetAddress address=InetAdd ress.getByName( this.userPhone) ;
DatagramPacket sendPack=new DatagramPacket( buffer,buffer.l ength,address,9 999);//server receiver port:8888
DatagramSocket sendSocket=new DatagramSocket( );
sendSocket.send (sendPack);
}catch(Exceptio n e){e.printStack Trace();}
}
}*/
}
Mar 19 '08 #1
1 2562
evoloyeu
3 New Member
hi buddy,the error is:
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasp er.JasperExcept ion: java.lang.NullP ointerException
org.apache.jasp er.servlet.JspS ervletWrapper.h andleJspExcepti on(JspServletWr apper.java:541)
org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(JspServl etWrapper.java: 435)
org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(JspServl et.java:320)
org.apache.jasp er.servlet.JspS ervlet.service( JspServlet.java :266)
javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:803)
org.netbeans.mo dules.web.monit or.server.Monit orFilter.doFilt er(MonitorFilte r.java:390)


root cause

java.lang.NullP ointerException
org.apache.jsp. sender_jsp._jsp Service(sender_ jsp.java:84)
org.apache.jasp er.runtime.Http JspBase.service (HttpJspBase.ja va:70)
javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:803)
org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(JspServl etWrapper.java: 393)
org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(JspServl et.java:320)
org.apache.jasp er.servlet.JspS ervlet.service( JspServlet.java :266)
javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:803)
org.netbeans.mo dules.web.monit or.server.Monit orFilter.doFilt er(MonitorFilte r.java:390)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.14
the jsp page:
<%--
Document : sender
Created on : 2008-3-17, 14:01:17
Author : Administrator
--%>

<%@page contentType="te xt/html;charset=gb 2312" pageEncoding="U TF-8"%>
<%@page import="java.ut il.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gb 2312">
<title>JSP Page</title>
</head>
<body>

<form method="POST" action="">
绑定用户ID:<i nput type="text" name="userPhone " value="" /><br>
绑定命令:<inp ut type="text" name="command" value="" /><br>
<input type="radio" name="command" value="single" />单次定位
<input type="radio" name="command" value="consequa nce" />连续定位
<input type="radio" name="command" value="cease" />停止连续定位
<input type="radio" name="command" value="shutLED" />关闭定位器LED< br>
<input type="reset" value="重置" name="reset" />
<input type="submit" value="提交" name="submit" /><br>
</form>
<%
String commands=reques t.getParameter( "command");
//String userPhone=reque st.getParameter ("userPhone" );
String msgPrefix[]={"GG","GM","GS ","GL"};
String feedback="";

if(commands.equ als("single"))
feedback=new String(msgPrefi x[0]);
if(commands.equ als("consequanc e"))
feedback=new String(msgPrefi x[1]);
if(commands.equ als("cease"))
feedback=new String(msgPrefi x[2]);
if(commands.equ als("shutLED"))
feedback=new String(msgPrefi x[3]);
%>
<jsp:useBean id="sender" class="Bean.Sen der" scope="page"/>
<jsp:setPropert y name="sender" property="userP hone" param="userPhon e"/>
<jsp:setPropert y name="sender" property="sendD ata" param="<%=feedb ack%>"/>
<jsp:getPropert y name="sender" property="userP hone"/>
<jsp:getPropert y name="sender" property="sendD ata"/>
<%
//sender.sendComm ands();
%>
<h2>first try,Hello World!</h2>
</body>
</html>
the javaBean code:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package Bean;
import java.net.*;
import java.io.*;
/**
*
* @author Administrator
*/
public class Sender {
public String sendData;
public String userPhone;
public void setSendData(Str ing sendData){this. sendData=sendDa ta;}
public void setuserPhone(St ring add){this.userP hone=add;}
public String getSendData(){r eturn this.sendData;}
public String getuserPhone(){ return this.userPhone; }
public Sender(){ }
/*public void sendCommands(){
if(sendData!=nu ll){
byte buffer[]=sendData.getBy tes();
try{
InetAddress address=InetAdd ress.getByName( this.userPhone) ;
DatagramPacket sendPack=new DatagramPacket( buffer,buffer.l ength,address,9 999);//server receiver port:8888
DatagramSocket sendSocket=new DatagramSocket( );
sendSocket.send (sendPack);
}catch(Exceptio n e){e.printStack Trace();}
}
}*/
}
i got the solution:
there lost one sentence in the jsp code:
......
if(commands!=nu ll){
if(commands.equ al("single"))
.........
.............
}

remedy the jsp code as above,the jsp work well.
Mar 19 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1089
by: Hai Nguyen | last post by:
Would anybody please tell me what is this error and what i should do I have 5 files: page1.aspx,page1.aspx.cs; page2.aspx.page2.aspx.cs and page3.cs both page1.aspx.cs and page2.aspx.cs inherit page3 page3.cs is like a library to share common methods I got this error
6
1287
by: Bill English | last post by:
Go here: http://68.81.193.200/error.bm I don't understand why I would be getting this error. I will be glad to answer any questions.
5
1352
by: jam | last post by:
when I use admin account to run it, it is okay, but when I ause other account, it gives this error.... please help~~~ thx
1
1365
by: mar-kav | last post by:
Hello, i'm a beginner so exuse me: i installed IIS 5.1, Framework1.1, vs .NET 2003 i put my web dir' in inetpub/wwwroot, tried to broows to my homepage under localhost & got this error message: Server Error in '/' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration
2
1737
by: PencoOdStip | last post by:
http://www.slibe.com/image/7e86356e-stop/ I am beginner and tryin new stuff and get this error few times. What it means? Why c++ stops working? It just keeps linking...
5
22493
by: maya | last post by:
hi, what is this error please? uncaught exception: Permission denied to call method Location.toString I see this error sometimes in FF error console but it says nothing about what causes it or any other info..
2
1256
by: ahmed222too | last post by:
when i use this code to copy a text file and paste it in a specific path: Dim fso As New FileSystemObject fso.CopyFile "C:\Files\file.txt", "C:\Files1\file_copy.txt" this error appear compile error user-defined type not defined
2
1247
by: Madhusudana Babu | last post by:
Hi, i got this error.Please help me any one know about this error. Microsoft JScript runtime (0x800A138F) 'objMIMSJ' is null or not an object /NewEllipseTest/mse/Template/mseError.asp, line 29 Thank you
1
6382
by: =?iso-8859-1?q?KLEIN_St=E9phane?= | last post by:
Hi, I'm on Ubuntu 8.04.1 I've installed lxml with easy_install lxml command. Now, when I load etree I've this error : $ python Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42)
0
1957
by: =?iso-8859-1?q?KLEIN_St=E9phane?= | last post by:
Le Mon, 25 Aug 2008 13:50:50 +0000, KLEIN Stéphane a écrit : I've this bug only with lxml2, lxml 1.3.3 work very well. Regards, Stephane
0
8888
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9176
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3221
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.