Mixing Java with Oracle Forms 11g

What's going on is I wrote a program for work that allows the user to upload a document from their computer onto the database and then download it back later. Now I have to take that and integrate it into a button in Oracle Forms because our actual program runs from Forms. I imported the jar into the form and wrote a button with code I found online (modified slightly for my own use of course):
DECLARE
     jo ora_java.jobject;
     rv varchar(100);
     ex ora_java.jobject;
BEGIN
     JO := Upload.new;
     RV := Upload.startUploadPage(JO);
EXCEPTION
     WHEN ORA_JAVA.JAVA_ERROR then
          message('Unable to load Upload page, ' || ORA_JAVA.LAST_ERROR);
     WHEN ORA_JAVA.EXCEPTION_THROWN then
          ex := ORA_JAVA.LAST_EXCEPTION;
          message('Java Error');
END;
but when I tried to compile it I got:
Error 306 at line 8, column 8
wrong number or types of arguments in call to 'STARTUPLOADPAGE'
the java method that is supposed to be called here is:
public static String StartUploadPage() {
new Upload();
return Upload.StartUploadPage();
I did get from someone that apparently as written my code wont work anyway because apparently the jar importer in Forms doesnt transfer UI (ie Java Swing) and that in order to get the UI to transfer I would have to write a JavaBean on top of my code... but 1 I have no clue what a JavaBean is and the research I have done so far about it has just confused me more... and 2 I'm not sure what that has to do with the error considering that the method that is supposed to be being called by the line that threw the error doesn't have any JFrames or Java Swing of any kind connected to it... there is a tiny bit of Swing in the class to open up the first form that has the buttons for upload and download in it but that is all. I have 4 classes in that jar... 3 are the various Java Swing pages and have the absolute minimum logic in them possible... and the 4th one is the one that starts everything going, has the main class, and any serious logic that needs to be done the needed values are passed to that class and that class does all the work... that 4th class is the one that is being called in the PL/SQL. If it isnt any trouble could I maybe get a little help from someone on:
1. How to write a JavaBean to allow my program to work the way it is supposed to in Forms and
2. Why I am getting this error and how to make it go away

Simplemente deberias utilizar la webutil, no hace falta programar nada nuevo, con la webutil puede transferir de un puesto cliente a la database, o viceversa.

Similar Messages

  • Using jfreechart with oracle forms 11g

    Hi everybody,
    I'm using jfreechart with oracle forms 11g to continue having graphs in my application since i'm migrating from forms 6i. I've already got it working and it's great. Just have one problem left. I don't know how to change the axis labels. In Bar charts, it comes with "Values" in y axis and "Category" in x axis by default. I wanted to change that or make it dissapear. Anyone knows how to?

    I've never used the jFreeChart, but according to their website you can use the "setLabel" method to set the label for an axis. Check out Axis (JFreeChart Class Library) for more information.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Use of Times ten database with Oracle Forms 11g

    Hi,
    We need to use some caching / pre-fetching solution with Oracle Forms 11g.  Is there a possibility that Oracle Forms 11g can be used with Times ten database.
    Regards,

    We have never tested TimesTen with Forms 11g but we suspect there are issues that may prevent if from being used.
    Sorry.
    Chris

  • Is it Possible to connect oracle 10g with oracle forms 11g?

    Hi,
       I have installed Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 and Oracle 11g forms and reports....
    My question is
    Whether i can develop application using oracle forms 11g and using oracle 10g as backend connection......
    If Possible then how to configure it......
    Thanks.

    That would depend on the exact version of Forms 11g you are referring to;
    this document: http://www.oracle.com/technetwork/developer-tools/forms/oracle-forms-111210certmatrix-1886127.xls
    is for forms 11.1.2.1 and indicates database 10.2.0.4 is certified with this version of forms. For other Forms versions this might be different (I don't know as I didn't look it up).
    You whould do the SQL*Net config like you'd do it on any other oracle client:
    Tnsnames.ora - Oracle FAQ
    Sqlnet.ora - Oracle FAQ
    except for reports where in the opmn.xml the TNS_ADMIN variable is set for the reports servers; so you'd have to place your config files under $INSTANCE_HOME/config as well.
    TNS ADMIN - Oracle FAQ
    cheers

  • Is it possible to use DVT with Oracle Forms 11g?

    Hi,
    I have posted my question on Oracle Forms forum but I didn't get answere regarding dvt usage in Oracle Forms.
    Now I try it here.
    Oracle Forms 11g and charts / graphs
    ====
    one of our customers has a forms 6i applications including oracle graphics and is thinking about upgrade to forms 11g.
    Oracle graphics has been desupported with 6i and with 9i Oracle BI beans has been recommended.
    Forms 10g is the terminal version for Oracle BI beans too (http://www.oracle.com/technetwork/middleware/bbi-beans/overview/oraclebibeanssod2008-129560.pdf).
    What's the recommended technology for graphs/charts in Forms 11g?
    Is it ADF DVT?
    If yes, are there examples how to call them from Forms 11g?
    =====
    regards
    Peter

    Hello Shay,
    thank you very much for the link.
    I wonder if there any plans from Oracle to provide and support a DVT wrapper in next versions of Oracle Forms 11g
    As the customer project is planned for Q2/2011 we still have some time and hope for this :-)
    regards
    Peter

  • Oracle Reports In Oracle Forms 11g Parameter problem.

    Hello techies,  
                I am using Weblogic server 10.3.5 with oracle forms 11g at windows 7.I have a report that is Bar_code.rdf.It has two parameters as:
    P_1---->character type---->accepts the options(barcode generated or barcode not generated)
    P_2---->Number type------->accepts the subgroupitemId.
    This report is well working with oracle report builder. Now I tried to run it from my oracle forms.It runs but it does not accept Parameter P_2. I have used
    sParms := 'P_1='||:L_BAR||' P_2='||TO_NUMBER(:TXT_ITM_GRP);
    set_report_object_property(roRepid,report_other,sParms||' paramform=yes');
    set_report_object_property(roRepid,REPORT_SERVER,sReportServer);
      v_rep := RUN_REPORT_OBJECT(roRepid); 
    sJob := SUBSTR(v_rep,LENGTH(sReportServer)+2);   --
    But there is a parameter form is shown but when i click submmit query the,,,,there is
    Error 500--Internal Server Error
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.5.1 500 Internal Server Error
    The server encountered an unexpected condition which prevented it from fulfilling the request.
    please give me the solution
    thank you
    regards
    aaditya

    Hi
    are there character symbol appeared in your parameter ?
    i've suffering for some unexpected error for parameter value end up with slash , like D:\temp\   ....
    and oracle sr (support) says that with workaround mechanism (add additional slash like D:\temp\\ ) they have not plan to fix this issue .
    hope this helpful for you.

  • Connecting user Oracle 10g to oracle Forms 11g

    hi all , please i need help :
    my problem is : i have created new user and the tables with oracle database 10g express edition , my problem now is how to connect with oracle Forms 11g to connect with this user and the tables . where i should copie "tsnames.ora" ?? how to modifie tsnames.ora ?? if you have any tutorials or video send to me please . thank's all

    Be aware that the Express editions are not supported for use with Forms.
    As for the tnsnames.ora, for Forms 11, this can be found in the INSTANCE_HOME\config

  • How to use Java Beans in Oracle Forms 11g at 64 bit windows7

    Hello Experts,
                  I am using Oracle forms 11.1.2.2.0 with weblogic 10.3.6 generic at windows 7 64 bit.
    My java version is jdk1.7.0_51.
    Now I have a htmlbutton.jar (which is for bean item in oracle form and this jar file works well for oracle forms 11g 32 bit windows 7 environment).
    I have takken steps:
    1:-Put jar file in home\java folder.
    2:-add this jar file into archive in formsweb.cfg.
    3:-Add this this jar file(which is in my home- java folder) in form_class path in registry.
    Now when I try to locate this jar file in my oracle form.There is no such jar file.what are the steps to use this jar file in oracle forms bean item.
    Please told me what is wrong here.
    thank you
    regards
    aaditya.

    It is unclear where you are having a problem.  Is your issue at runtime (when the form runs in the browser) or when working in the Builder on the form?
    Also be aware that you will need to sign your jar and include some new manifest entries.  Refer to the Java 7u51 documentation and blogs that discuss the changes.
    https://blogs.oracle.com/java-platform-group/entry/new_security_requirements_for_rias
    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html

  • Integrating Oracle Forms 11g with JavaScript - keystrokes support issues

    This article
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/forms/11g/jsinteg/formsjsinteg/setup.htm
    shows the JavasriptIntegration with Oracle Forms.
    I am trying to navigate out of Oracle Forms Java Applet with separateFrame=false to access an external menu using JavaScript. I can't find a way to navigate out of Oracle Forms. My focus stays inside the currently opened form and the applet does not lose the focus.
    I need to access any external UI component by shifting the focus form the Java Applet to that components using only key strokes.
    Thanks for your help

    Vikas,
    Sorry for the delay. I am still investigating this. In general, it would appear as I mentioned. If the form that contains the code specific to the event monitoring has not been run, then it cannot be executed. We are trying to get clarification on the definition of "scope" in this case. In the mean time, one alternative might be to subclass the related triggers/pu and include them in all of the forms where you want them to fire. Currently I am suspecting that scope refers to a relationship to forms currently running. For example if you have form A, B, and C running a scope of "form" might suggest that the events are only monitored if the current form includes the necessary code. However, if "application" then even if the form containing the necessary code is not the current form, the necessary code would fire anyway. Again, I am trying to get more clarification, but it is slow coming.
    If this is truely an urgent issue, I encourage you to create a Service Request with Oracle Support.

  • How to invoke crystal reports from Oracle forms 11g R2 along with passing p

    How to invoke crystal reports from Oracle forms 11g R2 along with passing parameter to it.
    how to pass parameters to crystal report, please help.

    how to pass parameters to crystal report, please help.This would entirely depend on crystal reports and you might find informations on crystal reports related communities more likely...I for one have seen crystal reports the last time about 12 years ago. And even back then I simply acknowledged it's existence instead of working with it.
    Maybe crystal reports can be invoked via a URL call which would make it simple as you'd need simply build an URL and show the report using web.show_document. But that's pure speculation. Also you might not be the first with this requirement, so the solution to your problem might be right under your nose and just a little google search away ;)
    cheers

  • Error while installing ofm_frmrpts_win_11.1.2.0.0_32 Oracle Forms 11g

    Dear Oracles,
    I am facing problems while installing Oracle Forms 11g
    I read many documentations - and follow many pages during installing - but the same error appears every time
    I installed Oracle Web Logic Server wls1035_generic.jar perfectly, and then create a web logic domain through Fusion Middleware config wizard
    and test the web server through
    http://localhost:7001/console
    http://img811.imageshack.us/img811/8558/consoleto.jpg
    and then installed Oracle Forms and Reports 11g R2 using ofm_frmrpts_win_11.1.2.0.0_32 3 - Disks
    I chose Install S/w only - it was installed successfully
    then I opened Configure Classic instance and follow wizard
    It stopped at creating domain
    every time i try it.
    with images to show my problem
    http://img404.imageshack.us/img404/4131/ofmfrmrptswin11120032.jpg
    Iam using win XP-32 bit with 2 GB Ram pc and Oracle DB 11g
    and this is the Log
    error part
    [2012-11-07T22:17:59.937-08:00] [as] [NOTIFICATION] [] [oracle.as.provisioning] [tid: 13] [ecid: 0000JfUeR^Z8XrWjLxVK8A1GaorA000004,0] reportStartConfigAction: EXIT........
    [2012-11-07T23:57:03.859-08:00] [as] [ERROR] [] [oracle.as.provisioning] [tid: 13] [ecid: 0000JfUeR^Z8XrWjLxVK8A1GaorA000004,0]
    [2012-11-07T23:57:03.859-08:00] [as] [ERROR] [] [oracle.as.provisioning] [tid: 13] [ecid: 0000JfUeR^Z8XrWjLxVK8A1GaorA000004,0] [[
    oracle.as.provisioning.util.ConfigException:
    Error while starting the domain.
    Cause:
    Starting the Admin_Server timed out.
    Action:
    See logs for more details.
         at oracle.as.provisioning.util.ConfigException.createConfigException(ConfigException.java:123)
         at oracle.as.provisioning.weblogic.ASDomain.startDomain(ASDomain.java:3149)
         at oracle.as.provisioning.weblogic.ASDomain.startDomain(ASDomain.java:3039)
         at oracle.as.provisioning.engine.WorkFlowExecutor._startAdminServer(WorkFlowExecutor.java:1645)
         at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:635)
         at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:391)
         at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
         at oracle.as.install.classic.ca.standard.StandardWorkFlowExecutor.execute(StandardWorkFlowExecutor.java:65)
         at oracle.as.install.classic.ca.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:26)
         at oracle.as.install.classic.ca.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
         at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:124)
         at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:339)
         at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:87)
         at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:104)
         at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
         at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:63)
         at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:158)
         at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
         at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:83)
         at java.lang.Thread.run(Thread.java:662)
    [2012-11-07T23:57:03.859-08:00] [as] [ERROR] [] [oracle.as.provisioning] [tid: 13] [ecid: 0000JfUeR^Z8XrWjLxVK8A1GaorA000004,0] [[
    oracle.as.provisioning.exception.ASProvWorkflowException: Error Executing workflow.
         at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:686)
         at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:391)
         at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
         at oracle.as.install.classic.ca.standard.StandardWorkFlowExecutor.execute(StandardWorkFlowExecutor.java:65)
         at oracle.as.install.classic.ca.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:26)
         at oracle.as.install.classic.ca.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
         at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:124)
         at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:339)
         at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:87)
         at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:104)
         at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
         at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:63)
         at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:158)
         at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
         at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:83)
         at java.lang.Thread.run(Thread.java:662)
    ]]

    In addition to Craig's feedback consider the following:
    If you did not read the system requirements and installation guide, you likely will have problems.
    http://docs.oracle.com/html/E25460_01/r2_fr_requirements.htm
    <blockquote>1. Does your machine have a static IP address and/or the Windows Loopback adapter installed and configured?
    2. You indicated that you have 2gig of RAM. This is the minimum requirement just to install the product. It is very unlikely that you will be able to comfortably use the product with 2gig of RAM. Likely the performance will be so slow that processes will timeout before they can successfully start. You can actually see this occurring already - look carefully at the log info you posted.
    Further, if you are also attempting to run an 11g database on the same machine, this will never happen. Having only 2gig of RAM will never support running the DB and the components of FMw, and the Operating System.</blockquote>

  • "Bad Applet class name" error while recording on Oracle Forms 11g through OpenScript (JRE 1.7.0_17)

    Hi,
    I am trying to record automation functional test script on Oracle Forms 11g using OpenScript.
    Able to open the browser, but after accessing application URL, getting application error as "Bad Applet class name"
    Java Plug-in 10.17.2.02
    Using JRE version 1.7.0_17-b02 Java HotSpot(TM) Client VM
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    SSV dialog is suppressed........
    cracked oracle.forms.engine.Main
    Loading cached Forms Jars ...
    Is this version (Oracle forms 11g, JRE 1.7.0_17) supported by OATS-OpenScript ?
    Please advise if there is any work around here.
    Thanks.

    From the last OATS release notes available in the C:\OracleATS\docs directory:
    4.1 Oracle Functional Testing/OpenScript
    Oracle Functional Testing’s OpenScript scripting platform has the following system
    requirements:
    ■ Operating System (32-bit and 64-bit versions): Windows XP, Windows Vista,
    Windows 2003, Windows 7, Windows 2008, Windows 2008 R2.
    ■ Memory: Minimum 1 GB
    ■ System: x86, 32-bit or 64-bit processor, 2.6 GHz or faster
    ■ Disk Space: 4 GB minimum
    ■ Browser: Internet Explorer 7.x, 8.x., 9.x; Firefox 3.5/3.6, 6.x, 10; Chrome 27+
    (playback only).
    ■ Java Runtime Environment: JRE 1.6 minimum (up to build 38), JRE 1.7 (up to build
    11) .
    So basically, it's not supported... Can you try with another JRE version?
    As always don't forget to run OpenScript as administrator on W7/8 or equivalent
    JB

  • Copy/Paste functionlity is not working in oracle forms 11g

    Hi All,
    We are using custom built big application (oracle 11g/forms 11g).
    1. And few user are not able to copy/paste from oracle forms 11g to winword.And its random sometime they can ,sometime they can't .
    2. If they have problem means they have copy/paste issue and (When we close application and run it again it is working fine)
    3.it's random we are not able to re-produce in development environment.
    What i noticed both user have problem and both are using left hand mouse ,generally we use left/right they are using right/left.
    Here the Environment Detail:
    Java runtime :1.6.0_26
    Weblogic server
    oracle forms 11g
    So just wondering is there any changes required. Seniors/Guru please advise.
    Thanks!

    It is very important to make clear which direction you are going. If you are not able to copy from Forms and paste to an external application, this could be any one or more of the following:
    1. There is a problem with the JRE. Consider uninstalling ALL currentlly installed JREs and install the latest supported version 1.6.0_33
    2. There may have been an issue with the Forms version you are using. Be sure you are using 11.1.1.6 or 11.1.2.0. If not, install the latest patch.
    3. The JRE was unable to properly identify or store the digitial signature in the Forms jar file or one which you included (custom code). If you are using any customer jar files, ensure that they have been properly signed. Also be sure that JRE cache is being stored on the local client machine and not a remote location as this is not supported. If you have not altered the default, the cache is stored in the user's home directory under Application Data (AppData for Win7)
    4. Could be a mouse driver issue. Go to the mouse vendor's web site and get the latest driver for that mouse. Do not use the MS drivers.
    Example:
    C:\Users\<USER NAME>\AppData\LocalLow\Sun\Java\Deployment\cache
    So, recommendations:
    1. Uninstall all JRE versions currently installed. Install 1.6.0_33
    2. Ensure that you are using 11.1.1.6 or 11.1.2.0
    3. Clear the JRE cache. To do this close ALL open browsers and open the Java Control Panel. Look on the General tab for Temporary Internet Files > Settings > Delete Files > Ok
    4. Install the latest mouse driver.
    5. Retest
    Edited by: Michael Ferrante (Oracle) on Jul 25, 2012 2:58 PM

  • Active x controls in oracle forms 11g

    I have read a post regarding, the embeding of active x controls in oracle forms. Can anybody explain it in detail, tat how it can be done on Oracle forms 11g. My database is also 11g. And please explain how to draw activex control on canvas, coz i cant find any icon related to it on tool palette. please help me...
    Regards
    Vibin

    Vibin,
    Welcome to Oracle Forums!
    Please acquaint yourself with the FAQ and forum etiquette if you have not already done so.
    >
    I have read a post regarding, the embeding of active x controls in oracle forms.
    >
    You must have read some post of a client-server version of Forms. It is always better to post the link that you are referring to
    Can anybody explain it in detail, tat how it can be done on Oracle forms 11g. My database is also 11g. And please explain how to draw activex control on canvas, coz i cant find any icon related to it on tool palette. please help me...In web forms you use (Java) Beans.
    Cheers,

  • Oracle forms 11g running forms on internet explorer error

    Hi , this is abhishek I am new to oracle forms 11g . My question is that when I run the forms 11g on internet explorer it shows an error . The error is too many tries.
    first I like to clarify that before running the forms i start the weblogic server ,along with admin server for weblogic and opmn managed components, i give the user name and password to start the weblogic server, everything starts smoothly . even I have jre 1_6_29 installed to start the servlet . Main problem starts when the java runs the internet explorer browser then a box appears asking for user name and password and database connect string , then after putting the username and password it again asks for the username and password.It happens three times and after that an error appears in a dialog box which shows too many tries . I also checked the net configuration asistant with the local net service name configuration there it shows the service name which is orcl.Home and then TCP --->Host name is localhost with 1521 as standard port number --> yes perform the test and the result is written connecting test successful . what is wrong with the instance , the http listener is working perfectly then why this error is coming, is there something to do with the browser , but the browser is supporting java very well .. please help

    I have found the file but it does not have any path except forms_path,oracle_home,webutil_config,etcCurious, my default.env had the following default TNS_ADMIN entry:
    # TNS Entry to locate the database
    TNS_ADMIN=D:\Oracle\Middleware\asinst_1\configI modified this entry to point to the location where my tnsnames.ora and sqlnet.ora files are located. I use a generic location and share them accross installed Oracle products rather than maintain seperate copies of these files in each Oracle Home. For example, I commented out the original entry and added a new one.
    #TNS_ADMIN=D:\Oracle\Middleware\asinst_1\config
    TNS_ADMIN=D:\oracle\tns_adminCraig...

Maybe you are looking for