Regarding file upload in struts
how can i save file in give location in struts.when i am using in <forward> tag it is opening in the given path that is file name but i want to save the file in the given location
Hi Ravindranath,
I tried it again. It worked for me. Check your GUI_UPLOAD parameters.
Here is my code.
data: begin of record occurs 0,
* data element: MATNR
MATNR_001(018),
*other fields
end of record.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'D:datatestnew.txt'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = record
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
Similar Messages
-
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; -
I Need Information Regarding File Upload?
Where can I get information regarding the File uploading packages in Portal. Is there a specification I can get a hold of. I know such a package exists, as it is used by portal itself. I just need to know where I can get hold of information as to what it is called and how to invoke it.
Suraj,
The APIs to do file upload are not public as of yet. We are looking into the feature right now. Currently, the only supported method of file upload is using the Web Interface.
You may find more information about this in the 9iAs Portal forum
Sue -
Hello there
I've been trying to integrate with WSRP a Struts 1.1 web app which provides a simple File Upload functionality.
It works fine as a standalone web application (direct access to the web app).
But I can't get it to work through WSRP from BEA Weblogic Portal 8.1SP4 to BEA Weblogic Server 8.1SP4.
I followed all the steps indicated at http://e-docs.bea.com/wlp/docs81/wsrp/workprod.html#1010271.
Plus I set up the wsrp-producer-config.xml file to handle attachments as follows:
<markup secure="false" rewrite-urls="true" transport="attachment" accepts-mime="true"/>
The start page of the portlet displays fine on the Consumer side.
But upon file upload it never reaches the actual Struts Action on the Producer side.
No error is displayed either on the Consumer or on the Producer side but the file does not get uploaded.
Any idea why ?
Am I missing anything in the configuration ?
Thanks
Patrick
==================================
All I get in the Producer logs is
<6-mar-2006 18.30.32 CET> <Debug> <WSRP-Consumer> <BEA-420550> <SOAP request from/to 10.102.194.96>
<6-mar-2006 18.30.32 CET> <Debug> <WSRP-Consumer> <BEA-420550> <SOAP response from/to 10.102.194.96>
<6-mar-2006 18.30.33 CET> <Debug> <WSRP-Consumer> <BEA-420550> <SOAP request from/to 10.102.194.96>
<6-mar-2006 18.30.33 CET> <Debug> <WSRP-Consumer> <BEA-420550> <SOAP response from/to 10.102.194.96>
<6-mar-2006 18.30.33 CET> <Debug> <WSRP-Consumer> <BEA-420550> <SOAP request from/to 10.102.194.96>
<6-mar-2006 18.30.33 CET> <Debug> <WSRP-Consumer> <BEA-420550> <SOAP response from/to 10.102.194.96>
========
For info here's the Request from the monitor:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<urn:performBlockingInteraction xmlns:urn="urn:oasis:names:tc:wsrp:v1:types">
<urn:registrationContext xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<urn:portletContext>
<urn:portletHandle>stdgui243 portlet</urn:portletHandle>
</urn:portletContext>
<urn:runtimeContext>
<urn:userAuthentication>wsrp:none</urn:userAuthentication>
<urn:portletInstanceKey>T8005</urn:portletInstanceKey>
<urn:namespacePrefix>T8005</urn:namespacePrefix>
<urn:sessionID>GMlX1KDR8G2dTCHX12FLZy2htBzz5rsTy9H592pWMx0YBtthZgfs!-383570453</urn:sessionID>
<urn:extensions>
<urn1:LookAndFeelDescriptor xmlns:urn1="urn:bea:wsrp:ext:v1:types">
<urn1:skeletonId>default</urn1:skeletonId>
<urn1:skeletonPath>/framework/skeletons/</urn1:skeletonPath>
<urn1:skinId>avitek</urn1:skinId>
<urn1:skinPath>/framework/skins/</urn1:skinPath>
</urn1:LookAndFeelDescriptor>
</urn:extensions>
</urn:runtimeContext>
<urn:userContext xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<urn:markupParams>
<urn:secureClientCommunication>false</urn:secureClientCommunication>
<urn:locales>it</urn:locales>
<urn:mimeTypes>text/html</urn:mimeTypes>
<urn:mimeTypes>image/gif</urn:mimeTypes>
<urn:mimeTypes>image/x-xbitmap</urn:mimeTypes>
<urn:mimeTypes>image/jpeg</urn:mimeTypes>
<urn:mimeTypes>image/pjpeg</urn:mimeTypes>
<urn:mimeTypes>application/x-shockwave-flash</urn:mimeTypes>
<urn:mimeTypes>application/vnd.ms-powerpoint</urn:mimeTypes>
<urn:mimeTypes>application/vnd.ms-excel</urn:mimeTypes>
<urn:mimeTypes>application/msword</urn:mimeTypes>
<urn:mimeTypes>*/*</urn:mimeTypes>
<urn:mode>wsrp:view</urn:mode>
<urn:windowState>wsrp:normal</urn:windowState>
<urn:clientData>
<urn:userAgent>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)</urn:userAgent>
</urn:clientData>
<urn:navigationalState/>
<urn:markupCharacterSets>UTF-8</urn:markupCharacterSets>
<urn:markupCharacterSets>UTF-8</urn:markupCharacterSets>
</urn:markupParams>
<urn:interactionParams>
<urn:portletStateChange>readOnly</urn:portletStateChange>
<urn:interactionState>action=%2Fstdgui243%2Fupload%26module=%2Fstdgui243</urn:interactionState>
</urn:interactionParams>
</urn:performBlockingInteraction>
</soapenv:Body>
</soapenv:Envelope>Hi Patrick,
Can you try this without accept-mime attribute?
Subbu
>
I've been trying to integrate with WSRP a Struts 1.1 web app which provides a simple File Upload functionality.
It works fine as a standalone web application (direct access to the web app).
But I can't get it to work through WSRP from BEA Weblogic Portal 8.1SP4 to BEA Weblogic Server 8.1SP4.
I followed all the steps indicated at http://e-docs.bea.com/wlp/docs81/wsrp/workprod.html#1010271.
Plus I set up the wsrp-producer-config.xml file to handle attachments as follows:
<markup secure="false" rewrite-urls="true" transport="attachment" accepts-mime="true"/>
The start page of the portlet displays fine on the Consumer side.
But upon file upload it never reaches the actual Struts Action on the Producer side.
No error is displayed either on the Consumer or on the Producer side but the file does not get uploaded.
Any idea why ?
Am I missing anything in the configuration ?
Thanks
Patrick
==================================
All I get in the Producer logs is
<6-mar-2006 18.30.32 CET> <Debug> <WSRP-Consumer> <BEA-420550> <SOAP request from/to 10.102.194.96>
<6-mar-2006 18.30.32 CET> <Debug> <WSRP-Consumer> <BEA-420550> <SOAP response from/to 10.102.194.96>
<6-mar-2006 18.30.33 CET> <Debug> <WSRP-Consumer> <BEA-420550> <SOAP request from/to 10.102.194.96>
<6-mar-2006 18.30.33 CET> <Debug> <WSRP-Consumer> <BEA-420550> <SOAP response from/to 10.102.194.96>
<6-mar-2006 18.30.33 CET> <Debug> <WSRP-Consumer> <BEA-420550> <SOAP request from/to 10.102.194.96>
<6-mar-2006 18.30.33 CET> <Debug> <WSRP-Consumer> <BEA-420550> <SOAP response from/to 10.102.194.96>
========
For info here's the Request from the monitor:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<urn:performBlockingInteraction xmlns:urn="urn:oasis:names:tc:wsrp:v1:types">
<urn:registrationContext xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<urn:portletContext>
<urn:portletHandle>stdgui243 portlet</urn:portletHandle>
</urn:portletContext>
<urn:runtimeContext>
<urn:userAuthentication>wsrp:none</urn:userAuthentication>
<urn:portletInstanceKey>T8005</urn:portletInstanceKey>
<urn:namespacePrefix>T8005</urn:namespacePrefix>
<urn:sessionID>GMlX1KDR8G2dTCHX12FLZy2htBzz5rsTy9H592pWMx0YBtthZgfs!-383570453</urn:sessionID>
<urn:extensions>
<urn1:LookAndFeelDescriptor xmlns:urn1="urn:bea:wsrp:ext:v1:types">
<urn1:skeletonId>default</urn1:skeletonId>
<urn1:skeletonPath>/framework/skeletons/</urn1:skeletonPath>
<urn1:skinId>avitek</urn1:skinId>
<urn1:skinPath>/framework/skins/</urn1:skinPath>
</urn1:LookAndFeelDescriptor>
</urn:extensions>
</urn:runtimeContext>
<urn:userContext xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<urn:markupParams>
<urn:secureClientCommunication>false</urn:secureClientCommunication>
<urn:locales>it</urn:locales>
<urn:mimeTypes>text/html</urn:mimeTypes>
<urn:mimeTypes>image/gif</urn:mimeTypes>
<urn:mimeTypes>image/x-xbitmap</urn:mimeTypes>
<urn:mimeTypes>image/jpeg</urn:mimeTypes>
<urn:mimeTypes>image/pjpeg</urn:mimeTypes>
<urn:mimeTypes>application/x-shockwave-flash</urn:mimeTypes>
<urn:mimeTypes>application/vnd.ms-powerpoint</urn:mimeTypes>
<urn:mimeTypes>application/vnd.ms-excel</urn:mimeTypes>
<urn:mimeTypes>application/msword</urn:mimeTypes>
<urn:mimeTypes>*/*</urn:mimeTypes>
<urn:mode>wsrp:view</urn:mode>999
<urn:windowState>wsrp:normal</urn:windowState>
<urn:clientData>
<urn:userAgent>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)</urn:userAgent>
</urn:clientData>
<urn:navigationalState/>
<urn:markupCharacterSets>UTF-8</urn:markupCharacterSets>
<urn:markupCharacterSets>UTF-8</urn:markupCharacterSets>
</urn:markupParams>
<urn:interactionParams>
<urn:portletStateChange>readOnly</urn:portletStateChange>
<urn:interactionState>action=%2Fstdgui243%2Fupload%26module=%2Fstdgui243</urn:interactionState>
</urn:interactionParams>
</urn:performBlockingInteraction>
</soapenv:Body>
</soapenv:Envelope> -
Urgent help needed---File upload using struts
can anyone helpme out on how to perform FileUpload operation using struts
deepakHi,
You should use<html:file> tag for uploading file through struts. And make sure that in form bean u need to manipulate this property with FormFile type. provide getter and setter in form bean for this one and manipulate it in your action class.
let me know if u have any further issue..
Tushar -
File upload using Struts and hidden field
Hi,
I have seen many examples to upload file using <html:file> tag. But my request is how to upload file using hidden form field and ActionServlet.
I want to upload image without using Browse button options, through hidden field i will set the image file path and will upload to server using ActionForm.
Please help me friends to solve this new issue,
regards,'
dhaya.That's not possible.
If it was, it would be a huge security hole. What about mailicious websites with hidden field which points to "c:/my documents/passwords.txt" and automatically submits the form using Javascript?
Consider a signed applet instead. If it is unsigned then you'll get a security popup "Do you trust this software?" anyway. -
File Upload using struts and jsp
Hi,
Anybody have sample coding for uploading files into the database using struts and jsp.
Thanking you in advance for providing the sample coding.
VeenaHi Veena,
In Strutsconfig.xml you have to configure data sources like this
**************strutsconfig.xml******
<data-sources>
<data-source
type="org.apache.common.dbcp.BasicDataSource">
<set-property property="driverClassName"
vlaue="oracle.jdbc.driver.OracleDriver"/>
<set-property property="url" vlaue="jdbcracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID =ORCL)))"/>
<!-- <set-property property="url"
vlaue="jdbcracle:thin:@127.0.0.1:1521:ORCL"/>-->
<set-property property="username"
vlaue="scott"/>
<set-property property="password"
vlaue="tiger"/>
</data-source>
</data-sources>
Now here is how to get data source
public class LookupAction extends Action
public Double getQuote(String symbol,
HttpServletRequest request)
throws Exception
Double price=null;
Connection conn=null;
Statement stmt=null;
ResultSet rs=null;
DataSource dataSource=null;
try
dataSource = getDataSource(request);
conn= dataSource.getConnection();
stmt= conn.createStatement();
rs= stmt.executeQuery("select * from stocks where" + "symbol='" + symbol +"'");
if (rs.next())
=======================
After you can use the coding what I posted earlier.
For that you need to create a table with attachment as a CLOB col.
then with prepared statement I am setting value .
Plz try your self every thing ok you can get that.
all the best
bye
sudheen -
Hi,
I have successfully completed the TutWD_FileUpDownload_NW04s_Init. But I am unable to understand where the file is uploaded.Please help me. Its urgent.
Regards
NutanIf the file is successfully uploaded, it's content is stored in the Web Dynpro context. If you want to save it to disk, you could add the following code to the onActionUploadFile method.
//IWDModifiableBinaryType binaryType =
//byte[] file =
writeByteArrayToFile(new File("/tmp/" + binaryType.getFileName()), file);
The next code is copied from Commons IO's FileUtils
public static FileOutputStream openOutputStream(File file) throws IOException {
if (file.exists()) {
if (file.isDirectory()) {
throw new IOException("File '" + file + "' exists but is a directory");
if (file.canWrite() == false) {
throw new IOException("File '" + file + "' cannot be written to");
} else {
File parent = file.getParentFile();
if (parent != null && parent.exists() == false) {
if (parent.mkdirs() == false) {
throw new IOException("File '" + file + "' could not be created");
return new FileOutputStream(file);
public static void writeByteArrayToFile(File file, byte[] data) throws IOException {
OutputStream out = null;
try {
out = openOutputStream(file);
out.write(data);
} finally {
closeQuietly(out);
public static void closeQuietly(OutputStream output) {
try {
if (output != null) {
output.close();
} catch (IOException ioe) {
// ignore -
Question regarding file upload and download utility
Hi
I am able to upload file with file browse contorl of APEX. Now i want to download the uploaded file. Is it possible that if word document is uploaded then when user clicks on it to download, that document is directly opened in microsoft word. Of if PDF file is uploaded then on download it is opened with acorobat pdf.
Requirement is like when user is downloading any uploaded file denpending on file type (text,excel,pdf,doc) relative application should opened with that document.
Thanks in advanceThat is controlled by settings in the browser that you cannot change. For instance, I have my browsers configured to use FoxIt PDF reader instead of Acrobat reader for PDFs, but no website could change that. The same is true when it comes to downloading vs opening. Sorry.
Tyler Muth
http://tylermuth.wordpress.com
"Applied Oracle Security: Developing Secure Database and Middleware Environments": http://sn.im/aos.book -
Regarding file upload on BEA CM
Hi,
I am uploading file to BEA CM using CM API by converting file into Binary Type as follows,
BinaryValue bv = createBinaryValueFromImageFile(filePath);
Here filePath is the local path of the selected file in the file dialog.
Now the file and server are in the same machine , it works fine.
I want to know, How it works when file is in local machine and server in somw other machine ?
Any suggestions...
Thanks,
AmitThe line of code that brings up this exception is:
multiReq = new
= new MultipartRequest((ServletRequest)request,
"c:\\temp", 10485760);
try this: MultipartRequest multiReq = new MultipartRequest((ServletRequest)request,
"c:\\temp", 10485760);
(not sure if that is the problem or not..) -
Regarding file uploading to application server
hi ,
i am facing a problem while uploading a .csv file to the application server.
it is going to dump.
error is ,
the capacity limit has been reached
pls urgent .
points are assured.try these link, if still there is problem, write the error analysis from st22
http://www.sap-img.com/ab004.htm
http://sap.ittoolbox.com/topics/t.asp?t=303&p=448&h2=322&h1=303&h3=448
http://www.sapdevelopment.co.uk/file/file_uploadsap.htm
ajay -
File Upload weblogic 8.1 Struts 1.1
I am getting this error while file uploading in struts Could not
deserialize session data CommonsMultipartRequestHandler
I read this bug is solved in struts 1.1 i am working on weblogic 81. with
struts 1.1
Can anybody help
Thanks
Shail
<Jul 17, 2004 1:36:16 PM GMT+05:30> <Warning> <HTTP> <BEA-101138>
<ServletContext(id=28000914,name=DefaultWebApp,context-path=) One of the
getParameter family of methods called after reading from the
ServletInputStream. Not merging post parameters.>
Jul 17, 2004 1:38:35 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Jul 17, 2004 1:38:35 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Jul 17, 2004 1:38:36 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='ApplicationResources', returnNull=true
<Jul 17, 2004 1:38:36 PM GMT+05:30> <Error> <HTTP> <BEA-101309>
<[ServletContext(id=28000914,name=DefaultWebApp,context-path=)] could not
deserialize the context attribute
"org.apache.struts.action.REQUEST_PROCESSOR"
java.io.NotSerializableException: org.apache.struts.action.RequestProcessor
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at
weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:9
1)
at
weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:6
6)
at
weblogic.servlet.internal.WebAppServletContext.getAttribute(WebAppServletCon
text.java:633)
at
org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.jav
a:855)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6291)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3575)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2573)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
>
<Jul 17, 2004 1:38:36 PM GMT+05:30> <Error> <HTTP Session> <BEA-100028>
<Could not deserialize session data.
java.io.NotSerializableException:
org.apache.struts.upload.CommonsMultipartRequestHandler$CommonsFormFile
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at
weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:9
1)
at
weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:6
6)
at
weblogic.servlet.internal.session.SessionData.getAttribute(SessionData.java:
419)
at
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:777)
at
org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor
.java:364)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:253)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1053)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:387)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6291)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3575)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2573)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
>
<Jul 17, 2004 1:38:37 PM GMT+05:30> <Warning> <HTTP> <BEA-101138>
<ServletContext(id=28000914,name=DefaultWebApp,context-path=) One of the
getParameter family of methods called after reading from the
ServletInputStream. Not merging post parameters.>In my application i have some java user defined objects that contains a list and on that list I have some other objects and those objects contains again a java object and those objects containing again some simple java beans that contains data fetched from database.
It is basically a scenario for report generation
And I am getting the following error
####<Dec 5, 2006 8:41:04 PM CST> <Error> <Cluster> <MDS0JEAPPIP01> <mps_prod_iprice_1> <ExecuteThread: '7' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-000126> <All session objects should be serializable to replicate. Check the objects in your session. Failed to replicate non-serializable object.>
But if the data is empty then I am not getting this error at that time also the object was in session scope but with null value as there is no data. -
Hi all,
I am new to this XI coding. I have an requirement regarding file uploading in XI.
The flat file is in XLS format. How to upload this .xls file into XI? What are the steps to be followed?
can anyone give step by step procedure for uploading a xls file into XI system?
Thanks in advance,
Vijay.Hi,
<How to upload this .xls file into XI?>
Do you mean that, you have done all the configuration and now you want to upload the file into test directory of XI server for testing purpose using NFS mode??
If your ans is Yes, then use <b>tcode SXDA_TOOLS</b> to upload the file into applicaion server (XI) and use tcode <b>AL11</b> to see the file which you have uploaded into source directory of XI.
Regards,
Sarvesh -
Yet again the issue of file upload...?:|
I am trying to use a file upload as part of my screenflow.
I besically have 2 jsp files. jsp file upload code and the supporting HTML.
I created 2 "interactive component calls", connected with a transition and in the 1st one I call one JSP and in the 2nd one the other JSP.
My action on my HTML is action="fileupload.jsp" (my upload code file) I try changing it to action="<f:postResults />" but that didnt work
Then I changed my action to "<f:postResults fowardUrl="fileupload.jsp"/> I got an error on that too.
Anyone can help with that issue? I am besically tring to do a simple file upload from my sub-process.
Thank You
LilachHi,
There was a sample application regarding File Upload in Fuego 5.5. My mail id is [email protected] If you want then drop me a mail and I can send across the export of the same to you. -
Struts file upload without interMedia under ADF
Can this be done ?
I have an existing table with the following columns:
Content BLOB
MimeType VARCHAR2
FileName VARCHAR2
and moreVery frustrated :(
Trying to find an answer to my question above.
If I Add a transient OrdDocDomain to the Entity/View Layer.
Map this into the UIModel (drag-drop onto JSP as struts file upload) so a FormFile object is available in the struts Action layer.
Override 'processUpdateModel' so I can obtain a reference to the FormFile object.
In the commit event of the Action class, take the referenced FormFile and set the BLOB like follows;
newRow.setAttribute("FileData",
new BlobDomain(uploadFile.getFileData())
Then call into the internal commit operation.
The following exception is raised;
04/11/19 07:32:18 java.lang.ArrayIndexOutOfBoundsException: 0
04/11/19 07:32:18 at oracle.jbo.client.remote.OrdClientPostListener.notifyClientPostAfter(OrdClientUtil.java:135)
04/11/19 07:32:18 at oracle.jbo.client.remote.ApplicationModuleImpl.postChanges(ApplicationModuleImpl.java:796)
The transient OrdDocDomain has registered a listener.
How can I remove this listener. The transient has a method 'removeListenerFromTransaction()' with the comment 'Internal: Applications should not use this method.' and no other references ?
Does anyone know how the listener can be removed or better still, not be registered with the transaction.
Maybe you are looking for
-
Help needed to see photos on my USB Flash Drive
How do I view the contents of my USB Flash Drive, on my MacBook Pro, please? Also, can I add more photos to the ones already there?
-
What happens after reformatting the computer ? ( windows XP )
Hello everyone, after a nearly two years of running, my winxp installation needs a cleanup so i'm planning on formatting the hard drive and installing xp So i wanted to know what to do in order to backup the iTunes/iPhone sync i'm guessing there's a
-
HI doubt on Process chain...
Hi Sap folks... Could any one tell me about the different issues we get when running process chains, especially on data loads. i want to know issues which comes like Collar 70, 90 and so many. Points will be rewarded to all the active members.
-
Hi all, I have a requirement in which, I got to get the position of the curosr in the field dynamically. Suppose if the size of the text field is 100 characters, and when the user are keying in the text, in a different text field the position of the
-
Command to list all email aliases /groups and members on the mail server.
Hi, We are using SJS MEssaging server 6.2 . Which is the command to use to list all email aliases/groups and members on the mail server. Thanks,