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.

Similar Messages

  • File upload using uiXML and Struts

    Hi,
    I am using Struts as my controller component with uiXML for the UI. I need to add file upload functionality to one of my pages. After a bit of trial-and-error, I figured out that the following code in my uiXML sets me in the right direction -
    <struts:form name="myForm" method="post" beanName="myFormBean" usesUpload="true" destination="/try/SaveTry.do">
    When the "destination" attribute is not specified, the Struts action does not get the file. However, with the changes above, the uploaded file now reaches my Struts action, which does the necessary processing and the Struts controller forwards the control to the next page according to its logic.
    However, at this point, I see the following on the browser -
    java.io.EOFException
    at oracle.cabo.share.util.MultipartFormHandler._readLine(MultipartFormHandler.java:207)
         at oracle.cabo.share.util.MultipartFormHandler._readLine(MultipartFormHandler.java:192)
         at oracle.cabo.share.util.MultipartFormHandler._skipBoundary(MultipartFormHandler.java:176)
         at oracle.cabo.share.util.MultipartFormHandler.<init>(MultipartFormHandler.java:82)
         at oracle.cabo.share.util.MultipartFormHandler.<init>(MultipartFormHandler.java:59)
         at oracle.cabo.servlet.io.BaseFileUploadManager._doMultipartRequest(BaseFileUploadManager.java:93)
         at oracle.cabo.servlet.io.BaseFileUploadManager.decodeMultipartRequest(BaseFileUploadManager.java:57)
         at oracle.cabo.servlet.AbstractPageBroker.decodeMultipartRequest(AbstractPageBroker.java:534)
         at oracle.cabo.servlet.PageBrokerHandler.handleRequest(PageBrokerHandler.java:103)
         at oracle.cabo.servlet.UIXServlet.doGet(UIXServlet.java:170)
         at oracle.cabo.servlet.UIXServlet.doPost(UIXServlet.java:139)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    I tried to specify my own file upload manager (which does nothing) and also tried to subclass the UIXPageBroker to return false in shouldHandleUploadFile() and null in decodeMultipartRequest(), all to no avail.
    Could somebody please let me know if I am missing something? Why is the AbstractPageBroker still kicking in after my file upload has been processed?
    Thanks in advance,
    Smarto

    Thanks Kennethkawamoto2, now i knew the reason, but still i am getting error for crossdomain.xml , when moving flash on production.
    I am putting it as below,
    Security.loadPolicyFile('xmlsocket://ipaddress:80/crossdomain.xml');
    can anybody help?
    much appreciated,
    Meghana

  • WSRP File Upload with Struts

    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>

  • 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&#40;I&#41;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;

  • Question about File upload functionality in Weblogic

    Hi,
        We're currently trying to deploy a web application on the weblogic 12c server (via war file). And the app needs to upload a text file onto the a temperary directory within weblogic server. And on the web page side, we use JQuery File upload plugin.
        My question is, on the file receiver side, does weblogic provide any tools to receive the uploaded file and store it?
    Thanks very much in advance.

    Hi,
    Before setting the string or xstring to server->response->set_cdata (string) or server->response->set_data (xstring) try this:
    CONCATENATE 'attachment;filename=' lv_filename '.xml'  INTO lv_string.
    * Setting the filename by default
      server->response->set_header_field( name  = 'Content-Disposition'
                                          value = lv_string ).
    Hope this helps.
    Regards,
    Abhinav

  • My file upload java application working fine in tomcat 7  but not working in weblogic 11

    Hi All,
    My  file upload  java application  successfully run in tomcat 7 . But  I could not run it in Weblogic 11.   Getting following error message   . Please help.
    Please contact your administrator.org.springframework.beans.NullValueInNestedPathException: Invalid property &#039;fileData[0]&#039; of bean class [com.techm.util.UploadItem]: Cannot access indexed value in property referenced in indexed property path &#039;fileData[0]&#039;: returned null
      at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:681)
      at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:651)
      at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
      at org.springframework.validation.DataBinder.applyPropertyValues(DataBinder.java:587)
      at org.springframework.validation.DataBinder.doBind(DataBinder.java:489)
      at org.springframework.web.bind.WebDataBinder.doBind(WebDataBinder.java:149)
      at org.springframework.web.bind.ServletRequestDataBinder.bind(ServletRequestDataBinder.java:110)
      at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ServletHandlerMethodInvoker.doBind(AnnotationMethodHandlerAdapter.java:566)
      at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:213)
      at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:132)
      at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:326)
      at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:313)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    What version of spring are you using in tomcat?
    What version of WLS are you using.
    What JDK are you using in both environments?
    Is the issue random? or can you reproduce it at will?
    Thanks
    Luz

  • 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 more

    Very 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.

  • File Uploading API in weblogic?

              Hi
              We are working on weblogic 8.1.Is there any File uploading API in weblogic API
              Thanks
              Sougata
              

              Have you consider jakarta commons file upload.
              "sougata" <[email protected]> wrote:
              >
              >Hi
              >We are working on weblogic 8.1.Is there any File uploading API in weblogic
              >API
              >Thanks
              >Sougata
              >
              

  • [Struts]File upload doesnt work with "Create" but works with "CreateInsert"

    Hello,
    thank you for reading this!
    Im facing serious issue with web application built with JSP, Struts & ADF BC in jdeveloper 10.1.3.1 and jdeveloper 10.1.3.2 (same code works perfectly in older jdev versions)
    File upload to DB only works if CreateInsert is selected in PageDefinition. (Have to change from default "Create" to "CreateInsert")
    If I set "Create" i get this problems:
    - if VO is empty the row cannot be created (no error is returned, i click ОК and row is not commited, its just discarded)
    - if VO is not empty instead to create new row current row is updated.
    This only happens with "multipart/form-data" forms. With plain form row is created without the problem.
    If I change to "CreateInsert" then I can add new rows with "multipart/form-data" but i would prefer "Create" because it avoid the blank row issue...
    Old 10.1.3 works with "Create" and "multipart/form-data".
    Im aware of this problem since the 10.1.3.1 release but I havent posted on the forum because I hoped Oracle is aware of this problem but since the problem remains I decided to react. I do not have the metalink account so only way to address the issue is in this forum.
    Please Help.
    Sanja

    I had some problem with 'Create' earlier with 10.1.2. Then I kept recreateing the pages and then it worked finally. How are you creating the page for 'create' event. Is it like, first displaying the rows from the table with create button, or are you right away creating the page from menu option.

  • File upload through web server to weblogic

    WAS: Weblogic 10.3
    Web Server: Sun One Web Server 6.1
    JDK: 1.4
    I've deployed a web application(*.war) to weblogic server, and try to upload a file through sun one web server(webserver) to the weblogic. The 'webserver' does nothing but bypass the request to weblogic. When I do upload a file to weblogic server directly without though webserver it's ok. I mean the uploaded file would be written to a specfied saving directory on server as soon as the upload process gets start. But with going through webserver, it does not happen immediately. After a long time passed the uploaded file begins to be written to the saving directory. The 'webserver' seems to buffer the amount as much as the file size, and then send them to weblogic. To sovle this problem I tried to change the webserver configuration(magnus.conf) as like,
    ChunkedRequestBufferSize 0, UseOutputStreamSize
    But doesn't work.
    Is there somthing of I'm missing? Get me out of this struggling.

    Thanks for your comments.
    What I'm doing is that first I made a simple upload jsp file using 'com.oreilly.servlet.MultipartRequest', and then try to upload with a html page over IE browser.
    That is,
    IE browser ( Local PC ) ---> Sun One Web Server ( Remote machine ) ---> Weblogic ( Local PC ).
    And I also peeked into the transferred data between webserver and weblogic. What I've found is that all data in the upload file would be buffered into webserver and then flushed out to weblogic at one time. I want to upload the file to weblogic server without buffering in webserver. Rather than a bug of webserver, I thinik I missed some configuration stuff of webserver, or weblogic.
    Local PC: Windows XP
    IE: 6.0
    Web Server: Sun One Web Server 6.1 SP9
    Weblogic: 10.3.0.0
    upload filesize: 4MB

  • File upload is not perform by weblogic 10

    Hello,
    I'm working a project my root folder name is "tcap1" in that folder "test" is another folder inside that folder I place "image" folder and develop a image file upload program in JSP. when user upload his/her photo that photo should be store in image folder. I'm tested that jsp file in tomcat7.0 i.e working good and image will store in image folder.
    Other hand side I'm using Weblogic10g. I crate a war file my project and deployed in weblogic10g and run my application it is working but my fileupload.jsp is not working.how is it possible to work my code working in Tomcat7.0 but not working in Weblogic10g.
    WebLogic10g exception come on console:_
    Releasing conn back to pool
    <May 26, 2012 10:46:28 AM IST> <Error> <HTTP> <BEA-101020> <[weblogic.ser
    ternal.WebAppServletContext@1cb1d37 - appName: 'tcap1', name: 'tcap1.war'
    xt-path: '/tcap1', spec-version: '2.5'] Servlet failed with Exception
    java.lang.NullPointerException
    at java.io.File.<init>(File.java:222)
    at com.braahmam.tcap1.test.AddImageServlet.doPost(AddImageServlet
    01)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAct
    (StubSecurityHelper.java:227)
    Truncated. see log file for complete stacktrace
    >
    In JSP page error comes_
    Error 500--Internal Server Error
    java.lang.NullPointerException
         at java.io.File.(File.java:222)
         at com.braahmam.tcap1.test.AddImageServlet.doPost(AddImageServlet.java:401)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Edited by: 936878 on May 25, 2012 11:34 PM
    Edited by: 936878 on May 25, 2012 11:35 PM
    Edited by: 936878 on May 26, 2012 12:04 AM

    I figured out the problem.
    I kept jce.jar file under bea\jdk131_06\lib\ext.
    Plus changed java.policy,java.security to look like jre1.4 poicies.
    Added local_policy.jar, US_export_policy.jar
    I found these suggestions from web for a search of "install sun JCE"
    Thanks

  • 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.
    Veena

    Hi 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

  • File upload using Servlets and Weblogic

    Hi,
    I need to write a servlet that can upload a .doc file to a folder on the server. Can someone please let me know abot the code i need to write, as i am a novice in servlets.
    Thanks in advance
    buddy0303

    Another, simpler (we think), such package is Jenkov HTTP Multipart File Upload. It's a servlet filter which can work in front of both servlets and JSP's. The servlet filter parses the uploaded file and stores it temporarily on the servers disk. When the servlet or JSP executes afterwards, it can obtain all the information about the file, from the request attributes. There is a decent manual for HTTP Multipart File Upload on the website.
    Just search for "Jenkov HTTP Multipart" on Google and you'll find it. HTTP Multipart is free, open source, Apache Licsense.

  • 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

  • Struts commons binary file upload issue

    Hi,
    I was wondering if someone could help me with uploading binary files using jakarta commons file upload. I've looked at several examples and forums and it seems to work but sometimes the binary files that I upload get corrupted. I have no idea why this might be happening. Here is a snippet of my code.
        UploadFileForm uploadFileForm = (UploadFileForm)form;
        FormFile file = uploadFileForm.getFile();
        String dirName = "/tmp/";
        InputStream inputStream = null;
        OutputStream bos = null;
        inputStream = file.getInputStream();
        bos = new FileOutputStream(dirName + file.getFileName());
        int bytesRead = 0;
        byte[] buffer = new byte[4096];
        while ((bytesRead = inputStream.read(buffer, 0, 4096)) != -1) {
            bos.write(buffer, 0, bytesRead);
        }            Am I doing something wrong?
    Thanks.
    PV

    FormFile myFile    = myForm.getTheFile();
        byte[] fileData    = myFile.getFileData();
        BufferedReader in = null;
       try{
           in = new BufferedReader(new InputStreamReader(new   ByteArrayInputStream(fileData)));
           // in = new BufferedReader(new  InputStreamReader(myFile.getInputStream()));
           String str;
            while ((str = in.readLine()) != null) {
                    System.out.println(str);
       }catch(Exception exp){
           exp.printStackTrace();
        }finally{
             if(in != null){
                try{
                   in.close();
                }catch(Exception ep){
                       ep.printStackTrace();
        } Hope this might help :)
    and a small advice please do reactivate archived posts.It'd be lot better if you start with a new one.
    Hope there are no hard and fast issues on this.
    REGARDS,
    RaHuL

Maybe you are looking for