Comment

Zahi
Got Error,
November 10, 2009 at 11:42 AM

Got following err:
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 6 in the generated java file
Only a type can be imported. org.apache.poi.hssf.usermodel.HSSFSheet resolves to a package

An error occurred at line: 7 in the generated java file
Only a type can be imported. org.apache.poi.hssf.usermodel.HSSFWorkbook resolves to a package

An error occurred at line: 8 in the generated java file
Only a type can be imported. org.apache.poi.poifs.filesystem.POIFSFileSystem resolves to a package

An error occurred at line: 8 in the jsp file: /excel.jsp
POIFSFileSystem cannot be resolved to a type
5: <%@ page import="java.io.*" %>
6: <%
7: try{
8: POIFSFileSystem fs=new POIFSFileSystem(new FileInputStream("c:\\doc\\my.xls"));
9: HSSFWorkbook wb=new HSSFWorkbook(fs);
10: FileOutputStream fileOut = new FileOutputStream("c:\\doc\\myWriting.xls");
11: wb.write(fileOut);



View All Comments
Advertisement
Related Tutorial and Articles
JSP Servlet Questions

error got minus one from read call - JSP-Servlet
error got minus one from read call  hiiii while connecting my servlet to database im getting error called java.sql.SQLException: Io exception: Got minus one from a read call oracle.jdbc.dbaccess.DBError.throwSqlException 

Development process Questions

i got an exception while accept to a jsp
i got an exception while accept to a jsp  type Exception report message description The server encountered an internal error...) java.util.ResourceBundle.getString(Unknown Source) org.apache.jsp.index_jsp._jspService 

JSP Servlet Questions

Apache POI Excel Maximum Row - JSP-Servlet
Apache POI Excel Maximum Row  I am using Apache POI lib for export jsp results to excel file. I am getting error : Row number must be between 0... row value ? and How can I change that ? Thanks in advance Regards 

JSP Servlet Questions

jsp runtime error - JSP-Servlet
jsp runtime error  sir, when i am running ur prog... from this website.... http://www.roseindia.net/jsp/poi/readingWriting.shtml i did the same as per guidelines...but i got error..!!!! org.apache.jasper.JasperException 

PHP Questions

I GOT ERROR FOR MY PROJECT
I GOT ERROR FOR MY PROJECT  Dear Friend/ RoseIndia Team, Firstly I would to thank u Guys help me so many time.. I got error on my little project when running at server. please correctly my error Guys... ERROR CODE: "LOGIN 

Java Beginners

Error in POI - Java Beginners
Error in POI  Hi friend, I am working with Excel using POI API.I need to read an excel file and do some modifications and save this file into different location. Along with this I need to remove the extra sheets which 

Java Beginners

Error in reading Excel data using jsp even having .xls and POI Library in respective folders
Error in reading Excel data using jsp even having .xls and POI Library in respective folders  Hi, hello.xls and POI library files are there in respective folders. the printStackTrce() method shows the following Error message 

Development process Questions

i got an error while compile this program manually.
i got an error while compile this program manually.  import javax.servlet.http.*; import org.apache.struts.action.*; public class ActionOne{ public...,struts jar files and i got an error in saveErrors() error Heading cannot find 

Java Beginners

jsp error
jsp error  <p>hi, could please help whenever i run jsp file in my eclipse i got this error.my jsp file is</p> &lt;%@ page language... encountered an internal error () that prevented it from fulfilling this request 

Development process Questions

POI and HSSF - Development process
://www.roseindia.net/jsp/poi/Createexcel.shtml Thanks...POI and HSSF  Hi i ceated excel file using jakarta poi library i want to add Percentage formula to cell i am not able to do that can you please 

JSP Servlet Questions

i have got error while compiling simple tag handler
i have got error while compiling simple tag handler   javac.servlet.jsp not found! tell me what are the jar files required to run simple tag handler...;it is : javax.servlet.jsp only but getting error wt is reason 

JDBC Questions

Backup Failed Mysqldump Got Errno 28 On Write
Backup Failed Mysqldump Got Errno 28 On Write  Hi, While taking the backup of database I got following error: Backup Failed Mysqldump Got Errno 28 On Write How to resolve the issue? Thanks   Hi, This error comes 

JDBC Questions

JSP SQL Error
JSP SQL Error  Hi While trying to execute the below code i'm getting the following error "java.sql.SQLException: Io exception: Got minus one from a read call ". please help me out. <% try{ String Username 

JSP Servlet Questions

Error output - JSP-Servlet
Error output  Can anyone please assist me; The printed output should be: The product is 10. But instead of it I got; The product is undefined. Can anyone trace what went wrong of my code pls 

JSP Servlet Questions

Programming error - JSP-Servlet
Programming error  Actually there is an error in placeorder.jsp file where there are 5 fields OrderNo ,Name , Address, Email, PhoneNo where if I... that got replaced by orderno 3 when it got deleted. Only that deleted spaced 

Development process Questions

Jsp error when i run this a jsp file
Jsp error when i run this a jsp file  hi I got this error when i run the jsp file in IDE and outside also please help me java.lang.NullPointerException org.apache.jsp.insertjsp.jspInit(insert_jsp.java:22 

Development process Questions

Apache POI Excel creation - Development process
/jsp/poi/ Thanks...Apache POI Excel creation  Hi i am creating Excel sheet using Apache POI. i could able to generate Excel sheet and saving it in mentioned physical 

JSP Servlet Questions

file upload error - JSP-Servlet
://www.roseindia.net/jsp/file_upload/employee_upload_profile_image.shtml ----------------------------------------------------------------------------- But, i got only one error as following: javax.servlet.ServletException 

JSP Servlet Questions

Error in loading jsp file - JSP-Servlet
Error in loading jsp file  I did as u have said. I copied iitem.jsp...:8080/webapps/examples/jsp/iitem.jsp In both cases,it is giving the following error.../iitem.jsp If you got the error again, then send your full code. Thanks 

Java Beginners

when I run exiting project that time I got error, I want solution on it?
when I run exiting project that time I got error, I want solution on it?  Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start 

JSP Servlet Questions

file upload error - JSP-Servlet
file upload error  Iam doing jsp project. File uploading is one part of the project. In this particular part i got an error... by multipart/Form-data encrypted form. And this error occurred in the processing 

Framework Questions

i got illegal start of expression error , plese tell me the mistake where i did...
i got illegal start of expression error , plese tell me the mistake where i did...   import org.springframework.context.*; import java.util.*; public class MyListener implements ApplicationListener { public static void main 

JSP Servlet Questions

file upload error - JSP-Servlet
file upload error  Iam doing jsp project. File uploading is one part of the project. In this particular part i got an error... by multipart/Form-data encrypted form. And this error occurred in the processing 

JSP Servlet Questions

error in accessing database - JSP-Servlet
error in accessing database  hiiii im tanushri im tryng to connect my database to the servlet i hv succeeded in connectivity but im stuck to nother error called Got minus one from read call although i hv feeded data to my 

JSP Servlet Questions

Can JSP using apachi POI handle the very complicated JSP?
Can JSP using apachi POI handle the very complicated JSP?  Can the following jsp handle the very complicated excel: such as, multiple sheet, tree structure, with chart in the excell file, etc. <%@page import="java.io.*"%> 

JSP Servlet Questions

Java Compilation error - JSP-Servlet
/downloads/download_fileupload.cgi and i got file commons-fileupload-1.2.1-bin.zip and when i extract it i got file folder lib,site then i to into the lib folder and from where i got file commons-fileupload-1.2.1.jar. in which all 

JSP Servlet Questions

JSP error
JSP error  what is difference between global-exception and error-page in jsp. which condition they are use 

JSP-Tutorials

Apache POI API for Microsoft Doc's Manipulation
Apache POI API for Microsoft Doc's Manipulation This section contains the detail about the Apache POI API library with it's implementation code. The Apache POI library is used to format or manipulate the Microsoft Office 

EJB Questions

I got build failed when deploying enterprise application - EJB
I got build failed when deploying enterprise application  I created...% Deploying application in domain failed; Error loading deployment descriptors for module... com.miki.mlNewSessionRemote Deployment error: The module has not been deployed. See the server 

Struts Questions

forward error message in struts
forward error message in struts  how to forward the error message got in struts from one jsp to other jsp?   Hello Friend, Use <%@ page... to the specified jsp page. For more information, visit here Thanks 

Java Magazine Questions

How to set background of an excel sheet using POI - Java Magazine
using POI: For read more in details to visit.... http://www.roseindia.net/jsp/poi/index.shtml Thanks 

Java Beginners

POI APPLICATION
POI APPLICATION  HI .. I WANT POI (JAVA POI)SOURCE CODE FOR CONVERT EXCEL TO TEXT FORMAT ? EXPLAIN IN DETAIL PLEASE 

Java Beginners

Error in reading Excel data using jsp
Error in reading Excel data using jsp  ERROR while executing bellow...: drive?If not then create it.Anyways do you have POI library in the lib folder... and POI library files are there in respective folders. the printStackTrce 

Java Beginners

POI Tutorial
POI Tutorial  Hi, How to access the Excel file in Java? I have heard about POI in Java. Can anyone share me the url of the tutorial? Thanks   Hi, Yes you can use the POI api for reading and writing Excel file. Check 

JSP Servlet Questions

jsp error - JSP-Servlet
jsp error  HTTP Status 404 - /jsp... message /jsp/ description The requested resource (/jsp/) is not available..., The 404 or Not Found error message is an HTTP standard response code indicating 

Java Beginners

Err while reading CSV file using POI - Java Beginners
Err while reading CSV file using POI  Hi, When i am trying to read a CSV file using POI Dile system, the below error is coming up. java.io.IOException: Invalid header signature; read 2334956330951926093, expected 

JSP Servlet Questions

How to read a rows which have a values in a excel file using apache poi - JSP-Servlet
How to read a rows which have a values in a excel file using apache poi  Dear sir, How to read excel file in that only a rows which are having some values using apache poi...please help me sir. Thanks and Regards 

Development process Questions

Jsp
Jsp  how can we compile the jsp file in dos command prompt. when i enter the jspc filename.jsp in cmd i got the error like 'jspc' is not recognized... to my file and compilation for the jsp file 

JSP Servlet Questions

JSP Error - JSP-Servlet
JSP Error  When i am running my registration.jsp getting following error. HTTP Status 500... description The server encountered an internal error () that prevented it from fulfilling 

JSP Servlet Questions

jsp error - JSP-Servlet
jsp error  Hello, my name is sreedhar. i wrote a jsp application to generate a report from oracledata base and the report should display in Ms-excel... in detail. Visit for more information. http://www.roseindia.net/jsp/ Thanks 

Java Beginners

Error - Java Beginners
to hex. Please have a look on the code. In jsp page I got errors. Error No 1:Incompatible type found,java.lang.objectrequired,java.lang.string. Error No 2:sval already defined in merged scriptlet Error No 3:haval already defined 

JSP Servlet Questions

jsp error - JSP-Servlet
jsp error  how to remove below error:: exception org.apache.jasper.JasperException: java.lang.NullPointerException root cause...... newpo.jsp:   JSP Page 

JSP Servlet Questions

jsp error - JSP-Servlet
jsp error  To Upload and insert the file into oracle Database with Current Date and Time In JSP and my project is online library management system plz help how to store some books in particular folder and after how retrive 

Development process Questions

jsp
://localhost:8080/calendar1/jsp/insertdate.jsp i got the following error ype... org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 7...); An error occurred at line: 17 in the jsp file: /jsp/insertdate.jsp Duplicate local 

Development process Questions

jsp
org.apache.jasper.JasperException: Unable to compile class for JSP: An error...(Calendar.MONTH); An error occurred at line: 17 in the jsp file: /jsp...jsp  when i compile the dateOfBirth.html i got the following errors 

Java Beginners

jsp - Java Beginners
`) ) Even then if you got the error then send the code along with the error...jsp  hi iam doing jsp project.i want to display the database tables... to set the path of Apache Jakarta POI library. Create table 'student 

JSP Servlet Questions

JSP Translation error - JSP-Servlet
JSP Translation error  Hello friends, In a new file declared first variable shows the following error. ----------------------------------------------- An error occurred at line: 2 in the jsp file: /stud 

JSP Servlet Questions

jsp
jsp  I'm attempting to run the program , I got the following error.I... report message description The server encountered an internal error... api.jar file inside the lib folder. 4)Now create a jsp file:'hello.jsp' < 

JSP Servlet Questions

JScript error - JSP-Servlet
JScript error  Hello friends, I am doing jsp... logins while updating profile it will not show any error. But, in many logins it shows error as unterminated string. I am not able 

JSP Servlet Questions

jsp
jsp  I'm attempting to run the program , I got the following error.I am using Apache Tomcat/5.0.28 , jdk1.6 HTTP Status 500 - type Exception report message description The server encountered an internal error 

JSP Servlet Questions

jsp
jsp  I'm attempting to run the program , I got the following error.I am using Apache Tomcat/5.0.28 , jdk1.6 HTTP Status 500 - type Exception report message description The server encountered an internal error 

JSP Servlet Questions

Servlet Error - JSP-Servlet
/lib folder if database is mysql. servlet-api.jar jsp-api.jar mysql-connector.... Error showing ==>Admin/FirstServlet is not a servlet Sincerely Prakash   Hi prakash servlet-api.jar jsp-api.jar mysql-connector 

JSP-Tutorials

JSP Error 500
JSP Error 500          JSP Error 500 is to generate error status 500 in jsp.  The Error 500 occurred when the server encounter an internal error 

JSP Servlet Questions

JSP error page - JSP-Servlet
JSP error page  Hi i have 1000 of JSP. but we coded it without adding... the exception occured in JSP. is there any short cut i can do? do not want to add this line.../DAO/bean layer and not in the JSP. let me know if you have any idea. Thanks 

JDBC Questions

jsp error - JDBC
jsp error   in this code the else part is nt executing atall... of that a error is like-----------"java.sql.SQLException: [Microsoft][ODBC Driver Manager... the line is not getting incremented u r getting that error just do this change 

JDBC Questions

programming error
programming error  I got an error when i did the following program the prg. is to "select the name from database when the age is given for the respective name" error i got is:SQL exception please give me the solution by providing 

JSP Servlet Questions

Tomcat error - JSP-Servlet
the error :-this is non microsoft product please see event log . what might be the reason of such error  HI, Can you paste the error log here.We 

JSP Interview Questions

error in uploading image from jsp to oracle 10g database
error in uploading image from jsp to oracle 10g database  ... try to insert into the image into the database i got the above error please advice how to get rid of error   JSP upload image in Mysql database 

JSP Servlet Questions

Script error - JSP-Servlet
running this it shows an error as "STACK OVERFLOW". Correct the code . The code... then send me jsp code. Thanks 

JSP Servlet Questions

jsp-servelet,error http404
jsp-servelet,error http404  I am using mysql commandclient to connect with eclipse using jsp and servelet. I keep getting the error hhtp 404. Register.jsp Name:<input type="text" name="userName"/>< 

JSP Servlet Questions

Programming Error - JSP-Servlet
(""); } catch(SQLException se) { out.println("Database Error :"+se.getMessage()); } catch(Exception e) { out.println("General Error :"+e.getMessage... ServletException,IOException {doPost(req,res);} } There is some error 

JSP Servlet Questions

output error - JSP-Servlet
output error  /*hi friends, the given below is my servlet program error? How can i solve this problem? */ HTTP Status 500... report message description The server encountered an internal error 

Development process Questions

Jsp Error - Development process
Jsp Error  Hi, While executing Add_Data.jsp , am getting following error. "Data type mismatch in criteria expression." "View_Data.jsp...) at jsp_servlet.__add_data._jspService(__add_data.java:146 

Programming Tutorials

JSP Error Page
JSP Error Page          JSP Error Page is used to specify the custom... directive. The page errorPage.jsp shows the error generated in calling the JSP page 

JSP Servlet Questions

error message - JSP-Servlet
error message  hi, friends after complete my servlet programe i can type http://localhost:8080 on the browser. the servlet program is insert data into dbms. but i have errormessage that is "window can not access the specified 

Hibernate Questions

jsp-Hibernate Error - Hibernate
jsp-Hibernate Error  hi, my problem is, I designed an Interface where i am tring to listing the all rows of a table using Iterator and putted a link for deleting each row. I am deleteing row using row id of that record.it delete 

JSP Servlet Questions

jsp code error - JSP-Servlet
jsp code error  hello, is anyone here who can solve my problem. what happen experts where r u? or u r not able to do 

JSP Servlet Questions

jsp code error - JSP-Servlet
jsp code error  hello, is anyone here who can solve my problem. what happen experts where r u? r u not able to do 

JSP Servlet Questions

Programming Error - JSP-Servlet
(); } } }//End of class m geeting error in this can u please tell me whats the error nd how to solve 

JSP Servlet Questions

Programming Error - JSP-Servlet
integer.parseInt but its giving error. Please Reply me . Thank you 

JSP Servlet Questions

Programming Error - JSP-Servlet
is access). Then how to do this in jsp?? Please Reply me?? Please do Reply 

JSP Servlet Questions

Programming Error - JSP-Servlet
??? And when i tried its giving me error than cannot find variable.In 

JSP Servlet Questions

code error - JSP-Servlet
is error in this progrm. ss function describe() { window.status 

JSP Servlet Questions

jsp code error - JSP-Servlet
jsp code error  I have a jsp page named "tMastDepartment".which has some table row containing text box like 'project code','Departmentcode','employee_id', 'address', and 'city' and a one dropdown list which contains department 

JSP Servlet Questions

Programming Error - JSP-Servlet
("http://localhost:8080/examples/jsp/modify.jsp?filename="+filename 

JSP Servlet Questions

Programming Error - JSP-Servlet
statement in jsp i want to calculate the price of placing ad according to user 

Development process Questions

Jsp Error - Development process
Jsp Error  Hi, While executing following code "View_Service.jsp" , am getting Internal Server Error java.sql.SQLException: [Microsoft][ODBC...(JdbcOdbcStatement.java:288) at jsp_servlet.__add_data._jspService(__add_data.java:146 

JSP Servlet Questions

SQL error - JSP-Servlet
){ System.out.println("Error occured while updating!!!"); } con.close 

JSP Servlet Questions

Proogramming Error - JSP-Servlet
,BankName shoukd get validated but i tried its getting error sir can u please tell me 

JSP Servlet Questions

Programming error - JSP-Servlet
"); } catch(SQLException se) { out.println("Database Error :"+se.getMessage()); } catch(Exception e) { out.println("General Error :"+e.getMessage()); } %> 

JSP Servlet Questions

Programming Error - JSP-Servlet
Programming Error  How to validate login page using jsp where it checks for username whether it is empty or not or is it including number or not if it is the paste alert message.   Hi Friend, Try the following 

JSP Servlet Questions

insertion error - JSP-Servlet
insertion error  my first jsp page : In this i m getting all the values through a method called getAllDetails,the values are getting inserted... into table. below is the codeof jsp and java pages; function 

JSP Servlet Questions

jsp-Hibernate Error - JSP-Servlet
jsp-Hibernate Error  hi, my problem is, I designed an Interface where i am tring to listing the all rows of a table using Iterator and putted a link for deleting each row. I am deleteing row using row id of that record.it delete 

JSP Servlet Questions

Programming Error - JSP-Servlet
in jsp. when user types some thing in draft ad textarea then it should get 

JSP Servlet Questions

Programming error - JSP-Servlet
where if @ is not given or (dot). is not given etc then it should display error 

Development process Questions

Error in Jsp - Development process
Error in Jsp  Hi Friends, For the following code when i include src in script Sub-Combo box is not working . but if i remove src then it will work. Add Data var arr = new Array(); arr["Select"] = new Array 

JSP Servlet Questions

JSP Page Error
JSP Page Error  Hello Sir. I m using Oracle 10g as a database n tomcat server DSN name : NB Username NB Password EBS Table name consumer When i run jsp page on the browser it only shows the code nothing else.. I have 

JSP Servlet Questions

JSP Page Error
JSP Page Error  Hello Sir. I m using Oracle 10g as a database n tomcat server DSN name : NB Username NB Password EBS Table name consumer When i run jsp page on the browser it only shows the code nothing else.. I have 

JSP Servlet Questions

JSP Page Error
JSP Page Error  Hello Sir. I m using Oracle 10g as a database n tomcat server DSN name : NB Username NB Password EBS Table name consumer When i run jsp page on the browser it only shows the code nothing else.. I have 

Date Calendar

Using POI - Date Calendar
Using POI  What can i do with POI in Java and also give me an example of it.Thanks 

Java-Tutorials

Excel User Define Error Message
Excel User Define Error Message In this section, you will learn , while cell value validation,  how to show user defined error message using Apache POI... & 30. If you enter other than these value a User  Defined Error 

JSP Servlet Questions

Programming Error - JSP-Servlet
 

JSP Servlet Questions

Programming Error - JSP-Servlet
 

JSP Servlet Questions

JSF error - JSP-Servlet
 

JSP Servlet Questions

Programming Error - JSP-Servlet
 

JSP Servlet Questions

Programming Error - JSP-Servlet
 

JSP Servlet Questions

servlet error - JSP-Servlet
 

JSP Servlet Questions

compilation error - JSP-Servlet
 

JSP Servlet Questions

programming error - JSP-Servlet
 

JSP Servlet Questions

Programming Error - JSP-Servlet
 

Advertisements Advertisements
 

 

 

DMCA.com