Error in uploading excel file using Java pages
Hello,
We are using oracle ERP (R12.1.1) and we have developed one JSP page to upload an excel.
After selecting the excel and browse button is clicked we are gettign the OLE stream error when the excel file is .csv or .xlsx. There is no issue with .xls excel files. For loading the excel data to custom table we are using the "jxl-2.6.jar".
Can we get higher version of "jxl-2.6.jar to support CSV upload?
Thanks.
Are you Registered this jsp upload page to EBS before test?
You have to register the page to EBS first.
Regards,
Dilip
Similar Messages
-
Technical Error when uploading a file using java 1.6.0_17
When I'm uploading a mp3 file size 84.01 Mb i get the following message:
Warning-Security
Name:MyFTPUploader
Publisher:JavaAtWork
From:http://mixes.djfez.com
A box is ticked if you always trust the content from this publisher and then there is the option to run or cancel.
The Message then states that The digital signature was generated with a trusted certificate but has expired.
I then choose to run the application.
I then choose the file from my hard drive to upload(a mp3 file 84.01 Mb), select upload and then the file gets to about 5-7% uploaded and then a message appears Technical Error with an x in a 8 sided pink 2D figure.
Here is what is shown on the Jarva Console:
Java Plug-in 1.6.0_17
Using JRE version 1.6.0_17-b04 Java HotSpot(TM) Client VM
User home directory = C:\Users\Owner\Downloads
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
Reading certificates from 10215 http://mixes.djfez.com/admin/myftpuploader-standard-signed-v131.jar | C:\Users\Owner\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\61\66a2727d-46f2f117.idx
MyFTPUploader Standard Edition version 1.3.1
© Copyright JavaAtWork 2005-2008. All rights reserved.
Reading certificates from 11 http://mixes.djfez.com/admin/labels.jar | C:\Users\Owner\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\27\7b49829b-46cb6a8e.idx
220 ProFTPD 1.3.0 Server (DreamHost FTP) [66.33.200.61]
331 Password required for mixes.
230 User mixes logged in.
200 Type set to I
550 uploads/2707/: No such file or directory
550 uploads/2707/: No such file or directory
250 CWD command successful
257 "/uploads/2707" - Directory successfully created
250 CWD command successful
257 "/uploads/2707" is current directory.
227 Entering Passive Mode (66,33,200,61,148,196).
150 Opening BINARY mode data connection for LittleJohn_Happier_Beats_Vol_1.mp3
Dec 7, 2009 9:40:45 PM - FTPUploadTask - upload() - java.net.SocketException: Connection reset by peer: socket write error
Dec 7, 2009 9:40:45 PM - FTPUploadTask - logout() - java.net.SocketException: Connection reset by peer: socket write error
Operating System is Windows Vista Home
If anyone could help me overcome this error it would greatly be appreciated.If anyone could help me overcome this error it would greatly be appreciated. Java questions here concern programming, not product support.
Connection reset by peer: socket write errorThat says that the server, where the file comes from, closed the connection.
The most likely possibilities
1. The client software is not correctly communicating with the server. Solution: fix the client
2. The server is not correctly handling this request. Solution: fix the server
3. The server doesn't want to talk the the client. Solution: fix both the server and the client.
From the above unless you are in a position to fix something then you do not have an option.
If you yourself cannot fix either of those then this is a vendor problem and you must contact the vendor (creator) of the software client and/or server. You would do that somewhere besides this site. -
Problem in Uploading excel file using WebDynpro for Java
Hi All
I have followed for Uploading excel file using WebDynpro for Java added by Tulasi Palnati
I done all, but I'm getting 500 Exception please contact u r system admin meag at run time also Jxl/Workbook class not found msag but i downloaded Jxl.jar file and there is no error signals in coding part. How can I solve the Problem.
Thanks
PolakaPlease ask the people in the Web Dynpro Java forum for a solution.
-
How do I produce an excel file using java code
How do i produce an excel file using java code.
If it is possible would ne one have ne source code as an example.
I have tried looking up information on outputing the information to a *.csv file but unfortunality i have had no luck in finding any information. To be exact ne source code.
Thanks
LeeThat's what I use and I'd be the first to admit that it's very messy. But it works. Go use Google and see what else you can find.
-
How to Write data in Excel File using java
Hi
can anybody help me to write data in excel file
using java code
Thankx In AdvanceHow much are you willing to pay for that?
If you want it for free, http://jexcelapi.sourceforge.net/ -
How to format a excel file use java.
hi,
everyone, i meet a problem.i want to write a excel file use java.i can use .csv input the date to excel.but i want to know how to format it.
thanks
Jovehi,
everyone, i meet a problem.i want to write a excel
el file use java.i can use .csv input the date to
excel.but i want to know how to format it.
thanks
JoveIf I understand your question correctly you need to know the format of a .csv file for use in an Excel spreadsheet. A .csv file is a comma-delimited file so all that you need to do is write your data elements to the file with commas in between them. Having done something similar in the past, let me warn you that when Excel is reading your file, it uses some characters other than commas as field delimiters. for example, / : and ; are treated as commas. To defeat this, you will need to surround fields containing those characters in double quotes.
Hope that helps
Mark -
Generate Excel File using Java
Hi,
could any one tell me how can I create an Excel file using java. I can create the file using PrintWriter and other IO classes. But how do I insert the data in to different cells and rows.
Any help would be greatly appreciated. Thanks in advance for your help,
-MSDear All,
There are three ways for achiving excel operations using java including excel to xml etc.
1. There is a very effective tool available for this operation is "jexcel". You can find it at http://www.andykhan.com/jexcelapi/index.html
2. Jakarta site has provided a very good tool by name jakarta poifs. one can find at jakarta site.
3. One can develop a very effective tool by combining these above tools togather.
The operations that can be performed are read, write, convert etc for excel. The major attraction of Jexcel is excel to xml conversion.
Regards,
Nishant Kulkarni
Software Engineer
[email protected] -
Read&write Excel file using java
Hi everybody,
I have an assignment about methods that read and write an excel file using java (Eclipse SDK), so if anyone know about that please post the solution as soon as possible.
Thanks
Sendbadhttp://onesearch.sun.com/search/onesearch/index.jsp?qt=read+write+excel&subCat=siteforumid%3Ajava31&site=dev&dftab=siteforumid%3Ajava31&chooseCat=javaall&col=developer-forums
-
SharePoint 2013 Foundation error when uploading Excel files
Hello
I have a specific problem. I have an xlsx file that I cannot upload in SharePoint. Normally our SharePoint can upload Excel files and other file formats normally but this one has data with nearly 5000 rows. The size of the file is less then 500 KB. The error
message is: "The URL is invalid. Perhaps it refers to a nonexistent file or folder, or it refers to a valid file or folder in the current Web." When I am uploading this file I am getting the same error message in every library. When I save
the file as a 97-2003 compatible xls then it works. Sometimes even Excel files with Macros won't upload.
Kind regards
ivicapro1987Hi,
This issue occurs when the Version column is configured as an Indexed Column.
To work around this issue, remove the Version column from the list of Indexed Columns for the list that has this issue. To do this, follow these steps:
Browse to the list where the issue exists.
In the ribbon, click the Library tab, and then click
Library Settings.
In the fields list, click Indexed Columns.
In the Indexed Columns list, click Version.
Click Delete, and then click OK.
Upload any files that you previously experienced the issue with.
Reference:
https://support.microsoft.com/kb/2796640?wa=wsignin1.0
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Uploading Excel file using 'ALSM_EXCEL_TO_INTERNAL_TABLE'
Hi,
I am uploading excel file into an internal table using 'ALSM_EXCEL_TO_INTERNAL_TABLE' FM.
but I'm getting a popup with the message
'There is a large amount of the information on the clipboard. Do you want to be able to paste this information into another programme later.' and there are three buttons in the popup 'YES', 'CANCEL' and 'NO'. but for any choice there is no data in the internal table.
the progrsm is working in other systems but giving problem in customer laptop, can you please tell me is there any settings need to set for EXCEL or SAP.
system details are as below
OS: windows 7
MS-Office - 2007
SAP : ECC06Looks like there was an intention to clear the clipboard in the code, but this does not seem to work.
I copied the function module to my own version and added the following code, which seems to work :
* clear clipboard
refresh excel_tab.
call method cl_gui_frontend_services=>clipboard_export
importing
data = excel_tab
changing
rc = ld_rc
exceptions
cntl_error = 1
* ERROR_NO_GUI = 2
* NOT_SUPPORTED_BY_GUI = 3
others = 4
* Copy only one cell to prevent the clipboard data message.
call method of worksheet 'Cells' = h_cell
exporting #1 = 1 #2 = 1.
m_message.
call method of worksheet 'Cells' = h_cell1
exporting #1 = 1 #2 = 1.
m_message.
call method of worksheet 'RANGE' = range
exporting #1 = h_cell #2 = h_cell1.
m_message.
call method of range 'SELECT'.
m_message.
* copy marked area (whole spread sheet) into Clippboard
call method of range 'COPY'.
m_message.
* quit Excel and free ABAP Object - unfortunately, this does not kill
* the Excel process
call method of application 'QUIT'.
m_message. -
Error while uploading tiff file using report "RSTXLDMC"
Hi Experts,
I am trying to upload .tif file into SAP usinf report "RSTXLDMC".
Getting below error.
Uploading TIFF Files to SAPscript Texts
Load File
c:\file.tif
The file contains 134,412 bytes
This is a TIFF file with MOTOROLA byte order
First IFD offset: 8
Reading IFD from offset 8 Number of Tags 13
ImageWidth: 5,120
ImageLength: 6,590
Compression: 2
Photometric Interpretation: 0
Number of StripOffsets: 5
RowsPerStrip: 1,636
Number of StripByteCounts: 5
XResolution: 600 / 1
YResolution: 600 / 1
ResolutionUnit: 2
This is a baseline TIFF 6.0 BILEVEL file
TIFF upload not possible, compression type 2 not supported
How to solve this ????
Please help.
Regards,
SVSDear Vijay,
I have one tiff 6.0 image which i am passing to program "RSTXLDMC".
I have not done any conversion or changes in the file.
Regards,
Sagar Sontakke -
Error while uploading a file using ke13 transactoin
Hi..
We have the following error when uploading a project plan by cost element excel upload using KE13 transaction...
There is a z program that calls this ke13 program while uploading. The excel file is split into x files and uploaded..
THe error is: Quantity Unit HR cannot be converted to & and error occured when generating data for planning processor...
Any idea if someone face similar situation..
Any clue would help us..
Thanks,
Kanthi.Hi,
Covert quantity to char and upload the data.
Regards
Amole -
How to read data from the excel file using java code.
Hi to all,
I am using below code to getting the data from the excel file but I can't get the corresponding data from the specific file. can anyone give me the correct code to do that... I will waiting for your usefull reply......
advance thanks....
import java.io.*;
import java.sql.*;
public class sample{
public static void main(String[] args){
Connection connection = null;
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection( "jdbc:odbc:Mydsn","","" );
Statement st = con.createStatement();
ResultSet rs = st.executeQuery( "Select * from [Sheet1$]" );
System.out.println("sample:"+rs);
ResultSetMetaData rsmd = rs.getMetaData();
System.out.println("samplersd:"+rsmd);
int numberOfColumns = rsmd.getColumnCount();
System.out.println("numberOfColumns:"+numberOfColumns);
while (rs.next()) {
System.out.println("sample1:"+rs);
for (int i = 1; i <= numberOfColumns; i++) {
if (i > 1) System.out.print(", ");
String columnValue = rs.getString(i);
System.out.print(columnValue);
System.out.println("");
st.close();
con.close();
} catch(Exception ex) {
System.err.print("Exception: ");
System.err.println(ex.getMessage());
}1: What is the name of the excel sheet?
2: What is printed in this program? null ? anything?
error?Excel file name is "sample.xls" I set excel file connectivity in my JDBC driver(DSN). Here in my program I am not giving that excel file name. I am giving only that excel sheet name. that is followed
ResultSet rs = st.executeQuery( "Select * from [Sheet1$]" );The output of this program is given bellow.
sample:sun.jdbc.odbc.JdbcOdbcResultSet@1b67f74
samplersd:sun.jdbc.odbc.JdbcOdbcResultSetMetaData@530daa
numberOfColumns:2 -
Error while accessing excel file using ODBC
Hi
I am getting the below error message while accessing excel sheet using ODBC from Oracle:
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from EXCL
Can anyone help me on this...
Cheers
Pradeep
Message was edited by:
user634393Hi
Thank you.Is there a way to read a file which is existing in the war file.
Regards
Anand Mohan
"Wenjin Zhang" <[email protected]> wrote:
>
>In Weblogic, if your files are archived in a WAR, you cannot get an entry
>as individual
>file since it is only bytes in a large archive file. So getRealPath will
>give
>you null result. If you only want the path, try to use other getXXXPath,
>getURL,
>or getURI method. If you want to read the content, use getResource.
>
>
>"Anand" <[email protected]> wrote:
>>
>>Hi
>>I am having problem while accessing the file located in the server from
>>a JSP
>>page. I am not getting the RealPath from a JSP page using getRealPath(request.getServletpath()).
>>
>>The same code is working if the jsp placd under defaultwebApp directory
>>and not
>>working if i create a war and deploy the same.
>>
>>I am using weblogic server 7.0 trail version.I am setting the context
>>path also.
>>
>>Can any help me in this regard.
>>
>>Thank And Regards
>>
>>Anand Mohan
>
-
Read an excel file using java code
Hi,
I want to create an excel file on the client machine based on the personal details entered on the web page. And I want to save the file on the client machine in the form of CSV. Then I want to read the contents of the spreadsheet using Java Code from the using servlets. Can I read the contents of the file directly from the client machine or do i need to save the file on the server and then read the contents of it. Please help me solve this.Hi,
I want to create an excel file on the client machine
based on the personal details entered on the web
page. And I want to save the file on the client
machine in the form of CSV. Then I want to read the
contents of the spreadsheet using Java Code from the
using servlets. Can I read the contents of the file
directly from the client machine or do i need to save
the file on the server and then read the contents of
it. Please help me solve this.As stated I am rather certain that is impossible.
Servers don't access the file systems of client machines.
Maybe you are looking for
-
Ir remote does'not function after upgrading from Vista to Windows 7
I just upgraded to Windows 7 Pro from Vista Home Premium. I was able to get most of my drivers to work; however, I was not able to find th edrivers/software for my IR remote control. Has anyone else figured this issue out, or what drivers/software I
-
Is Xsan compantible with Fast User Switching in 10.4 Tiger?
Does anyone know if Xsan is compatible with Tiger's 'fast user switching' feature (which allows you to have multiple users logged into the machine at the same time)? I had a very strange occurrence with my Xsan yesterday. The Xsan volume was mounted
-
Error while processing Payroll
Hi Experts, Please help... While processing Payroll getting an error. Please lower the loan repayment in IT0045. His gross pay is 13974 and there is a deduction of Rs.8120/- (including PF ESI and other loans deduction with interest amount) and Nett p
-
Applications quitting unexpectedly and Force Quit doesn't work
Hi there - Hoping someone can help me out because this is driving me crazy! For the last week or so, probably 75% of the time that I save my work on word, excel or numbers the application stops responding. Force Quit either doesn't work or takes an e
-
Is there a manual for boris title 3D?
Can't find anything in the index for the fcp manual. Trying to figure out how to use the style palette. However it's supposed to work, it sure isn't intuitive. Unless of course, it's not supposed to work (just implemented in a version you have to pay