Error while file upload by FM "TEXT_CONVERT_XLS_TO_SAP"
HI all,
I need to upload an excel file to SAP system ,for the same i am using the FM TEXT_CONVERT_XLS_TO_SAP in following way.
TYPE-POOLS truxs.
DATA: lv_raw TYPE truxs_t_text_data.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_field_seperator = 'X' "is an .xls file
i_line_header = 'X' "has a header line
i_tab_raw_data = lv_raw
i_filename = v_file
TABLES
i_tab_converted_data = etd_itab
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
But i get sy-subrc = 1,which is conversion error.
The structure of the etd_itab is same as the excel file ,even the field names are same ,still i wonder why should the conversion error been encountered .
Am i missing on anything ?
Please comment.
Thanks,
Swati
Hi ,
The structure of my excel file and the data is as follows
PO_NO Item Div Material Vend PO_Date PO Bal.
4400000001 10 C SVC-PART-01 BCCS 2006.10.29 12
4500000348 10 L BA41-00383A BCCS 0
Following is the program flow
TYPES : BEGIN OF gt_etd ,
po_no LIKE ekpo-ebeln,
item LIKE ekpo-ebelp,
div LIKE mara-spart,
material LIKE kondd-smatn,
vend LIKE ekko-lifnr,
po_date LIKE ekpo-aedat,
po_bal LIKE ekpo-menge,
delivery_date LIKE ekes-eindt,
END OF gt_etd.
DATA: etd_itab TYPE STANDARD TABLE OF gt_etd WITH HEADER LINE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR pcfile.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_filename = '.xls'
def_path = 'C:\'
mask = ',.txt;.xls,.txt;.xls.'
mode = 'O'
title = ' '
IMPORTING
filename = pcfile
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
IF pcfile IS INITIAL.
WRITE: / 'SELECT UPLOAD FILE !'.
ELSE.
MOVE pcfile TO v_file.
ENDIF.
*ETD file upload
CLEAR: lv_raw, etd_itab[].
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_field_seperator = ' ' "is an .xls file
i_line_header = ' ' "has a header line
i_tab_raw_data = lv_raw
i_filename = v_file
TABLES
i_tab_converted_data = etd_itab
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
Please advice ,why am i getting conversion error.
Thanks a lot .
Similar Messages
-
I am getting this error while file uploading
Hi!
I am getting this error while file uploading,I can't find any solution.
SRVE0026E: [Servlet Error]-[org.apache.commons.fileupload.FileUpload: method setSizeMax(I)V not found]: javax.servlet.ServletException: org.apache.commons.fileupload.FileUpload: method setSizeMax(I)V not found
at com.honeywell.sdm.base.controller.SDMActionServlet.service(SDMActionServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
Please help me.I have attached the bean,action ,jsp pages
uploadInfo.jsp
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html>
<HEAD>
<script>
function submitting(){
document.uploadForm.operation.value = "uploadOrgAdj";
document.uploadForm.action = "/uploadRecAction.do";
document.uploadForm.submit();
</script>
</HEAD>
<body>
<html:form action="/uploadRecAction" method="post" enctype="multipart/form-data">
Select the .xls File to upload data
<html:file property="fileName"></html:file>
<html:hidden property="operation" value=""/>
<html:button property="btn" value="Submit" onclick="submitting()"></html:button>
</html:form>
</body>
</html:html>
uploadAdjForm :
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
public class uploadAdjForm extends ActionForm{
private FormFile fileName;
* @return
public FormFile getFileName() {
System.out.println("getFileName"+fileName);
return fileName;
* @param string
public void setFileName(FormFile string) {
System.out.println("setileNmame"+string);
fileName = string;
Action:
public class uploadFinancialAdjAction extends DispatchAction{
public org.apache.struts.action.ActionForward uploadOrgAdj(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception {
String sForward = "UploadInfo";
HttpSession session = request.getSession();
String sStartIndex = null;
String sEndIndex = null;
try
uploadFinancialAdjForm UploadForm=(uploadFinancialAdjForm)form;
System.out.println(UploadForm.getFileName().getContentType().toString());
String file=UploadForm.getFileName().toString();
uploadFinancialAdjManager businessManager = new uploadFinancialAdjManager();
ArrayList fileName = new ArrayList(); fileName = businessManager.getOrgAdjDetails(file);
boolean isMultipart = FileUpload.isMultipartContent(request);
if(isMultipart){
// Create a new file upload handler
DiskFileUpload upload = new DiskFileUpload();
// Parse the request
List items = upload.parseRequest(request);
//Process the uploaded items
Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
//processFormField(item);
if(item.getFieldName().equalsIgnoreCase("txtStartIndex")){
sStartIndex = item.getString();
else if(item.getFieldName().equalsIgnoreCase("txtEndIndex")){
sEndIndex = item.getString();
uploadFinancialAdjForm UploadForm=(uploadFinancialAdjForm)form;
String file=UploadForm.getFileName().toString();
uploadFinancialAdjManager businessManager = new uploadFinancialAdjManager();
ArrayList fileName = new ArrayList();
fileName = businessManager.getOrgAdjDetails(file);
}else{
if(item.getName()!=null && !item.getName().toUpperCase().endsWith(".XLS")){
throw new Exception("Please browse an excel file and Upload");
session.setAttribute("fileItem",item);
}//end of while
session.setAttribute("startIndex",sStartIndex);
session.setAttribute("endIndex",sEndIndex);
request.setAttribute("FileUploadStatus","true");
else{
throw new Exception("Error:Form is not multipart");
catch(Exception e)
System.out.println(e);
return mapping.findForward(sForward);
}Plz answer for my question
-
Getting error while file uploading in struts
Hi!
I am getting this error while file uploading,I can't find any solution.
SRVE0026E: [Servlet Error]-[org.apache.commons.fileupload.FileUpload: method setSizeMax(I)V not found]: javax.servlet.ServletException: org.apache.commons.fileupload.FileUpload: method setSizeMax(I)V not found
at com.honeywell.sdm.base.controller.SDMActionServlet.service(SDMActionServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
Please help me.I have attached the bean,action ,jsp pages
uploadInfo.jsp
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html>
<HEAD>
<script>
function submitting(){
document.uploadForm.operation.value = "uploadOrgAdj";
document.uploadForm.action = "/uploadRecAction.do";
document.uploadForm.submit();
</script>
</HEAD>
<body>
<html:form action="/uploadRecAction" method="post" enctype="multipart/form-data">
<b>Select the .xls File to upload data </b>
<html:file property="fileName"></html:file>
<html:hidden property="operation" value=""/>
<html:button property="btn" value="Submit" onclick="submitting()"></html:button>
</html:form>
</body>
</html:html>
uploadAdjForm :
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
public class uploadAdjForm extends ActionForm{
private FormFile fileName;
* @return
public FormFile getFileName() {
System.out.println("getFileName"+fileName);
return fileName;
* @param string
public void setFileName(FormFile string) {
System.out.println("setileNmame"+string);
fileName = string;
Action:
public class uploadFinancialAdjAction extends DispatchAction{
public org.apache.struts.action.ActionForward uploadOrgAdj(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception {
String sForward = "UploadInfo";
HttpSession session = request.getSession();
String sStartIndex = null;
String sEndIndex = null;
try
uploadFinancialAdjForm UploadForm=(uploadFinancialAdjForm)form;
System.out.println(UploadForm.getFileName().getContentType().toString());
String file=UploadForm.getFileName().toString();
uploadFinancialAdjManager businessManager = new uploadFinancialAdjManager();
ArrayList fileName = new ArrayList(); fileName = businessManager.getOrgAdjDetails(file);
boolean isMultipart = FileUpload.isMultipartContent(request);
if(isMultipart){
// Create a new file upload handler
DiskFileUpload upload = new DiskFileUpload();
// Parse the request
List items = upload.parseRequest(request);
//Process the uploaded items
Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
//processFormField(item);
if(item.getFieldName().equalsIgnoreCase("txtStartIndex")){
sStartIndex = item.getString();
else if(item.getFieldName().equalsIgnoreCase("txtEndIndex")){
sEndIndex = item.getString();
uploadFinancialAdjForm UploadForm=(uploadFinancialAdjForm)form;
String file=UploadForm.getFileName().toString();
uploadFinancialAdjManager businessManager = new uploadFinancialAdjManager();
ArrayList fileName = new ArrayList();
fileName = businessManager.getOrgAdjDetails(file);
}else{
if(item.getName()!=null && !item.getName().toUpperCase().endsWith(".XLS")){
throw new Exception("Please browse an excel file and Upload");
session.setAttribute("fileItem",item);
}//end of while
session.setAttribute("startIndex",sStartIndex);
session.setAttribute("endIndex",sEndIndex);
request.setAttribute("FileUploadStatus","true");
else{
throw new Exception("Error:Form is not multipart");
catch(Exception e)
System.out.println(e);
return mapping.findForward(sForward);
}ORA-06512: at "PREPRD.OIM_SP_RECONARCHIVAL", line 722
ORA-00942: table or view does not exist
ORA-01031: insufficient privileges
(1) Check whether the OIM_SP_RECONARCHIVAL table or view exists or not...
(2) If it exists, check whether the DEV_OIM user has enough privilege to view this table or not...
If not, give it all privilege by login as sys as sysdba
GRANT ALL PRIVILEGES TO DEV_OIM;
COMMIT; -
Validation error after File upload
HI,
I am using a file upload functionality in OAF page.
When i browse for the required excel file and click on browse, the data is popluated on the oaf page.
I have 2 lov fields on page - say a & B.
B is a dependent LOV on A.
I have a validate button on my page which gets enabled only after file upload and validates if the data is correct or not.
The issue is like if i am having value in upload file for A as 1 and for B as 1800, but my LOV B has 2 values 1800 & 1800-01 for LOV A = 1, it gives me an error at that LOV "Select a Valid Value". If i open the LOV B window and select 1800 from it the data is correctly validated without any error.
Please help me that how can i rectify this error i.e. it should validate the data corrrectly if i pass the value 1800 to it thru excel sheet.See take an example of Employee name LOV .We know for every employee a unique emp Id is related to it.So if two person are having same name also then also their ID is different.In such cases , while creating LOV we create a FormValue for EmpID .Its not visible on Page but while validating the page formValues are also considered thereby it doesnot cause invalid value error...
In Your case, what you can do is the way you are populating the LOV field you can populate this FormValue to remove the Error.
Please Refer Jdev Guide for more info..
Hope it helps!!!
Thanks
AJ -
Error on File upload. Error processing wwv_flow.accept.
Hi,
I'm developing an application to upload and download files using Oracle XE 10g and APEX 3.2.0.00.27 on OS Windows XP.
The file upload page is very simple: one file browse item, a submit button and a report based on the wwv_flow_files table.... and an extra button to save the uploaded files in the DB.
Sometimes (almost everytime) when I press the submit button, the wwv_flow.accept process fails and I'm redirected to a page saying Internet Explorer cannot display the webpage.
I'm forced to refresh the page and then I get the following message:
Expecting p_company or wwv_flow_company cookie to contain security group id of application owner.
Error ERR-7621 Could not determine workspace for application (:) on application accept.
I recreated the same page in the apex.oracle.com environment and it works, but it fails in my local environment.
I have read some posts int his forum, but I haven't found an answer yet.
Please help!!!
AUJvarad acharya wrote:
Download the standalone OHS.
http://www.oracle.com/technology/software/products/database/oracle11g/111060_win32soft.html
varadSorry about this...old post and off topic.
Can anyone point me to a standalone version of OHS for linux x86-64? I'm having troubles finding this, it doesn't appear to have installed with 11g Enterprise Edition and I cannot find it in the available packages when I re-run the installer. I'm running 11g EPG now and want to convert to Apache.
Thanks!!! -
Error in file upload. There is not enough space in the file system
Hello,
The excel file upload functionality was working fine till now. there is error for all the users that there is no space in file system
Kindly help, is this basis issue ?
thank you
BHi ,
Please verify on the space in temporary directory which is used on server side (on the engine where this webdynpro java application is running)
When file is up loaded WD java runtime uses temporary directory of Java runtime to store/read this data .
Clear all temporary directory folders/check whether directory has Read/Write permission(OS level ) assigned to it .
Regards,
Rakeh Kumar -
Unknow error in file upload:
Hi,
I am doing a file upload using a multi part form page and a servlet. I am also doing file size validation and redirecting the user to the same page with error message if size is more than 20 KBs.This is potentially to avoid users from trying to upload huge files and flood the system.
But if the upload file size is more that 30 KBs, it looks like the server(weblogic 5.1) does something crazy.
1) Netscape throws the following error message "Connection Reset By Peer".
2) IE throws "Page cannot be displayed".
The servlet size is 7 KBs.Is this something to do with the size or stream being forwarded back to the browser and the server not able to handle this?
Any thoughts!get the book, "java for the web with servlets, jsp, and ejB: a developer's buide to j2ee solutions written by Budi Kurniawan which has one chapter specifically dedicated to doing file upload and download.
-
Pls help, (Access is denied) error when file upload to a local directory
Hi, I've been stuck on this for the past few days and I am quite new at developing web application.
Here is the problem that I am having, I don't know why it keeps on saying "access is denied" when I can see that the file is uploaded to the directory. I am developing a JSP page file upload using Jakarta Fileupload v1.2. However, every time when I try to upload a file to a local path (e:\temp) on the server I keep getting this problem. I even try looking into the server.policy file on glassfish but no luck, your help is appreciated thanks
Here's the log after file upload, note: I can see the file being uploaded in the e:\temp but why does it keep telling me the error?
I'm using netbean 5.5.1 and glassfish v2
Initializing Sun's JavaServer Faces implementation (1.2_04-b10-p01) for context '/TestReport'
java.io.FileNotFoundException: e:\temp (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at org.apache.commons.fileupload.disk.DiskFileItem.write(DiskFileItem.java:390)
at org.apache.jsp.ProcessFileUpload_jsp._jspService(ProcessFileUpload_jsp.java:83)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:818)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:464)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:358)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:818)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:258)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:189)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:255)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:345)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)Hi, I've been stuck on this for the past few days and
I am quite new at developing web application.
Here is the problem that I am having, I don't know
why it keeps on saying "access is denied" when I can
see that the file is uploaded to the directory. I am
developing a JSP page file upload using Jakarta
Fileupload v1.2. However, every time when I try to
upload a file to a local path (e:\temp)Hi there,
Typically in a Web Container, applications are deployed to a folder called webapps (this is the case in Tomcat, I'm not sure about Glassfish)
So the directory structure is something like C:/Tomcat/webapps/MyApplication/other folders......
When you upload a file , you normally can upload it only to a folder under your application and not to a folder outside the application.
First you can try to upload the file to a folder under the webapp and not outside the webapp, once you get that to work --- then internally in the Servlet you can write code to save the file to any directory on the server, but the Servlet must be located on the server. -
Coldfusion MX7 error with file upload
Hi all, I am using coldfusion mx7 server. While upload an excel file with(97-2003) format, I am getting the following error: Unable to construct record instance, the following exception occured: null
I am getting this error when I enters some data and save in my desktop with the format(97-2003) and after using a cfx tag to dump the uploaded data, I am getting this error. But if I just upload the template only without entering any data it will shows/dump the column names in template..
Is there any way to upload the same excel file with MX7?
Thanks in advanceTo answer your final question: yes of course it's possible to upload any file type with any version of CF. One has no dependency on the other.
As for the rest of it: without seeing some code, it's impossible to really:
a) understand what you're asking;
b) work out what might be causing the problem.
Adam -
Powershell: There is no file with URL error during file upload.
I am trying to put together a PowerShell script that I could use to upload files from a local directory, into a Document Library in a Record Center Site. Here is what my script looks like...
#Open web and library
$web = Get-SPWeb $webUrl
$docLibrary = $web.Lists[$docLibraryName]
$files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles()
Write-Host "Local Directory:" $localFolderPath
ForEach($file in $files)
Write-Host "Looping through files"
Write-Host "Current file:" $file
ElseIf ($contentType = "MyContentType")
#Open file
$fileStream = ([System.IO.FileInfo] (Get-Item $file.FullName)).OpenRead()
# Gather the file name
$FileName = $File.Name
#remove file extension
$NewName = [IO.Path]::GetFileNameWithoutExtension($FileName)
#split the file name by the "-" character
$FileNameArray = $NewName.split("_")
$check = $FileNameArray.Length
#Add file
$folder = $web.getfolder($docLibraryUrlName)
write-host "Copying file " $file.Name " to " $folder.ServerRelativeUrl "..."
$spFile = $folder.Files.Add($folder.Url + "/" + $file.Name, [System.IO.Stream]$fileStream, $true)
$spItem = $spFile.Item
write-host "Success"
#populate columns
$spItem["Application Number"] = $FileNameArray[0].ToString()
$spItem["Site Number"] = $FileNameArray[1].ToString()
$spItem.Update()
$fileStream.Close();
Each time I run my script, I get this error message
Exception calling "Add" with "3" argument(s): "<nativehr>0x80070003</nativehr><nativestack></nativestack>There is no file with URL 'http://myRecordLibrarySite/myRecord Library/12587_B2317.PDF' in this Web."
At C:\powershellscripts\Upload-FilesIntoSharePoint.ps1:72 char:6
+ $spFile = $folder.Files.Add($folder.Url + "/" + $file.Name, [System.IO.Stre ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DirectoryNotFoundException
I have not been able to nail down why the script is failing. Any ideas why? Thanks for the help.I just figured out the issue with adding the file. I went in this direction, and my code has progressed forward.
$folder = $web.getfolder($docLibrary.rootFolder.URL) -
OSA - ERROR while downloading \ uploading appraisal template
Hello!
May be some of you came across the same problem: when appraisal template using object Q as reference object for VB or VC is being uploading into the other client it is copied with error. The relationship 607 between objects is not ceated in the other client, so the object is not correct. Is it a standard solution
Thanks EkaterinaHello, once more!
I am inclined to think that lack of relationship 607 between objects VB and Q while uploading appraisal template into other client is due to a programm error but we failed to find relativa SAP Note, may be someone came across the problem? -
Hello,
We have Enterprise Portal connected to the Backend SRM System and while trying to do a Role Upload from SRM to Portal ,I get the following error as below:
com.sap.portal.pcd.rolemigration.RoleMigrationConnectionException: Connection Failed: Nested Exception. Physical connection was not initialized. - message at com.sap.portal.pcd.rolemigration.util.Connector.callFunction(System,en,userid,TWPN_GET_URL,SERVICE_TABLE,{ENABLE_LOGGING= , ROLENAME=<Rolename>OBJECT_ID=00000102}): Connection not available for system ''Connection Failed: Nested Exception. Physical connection was not initialized. at com.sap.portal.pcd.rolemigration.util.Connector.callFunction(Connector.java:114) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.migrate(RoleMigrationObject.java:1328) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.doDependentObjects(RoleMigrationObject.java:4974) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.save(RoleMigrationObject.java:4734) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.save(RoleMigrationObject.java:4303) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.migrate(RoleMigrationObject.java:1497) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.migrate(RoleMigrationObject.java:686) at com.sap.portal.pcd.rolemigration.RoleMigrationThread.run(RoleMigrationThread.java:525) Original exception: com.sapportals.connector.connection.ConnectionFailedException: Connection Failed: Nested Exception. Physical connection was not initialized. at com.sapportals.connectors.SAPCFConnector.SAPConnectorException.getNewConnectionFailedException(SAPConnectorException.java:107) at com.sapportals.connectors.SAPCFConnector.connection.SAPCFConnectorManagedConnectionFactory.createManagedConnection(SAPCFConnectorManagedConnectionFactory.java:133) at com.sap.engine.services.connector.jca.ConnectionHashSet.match(ConnectionHashSet.java:371) at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:262) at com.sapportals.connectors.SAPCFConnector.connection.SAPCFConnectorConnectionFactory.getConnectionEx(SAPCFConnectorConnectionFactory.java:156) at com.sap.portal.ivs.internalconnector.ConnectionProvider.getConnection(ConnectionProvider.java:295) at com.sap.portal.ivs.internalconnector.ConnectionProvider.getConnection(ConnectionProvider.java:256) at com.sapportals.portal.ivs.cg.ConnectorService.getConnection(ConnectorService.java:446) at com.sapportals.portal.ivs.cg.ConnectorService.getConnection(ConnectorService.java:84) at com.sap.portal.pcd.rolemigration.util.Connector.callFunction(Connector.java:79) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.migrate(RoleMigrationObject.java:1328) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.doDependentObjects(RoleMigrationObject.java:4974) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.save(RoleMigrationObject.java:4734) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.save(RoleMigrationObject.java:4303) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.migrate(RoleMigrationObject.java:1497) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.migrate(RoleMigrationObject.java:686) at com.sap.portal.pcd.rolemigration.RoleMigrationThread.run(RoleMigrationThread.java:525) Caused by: com.sapportals.connector.connection.ConnectionFailedException: Connection Failed: Nested Exception. Failed in creating the JCO Connection. at com.sapportals.connectors.SAPCFConnector.SAPConnectorException.getNewConnectionFailedException(SAPConnectorException.java:107) at com.sapportals.connectors.SAPCFConnector.connection.SAPCFConnectorManagedConnection.connectWithJCO(SAPCFConnectorManagedConnection.java:456) at com.sapportals.connectors.SAPCFConnector.connection.SAPCFConnectorManagedConnection.establishInitialConnection(SAPCFConnectorManagedConnection.java:204) at com.sapportals.connectors.SAPCFConnector.connection.SAPCFConnectorManagedConnection.init(SAPCFConnectorManagedConnection.java:183) at com.sapportals.connectors.SAPCFConnector.connection.SAPCFConnectorManagedConnectionFactory.createManagedConnection(SAPCFConnectorManagedConnectionFactory.java:129) ... 15 more Caused by: com.sap.mw.jco.JCO$Exception: (101) RFC_ERROR_PROGRAM: 'user' missing at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:518) at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:1086) at com.sap.mw.jco.JCO$Client.connect(JCO.java:3296) at com.sapportals.connectors.SAPCFConnector.connection.SAPCFConnectorManagedConnection.connectWithJCO(SAPCFConnectorManagedConnection.java:429) ... 18 more
Any help would be highly Appreciated.
ThanksHi,
Please check the SRM system object connection in the SAP Portal. GO to system administration > system configuration > system landscape and search for SRM system object and test the connection. If connection test successful then try to upload the roles.
Hope it will helps
Best Regards
Arun Jaiswal -
Error while exporting/uploading taskflow from JDeveloper 11.1.1.6.0
Hi all,
From WebCenter Spaces Administration I downloaded a taskflow (mashup ->taskflow) as an .ear and imported it into JDeveloper.
I applied a few changes then right-clicked taskflow-definition.xml on the application navigator and picked "Upload portal resource to server".
JDeveloper crashes with an error, which I paste later.
JDeveloper will return a similar crash/error when exporting the taskflow as an EAR.
JDeveloper will work when uploading a skin (skin.css) to the very same server.
It is a brand new installation of JDeveloper with the addition of the components/scripts found in the DesignWebCenterSpaces_PS5.zip package.
I tried googling the errors and found no hits at all.
Your help would be greatly appreciated, thank you.
Here follow the errors,
When uploading to the server:
Performing action About[ from oracle.ide.navigator.ProjectNavigatorWindow ]
Invoking command: [ from oracle.ide.navigator.ProjectNavigatorWindow ]
oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl:May 10, 2012 7:09:41 PM oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl matchMDSResource
WARNING: Error in getting resource bundle : oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle
oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl:May 10, 2012 7:09:41 PM oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl matchMDSResource
WARNING: Error in getting resource bundle : oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle
oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl:May 10, 2012 7:09:56 PM oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl matchMDSResource
WARNING: Error in getting resource bundle : oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle
oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl:May 10, 2012 7:09:56 PM oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl matchMDSResource
WARNING: Error in getting resource bundle : oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle
oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl:May 10, 2012 7:10:56 PM oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl matchMDSResource
WARNING: Error in getting resource bundle : oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle
oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl:May 10, 2012 7:10:56 PM oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl matchMDSResource
WARNING: Error in getting resource bundle : oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle
oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl:May 10, 2012 7:14:01 PM oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl matchMDSResource
WARNING: Error in getting resource bundle : oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle
oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl:May 10, 2012 7:14:01 PM oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl matchMDSResource
WARNING: Error in getting resource bundle : oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle
Performing action Upload Portal Resource to server...[ from oracle.ide.navigator.ProjectNavigatorWindow ]
May 10, 2012 7:14:03 PM oracle.webcenter.lifecycle.operation.ExportOperation doExport
SEVERE: Operation aborted because of an exception thrown by subunit (oracle.webcenter.lifecycle.siteresource.handler.InitializeUnit)
oracle.webcenter.lifecycle.LifecycleException
at oracle.webcenter.portalframework.genericsiteresources.model.lifecycle.TaskFlowLifecycleHandler.initSiteResourceExport(TaskFlowLifecycleHandler.java:168)
at oracle.webcenter.lifecycle.siteresource.SiteResourceLifecycleHandler.initExport(SiteResourceLifecycleHandler.java:123)
at oracle.webcenter.lifecycle.siteresource.handler.InitializeUnit.doExport(InitializeUnit.java:83)
at oracle.webcenter.lifecycle.siteresource.operation.SiteResourceExportOperation.doExport(SiteResourceExportOperation.java:148)
at oracle.webcenter.lifecycle.siteresource.operation.SiteResourceExportOperation.doExport_DT(SiteResourceExportOperation.java:265)
at oracle.webcenter.lifecycle.LifecycleSiteResourceService.doExport_DT(LifecycleSiteResourceService.java:191)
at oracle.webcenter.portal.dt.appnav.SiteResourcesDTLifecycleHandler.doExport_DT(SiteResourcesDTLifecycleHandler.java:410)
at oracle.webcenter.portal.dt.appnav.PortalMenuController.handleUploadSiteRes(PortalMenuController.java:1225)
at oracle.webcenter.portal.dt.appnav.PortalMenuController.handleEvent(PortalMenuController.java:190)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:529)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:897)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
at java.awt.Component.processMouseEvent(Component.java:6289)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6054)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4652)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:617)
at java.awt.EventQueue$2.run(EventQueue.java:615)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.NullPointerException
at oracle.webcenter.portalframework.genericsiteresources.model.lifecycle.TaskFlowLifecycleHandler.doExportForGivenScope(TaskFlowLifecycleHandler.java:200)
at oracle.webcenter.portalframework.genericsiteresources.model.lifecycle.TaskFlowLifecycleHandler.initSiteResourceExport(TaskFlowLifecycleHandler.java:164)
... 49 more
oracle.webcenter.lifecycle.LifecycleException
o.webcenter.portalframework.genericsiteresources.model.lifecycle.TaskFlowLifecycleHandler.initSiteResourceExport(TaskFlowLifecycleHandler.java:168)
o.webcenter.lifecycle.siteresource.SiteResourceLifecycleHandler.initExport(SiteResourceLifecycleHandler.java:123)
o.webcenter.lifecycle.siteresource.handler.InitializeUnit.doExport(InitializeUnit.java:83)
o.webcenter.lifecycle.siteresource.operation.SiteResourceExportOperation.doExport(SiteResourceExportOperation.java:148)
o.webcenter.lifecycle.siteresource.operation.SiteResourceExportOperation.doExport_DT(SiteResourceExportOperation.java:265)
o.webcenter.lifecycle.LifecycleSiteResourceService.doExport_DT(LifecycleSiteResourceService.java:191)
o.webcenter.portal.dt.appnav.SiteResourcesDTLifecycleHandler.doExport_DT(SiteResourcesDTLifecycleHandler.java:410)
o.webcenter.portal.dt.appnav.PortalMenuController.handleUploadSiteRes(PortalMenuController.java:1225)
o.webcenter.portal.dt.appnav.PortalMenuController.handleEvent(PortalMenuController.java:190)
o.i.controller.IdeAction.performAction(IdeAction.java:529)
o.i.controller.IdeAction.actionPerformedImpl(IdeAction.java:897)
o.i.controller.IdeAction.actionPerformed(IdeAction.java:501)
jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
jx.s.AbstractButton.doClick(AbstractButton.java:357)
jx.s.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
jx.s.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
j.a.Component.processMouseEvent(Component.java:6289)
jx.s.JComponent.processMouseEvent(JComponent.java:3267)
j.a.Component.processEvent(Component.java:6054)
j.a.Container.processEvent(Container.java:2041)
j.a.Component.dispatchEventImpl(Component.java:4652)
j.a.Container.dispatchEventImpl(Container.java:2099)
j.a.Component.dispatchEvent(Component.java:4482)
j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
j.a.LightweightDispatcher.processMouseEvent(Container.java:4238)
j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
j.a.Container.dispatchEventImpl(Container.java:2085)
j.a.Window.dispatchEventImpl(Window.java:2478)
j.a.Component.dispatchEvent(Component.java:4482)
j.a.EventQueue.dispatchEventImpl(EventQueue.java:644)
j.a.EventQueue.access$000(EventQueue.java:85)
j.a.EventQueue$1.run(EventQueue.java:603)
j.a.EventQueue$1.run(EventQueue.java:601)
j.security.AccessController.doPrivileged(Native Method)
j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
j.a.EventQueue$2.run(EventQueue.java:617)
j.a.EventQueue$2.run(EventQueue.java:615)
j.security.AccessController.doPrivileged(Native Method)
j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
j.a.EventQueue.dispatchEvent(EventQueue.java:614)
j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
j.a.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by:
java.lang.NullPointerException
o.webcenter.portalframework.genericsiteresources.model.lifecycle.TaskFlowLifecycleHandler.doExportForGivenScope(TaskFlowLifecycleHandler.java:200)
o.webcenter.portalframework.genericsiteresources.model.lifecycle.TaskFlowLifecycleHandler.initSiteResourceExport(TaskFlowLifecycleHandler.java:164)
o.webcenter.lifecycle.siteresource.SiteResourceLifecycleHandler.initExport(SiteResourceLifecycleHandler.java:123)
o.webcenter.lifecycle.siteresource.handler.InitializeUnit.doExport(InitializeUnit.java:83)
o.webcenter.lifecycle.siteresource.operation.SiteResourceExportOperation.doExport(SiteResourceExportOperation.java:148)
o.webcenter.lifecycle.siteresource.operation.SiteResourceExportOperation.doExport_DT(SiteResourceExportOperation.java:265)
o.webcenter.lifecycle.LifecycleSiteResourceService.doExport_DT(LifecycleSiteResourceService.java:191)
o.webcenter.portal.dt.appnav.SiteResourcesDTLifecycleHandler.doExport_DT(SiteResourcesDTLifecycleHandler.java:410)
o.webcenter.portal.dt.appnav.PortalMenuController.handleUploadSiteRes(PortalMenuController.java:1225)
o.webcenter.portal.dt.appnav.PortalMenuController.handleEvent(PortalMenuController.java:190)
o.i.controller.IdeAction.performAction(IdeAction.java:529)
o.i.controller.IdeAction.actionPerformedImpl(IdeAction.java:897)
o.i.controller.IdeAction.actionPerformed(IdeAction.java:501)
jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
jx.s.AbstractButton.doClick(AbstractButton.java:357)
jx.s.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
jx.s.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
j.a.Component.processMouseEvent(Component.java:6289)
jx.s.JComponent.processMouseEvent(JComponent.java:3267)
j.a.Component.processEvent(Component.java:6054)
j.a.Container.processEvent(Container.java:2041)
j.a.Component.dispatchEventImpl(Component.java:4652)
j.a.Container.dispatchEventImpl(Container.java:2099)
j.a.Component.dispatchEvent(Component.java:4482)
j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
j.a.LightweightDispatcher.processMouseEvent(Container.java:4238)
j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
j.a.Container.dispatchEventImpl(Container.java:2085)
j.a.Window.dispatchEventImpl(Window.java:2478)
j.a.Component.dispatchEvent(Component.java:4482)
j.a.EventQueue.dispatchEventImpl(EventQueue.java:644)
j.a.EventQueue.access$000(EventQueue.java:85)
j.a.EventQueue$1.run(EventQueue.java:603)
j.a.EventQueue$1.run(EventQueue.java:601)
j.security.AccessController.doPrivileged(Native Method)
j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
j.a.EventQueue$2.run(EventQueue.java:617)
j.a.EventQueue$2.run(EventQueue.java:615)
j.security.AccessController.doPrivileged(Native Method)
j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
j.a.EventQueue.dispatchEvent(EventQueue.java:614)
j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
j.a.EventDispatchThread.run(EventDispatchThread.java:122)
When exporting as an EAR file:
oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl:May 10, 2012 7:14:18 PM oracle.adf.share.logging.ADFLogger doLog
WARNING: Error in getting resource bundle : oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle
oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl:May 10, 2012 7:14:18 PM oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl matchMDSResource
WARNING: Error in getting resource bundle : oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle
oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl:May 10, 2012 7:14:19 PM oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl matchMDSResource
WARNING: Error in getting resource bundle : oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle
oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl:May 10, 2012 7:14:19 PM oracle.webcenter.portalframework.genericsiteresources.internal.model.GenericSiteResourcesManagerImpl matchMDSResource
WARNING: Error in getting resource bundle : oracle.webcenter.webcenterapp.resource.WebCenterResourceBundle
Performing action Export Portal Resource...[ from oracle.ide.navigator.ProjectNavigatorWindow ]
May 10, 2012 7:14:30 PM oracle.webcenter.lifecycle.operation.ExportOperation doExport
SEVERE: Operation aborted because of an exception thrown by subunit (oracle.webcenter.lifecycle.siteresource.handler.InitializeUnit)
oracle.webcenter.lifecycle.LifecycleException
at oracle.webcenter.portalframework.genericsiteresources.model.lifecycle.TaskFlowLifecycleHandler.initSiteResourceExport(TaskFlowLifecycleHandler.java:168)
at oracle.webcenter.lifecycle.siteresource.SiteResourceLifecycleHandler.initExport(SiteResourceLifecycleHandler.java:123)
at oracle.webcenter.lifecycle.siteresource.handler.InitializeUnit.doExport(InitializeUnit.java:83)
at oracle.webcenter.lifecycle.siteresource.operation.SiteResourceExportOperation.doExport(SiteResourceExportOperation.java:148)
at oracle.webcenter.lifecycle.siteresource.operation.SiteResourceExportOperation.doExport_DT(SiteResourceExportOperation.java:265)
at oracle.webcenter.lifecycle.LifecycleSiteResourceService.doExport_DT(LifecycleSiteResourceService.java:191)
at oracle.webcenter.portal.dt.appnav.SiteResourcesDTLifecycleHandler.doExport_DT(SiteResourcesDTLifecycleHandler.java:410)
at oracle.webcenter.portal.dt.appnav.PortalMenuController.handleExportSiteRes(PortalMenuController.java:1029)
at oracle.webcenter.portal.dt.appnav.PortalMenuController.handleEvent(PortalMenuController.java:186)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:529)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:897)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
at java.awt.Component.processMouseEvent(Component.java:6289)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6054)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4652)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:617)
at java.awt.EventQueue$2.run(EventQueue.java:615)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.NullPointerException
at oracle.webcenter.portalframework.genericsiteresources.model.lifecycle.TaskFlowLifecycleHandler.doExportForGivenScope(TaskFlowLifecycleHandler.java:200)
at oracle.webcenter.portalframework.genericsiteresources.model.lifecycle.TaskFlowLifecycleHandler.initSiteResourceExport(TaskFlowLifecycleHandler.java:164)
... 49 more
oracle.webcenter.lifecycle.LifecycleException
o.webcenter.portalframework.genericsiteresources.model.lifecycle.TaskFlowLifecycleHandler.initSiteResourceExport(TaskFlowLifecycleHandler.java:168)
o.webcenter.lifecycle.siteresource.SiteResourceLifecycleHandler.initExport(SiteResourceLifecycleHandler.java:123)
o.webcenter.lifecycle.siteresource.handler.InitializeUnit.doExport(InitializeUnit.java:83)
o.webcenter.lifecycle.siteresource.operation.SiteResourceExportOperation.doExport(SiteResourceExportOperation.java:148)
o.webcenter.lifecycle.siteresource.operation.SiteResourceExportOperation.doExport_DT(SiteResourceExportOperation.java:265)
o.webcenter.lifecycle.LifecycleSiteResourceService.doExport_DT(LifecycleSiteResourceService.java:191)
o.webcenter.portal.dt.appnav.SiteResourcesDTLifecycleHandler.doExport_DT(SiteResourcesDTLifecycleHandler.java:410)
o.webcenter.portal.dt.appnav.PortalMenuController.handleExportSiteRes(PortalMenuController.java:1029)
o.webcenter.portal.dt.appnav.PortalMenuController.handleEvent(PortalMenuController.java:186)
o.i.controller.IdeAction.performAction(IdeAction.java:529)
o.i.controller.IdeAction.actionPerformedImpl(IdeAction.java:897)
o.i.controller.IdeAction.actionPerformed(IdeAction.java:501)
jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
jx.s.AbstractButton.doClick(AbstractButton.java:357)
jx.s.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
jx.s.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
j.a.Component.processMouseEvent(Component.java:6289)
jx.s.JComponent.processMouseEvent(JComponent.java:3267)
j.a.Component.processEvent(Component.java:6054)
j.a.Container.processEvent(Container.java:2041)
j.a.Component.dispatchEventImpl(Component.java:4652)
j.a.Container.dispatchEventImpl(Container.java:2099)
j.a.Component.dispatchEvent(Component.java:4482)
j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
j.a.LightweightDispatcher.processMouseEvent(Container.java:4238)
j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
j.a.Container.dispatchEventImpl(Container.java:2085)
j.a.Window.dispatchEventImpl(Window.java:2478)
j.a.Component.dispatchEvent(Component.java:4482)
j.a.EventQueue.dispatchEventImpl(EventQueue.java:644)
j.a.EventQueue.access$000(EventQueue.java:85)
j.a.EventQueue$1.run(EventQueue.java:603)
j.a.EventQueue$1.run(EventQueue.java:601)
j.security.AccessController.doPrivileged(Native Method)
j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
j.a.EventQueue$2.run(EventQueue.java:617)
j.a.EventQueue$2.run(EventQueue.java:615)
j.security.AccessController.doPrivileged(Native Method)
j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
j.a.EventQueue.dispatchEvent(EventQueue.java:614)
j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
j.a.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by:
java.lang.NullPointerException
o.webcenter.portalframework.genericsiteresources.model.lifecycle.TaskFlowLifecycleHandler.doExportForGivenScope(TaskFlowLifecycleHandler.java:200)
o.webcenter.portalframework.genericsiteresources.model.lifecycle.TaskFlowLifecycleHandler.initSiteResourceExport(TaskFlowLifecycleHandler.java:164)
o.webcenter.lifecycle.siteresource.SiteResourceLifecycleHandler.initExport(SiteResourceLifecycleHandler.java:123)
o.webcenter.lifecycle.siteresource.handler.InitializeUnit.doExport(InitializeUnit.java:83)
o.webcenter.lifecycle.siteresource.operation.SiteResourceExportOperation.doExport(SiteResourceExportOperation.java:148)
o.webcenter.lifecycle.siteresource.operation.SiteResourceExportOperation.doExport_DT(SiteResourceExportOperation.java:265)
o.webcenter.lifecycle.LifecycleSiteResourceService.doExport_DT(LifecycleSiteResourceService.java:191)
o.webcenter.portal.dt.appnav.SiteResourcesDTLifecycleHandler.doExport_DT(SiteResourcesDTLifecycleHandler.java:410)
o.webcenter.portal.dt.appnav.PortalMenuController.handleExportSiteRes(PortalMenuController.java:1029)
o.webcenter.portal.dt.appnav.PortalMenuController.handleEvent(PortalMenuController.java:186)
o.i.controller.IdeAction.performAction(IdeAction.java:529)
o.i.controller.IdeAction.actionPerformedImpl(IdeAction.java:897)
o.i.controller.IdeAction.actionPerformed(IdeAction.java:501)
jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
jx.s.AbstractButton.doClick(AbstractButton.java:357)
jx.s.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
jx.s.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
j.a.Component.processMouseEvent(Component.java:6289)
jx.s.JComponent.processMouseEvent(JComponent.java:3267)
j.a.Component.processEvent(Component.java:6054)
j.a.Container.processEvent(Container.java:2041)
j.a.Component.dispatchEventImpl(Component.java:4652)
j.a.Container.dispatchEventImpl(Container.java:2099)
j.a.Component.dispatchEvent(Component.java:4482)
j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
j.a.LightweightDispatcher.processMouseEvent(Container.java:4238)
j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
j.a.Container.dispatchEventImpl(Container.java:2085)
j.a.Window.dispatchEventImpl(Window.java:2478)
j.a.Component.dispatchEvent(Component.java:4482)
j.a.EventQueue.dispatchEventImpl(EventQueue.java:644)
j.a.EventQueue.access$000(EventQueue.java:85)
j.a.EventQueue$1.run(EventQueue.java:603)
j.a.EventQueue$1.run(EventQueue.java:601)
j.security.AccessController.doPrivileged(Native Method)
j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
j.a.EventQueue$2.run(EventQueue.java:617)
j.a.EventQueue$2.run(EventQueue.java:615)
j.security.AccessController.doPrivileged(Native Method)
j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
j.a.EventQueue.dispatchEvent(EventQueue.java:614)
j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
j.a.EventDispatchThread.run(EventDispatchThread.java:122)I did not touch any jars. They should be in their place. What I see from the project properties is that JSF 1.2 libraries are attached as before..
Any idea? I am stuck.
Do anyone have any idea about this matter? I really don't know where to look at.
Edited by: user10047839 on 9-mar-2011 6.51 -
Delivery Date error while creating/uploading POs using LSMW
Hi,
I am facing problem in creating POs using LSMW. I am using direct input method with standard object 0085 for PO upload. But I am facing problem because of delivery date in the PO. There are basically two errors that I am getting:
1) When the delivery date format is DDMMYYYY in the fileto be uploaded, the error that i get is "Please enter a valid delivery date"(Message No..ME 077)
2) When the delivery date format is YYYYMMDD in the file to be uploaded, the error that i get isFor the K4 fiscal year variant, no period is defined for . .(Mesage no. F5 275)
Please let me know how to rectify these errors.
Thanks in advance.....Hi,
You need to rectify the issue by applying attached corrections in SAP Note 1094336 - Error message F5 275 if requirement date is deleted.
Summary
Symptom
The "Requirement date" field (EBAN-BADAT) was set to changeable in the the field selection. If the "Requirement date" field is deleted for a purchase requisition item, the system issues error message F5275 "For the xxx fiscal year variant, no period is defined for 00.00.0000".
You can leave the process only with /n.
Other terms
BADAT, requirement date, F5 275, EF5275, E F5 275
Reason and Prerequisites
Usability
Solution
Implement the program corrections.
Regards,
Sandesh Sawant -
Error in File uploading using jsp
I am tring to upload files to a mysql database using jsp.I have used BLOB type to store files.Iam using the JDBC driver mysql-connector-java-2.0-14-bin to connect the database with the jsp API.My problem is when i try to transfer a file of size which is less than the possible capacity through blob ,which is 1048576 bytes ( for example when a file of size 916KB is attempted to transfer) the following error is being generated.
java.lang.IllegalArgumentException: Packet is larger than max_allowed_packet from server configuration of 1048576 bytes
at com.mysql.jdbc.Buffer.ensureCapacity(Unknown Source)
at com.mysql.jdbc.Buffer.writeBytesNoNull(Unknown Source)
at com.mysql.jdbc.PreparedStatement.executeUpdate(Unknown Source)
at com.mysql.jdbc.PreparedStatement.executeUpdate(Unknown Source)
at org.apache.jsp.file3$jsp._jspService(file3$jsp.java:110)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:484)
java.lang.IllegalArgumentException: Packet is larger than max_allowed_packet from server configuration of 1048576 bytes
at com.mysql.jdbc.Buffer.ensureCapacity(Unknown Source)
at com.mysql.jdbc.Buffer.writeBytesNoNull(Unknown Source)
at com.mysql.jdbc.PreparedStatement.executeUpdate(Unknown Source)
at com.mysql.jdbc.PreparedStatement.executeUpdate(Unknown Source)
at org.apache.jsp.file3$jsp._jspService(file3$jsp.java:110)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:484)
My uploading code in jsp is as follows.
<% try{
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
Connection dbCon = DriverManager.getConnection("jdbc:mysql:///uoc");
out.println("Connection done !");
Statement stmt = dbCon.createStatement();
out.println("Statement Created !");
ResultSet rs = stmt.executeQuery("SELECT * FROM blob_test)
stmt.close();
dbCon.close();
out.println("<br><br> <b>Data Successfully selected !<b>");
} //try
catch(SQLException e){
out.println(" <br> ");
out.println("Sorry ! problem in selecting a data "+e.toString());
out.println(" <br> ");
e.printStackTrace();
%>
Please help .I thank You in advance for any help .Have you tried increasing the BLOB field greater than 1048576 or using a smaller file of say 1 or 2k as a test? There is no guarantee that the database will store the file with exactly the same size as the file on the filesystem, so the file might be more than 916k in the database.
Using BLOBs is a great way to destroy the performance of your database by the way :)
Maybe you are looking for
-
Automatic Creation of Service ticket in Background
Hi, My requirement is to create a Service Ticket in Web IC automatically in background when an enquiry is submitted by an user over the company's website. I am unable to find any function Module or BAPI to do the same. Is it possible to do it in the
-
I'm trying to subtract the "shared" mappings from the output that pmap produces and show memory usage per process and a separate shared memory usage for the system. Pmap shows shared library mappings like this ... Address Kbytes Resident Shared Priva
-
Syndicator Preview tab values are not same to Syndicator Output file
HI All, I am struct with the following issue, can any one give there inputs where the issue is: In the MDM Syndicator preview tab I can see the look up flat multiple table values... But in the output file I cant abel to see the entire node at all...
-
Moving my photos and PSE catalog to a new machine... and upgrading
H I am seeking advice on the best way to do the following: - move my photos from my current laptop to a new laptop - recreate my current PSE catalog on the new machine - do both of the above while also upgrading to PSE 11 on the new machine. The las
-
Running Reports locally in Siebel - font issue
Hi All, I'm running BIP reports in Siebel on my local web client and I'm having promblem with displaying the correct fonts when I select pdf as format. What do I have to do to see the correct fonts when running my reports locally? Regards, Hakan