FileUpload - Bug?
Hi all,
A while ago I've posted FileUpload - strange behaviour. Exactly the same thing is happening: instead of showing me the file info after uploading a file, the welcome view is shown?!
Can somebody confirm/test whether this is a bug? If yes, in which servicepack is it solved? If no, maybe it is a configuaration issue? Where should I look for hidden error messages (hidden since at the client side no error messages are shown, only wrong behaviour)?
My specs:
Web Dynpro Runtime Version: 6.4014.00.0000.20050905165427.0000 (6.40 SP14)
Java VM version: 1.4.2_06-b03
SAP NW Developer Studio version: 2.0.14.200509100215
Thanks a lot,
Jeroen
See OSS note 954436
Similar Messages
-
I have been having a problem running Flash Player, green screens, hang ups, crashes etc on my machine. I tried various solutions and every major and some not so major web browsers all to no avail. I tried reinstalling my windows 8.1 no good also tried running 8 and 7 all 64 versions. No go I came a cross a post about a problem with Flash and AMD that seems to recur every nown and then. I have a AMD HD 6670 1 gig GDDR5 PCI-E 2 card so I tried going back through AMD drivers untill I was able to get it to function properly. Finally I ended up using the driver from Dec 2013 13-12_win7_win8_64_dd_ccc_whql along with the AMD Media Codec Package from Aug 2012 12-8_vista_win7_win8_32-64_xcode Flash is now playing with no problems. I thought I would share the solution I used in case it might help others.
Message was edited by: Rodger HallI haven't run across this, though I did see a Firefox fileupload bug yesterday (https://bugbase.adobe.com/index.cfm?event=bug&id=2980517). Would you mind opening a new bug on this over at bugbase.adobe.com? Please include URLs where you're seeing this behavior and we'll investigate further.
Thanks,
Chris -
Flash-based uploaders crashing on all Mac browsers
I'm going to try to be as level-headed as possible with this, but to be frank, I am becoming furiously pissed after dealing with this issue for at least a month now...
Every single Flash-based uploader I use troughout the web causes my Flash Player to crash about 75% of the time. I've tried Safari 5.1, Firefox 6.0.2 and Chrome 14.0.835.186 with Flash Player 10.3.183.10 with fairly consistent results. Nearly every time I go to upload something, it immediately take down the Flash Player in that browser. I've tried uninstalling, reinstalling, clearing cache, disabling other plugins and just about everything I can think of to no avail.
I'm on a Intel Mac Pro running 64bit Snow Leopard. This problem has just appeared in the last month or so (probably about the time of the last Flash Player release) and is hindering my ability to effectively do my job.
Is anybody else having this issue?I haven't run across this, though I did see a Firefox fileupload bug yesterday (https://bugbase.adobe.com/index.cfm?event=bug&id=2980517). Would you mind opening a new bug on this over at bugbase.adobe.com? Please include URLs where you're seeing this behavior and we'll investigate further.
Thanks,
Chris -
Using FileUpload component in Internationalized application (Bug?)
Good part of a day, community.
Is there bug in the component?
Page Encoding is UTF-8
Locale Encoding is Windows-1251
Browser is Mozilla FireFox 1.5.0.7
If I have page without FileUpload component everything works ok.
But when I place on page FileUpload component character encoding become corrupted.
I have made test page.
Place on page TextArea, FileUpload, button components.
Enter into TextArea any text in locale encoding different from English. I have used Cyrilic Windows-1251
Push the button and you will see text in text will be corrupted.
Delete FileUpload component. Everything will be ok
Does anybody deal with tis issue?I believe this is bug: 6453360. It has been fixed but only in Netbeans Visual Web Pack version. This fix has not been backported yet.
Lark -
Fileupload broken in Firefox 3.6.3 Flash 10.0.45.2 Mac OS X
I have been trying to get some basic file upload of an image working using Flex 4 and Flash 10, but when I upload an image drag and drop stops working in Firefox 3.6.3 on Mac OS X.
After the fileupload loads the new PNG file, it displays correctly, but drag and drop events don't appear to propagate any more, and the app generally freezes up. On some occasions the app starts working again until the next file upload.
I tried calling the fileupload code without doing anything with the loaded file, and the problem still occurs.
This exact code works as expected with Safari and Google Chrome (5.0.375.55) on Mac OS X.
I don't think I am trying to do anything too complex - I do not have a workaround. Ultimately I want to store the images in a back end database etc., but there is no getting around the need for fileupload. I have moved from Flex 3 / Flash 9 fileupload due to well documented and wide ranging problems.
Any suggestions are welcome...
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
creationComplete="init()">
<s:layout>
<s:HorizontalLayout/>
</s:layout>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.core.IUIComponent;
import mx.events.DragEvent;
import mx.managers.DragManager;
import mx.rpc.AsyncToken;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
[Bindable]
var listContent:ArrayCollection = new ArrayCollection();
private function init():void
listContent.addItem({heading1:"qwe", heading2:"qwew", heading3:"wwww"});
listContent.addItem({heading1:"sdasd", heading2:"asdasd", heading3:"asdsad"});
listContent.addItem({heading1:"zxcxc", heading2:"zxcxzc", heading3:"zxczxc"});
// drag drop
private function dragEnterHandler(e:DragEvent):void {
DragManager.acceptDragDrop(e.currentTarget as IUIComponent);
private function dropHandler(event:DragEvent):void {
Alert.show("got the drop");
// file uplaod stuff
private var fileReference:FileReference = new FileReference();
private function uploadFile():void {
var fileFilter:FileFilter = new FileFilter("png","*.png");
fileReference.browse([fileFilter]);
fileReference.addEventListener(Event.SELECT, onFileSelected);
fileReference.addEventListener(Event.COMPLETE, onFileCompleted);
private function onFileSelected(event:Event):void {
fileReference.load();
private function onFileCompleted(event:Event):void {
fileReference = event.currentTarget as FileReference;
var data:ByteArray = fileReference.data;
background.source = fileReference.data;
]]>
</fx:Script>
<s:Scroller width="100%" height="100%" dragEnter="dragEnterHandler(event)" dragDrop="dropHandler(event)">
<s:Group width="100%" height="100%">
<mx:Image id="background" />
</s:Group>
</s:Scroller>
<s:Button label="Upload image" click="{uploadFile()}" />
<mx:DataGrid dataProvider="{listContent}" dragEnabled="true">
<mx:columns>
<mx:DataGridColumn headerText="Column 1" dataField="heading1"/>
<mx:DataGridColumn headerText="Column 2" dataField="heading2"/>
<mx:DataGridColumn headerText="Column 3" dataField="heading3"/>
</mx:columns>
</mx:DataGrid>
</s:Application>Your best bet is to file a bug.
-
Hello all,
I'm using the FileUpload component in a JSPDynPage but it does not seem to work for me. The problem is a lot like the one Patrick O'Neill asked about. I used the HTMLB example but for some strange reason variable fu remains NULL. Please have a look at my code and explain to me what the problem is. The JSP contains a file upload component and a button to start the upload event.
This is the java code I used (testprogram):
import com.sapportals.htmlb.enum.ButtonDesign;
import com.sapportals.htmlb.event.Event;
import com.sapportals.htmlb.page.DynPage;
import com.sapportals.htmlb.page.PageException;
import com.sapportals.portal.htmlb.page.JSPDynPage;
import com.sapportals.portal.htmlb.page.PageProcessorComponent;
import com.sapportals.portal.prt.component.IPortalComponentContext;
import com.sapportals.portal.prt.component.IPortalComponentProfile;
import com.sapportals.portal.prt.component.IPortalComponentRequest;
// for htmlb upload
import java.io.File;
import com.sapportals.htmlb.rendering.IFileParam;
import com.sapportals.htmlb.FileUpload;
// for debugging
import com.sapportals.portal.prt.runtime.PortalRuntime;
import com.sapportals.portal.prt.logger.ILogger;
import com.sapportals.portal.prt.logger.Level;
import bean.FileUploadBean;
public class FileUploadExample extends PageProcessorComponent {
public DynPage getPage() {
return new RealJSPDynPage();
public class RealJSPDynPage extends JSPDynPage {
FileUploadBean myBean;
private ILogger defaultLogger = PortalRuntime.getLogger();
public RealJSPDynPage() {
public void doInitialization() {
// Get the request, context and profile from portal platform
IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
IPortalComponentContext myContext = request.getComponentContext();
IPortalComponentProfile myProfile = myContext.getProfile();
defaultLogger.setActive(true);
defaultLogger.setLevel(Level.ALL);
// Initialization of bean
FileUploadBean myBean = new FileUploadBean();
setBeanFromProfile(myProfile, myBean);
// Put the bean into the application context
myContext.putValue("myBeanName", myBean);
public void doProcessAfterInput() throws PageException {
// Get the request, context and profile from portal platform
IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
IPortalComponentContext myContext = request.getComponentContext();
IPortalComponentProfile myProfile = myContext.getProfile();
// Get the bean from application context
myBean = (FileUploadBean) myContext.getValue("myBeanName");
setBeanFromProfile(myProfile, myBean);
public void doProcessBeforeOutput() throws PageException {
setJspName("fileupload.jsp");
public void onClick(Event event) throws PageException {
myBean.setText("I was clicked");
String ivSelectedFileName;
FileUpload fu = (FileUpload) this.getComponentByName("myfileupload");
// debug info message, other option is: severe
defaultLogger.info(this, "Hello this is a test");
if (fu == null) {
// error
defaultLogger.severe(this, "strange error");
// this is the temporary file
if (fu != null) {
// Output to the console to see size and UI.
System.out.println(fu.getSize());
System.out.println(fu.getUI());
defaultLogger.info(this, String.valueOf(fu.getSize()));
defaultLogger.info(this, fu.getUI());
// Get file parameters and write it to the console
IFileParam fileParam = fu.getFile();
System.out.println(fileParam);
// Get the temporary file name
File f = fileParam.getFile();
String fileName = fileParam.getFileName();
defaultLogger.info(this, fileName);
// Get the selected file name and write ti to the console
ivSelectedFileName = fu.getFile().getSelectedFileName();
System.out.println("selected filename: "+ivSelectedFileName);
defaultLogger.info(this, "selected filename: "+ivSelectedFileName);
private void setBeanFromProfile(IPortalComponentProfile myProfile, FileUploadBean myBean) {
// FileUpload properties
myBean.setSize(myProfile.getProperty("size"));
myBean.setMaxLength(myProfile.getProperty("maxLength"));
myBean.setAccept(myProfile.getProperty("accept"));
// Button properties
myBean.setDisabled(myProfile.getProperty("disabled"));
myBean.setDesign(ButtonDesign.getEnumByString(myProfile.getProperty("design")));
myBean.setEncode(myProfile.getProperty("encode"));
myBean.setText(myProfile.getProperty("text"));
myBean.setTooltip(myProfile.getProperty("tooltip"));
myBean.setWidth(myProfile.getProperty("width"));
This is the JSP:
<%--- FileUpload.jsp --%>
<%@ taglib uri= "tagLib" prefix="hbj" %>
<%--- Get the Bean named myBeanName from the application context --%>
<jsp:useBean id="myBeanName" scope="application" class="bean.FileUploadBean" />
<hbj:content id="myContext" >
<hbj:page title="Template for a portal component">
<hbj:form id="myFormId" encodingType="multipart/form-data">
<hbj:fileUpload
id="myFileUpload"
size="<%=myBeanName.getSize() %>"
maxLength="<%=myBeanName.getMaxLength() %>"
accept="<%=myBeanName.getAccept()%>">
</hbj:fileUpload>
<hbj:button
id="MyButton"
text="<%=myBeanName.getText() %>"
width="<%=myBeanName.getWidth() %>"
tooltip="<%=myBeanName.getTooltip() %>"
onClick="click"
design="<%=myBeanName.getDesign().getStringValue() %>"
disabled="<%=myBeanName.isDisabled() %>"
encode="<%=myBeanName.isEncode() %>">
</hbj:button>
</hbj:form>
</hbj:page>
</hbj:content>
The Bean:
package bean;
import com.sapportals.htmlb.enum.ButtonDesign;
public class FileUploadBean
// FileUpload
public String size;
public String maxLength;
public String accept;
public String getSize() {
return size;
public void setSize(String size) {
this.size = size;
public String getMaxLength() {
return maxLength;
public void setMaxLength(String maxLength) {
this.maxLength = maxLength;
public String getAccept() {
return accept;
public void setAccept(String accept) {
this.accept = accept;
// Button
public String disabled;
public ButtonDesign design;
public String encode;
public String text;
public String tooltip;
public String width;
// constructor
// public ButtonBean() {
public String isDisabled() {
return disabled;
public void setDisabled(String disabled) {
this.disabled = disabled;
public ButtonDesign getDesign() {
return design;
public void setDesign(ButtonDesign design) {
this.design = design;
public String isEncode() {
return encode;
public void setEncode(String encode) {
this.encode = encode;
public String getText() {
return text;
public void setText(String text) {
this.text = text;
public String getTooltip() {
return tooltip;
public void setTooltip(String tooltip) {
this.tooltip = tooltip;
public String getWidth() {
return width;
public void setWidth(String width) {
this.width = width;
and the Portalapp.xml
<?xml version="1.0" encoding="utf-8"?>
<application>
<application-config>
<property name="startup" value="true"/>
<property name="SharingReference" value="htmlb"/>
</application-config>
<components>
<component name="FileUpload">
<component-config>
<property name="ClassName" value="FileUploadExample"/>
<property name="SecurityZone" value="com.sap.portal.pdk/low_safety"/>
</component-config>
<component-profile>
<property name="maxLength" value="125000">
<property name="personalization" value="dialog"/>
</property>
<property name="accept" value="Accept">
<property name="personalization" value="dialog"/>
</property>
<property name="size" value="50">
<property name="personalization" value="dialog"/>
</property>
<property name="width" value="250">
<property name="personalization" value="dialog"/>
<property name="type" value="number"/>
</property>
<property name="disabled" value="FALSE">
<property name="personalization" value="dialog"/>
<property name="type" value="boolean"/>
</property>
<property name="encode" value="True">
<property name="personalization" value="dialog"/>
<property name="type" value="boolean"/>
</property>
<property name="tooltip" value="Initial Tooltip">
<property name="personalization" value="dialog"/>
</property>
<property name="text" value="Initial Button Text">
<property name="personalization" value="dialog"/>
</property>
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
<property name="design" value="STANDARD">
<property name="personalization" value="dialog"/>
<property name="type" value="select[STANDARD,SMALL,EMPHASIZED]"/>
</property>
</component-profile>
</component>
</components>
<services/>
</application>Hi Raymond,
within your JSP, you have given the ID "myFileUpload" whereas within your coding you try to retrieve a component with ID "myfileupload". That's all so far.
Some additinal hints:
When referring to another thread, please give the link; in this case, you talked about Problem with FileUpload component
If you give (non) working examples, please reduce them to an absolute minimum, so that they show what they should show, but nothing more. This does not only hold on SDN but for all bug tracking systems. People get ill from reading 1000 lines of code where 10 would do
And for formatting on SDN, you can use [ code ] and [/ code ] (without spaces), makes life easier too.
And don't forget to press the yellow star button on helping answers...
So far for today
Hope it helps
Detlev -
Bug: Jdeveloper 10.1.3.2.0 !!
I am not sure if it is a bug or not, but my jdeveloper 10.1.3.2.0 did like this:
http://blogs.oracle.com/Didier/2006/11/22
can anyone explain the matter?
BassamNoooooo nothing works
But I am getting this error:
Error exercising tag : f:facet
javax.servlet.jsp.JspException: Cannot find FacesContext
This is my web.xml
============================
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
<description>SRDemo Sample 10.1.3 web application</description>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>CpxFileName</param-name>
<param-value>oracle.srdemo.view.DataBindings</param-value>
</context-param>
<context-param>
<!-- Maximum memory per request (in bytes) -->
<param-name>oracle.adf.view.faces.UPLOAD_MAX_MEMORY</param-name>
<!-- Use 5000K -->
<param-value>5120000</param-value>
</context-param>
<context-param>
<!-- Maximum disk space per request (in bytes) -->
<param-name>oracle.adf.view.faces.UPLOAD_MAX_DISK_SPACE</param-name>
<!-- Use 10,000K -->
<param-value>10240000</param-value>
</context-param>
<context-param>
<description>Parent directory location of SRDemo fileuploads</description>
<param-name>SRDemo.FILE_UPLOADS_DIR</param-name>
<param-value>/tmp/srdemo_fileuploads</param-value>
</context-param>
<filter>
<filter-name>adfFaces</filter-name>
<filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
</filter>
<filter>
<filter-name>adfBindings</filter-name>
<filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>adfFaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>adfBindings</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>adfBindings</filter-name>
<url-pattern>*.jspx</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>35</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>index.jspx</welcome-file>
</welcome-file-list>
<jsp-config/>
<security-constraint>
<web-resource-collection>
<web-resource-name>ALL Manager</web-resource-name>
<url-pattern>faces/app/management/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>manager</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>AllStaff</web-resource-name>
<url-pattern>faces/app/staff/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>technician</role-name>
<role-name>manager</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>SRDemo Sample</web-resource-name>
<url-pattern>faces/app/SRAbout.jspx</url-pattern>
<url-pattern>faces/app/SRCreate.jspx</url-pattern>
<url-pattern>faces/app/SRCreateConfirm.jspx</url-pattern>
<url-pattern>faces/app/SRCreateDone.jspx</url-pattern>
<url-pattern>faces/app/SRFaq.jspx</url-pattern>
<url-pattern>faces/app/SRFileUpload.jspx</url-pattern>
<url-pattern>faces/app/SRHelp.jspx</url-pattern>
<url-pattern>faces/app/SRList.jspx</url-pattern>
<url-pattern>faces/app/SRLogout.jspx</url-pattern>
<url-pattern>faces/app/SRMain.jspx</url-pattern>
<url-pattern>faces/app/SRWelcome.jspx</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>user</role-name>
<role-name>technician</role-name>
<role-name>manager</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>infrastructure/SRLogin.jspx</form-login-page>
<form-error-page>infrastructure/SRLogin.jspx</form-error-page>
</form-login-config>
</login-config>
<security-role>
<description>Customers of ACME corp</description>
<role-name>user</role-name>
</security-role>
<security-role>
<description>Employees of ACME corp</description>
<role-name>technician</role-name>
</security-role>
<security-role>
<description>The boss</description>
<role-name>manager</role-name>
</security-role>
<resource-ref>
<res-ref-name>jdbc/SRDemoDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-ref>
<res-ref-name>jdbc/SRDemoCoreDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
==================================== -
File uploads using jQuery with jquery.fileupload.js fails in Firefox over SSL
Please see the link below where I originally posted the question.
http://stackoverflow.com/questions/27792614/file-uploads-using-jquery-with-jquery-fileupload-js-fails-in-firefox-over-sslThanks. In my estimation that is exactly the issue. But that doesn't help with a resolution.
The actual file size: 945,991 bytes
If Firefox is miscalculating the length (in Safari/Chrome 945991 and 946241 in Firefox), then Firefox is reporting erroneously and should be raised as a bug in Firefox, would you agree? -
FileUpload: Current thread not ownet?
Hi, I use the common Apache FileUpload lib.
When i use it on my local server i work!
But on my NetWare Tomcat server, i got this message:
Error Message:current thread not owner
java.lang.IllegalMonitorStateException: current thread
not owner
at
org.apache.commons.fileupload.DefaultFileItem.getUniqueId(DefaultFileItem.java,
Compiled Code)
at
org.apache.commons.fileupload.DefaultFileItem.getTempFile(DefaultFileItem.java:623)
at
org.apache.commons.fileupload.DefaultFileItem.getOutputStream(DefaultFileItem.java:563)
at
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java,
Compiled Code)
at UploadFile.doPost(UploadFile.java:54)
Someone got an id�a???
thx a lotAre you using java 1.4 ? And so is your netware server ?
http://developer.java.sun.com/developer/bugParade/bugs/4776385.html -
An illegal file name cause FileUpload element timeout.
I can use Fileupload UI Element of Web Dynpro Abap to upload files with no problem.
But if I type some illegal file name(like 'asdf' ) in the inputfield before the 'browser' button,and click some other button which will fire an action to refresh this screen, a loading popup view appears and won't give any response.
Is it a bug or something i did wrong?
Regards.
Ste.Fisher
Edited by: steiner fisher on May 19, 2008 10:08 AMHi,
No problem. See the link hope it helps:
http://help.sap.com/saphelp_nw70/helpdata/EN/b3/be7941601b1d09e10000000a155106/frameset.htm
Please pay attention to the note given in the 2nd paragraph.
thanks & regards,
Manoj -
Can PJC ORACLE9IAS FORMS Services - FILEUPLOAD Java Bean run on UNIX?
I got the File Upload Utility sample code from //otn.oracle.com/sample_code/products/forms/content.html
The File Upload demo consists of the following files:-
1. fileuploader90.fmb
2. fileupload90.pll
3. FileUploader.java, FileUploaderProgrressBar.java ==> By using Oracle 9i JDeveloper(version 9.0.2.822 and java version 1.3.1), I had compiled and deployed and jarred java classes for the client side bean. Finally, I get uploadclient.jar.
4. FormsDecoder.java, FormsDecoderException.java ==> By using Oracle 9i JDeveloper(version 9.0.2.822 and java version 1.3.1), I had compiled and deployed and jarred java classes for the server side bean. Finally, I get uploadserver.jar.
And I had done accordingly to the steps.
I had added an entry in the formsweb.cfg file to call the FileUpload demo as following:-
[FileUpload]
pageTitle=Oracle9iAS Forms Services - FileUpload Demo
archive_jini=f90all.jar,uploadclient.jar
archive_ie=f90all.jar,uploadclient.jar
archive=f90all.jar,uploadclient.jar
form=fileuploader90.fmx
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms90demo_images/blue.gif
logo=/forms90demo_images/Forms9i.gif
envFile=fileupload.env
And this environment file, fileupload.env, code is as following:-
#fileupload.env
#Environment file used to setup the FileUpload Demo
ORACLE_HOME=/export/home2/9ids/OraHome1
PATH=/export/home2/9ids/OraHome1/bin/classic:/export/home2/9ids/OraHome1/bin
CLASSPATH=/export/home2/9ids/OraHome1/forms90/java/uploadserver.jar:/export/home2/9ids/OraHome1/jdk/jre/lib/rt.jar
FORMS90_PATH=/export/home2/9ids/OraHome1/forms90/demos/lib:/export/home2/9ids/OraHome1/forms90/demos/fileupload/forms
Then by using Oracle Forms 9.0(version 9.0.2.7.0) attach the FileUpload.pll library and compiled and run the forms.Click on the select button.and NO REPLY.NO ERROR NUMBER.No Progress Bar. Nothing...
Then I exit the form and add the config=FileUpload& into the web browser. Then I get the forms. Click on the select button and also NO RESPOND,NO ERROR,No Progress Bar. The File Upload Utility is not working.
Can anyone help me on this issue? Urgent...
Thank you so much.
Best Regards,
WongHello Duncan,
Are you one of the authors for the File Upload Utility? I am very happy to talk with you. How can we solve this BIG BUG 2550330? And make it run on UNIX platforms.
Best Regards,
Wong -
I am trying to run the Struts 1.1 fileUpload example code in WebLogic 8.1.2, but am getting an error.
All is fine until I try to return from the upload action class. I do a
return mapping.findForward("Success");
Which should send it back through struts to where this is present:
<forward name="Success"
path="/html/upload-success.jsp" />
Sadly, the jsp is never invoked. Instead, I get this:
13:07:17,653 [ExecuteThread: '199' for queue:
'default'] DEBUG action.RequestProcessor -
processForwardConfig(ForwardConfig[name=Success,path=/html/upload-success.js
p,redirect=false,contextRelative=false])
<Apr 19, 2004 1:07:17 PM EDT> <Error> <HTTP>
<BEA-101018>
[ServletContext(id=27649252,name=enames,context-path=/enames)]
Servlet failed with ServletException
javax.servlet.ServletException: Original request not available at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:111)
Any suggestions? This error only happens when enctype="multipart/form-data" in the .jsp.
Thanks,
Scott Nesbitt
It looks like the forward() method is not getting the correct instance of
ServletRequestImpl. You can either pass in a ServletRequestWrapper which
wraps over the original request (ServletRequestImpl in the weblogic case) or
pass in the original request which came into the service() method. Strangely
in this case, it seems like struts is sending in a instance which is
neither. This could very well be a struts bug.
"Scott Nesbitt" <[email protected]> wrote in message
news:[email protected]...
> Sure, here is the stack trace:
>
> <Apr 22, 2004 10:50:50 AM EDT> <Error> <HTTP> <BEA-101018>
<[ServletContext(id=18641557,name=enames,context-path=/enames)] Servlet
failed with ServletException
> javax.servlet.ServletException: Original request not available
> at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:111)
> at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
69)
> at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:455)
> at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
> at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> at
com.nielsenmedia.lrs.enames.common.LRSeNamesActionServlet.process(Unknown
Source)
> 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:971)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:402)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:305)
> at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6350)
> at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
> at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
> at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3635)
> at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2585)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
> Scott Nesbitt
-
Fileupload issue. Unable to get the full local directory path of the file uploaded
Fileupload Applet Issue with Firefox 15:
When uploading a file using our application, file that is being uploaded is hashed using a signed Applet.
This is working fine in IE and FF version lower than FF15.
Signed applet needs to hash file contents but it is is unable to read the full path of the uploaded file, and thus failing.
Applet expects the full path of the file that has been uploaded
Is there any way to get the full file path?Is not a new feature and not really a bug, but rather a security change that they have cleaned up code and removed the ability to use UniversalXPConnect that made it possible in older Firefox versions to get enhanced privileges.<br />
That is no longer possible, so any code that relies on it will fail silently.<br />
You will now require an extension to run any code that requires enhanced XPCOM permissions. -
Hi,
I'm beginner in web techno and so, in JDeveloper. I must (i try) develop a web site to administrate and consult a database. I 'm working with uix jsp and i'm trying to upload any files on the server. I use <uix:fileUpload> but the code doesn't run. Do you have any samples with this tag and how use it correctly?
Could you help me, please?
JulienHi.
It really sux that no-one responds sometimes and I am sure you have found your answer to the problem and have since moved on, but just in case there are others out there with this problem I have found the solution (only to uncover other issues- to be addressed).
UIX has a fileUpload tag which must be inserted into a form and followed with a submit button. The fileUpload tag has some required properties that should be set (select the component in the component palette and goto 'help' to view the documentation for the fileUpload component). The form property "usesFileUpload" must be set to true. What I believe this does is cause any event fired from within the form to be handled by/through the UIXServlet (which processes all uix related events). When you go this route you need to extend BaseFileUploadManager and override the doFileUpload() method with your code. Then you must set some parameters in your web.xml file that point to your FileUploadManager implementation. File uploads cannot be processed with an event handler.
Please see Using a Controller in ADF UIX
The only thing that bugs me is this quote "...After writing each file, the full path and filename of the file is returned, so any registered EventHandler can locate the just-written file...". This is telling me that we can somehow use an EventHandler. HOWHOWHOWHOWHOW?????!!?!?!?
Troy -
Index with "or" clause (BUG still exists?)
The change log for 2.3.10 mentions "Fixed a bug that caused incorrect query plans to be generated for predicates that used the "or" operator in conjunction with indexes [#15328]."
But looks like the Bug still exists.
I am listing the steps to-repro. Let me know if i have missed something (or if the bug needs to be fixed)
DATA
dbxml> openContainer test.dbxml
dbxml> getDocuments
2 documents found
dbxml> print
<node><value>a</value></node>
<node><value>b</value></node>
INDEX (just one string equality index on node "value")
dbxml> listIndexes
Index: unique-node-metadata-equality-string for node {http://www.sleepycat.com/2002/dbxml}:name
Index: node-element-equality-string for node {}:value
2 indexes found.
QUERY
setVerbose 2 2
preload test.dbxml
query 'let $temp := fn:compare("test", "test") = 0
let $results := for $i in collection("test.dbxml")
where ($temp or $i/node[value = ("a")])
return $i
return <out>{$temp}{$results}</out>'
When $temp is true i expected the result set to contain both the records, but that was not the case with the index. It works well when there is no index!
Result WITH INDEX
dbxml> print
<out>true<node><value>a</value></node></out>
Result WITHOUT INDEX
dbxml> print
<out>true<node><value>a</value></node><node><value>b</value></node></out>Hi Vijay,
This is a completely different bug, relating to predicate expressions that do not examine nodes. Please try the following patch, to see if it fixes this bug for you:
--- dbxml-2.3.10-original/dbxml/src/dbxml/optimizer/QueryPlanGenerator.cpp 2007-04-18 10:05:24.000000000 +0100
+++ dbxml-2.3.10/dbxml/src/dbxml/optimizer/QueryPlanGenerator.cpp 2007-08-08 11:32:10.000000000 +0100
@@ -1566,11 +1572,12 @@
else if(name == Or::name) {
UnionQP *unionOp = new (&memMgr_) UnionQP(&memMgr_);
+ result.operation = unionOp;
for(VectorOfASTNodes::iterator i = args.begin(); i != args.end(); ++i) {
PathResult ret = generate(*i, ids);
unionOp->addArg(ret.operation);
+ if(ret.operation == 0) result.operation = 0;
- result.operation = unionOp;
// These operators use the presence of the node arguments, not their valueJohn
Maybe you are looking for
-
How do I use a pretriggering mode with an analog hardware trigger?
I am trying to collect x number of points before and n number of points after an analog trigger (of specified level) is reached. I am using LabWindows with a PCI-6110 board. Any hints on the proper combination of functions to use is appreciated.
-
Hello, Any help on the following question will be most appreciated. I am looking at an FI document. In FAGLL03, I see a value of $257,656.29 for example, but in FBL5n is see a value of $86,277.20 for example not $257,656.29. The general ledger view a
-
Nothing is working after ios6 update...help!
I have updated my iphone 4s to the IOS6 and now i cant get on itunes,app store, safari, twitter, or facebook. I have also lost 2 bars on my service. I dont know what the **** happened. I have tried doing a hard reset and the recently known date/time
-
Doesn't iPhoto negate the need to sync photos from my windows laptop?
My confusion started here.... https://discussions.apple.com/message/20512109#20512109 Then I thought I had it solved! So I created Journals and I could share them with anyone via the web - super! BUT.... I have just deleted the photos from the photos
-
****, i have a ipod touch i just synked it and lost my wifi signal but got it back. now i cant open apps for my games and it seems to broght me back to a period when i synked last. not sure how it happened and is it possible to go back or fix this th