ORA-105101

What's the deal with this error message? I have added a JAR file to the CLASSPATH in the .ENV file but I am still getting ORA-105101 when I attempt to call a class in that JAR. The classpath is the same as that used by 9iDS, which allowed me to pick up the class and wrap it in ORA_JAVA.
I have displayed the classpath and library path using these calls: :blk.disp_area := java_system.getproperty('java.library.path')
     ||chr(10)||'class '||chr(10)||java_system.getproperty('java.class.path');and the JAR is definitely there.
What else causes this problem?
Cheers, APC

Further info:
As I didn't seem to be getting anywhere I put some messages into the code. The program appears to be instantiating the class, so there is apparently nothing wrong with the CLASSPATH as such. The failure occurs when it attempts to call a method on that class.
I have had a look at the .java file (unfortunately the bloke who wrote it is now on leave). There are some system.out.println calls embedded in it. Now in an ideal world these would in fact be log4j calls, but they are not. Without replacing them, is there any way of re-directing the output of system.out? I already have java.lang.System imported into my form, but I can't figure out how to use OUT_ to my advantage.
Cheers, APC

Similar Messages

  • Upload file in web form - ora-105101

    I want to upload files in a web form. I downloaded fileupload utility, but I can't make it work.
    I can launch the form, open the dialog box, choose a file, then the progress bar appear and a
    ora-105101 is raised in the custom_item_event trigger. When I close the form after that, a Dr watson
    box appear.
    I tried java 1.2.2, then java 1.4.1, then java 1.1.8, with no success.
    I tried Jinitiator 1.1.7.30, then 1.1.8.7, then 1.1.8.10, and finally 1.1.8.16, with no success.
    I tried many many path and classpath setting, with no success.
    I executed each time that (in the current jinitiator directory) :
    javakey -r PJC
    javakey -c PJC true
    javakey -ic PJC c:\temp\pjc.x509
    to ensure the security aspect is ok.
    Do you have any ideas, or something ?
    My configuration is :
    forms 6.0.8.13.0
    windows NT service pack 5
    I use CGI mode to launch fileupload utility
    Thanks,

    The problem here is usually one of setting up the classpath correctly on the server.
    If you run the Demo Form that comes with the utility and press KEY-LISTVAL then it will pop up an alert with the current classpath in it.
    If this fails and you get an error it's because Forms can't start Java on the server at all which indicates that you need to check the o/s path that is configured for the CGI to use.
    In general I'd recommend using the Forms listener Servlet with this kind of code because it means that you can do all you're configuration in a simple .env file.
    Have a look at the HTML document that comes with the upload utility - there are some hints at then end of it to help with the setup.

  • FRM 40735 when button pressed error ORA 105101

    I have written a java class and successfully imported it into forms 9i. I added a button and wrote a trigger to access the java class. When I run the form and press the button i get FRM 40735 when button pressed trigger raised unhandled exception ORA 105101. I am running 9ids on windows 2000 and have checked my path and classpath and everything looks fine.
    You can obtain this error:
    1) Create a java class:
    public class getClasspath
    public static String getClasspath() {
    return(System.getProperty("java.class.path"));
    2) Import it in a form
    3) Create a button and in when-button-pressed trigger put this code:
    loop
    message(getClasspath.getClasspath(), no_acknowledge);
    end loop;
    4)RUN
    The error appears after 50944 loops
    Ciao
    Salvatore

    Does V_Exc actually get a value in it if you look in the debugger - it may well be that if the Memory is getting blown then the exception object cannot be created either so the reference is null.
    Anyway this is all somewhat academic is it not, what's the point of this question? If you feel there should be a better message in this particular circumstance then that's fair enough and you should ask Support to log that for you.
    Anything else will be addressed by the ability to tune the JVM size and the JVM pooling capabilities we'll be introducing in the 10g timeframe.

  • ORA-105101 prob (not CLASSPATH related)

    Ok i have a problem running a java bean with by java importer created package.
    The java code is a dialog intended to handle some custom error situations.
    I created it and tested with when button pressed trigger ... all went well and peachy.
    Then i changed the code of the when button pressed trigger to simuale the actual situation like this:
    declare
    v_dummy date;
    begin
    v_dummy := to_date('dummy');
    exception
    when others then
    ThaAllmightyProcedure;
    end;
    the problem is:
    The first time i press the button it works fine. I close the dialog and press the button for the second time and i get the horror of my last few days .... the ORA-105101 err.
    ?? whadda' ?? Any clues?

    oops ... the correct errcode is
    ORA-105100

  • ORA-105101: non-ORACLE exception

    we have some JNI calls embedded in our forms (10g), sometimes the calls result in an ORA-105101: non-ORACLE exception, is there any way to get the stack trace so we can see what the java error actually is?
    thanks in advance.

    ...found the answer, ORA_JAVA.LAST_EXCEPTION.

  • Java bean File Upload - Error-105101

    We were having earlier the same problem of 105100 error. As the solution, suggested earlier in the thread posted by Teguh Santoso, the classpath settings that was mentioned ealier was done, the certificate was imported in the client machine.
    At the web-browser-client machine, the "Select" button in the "fileupload" demo form is opening the FileDialog(that cleared the earlier problem). But on selecting a file in it, the error ORA-105101 is occuring for the WHEN-CUSTOM-ITEM-EVENT..... But both the progress bars, the one that is there for encoding of the seleced file, and the one that is there for the uploading gets displayed. On searching the "c:\temp" folder(folder where the file is intended to be uploaded to) of the application server, we see that the particular file has not been uploaded.
    The same thing is working alright when we do it in the 9iAS machine, when using the "Run on Web" option in the 6i-FormBuilder.
    What additional settings are to be done for using the file-upload utility through web-forms? Please help..
    Thank you
    Regards
    Ranjith.

    If you press KEY-LISTVAL in the Upload demo form it will message out the current classpath for you. If that fails as well it's because the basic Java Runtime classes cannot be found.
    The general things to have to watch in the setup (on the Application server) are:
    1) A Java 1.2.2+ runtime environment is available
    2) The /jre/bin/classic directory is in the O/S PATH for Windows, or the LD_LIBRARY_PATH for SOLARIS or the SHLIB_PATH for HP. This is so that Forms can locate the JVM.DLL (Windows) or libjvm.sl/so (UNIX)
    3) The CLASSPATH needs to contain the 1.2.2+ Java runtime jar file rt.jar. This is in the /jre/lib directory.
    4) The CLASSPATH should of course also contain the UploadServer.jar

  • Calling a report from forms - FRM-40735 when-button-pressed raised unhandle

    Hi,
    I created a form to generate a pdf report.
    its not going too well, so i need some help.
    my form only has one button , when pressed I want it to generate a report in pdf format.
    i created a when-button-pressed trigger and the following code is below:
    I also create a web service proxy jar file,
    the jar file is in the FORMS_BUILDER_CLASSPATH, and the jar file is imported from forms builder without any issues.
    As of now I am hard coding everything in the code below to see if it works.
    The error I am getting  FRM-40735 when-button-pressed raised unhandled exception ORA-105100 i dont know why ?
    This error is occurring at this line of code, please help, this is my first time doing something like this.
    obj := publicreportserviceclient.new(); DECLARE
    param_name varchar2(200);
    un varchar2(200);
    pw varchar2(200);
    out_file varchar2(200);
    obj ORA_JAVA.JOBJECT;
    BEGIN
    obj := publicreportserviceclient.new();
    param_name := 'EMP';
    un := 'Administrator';
    pw := 'Oracle123';
    out_file := 'D:\DevSuiteHome_1\j2ee\home\default-web-app'||'output';
    publicreportserviceclient.callRunReport(obj,'/~administrator/Learn/Test1/Test1.xdo','EMP','141414',un,
    pw,'pdf','New_Template',out_file);
    web.show_document('http://jmenge-de.de.oracle.com:8889/j2ee/' || 'output');
    exception
      --check for ORA-105101
      when ORA_JAVA.EXCEPTION_THROWN then
         message('Java Exception : '
          || Exception_.toString(ORA_JAVA.LAST_EXCEPTION));
          ORA_JAVA.CLEAR_EXCEPTION;
          return;
      --check for ORA-105100
      when ORA_JAVA.JAVA_ERROR then
                   message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
              return;
    END;This is my java function
        public void callRunReport (String reportPath, String paramName, String  paramValue, String
        username, String password, String format, String template, String outFile) {
        try {
                bip_webservice.proxy.PublicReportServiceClient myPort = new bip_webservice.proxy.PublicReportServiceClient();
                // Calling runReport
                ReportRequest repRequest = new ReportRequest();
                repRequest.setReportAbsolutePath(reportPath);
                repRequest.setAttributeTemplate(template);
                repRequest.setAttributeFormat(format);
                repRequest.setAttributeLocale("en-US");
                repRequest.setSizeOfDataChunkDownload(-1);
               ParamNameValue[] paramNameValue = new ParamNameValue[1];
                paramNameValue[0] = new ParamNameValue();
                paramNameValue[0].setName(paramName);
                String[] values = new String[1];
                values[0] = paramValue;
                paramNameValue[0].setValues(values);
                repRequest.setParameterNameValues(paramNameValue);
                ReportResponse repResponse = new ReportResponse();
                repResponse = myPort.runReport(repRequest,username,password);
                byte[] baReport = repResponse.getReportBytes();
                FileOutputStream fio = new FileOutputStream(outFile);
                fio.write(baReport);
                fio.close();
            } catch (Exception ex) {
                        ex.printStackTrace();
        }Thanks - please help

    If there is a way to make it work with Bi publisher, Please let me know.
    I need to something to make it work with BI publisher.
    thanks,
    Edited by: Rooney on May 27, 2010 1:27 PM

  • WEBUTIL_FILE_TRANSFER.AS_To_Client not working

    Hi all,
    server : win2008 R2 64 bit
    fmw : 11.1.1.4
    when we try to copy a file from AS to client, we get non-oracle exception 105101
    after searching this forum I added the following exception handler:
    exception
         --check for ORA-105100
         when ORA_JAVA.JAVA_ERROR then
           message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
         --check for ORA-105101
         when ORA_JAVA.EXCEPTION_THROWN then
           raisedException := exception_.new(ORA_JAVA.LAST_EXCEPTION);
              begin
                message('Exception: '||Exception_.toString(raisedException));
                message('Exception: '||Exception_.toString(raisedException));
                :javaerror := Exception_.toString(raisedException);
              exception
                when ORA_JAVA.JAVA_ERROR then
                  message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
              end;this gives us the following error :
    java.lang.Exception: java.lang.NoClassDefFoundError: oracle/forms/webutil/fileTransfer/AppServerFileReadernumerous people have searched all config files (webutil.cfg,...)
    webutil_is_as_readable for the file on the server returns true
    nothing found on google/metalink
    Kr
    Martin

    Hi all,
    some ... person copied frmwebutil.jar from another server
    with a different version
    solved

  • How to call this Java function?

    Hi
    I imported the following java function in oracle forms 10g Rel. 2:
    PACKAGE BODY WorkDocumentWsStub IS
      -- DO NOT EDIT THIS FILE - it is machine generated!
      args   JNI.ARGLIST;
      -- Constructor for signature (Ljava/lang/String;)V
      FUNCTION new(
        a0    VARCHAR2) RETURN ORA_JAVA.JOBJECT IS
      BEGIN
        args := JNI.CREATE_ARG_LIST(1);
        JNI.ADD_STRING_ARG(args, a0);
        RETURN (JNI.NEW_OBJECT('ch/mv/wox/WorkDocumentWsStub', '(Ljava/lang/String;)V', args));
      END;
      -- Constructor for signature (Lorg/apache/axis2/context/ConfigurationContext;Ljava/lang/String;)V
      FUNCTION new(
        a0    ORA_JAVA.JOBJECT,
        a1    VARCHAR2) RETURN ORA_JAVA.JOBJECT IS
      BEGIN
        args := JNI.CREATE_ARG_LIST(2);
        JNI.ADD_OBJECT_ARG(args, a0, 'org/apache/axis2/context/ConfigurationContext');
        JNI.ADD_STRING_ARG(args, a1);
        RETURN (JNI.NEW_OBJECT('ch/mv/wox/WorkDocumentWsStub', '(Lorg/apache/axis2/context/ConfigurationContext;Ljava/lang/String;)V', args));
      END;
      -- Constructor for signature ()V
      FUNCTION new RETURN ORA_JAVA.JOBJECT IS
      BEGIN
        args := NULL;
        RETURN (JNI.NEW_OBJECT('ch/mv/wox/WorkDocumentWsStub', '()V', args));
      END;
    -- Method: searchDocuments (Lch/mv/wox/WorkDocumentWsStub$SearchDocuments;)Lch/mv/wox/WorkDocumentWsStub$SearchDocumentsResponse;
      FUNCTION searchDocuments(
        obj   ORA_JAVA.JOBJECT,
        a0    ORA_JAVA.JOBJECT) RETURN ORA_JAVA.JOBJECT IS
      BEGIN
        args := JNI.CREATE_ARG_LIST(1);
        JNI.ADD_OBJECT_ARG(args, a0, 'ch/mv/wox/WorkDocumentWsStub$SearchDocuments');
        RETURN JNI.CALL_OBJECT_METHOD(FALSE, obj, 'ch/mv/wox/WorkDocumentWsStub', 'searchDocuments', '(Lch/mv/wox/WorkDocumentWsStub$SearchDocuments;)Lch/mv/wox/WorkDocumentWsStub$SearchDocumentsResponse;', args);
      END;I call the function searchDocuments with the following plsql-code in a when-button-pressed trigger:
    DECLARE
    raisedException      ora_java.jobject;
    jo           ora_java.jobject;
    jo1          ora_java.jobject;
    arr           ora_java.jarray;
    BEGIN
    message('1');
    jo  := WorkDocumentWsStub.new;
    message('2');
    arr := WorkDocumentWsStub.searchDocuments(jo,jo1);
    message('3');
    EXCEPTION
      --check for ORA-105100
      WHEN ORA_JAVA.JAVA_ERROR THEN
        :test.msg := 'Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR;
      --check for ORA-105101
      WHEN ORA_JAVA.EXCEPTION_THROWN THEN
        raisedException := exception_.new(ORA_JAVA.LAST_EXCEPTION);
        BEGIN
          :test.msg := 'Exception: '||Exception_.toString(raisedException);
        EXCEPTION
          WHEN ORA_JAVA.JAVA_ERROR THEN
            :test.msg := 'Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR;
        END;
    END;The trigger allways raised with the following exception: Exception: java.lang.Exception: java.lang.NullPointerException
    Thanks for any help in advance!
    Niels

    I would suggest putting the calls to WorkDocumentWsStub.new and WorkDocumentWsStub.searchDocuments(jo,jo1) in separate exception blocks so you know which one generates the nullpointerexception.
    Also, shouldn't you provide parameters to the "new" function? What should the searchDocuments function search for then? There is no document after all.

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

  • How to increase JVM Heap Size

    Hi all,
    Our Environment
    ===============
    OS - Windows XP Service Pack 3
    Oracle Developer Suite - 10.1.2.3.0
    Oracle Forms & Reports Service 10.1.2.3.0
    Oracle Database 10.2.0.1.0
    JDK 1.5
    Jinitiator 1.3.1.30
    Apache POI 3.5
    From forms we are writing to excel files after copying XL template using Apache POI 3.5 and JDK 1.5. This XL template file has got lot of macros.
    We have imported the Java class files into form as pl/sql library. We are able to write upto 7Mb size of XL file. Beyond that size it comes with the error Ora-105101.
    We tried to increase the JVM Heap Size to 640M by setting values -Xmx640M everywhere in OC4J_BI_FORMS/Server Properties/Java Options, Home/Server Properties/Java Options through Enterprise Manager console. Also manually set the values in OPMN.XML and reloaded the same. Also set -Xmx640M in Jinitiator 1.3.1.30 Java Runtime Parameters. Also set in Java console. All settings have no effect.
    We have written a small program to display the run time memory from forms, which displays only maximum memory 63M all the time.
    PACKAGE BODY HeapSize IS
    -- DO NOT EDIT THIS FILE - it is machine generated!
    args JNI.ARGLIST;
    -- Constructor for signature ()V
    FUNCTION new RETURN ORA_JAVA.JOBJECT IS
    BEGIN
    args := NULL;
    RETURN (JNI.NEW_OBJECT('HeapSize', '()V', args));
    END;
    -- Method: getTotalMemory ()D
    FUNCTION getTotalMemory(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER IS
    BEGIN
    args := NULL;
    RETURN JNI.CALL_DOUBLE_METHOD(FALSE, obj, 'HeapSize', 'getTotalMemory', '()D', args);
    END;
    -- Method: getMaxMemory ()D
    FUNCTION getMaxMemory(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER IS
    BEGIN
    args := NULL;
    RETURN JNI.CALL_DOUBLE_METHOD(FALSE, obj, 'HeapSize', 'getMaxMemory', '()D', args);
    END;
    BEGIN
    NULL;
    END;
    declare
    obj ORA_JAVA.JOBJECT;
    BEGIN
    obj:=HeapSize.new;
    message('Total memory '||HeapSize.getTotalMemory(obj));
    message('Max memory '||HeapSize.getMaxMemory(obj));
    END;
    Below procedure is for writing to Excel file.
    ============================================
    PACKAGE BODY UWWriteExcel IS
    -- DO NOT EDIT THIS FILE - it is machine generated!
    args JNI.ARGLIST;
    -- Constructor for signature ()V
    FUNCTION new RETURN ORA_JAVA.JOBJECT IS
    BEGIN
    args := NULL;
    RETURN (JNI.NEW_OBJECT('UWWriteExcel', '()V', args));
    END;
    -- Method: copyExcel (Ljava/lang/String;Ljava/lang/String;)V
    PROCEDURE copyExcel(
    obj ORA_JAVA.JOBJECT,
    a0 VARCHAR2,
    a1 VARCHAR2) IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(2);
    JNI.ADD_STRING_ARG(args, a0);
    JNI.ADD_STRING_ARG(args, a1);
    JNI.CALL_VOID_METHOD(FALSE, obj, 'UWWriteExcel', 'copyExcel', '(Ljava/lang/String;Ljava/lang/String;)V', args);
    END;
    -- Method: getSpreadSheetPara (Ljava/lang/String;)V
    PROCEDURE getSpreadSheetPara(
    obj ORA_JAVA.JOBJECT,
    a0 VARCHAR2) IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(1);
    JNI.ADD_STRING_ARG(args, a0);
    JNI.CALL_VOID_METHOD(FALSE, obj, 'UWWriteExcel', 'getSpreadSheetPara', '(Ljava/lang/String;)V', args);
    END;
    -- Method: openSheet (I)V
    PROCEDURE openSheet(
    obj ORA_JAVA.JOBJECT,
    a0 NUMBER) IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(1);
    JNI.ADD_INT_ARG(args, a0);
    JNI.CALL_VOID_METHOD(FALSE, obj, 'UWWriteExcel', 'openSheet', '(I)V', args);
    END;
    -- Method: getCellValues (IID)V
    PROCEDURE getCellValues(
    obj ORA_JAVA.JOBJECT,
    a0 NUMBER,
    a1 NUMBER,
    a2 NUMBER) IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(3);
    JNI.ADD_INT_ARG(args, a0);
    JNI.ADD_INT_ARG(args, a1);
    JNI.ADD_DOUBLE_ARG(args, a2);
    JNI.CALL_VOID_METHOD(FALSE, obj, 'UWWriteExcel', 'getCellValues', '(IID)V', args);
    END;
    -- Method: getCellValues (IILjava/lang/String;)V
    PROCEDURE getCellValues(
    obj ORA_JAVA.JOBJECT,
    a0 NUMBER,
    a1 NUMBER,
    a2 VARCHAR2) IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(3);
    JNI.ADD_INT_ARG(args, a0);
    JNI.ADD_INT_ARG(args, a1);
    JNI.ADD_STRING_ARG(args, a2);
    JNI.CALL_VOID_METHOD(FALSE, obj, 'UWWriteExcel', 'getCellValues', '(IILjava/lang/String;)V', args);
    END;
    -- Method: exportExcel ()V
    PROCEDURE exportExcel(
    obj ORA_JAVA.JOBJECT) IS
    BEGIN
    args := NULL;
    JNI.CALL_VOID_METHOD(FALSE, obj, 'UWWriteExcel', 'exportExcel', '()V', args);
    END;
    -- Method: copy (Ljava/lang/String;Ljava/lang/String;)V
    PROCEDURE copy(
    a0 VARCHAR2,
    a1 VARCHAR2) IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(2);
    JNI.ADD_STRING_ARG(args, a0);
    JNI.ADD_STRING_ARG(args, a1);
    JNI.CALL_VOID_METHOD(TRUE, NULL, 'UWWriteExcel', 'copy', '(Ljava/lang/String;Ljava/lang/String;)V', args);
    END;
    BEGIN
    NULL;
    END;
    declare
    obj ORA_JAVA.JOBJECT;
    BEGIN
    message('-1');pause;
    obj:=UWWriteExcel.new;
    message('0');pause;
    UWWriteExcel.copyExcel(obj,'C:\\excel\\CAT2009WS.XLS','C:\\excel\\CAT2009WS.XLS');
    message('1');pause;
    UWWriteExcel.openSheet(obj,0);
    message('2');pause;
    UWWriteExcel.getCellValues(obj,6,2,900);
    message('3');pause;
    UWWriteExcel.getCellValues(obj,7,2,911);
    message('4');pause;
    UWWriteExcel.exportExcel(obj);
    END;
    When the size of XL is more than 7Mb, after message(0) it will be display oracle error.
    From command prompt if we run the same java class file by passing -Xmx256m parameter we are able to write to big XL file.
    Can anyone tell me where I am wrong... Can we increase the JVM Heap Size from forms...

    I have a simular problem.
    Via Forms I call a Java class (import Java class -> PL/SQL class java method).
    For this specific process I need to set the Xmx java option...
    How do I do this ?
    Changing the java option for the Forms-OC4J in the EM doesn't help.
    Is there an other level where I can modify this ?
    Does the java process of the forms is the single process that exists ? How does he handles such java calls?
    Are that separed java processes ? threads ? ....
    Thanks !!!

  • Help please with webservice

    hello,
    i am trying to deploy a jar that have a stud it have been build with jdeveloper
    with a url .wsdl
    i have imported this to my form and when i try it using ocj4 works fine but when i
    move my forms to the app server it does not work. it does not give me any error either
    in the dir of <HORACL_HOME>/forms/java
    i have the jar that enclouses the webservice
    i have also modifyed the CLASSPATH in the default.env so that it is pointing to the
    but it does not work
    i have also signed the jar
    this is the code thar i have in the form
    declare
    idsesion varchar2(1000):=null;
    jowebservice ora_java.jobject;
    raisedException ora_java.jobject;
    begin
    jowebservice := gestioncim.new;
    Exception
    when ORA_JAVA.JAVA_ERROR then
    set_application_property(cursor_style, 'default');     
    message('No se puede llara al metodo java, ' ||ORA_JAVA.LAST_ERROR);
    return;
    --check for ORA-105101
    when ORA_JAVA.EXCEPTION_THROWN then
    set_application_property(cursor_style, 'default');     
    raisedException := exception_.new(ORA_JAVA.LAST_EXCEPTION);
    return;
    begin
    set_application_property(cursor_style, 'default');     
    info('Exception: '||Exception_.toString(raisedException));
    return;
    exception
    when ORA_JAVA.JAVA_ERROR then
    set_application_property(cursor_style, 'default');     
    info('No se puede llara al metodo java, ' ||ORA_JAVA.LAST_ERROR);
    return;
    end;
    when others then
    info(sqlcode||' '||sqlerrm);
    raise form_trigger_failure;
    end;
    the thing is that i have been reading lots and lots and i can not come with the solution
    please please help
    many thank in advance
    ana

    Hello Jan Carlin,
    Thank you very much for answering
    This is my classpath and I have /opt/forms10g/forms/java/wscim.jar;
    although when I log in the root is /export/home/oracle, do I need to put this dir in the classpath??
    CLASSPATH=/opt/forms10g/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEB-NF/lib/frmsrv.jar;
    /opt/forms10g/jlib/repository.jar;
    /opt/forms10g/jlib/ldapjclnt10.jar;
    /opt/forms10g/jlib/debugger.jar;
    /opt/forms10g/jlib/ewt3.jar;
    /opt/forms10g/jlib/share.jar;
    /opt/forms10g/jlib/utj.jar;
    /opt/forms10g/jlib/zrclient.jar;
    /opt/forms10g/reports/jlib/rwrun.jar;
    /opt/forms10g/forms/java/frmwebutil.jar;
    /opt/forms10g/forms/java/jacob.jar;
    /opt/forms10g/j2ee/home/lib/activation.jar;
    /opt/forms10g/j2ee/home/lib/ejb.jar;
    /opt/forms10g/j2ee/home/lib/jaas.jar;
    /opt/forms10g/j2ee/home/lib/jaxp.jar;
    /opt/forms10g/j2ee/home/lib/jcert.jar;
    /opt/forms10g/j2ee/home/lib/jdbc.jar;
    /opt/forms10g/j2ee/home/lib/jms.jar;
    /opt/forms10g/j2ee/home/lib/jndi.jar;
    /opt/forms10g/j2ee/home/lib/jnet.jar;
    /opt/forms10g/j2ee/home/lib/jsse.jar;
    /opt/forms10g/j2ee/home/lib/jta.jar;
    /opt/forms10g/j2ee/home/lib/mail.jar;
    /opt/forms10g/j2ee/home/lib/servlet.jar;
    /opt/forms10g/jdev/lib/jdev-rt.jar;
    /opt/forms10g/soap/lib/soap.jar;
    /opt/forms10g/lib/xmlparserv2.jar;
    /opt/forms10g/jlib/javax-ssl-1_1.jar;
    /opt/forms10g/jlib/jssl-1_1.jar;
    /opt/forms10g/j2ee/home/lib/http_client.jar;
    /opt/forms10g/lib/xmlcomp.jar;
    /opt/forms10g/forms/java/jdom.jar;
    /opt/forms10g/forms/java/xerces.jar;
    /opt/forms10g/forms/java/wscim.jar;
    /opt/forms10g/forms/java/cimjar.jar;
    /opt/forms10g/forms/java/gestioncim.jar

  • Need help for traping imported java bean exception

    hi everyone
    i have imported a java bean into my forms 9i using java importer utility which tries to rename a file on a give path(bean works fine when executed through sql client).
    i have problem when called from when button pressed trigger, it throws me an ("FRM-40735 and ORA-105101 NON ORACLE EXCEPTION") error.
    i have imported java.lang.exception class and constructed an exception handler to trap java exception in the trigger
    as
    EXCEPTION
         WHEN ORA_JAVA.JAVA_ERROR then
              message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
              --check for ORA-105101
         WHEN ORA_JAVA.EXCEPTION_THROWN THEN
              ex:= ORA_JAVA.LAST_EXCEPTION;
              message('Java Exception --: '||BIException.toString(ex));
              ORA_JAVA.CLEAR_EXCEPTION;
         WHEN OTHERS THEN
              message('error :'||SQLERRM);
    when i imported java.lang.exception i did not find any wrapper pl/sql function or procedure declared to read or get the error messages except for the functions named "new" ,my exception handler failed.
    so i tried with BIException which also fails to trap the error i have no idea about BIException and its usage with in forms ,Please do help me out with this issue ASAP.
    thanks in advance
    Rgds
    yash

    Hi,
    don't understand what the BIException is supposed to do in your code, can you try
         WHEN ORA_JAVA.EXCEPTION_THROWN then
         ex := ORA_JAVA.LAST_EXCEPTION;
         message('Exception: '||Exception_.toString(ex));
    where Exception_ is the imported java.lang.Exception package.
    Frank

  • Java Import

    I was trying to start an application (JFreeReport) with the use of Java Import. I have made a class that starts the application, by invoking a pl/sql wrapped method from that class. That I got when doing the Java Import. I want to start the application. When I run this locale with my locale OC4J it starts up alright and everything works fine. But when deploying the Forms .fmb and running at a remote server I get ORA-105101 Error. All jar files that needs to be are added to the classpath in the default.env file.
    What is the reason that this does not work when running at a remote server? Is it not possible to start an application with Java Import when the server is remote? What type of error is ORA-105101?
    Thanks,
    Anders

    Anders,
    I suggest to add some debugging print outs to your code and see where it fails. Also you can look up teh Forms9i demos on how to display Java error is Forms.
    ORA –105100 and/or ORA-105101:
    These errors are almost always caused by incorrect environment settings. Please verify the following:
    1.     Ensure that all required Java libraries are in the FORMS_HOME/forms90/java directory.
    2.     Ensure you have the following set in your environment. For the Forms Listener
    Servlet this should be set in the default.env:
    CLASSPATH= ... <your runtime libraries here>
    Frank

  • ORA-105100 Import Java Class (Not a class path error)

    i have a problem while using java imported class
    java class
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    public class externalCall{
    public static String Run(String One, String Two){
    String commandOutput = null;
    commandOutput = concat(One,Two);
    return commandOutput;
    public static String concat(String One, String Two){
    return One+Two;
    the problem is that when using externalCall.run from oracle forms it is generating
    error ORA-105100 err.
    This is not a class path error as we are able to access concat function of java
    class using Import Java Class.
    Any Clues?...
    Best Regards
    Ashish

    ORA-105101 when using Java Importer

Maybe you are looking for

  • List View Report with pipelined function in Mobile application and ORA-01007: variable not in select list

    Hi! I have a problem with List View Report in mobile application (theme 50 in apex) after updating to apex 4.2.2. I created Report -> List View. I used select from pipelined function in Region Source. Then when page is running and submited three time

  • Lookup in tranformation from different Cube.

    Hi, I need to take look up for getting additional data  from Cube into the transformation. I know it look up is done from ODS and Master data and have already done it. But I want to confirm that same thing is possible to get look up from Cube.  If an

  • How do I embed a multi page pdf on one page in indesign?

    I'm building an interactive portfolio to put on an ipad to take to an interview. I've got 6 title pages and i'm trying to create sub-pages and embed multiple page pdfs into them so the user can turn the pdf pages within the portfolio page...if that m

  • RE: RE : Size of Objects

    According to Forte, the size of serialized object is smaller that object size in the memory (in particular due to overhead necessary to support garbage collector). There is a way to calculate object size more or less precisely, but it fairly complex

  • Colors Don't Match

    When i print a color picture from iphoto or from Photoshop CS3 the colors dont match. Am i only supposed to use color lok paper? I'm using HP Premium Plus Glossy paper. My software is up to date and I did a verify and repair in the color sync utility