Fileupload webforms6i unix

Hi,
After having read a few of the more than hundred postings regarding the fileupload utility - can anyone clarify
if this configuration can be made working:
jinit 1.3
forms6i(patch10)
forms listener on unix (linux)
fileupload pjc 6i or 9i code (self signed)
Currently - I have tried followed the instructions for configuring the server
PATH=$ORACLE_HOME/bin:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$JAVA_HOME/jre/lib/i386/classic:$PATH
CLASSPATH=$ORACLE_HOME/forms60/java:$ORACLE_HOME/lib/importer.jar:$JAVA_HOME/jre/lib/rt.jar:$ORACLE_HOME/forms60/java/UploadServer.jar:$CLASSPATH
I'm able to import the certificate
Run the demo-form
Get CLASSPATH in the message area
select a file
start the fileupload (java console is showing<FILEUPLOAD>chunks ....</FILEUPLOAD> - Then I'm getting ORA-105101 and no file is uploaded.
Following ( Metalink note 134022.1) For
Linux Intel I have added to Variable name: LD_LIBRARY_PATH
$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/classic: $JAVA_HOME/jre/lib/i386/native_threads
But doing so is giving me the following error when starting up the forms listener
oracle.forms.servlet.ListenerServlet/Forms session <1> aborted: runtime process failed during startup with errors /opt/oracle/product/1.0.2/6iserver/bin/f60webm: error while loading shared libraries: libiplsn.so.0: cannot load shared object file: No such file or directory
-- file exists in path
When modifying ld_library_path I cannot start the forms listener process successfully - have tried various combinations of the listed libraries but no joy so far
I'm using 1.3 but have also tried 1.2.2 with same result.
Has anyone any positive experience on unix (Linux) to share ?

You guess right again. The file is a text file.It wasn't really a guess, I knew it would have been.
If I replace all the \r\n with \n, does the file have
a problem on window?Yes, but sometimes not. Some applications for viewing the files will have no problem understanding the \n as a new line. But Notepad will just display a box where the \n is instead.
Do you know any simple way to replace all the \r\n
with \n?
I am new for dos2unix utility, can i execute command
inside my code(servlet or java class)?You can use Runtime.exec() to execute commands, you'd need to know what the parameters are... I'm not sure offhand.
You could also write some Java code...
File f = new File("thefile.txt");
File tmp = new File(f.getName() + ".tmp");
BufferedReader in = new BufferedReader(new FileReader(new File(f)));
PrintWriter out = new PrintWriter(new FileWriter(new File(tmp)));
String line = "";
while((line = in.readLine()) != null) { // doesn't matter what line end chars, it'll be handled correctly
   out.print(line);
   out.print("\n");
out.flush();
out.close();
tmp.renameTo(f);You could easily make a method of that to take a file and the line-end chars you want to use. But keep in mind that if you do this operation on a non-text file, like an image or word document, you will definitely mess up the file because non-text formats don't really have "lines".

Similar Messages

  • Fileupload issue - Unix

    We use Forms 9.0.2, Jinitiator 1.3.1.8 on Sun Solaris 2.9. I had downloaded the forms demos 9i and got the uploadserver.jar and uploadclient.jar files - created a form with the bean as mentioned in the docs. The form works fine in Windows XP but fails in unix with the ORA-105100 error. Does anybody know if there is a fix to this problem. Everywhere I read in metalink, it talks about PATH and CLASSPATH. Looks like my path is properly set, since I see the uploadclient.jar file gettin loaded properly in Jinitiator. After I click on the button, the client dialog box opens, the progress bar appears and finally throws up this error.
    Can anyone help please?

    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.

  • 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,
    Wong

    Hello 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

  • File upload using apache Commons FileUpload problem

    Hi All,
    I have used Commons FileUpload for uploading files from windows to unix machine. I'm able to upload files but I have a problem about the contents of file copied in unix. When i upload files few files containing special characters are not copied correctly in unix instead ascii codes are getting copied/written. Seems to be a problem with character encoding.
    For example symbol "�" is not getting copied correctly in unix. So as new line character to. If anyone has faced such issues kindly provide few pointers on this. Appreciate your guidance.
    Thanks,
    -Aj

    Thanks for the reply.
    I'm using the Commons FileUpload class "FileItem" which holds the filestream data and using function
    code snippet of file upload
    ServletFileUpload servletFileUpload = new ServletFileUpload(new DiskFileItemFactory());
    List fileItemsList = servletFileUpload.parseRequest(request);
    Iterator it = fileItemsList.iterator();
    while (it.hasNext())
         FileItem fileItemTemp = (FileItem)it.next();
         File saveToFile = new File("newFile");
          fileItem.write(saveToFile ); // write fileItem data to saveToFile.
    } FileItem object takes care of writing data to disk.No idea,how it does internally.
    Thanks,
    -Aj.

  • Apache FileUpload - what version of Tomcat can run it?

    Hi. I'm trying to use the Apache Commons FileUpload component (http://commons.apache.org/fileupload). It works fine on my local PC (Java 1.5.0_15) but fails on the Unix server running Tomcat 4.1.29 and Java 1.4.2_12-b03. I've got the latest version of the upload component in the WEB-INF/lib folder. It throws this error (included only the top section; there are more, similar errors having to do with each fileupload component call). Do I need an older version of the upload component to work with this version of Tomcat and Java? If so, which version do I need to download? The oldest I could find dated to 2003. Thanks.
    The server encountered an internal error () that prevented it from fulfilling this request.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 15 in the jsp file: /fpauto/viewPremiums.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    /usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:12: package org.apache.commons.fileupload does not exist
    import org.apache.commons.fileupload.FileItem;
    ^/usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:14: package org.apache.commons.fileupload.servlet does not exist^
    ^import org.apache.commons.fileupload.servlet.ServletFileUpload;^
    /usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:15: package org.apache.commons.fileupload.disk does not exist
    import org.apache.commons.fileupload.disk.DiskFileItemFactory;
    ^/usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:16: package org.apache.commons.fileupload does not exist^
    ^import org.apache.commons.fileupload.FileUpload;^
    /usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:74: cannot resolve symbol
    symbol : class DiskFileItemFactory
    location: class org.apache.jsp.viewPremiums_jsp
    DiskFileItemFactory factory = new DiskFileItemFactory();
    An error occurred at line: 15 in the jsp file: /fpauto/viewPremiums.jsp
    Generated servlet error:
    /usr/local/jakarta-tomcat-4.1.29/work/mywork/fpauto/viewPremiums_jsp.java:74: cannot resolve symbol
    symbol : class DiskFileItemFactory
    location: class org.apache.jsp.viewPremiums_jsp
    DiskFileItemFactory factory = new DiskFileItemFactory();

    Apache FileUpload - what version of Tomcat can run it?First of all, why don't you ask Apache specific questions at the Apache mailinglist?
    Regarding to your actual problem: those are just ordinary compilation errors which are complaining that the mentioned packages and classes aren't available in the classpath. The solution is obvious: add the mentioned packages and classes (or in this case, the JAR file(s) with it) to the classpath during compile time and you're fine.

  • How to delete file from application server(Unix)

    Hi All,
    Using the below code downloading a file from application server(Unix) to client machine. I want to delete the file from application server once it is downloaded to client
    We work on Forms 11.1.1.4.0 and Oracle DB 10g. Client machine are Windows 7.
    BEGIN
      IF webutil_file_transfer.AS_to_Client
      (clientFile => Name_In('global.g_file_name')
      ,serverFile => ls_AppServer_Loc)THEN
      message('Data exported Successfully');
      ELSE
       message('File download from Application Server failed');
      END IF;
    EXCEPTION
      WHEN OTHERS THEN
      message('File download failed: '||SUBSTR(sqlerrm,1,200));
      END;
    I have search for solution on OTN. Few suggested to use HOST.
    Can any one help me how to use Host() built_in to delete the file.
    Thanks,
    Maddy

    Can any one help me how to use Host() built_in to delete the file.
    Host('/bin/rm <complete file path>');

  • "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information" while attempting to open UNIX/Linux monitor

    We have upgraded our System Center to 2012 R2, and we cannot open any of the UNIX/Linux LogFile monitor property or the UNIX/Linux process monitor property for those monitors created prior to the upgrade.  Error we get is below.  Any assitance
    appreciated.
    Date: 9/30/2014 10:01:46 PM
    Application: Operations Manager
    Application Version: 7.1.10226.0
    Severity: Error
    Message:
    System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.Load(String assemblyString)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.TypeContainer.get_ContainedType()
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.AddTemplatePages(LaunchTemplateUIData launchData, Form form)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.Initialize(Object launchData, Form form)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.RunPrivate(Object[] userData)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.Run(Object[] userData)

    It's possible the upgrade did not update everything properly as it looks like a dll mismatch or a missing file. I'd open a support ticket with MS and have a support engineer look at the upgrade logs. What version of SCOM did you upgrade from?
    Regards,
    -Steve

  • Error while compiling forms10g in Unix with webutil features.

    Hi,
    I developed a form called test.fmb and attached webutil.pll. change all text_io to client_text_io.
    Copied the file to unix and tried to compile, it says
    CLIENT_TEXT_IO.FILE_TYPE must be declared.
    (Please note that webutil.pll has been compiled and .plx file is generated).
    Please help.
    Thanks.

    Our Forms_90 Path is
    FORMS90_PATH=/AppsTop/FRMTOP/app/9.0.4/forms90:/AppsTop/FRMTOP/app/9.0.4/pi:/AppsTop/FRMTOP/app/9.0.4/webutil:/AppsTop/FRMTOP/app/9.0.4/webutil/forms
    I just copied webutil.pll from
    :/AppsTop/FRMTOP/app/9.0.4/webutil/forms/webutil.pll to
    my local directory C:\webutil.pll
    I attached the C:\webutil.pll under Attached Libraries in test.fmb in my own PC.
    Please advice.
    Thanks,
    Mano.

  • How to find out who deleted the directory in Unix

    Hi Experts,
    In my system some body tampered the directories, and more over some body deleted the bin directory under the /usr/sap/trans in Unix operating system. now i am checking to find out who deleted and for the more logs.
    i am unable to find out the user name and deleted directory logs..i know its completely related to the unix level but mean time i am searching for the same.
    Any ideas and clues will be heighly appreciated.
    -Srini

    To know the OS would have been helpful
    First ask the people around you if anybody did it, maybe he is man enough to admit...
    Try to find out who logged at the time when the directory was deleted.
    - check the OS syslog (/var/adm/syslog/syslog.log for hp-ux, /var/log/messages for linux)
    - try the last commando to get a list of who logged on when
    - check the command histories of the sidadm, root user, use the history command, or the h alias
    - check if there are scripts running, which regularly delete files
    As the trans directory might be NFS mounted to other servers, you might need to do the checks there too.
    Best regards, Michael

  • Install Oracle 8.1.7 (TRU64 UNIX 5.1)

    Need information on how to initate the istallation of Oracle
    Software on TRU64 UNIX 5.1. Prior to 8.1.7, the "orainst" shell
    for UNIX was used from the command line. The installation
    instructions for 8.1.7 require the setting of the variable
    DISPLAY, and the execution of the script "runInstaller". For
    what I can tell, the new installation routine requires X-windows
    to run, but I cannot figure out how to set it up.
    Thank you in advance for any help on this subject.
    Eduardo Bedoya

    Dirk:
    I had the same problem, which is caused by a
    wrong version of Java. Follow the instructions
    in Denis Claric's Oracle page:
    http://staff.in2.hr/denis/oracle/
    BUT do NOT install the RPM packages from the
    RH7.1 CD-ROMs, get them from RedHat's web site instead.
    -Ramon

  • Install ORACLE 8.1.6 and 9i on HP UNIX 11.20 (11i)

    Hi,
    When I install ORACLE 8.1.6 and/or 9i on HP UNIX 11i (11.20, hardware: i2000 workstation), I got the following error message:
    Exception thrown from action: make
    Exception Name: MakefileException
    Exception String: Error in invoking target nnfgt.o of makefile
    /opt/oracle/product/8.1.6/network/lib/ins_net_client.mk
    Exception Severity: 1
    Would appreciate very much if someone can help to analyse the cause of the problem.
    Thanks.

    Hi,
    When I install ORACLE 8.1.6 and/or 9i on HP UNIX 11i (11.20, hardware: i2000 workstation), I got the following error message:
    Exception thrown from action: make
    Exception Name: MakefileException
    Exception String: Error in invoking target nnfgt.o of makefile
    /opt/oracle/product/8.1.6/network/lib/ins_net_client.mk
    Exception Severity: 1
    Would appreciate very much if someone can help to analyse the cause of the problem.
    Thanks.

  • Transfer files from SAP R/3(unix server) to windows

    Hi TechGurus,
    We have a requirement where in , we are extracting data from SAP table into a text file using OPEN DATASET in TEXT MODE.
    Then using a third party tool (Connect-direct), we are transferring text files to windows server using unix script, in binary mode.
    The problem is that that the data is being transferred in blocks,each time beginning transfer from a new line.That is, after say transferring 25KB data it transfers next 25KB data from a new line. What happens as a result is that records
    after particular amount of data is broken and remaining data transfer begins from new line.
    The file size is around 25 MB.There is no such problem while transferring file of size 10 KB.
    We are uploading the data from text file on windows server into MSAccess.
    And error occurs during this process.
    Assured points for helpful answers
    Thanks in advance!!

    Hi,
    If you want to transfer file between different SAP servers then you can use the function module EPS_FTP_PUT. You need to have a RFC destination (with sufficient authorizations for the RFC user). The meaning of the importing parameters of the function module are quite obvious. Of course, SAP offers us more than this function module:
    - EPS_FTP_GET
    - EPS_FTP_MPUT
    - EPS_FTP_MGET
    Kishi.

  • SELECt query in UNiX environment

    Iam using hp unix with oracle 11g
    when i try to spool 26 lack records it is giving me error
    " There is not enough memory available now.
    O/S Message: Broken pipe"
    is there is any other way SQL commands, we can limit the SELECT query to spool specific number of times other than using
    FOR LOOP.. with LIMIT cluase

    logdata=`${SQLPLUS} -S username/password<< EOF
                        SET ECHO OFF
                        SET LINESIZE 2000
                        SET NEWPAGE 0
                        SET SPACE 0
                        SET PAGESIZE 0
                        SET FEEDBACK OFF
                        SET HEADING OFF
                        SET TRIMSPOOL ON
                        SET TAB OFF
                        set autoprint on               
                        set serveroutput on
                        set spool on
                        spool ${SPOOL_FILE}     
                        set termout off
                   WHENEVER SQLERROR EXIT SQL.SQLCODE
                   whenever oserror exit 1;
                        $GetQuery ==> there come's the SELECT statement which spool's 25 lakh records.
                        spool off
                   EXIT
                        END`
    While spooling records it throws the error
    There is not enough memory available now.
    O/S Message: Broken pipe
    i want u use spooling instead of using util_file to write each and every rows in a file
    Edited by: user9080289 on Apr 29, 2010 5:04 AM

  • I want to execute UNIX COMMAND in ABAP

    Hi All,
    I want to execute a UNIX XOMMAND sh <scriptname> <filename> to replace divsion codes.in ABAP.
    But, I came to know that we can't (2) or try the following program but unfortunately the command CALL SYSTEM is not supported by SAP. If you are on R/3 2.1 - 2.2x you can get some idea's from the program SAPMSOS0.
    REPORT ZUNIXCOM .
    DATA: U_COMMAND(200).
    Table for system messages
    DATA: BEGIN OF RT OCCURS 100 ,
    LINE(100) ,
    END OF RT .
    START-OF-SELECTION .
    MOVE 'unix command' to U_COMMAND .
    REFRESH RT.
    CALL 'SYSTEM' ID 'COMMAND' FIELD U_COMMAND
    ID 'TAB' FIELD RT-SYS .
    LOOP AT RT.
    WRITE : / RT-LINE .
    ENDLOOP. 
    So please can u help me how to call a unix command from ABAP. it is very urgent. I want complete details and all possible solutions
    <removed_by_moderator>
    Thanks,
    gyanaraj
    Edited by: Julius Bussche on Aug 26, 2008 11:29 AM

    Selvaraj Gyanaraj wrote:>
    > So please can u help me how to call a unix command from ABAP.
    I was about to help you.
    >it is very urgent.
    I changed my mind.
    >I want complete details and all possible solutions
    I'm glad I changed my mind.
    >Points are surely rewarded.
    Too late.

  • Execute unix command in abap code

    Hi, I have a request to execute a script command in a remote unix server, should i use 'call function ...destination'?
    Thanks.
    Legend.

    Use like this :
    data: begin of t_tabl occurs 0,
    line(132),
    end of t_tabl,
    data: lc_command(100) type c.
    Get all the file name falling under specified directory...
    lc_command(3) = 'ls '.
    lc_command+3(45) = p_dir. " Directory of file path
    call 'SYSTEM' id 'COMMAND' field lc_command
    id 'TAB' field t_tabl-sys.
    Check any files exits in the directory.......................
    if t_tabl[] is initial.
    message e006 with 'No files exist in the specified directory ' p_dir.
    endif.
    Do not look for sy-subrc ,here sy-subrc will not work.
    Thanks
    Seshu

Maybe you are looking for

  • How can i retrieve my old text messages?

    I synced my iphone 5s to the computer for the first time and all my personal data was wiped such as text messages, photos, emails and contacts they were then replaced with my dads information? How do i get my stuff back?

  • Gantt Chart Related Problem

    Project Link: PPPM How to solve these problems. Problem 1: I have to scroll both the Gantt Chart and Task List scroll simultaneously. When i scroll Gantt Chart , then at the same time Task List and vice versa. Problem 2: How to stop Gantt Chart heade

  • RE: Forte & Win NT Service pack 4

    To: "'Natarajan Balasubramanian'" <[email protected]>, [email protected] cc: (bcc: Craig Parravicini) From: "Haben, Dirk" <[email protected]> @ EDSHUBEUROPE Date: 04/30/99 07:30:06 AM Subject: RE: Forte & Win NT Service pack 4

  • Copy the database for my use.  my level is beginner

    hello, there is a Database here at work and i was given the permission by the dba to copy and put it in my local drive. i know this is a big one so it might not be possible. the reason is so i can create my application from maybe home without logging

  • HT4759 can't open calendar in i cloud ?

    calendar will not open in i cloud on pc win 7, works fine on oother devices