Issue JavaBeans with Forms

Hello Everyone,
I would like to know if someone can tell me what i'm wrong.
I have tryed JavaBean AWTFileDialog to see how it's works inside a Forms.
When i click button, the FileDialog open, everything looks good.
I try to create a JavaBean with Eclipse.
My Code
package oracle.forms.fd;
import java.awt.Component;
public clas myJB extends Component {
      public string getTextSample() {
           String sText = "";
           sText = "foobar";
           return sText;
I export to jar file in my oracle form directory.
edited my formweb.cfg file to add myJB jar file like i've done with AWTFileDialog.
but when i try in my form, the return value are null
my form code.
When-new-form-instance trigger
FBean.Register_Bean('CTRL.BEAN', 1, 'oracle.forms.fd.ADLog');
and i have a button to get the value like this
cV_co_retr := FBean.Invoke_Char('CTRL.BEAN', 1, 'getTextSample');
what i've done wrong?
I miss something?
thanks for help.

Hi, thanks again for your help.
I use JRocket 1.6.14 R27.6.5 32 bit, my Forms Developer version is 11.1.1.2.0
i would like to sign my jar file, but i really start with this kind of dev.
i've take a look at this link
http://docs.oracle.com/javase/tutorial/deployment/jar/signing.html
when i try the
jarsigner jar-file alias 
i get this error about unable to load .keystore file (unable to find specified file)
how i can create keystore file? with something like this ? https://www.sslshopper.com/article-most-common-java-keytool-keystore-commands.html
keytool -genkey -alias mydomain -keyalg RSA -keystore keystore.jks -keysize 2048
Does that mean i need to resign my jar on each domain?
Thanks ..
EDIT : I think i miss something, i have created my keystore file and compiler my jar with jar -cvf myjava.jar myjava.java
Does it's possible it's because i don't have JInitiator? if i try with any other jar from this site http://forms.pjc.bean.over-blog.com/ all works good, if i try with my jar file, nothing woks.
i have compiled created java from pjc.beans.over-blog and the jar stop working.
so i'm really lost, what i'm doing wrong to create my jar file.
i have tryed the 3 files given by FrancoisDegrelle to create keystroke at this link https://forums.oracle.com/thread/2154907 and it sound good, but my jar not working again.
thanks
Ce message a été modifié par : Neimad

Similar Messages

  • Issue with form based Authentication in three tier sharepoint 2013 environment.

    Hi,
    We are facing issue with form based Authentication in three tier environment.
    We are able to add users to the database and in SharePoint.
    But we are not able to login with created users.
    In single tier everything working fine
    Please help , Its urgent ... Thanks in advance.
    Regards,
    Hari
    Regards, Hari

    if the environments match, then it sounds like a kerberos double-hop issue
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Report with Form Passing date to form from report issue

    Hi All ,
    I got stuck up in the below issue .Can anyone point out the issue behind it and how to get rid of this.
    I have created a report page with form page .The report page have 2 column identified as conjugate primary key.the col1 is varchar2 and col2 is date .
    The report page have one link on col1 field which is passing the Item_value for both col1 and col2 to form page .
    In the DB level the col2 data type is date (for e.g : 26/07/2007 07:08:56) .But the probem is when we are clicking on the link of col1 it is displaying error like Error like ORA-01403: no data found .
    But if the data in DB is only in format of DD/MM/YYYY removing the timestmap the link is working fine and returing data for other fields in the form page .
    Could anyone pls pointed out the problem and let us know the issue.
    Thanks in advance.
    Regards,
    Deba

    Hi Deba,
    I suppose your problem is due to the : in the time.
    You're passing these values with the url I suppose? Have a look how APEX generates/constructs the url, it uses : to separate things.
    I'm not sure why you want a date in a Primary Key?
    Thanks,
    Dimitri

  • Issue with Form Editor, Payslip

    Dear All,
    I have an issue in Salary Slip. I am making my own pay slip in form editor and I have made 4 windows for displaying 4 different type of allowances and deductions but when I call the value in window from wagetypes in RT they come up as multiplied by 10. For example, (Please note that I am in Oman and local currency is OMR that uses 3 places after decimal for example 20.300 OMR) An employee has basic pay of 1500.700/- OMR it is coming up as 15007.00/- OMR. The amount in RT is coming fine as 1500.700/- OMR, I have checked it. When I call a wagetype in a single field the value comes out fine so the issue is with values displayed in the Windows.
    Can anyone tell me whats going on???
    Regards,
    Ahsan Zaidi.

    Hi Bala,
    It is already mapped correctly. If I enter a single line Text in HTML Editor, I am getting the same Text after Parsing. But If I enter multiple lines, spaces, new lines, etc., then the Problem.
    Thanks||
    Ashok M.

  • JavaBean with Oracle Forms

    How can I JavaBean with Oracle Forms 10g. I attempting to use graphics (Aircraft Image created using SVG) interactively with Oracle forms. Any sample code to lead me in the right direction would be helpful.

    How can I JavaBean with Oracle Forms 10g. I attempting to use graphics (Aircraft Image created using SVG) interactively with Oracle forms. Any sample code to lead me in the right direction would be helpful.

  • Urgent Help needed : Connecting Access 2000 with forms 6i

    Dear friends,
    I am really struggling to solve this connection issue. I am working with forms 6i, oracle 8i, in Windows XP pro environment. Developing programs using oracle 8i tables is ok, but there are tables in Access 2000, which I have to add the program that I am developing. The things I have done are
    - I have already tables in MS Access databse.
    - I Installed ODBC for microsoft and for Oracle as well(which . I added the MS Access Database there and I can perfom SQL from Oracle ODBC.
    - I also installed OCA for developer from the CD.
    From this point I followed the instructions in Developer Help menu and I was not able to connect and still trying, I will appreciate if anyone provide me sometips. Thanks in advance
    Best Regards

    Hi,
    I know the bad solution. But anyway, I'll tell you in any kind of help. I also had an AccessControlException when I started a RMI client program using JFileChooser. I rewrote policy files again and agin, but in vain. The last and ultimate method I did was remove the RMISecurityManager. This is obviously dangerous in the Internet, but if you use your application in the intranet or in some kind of safe environment. There would be no problem.
    Hope this could be any kind of your help.

  • How to use javabean in forms e.g.Jcalender in forms?

    hey all....
    I am using FORMS 10G and java plug-in 1.4.2 for adding javabean in forms and fallowing changes
    1) Installed JRE 1.4
    2)copied Jcalender.jar in /forms/java
    3)edit /forms/server/formsweb.cfg as fallows
    baseHTMLjpi=basejpi.htm
    archive=frmall.jar,Jcalender.jar
    jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_06/index.html
    jpi_classid=clsid:CAFEEFAC-0014-0002-0000-ABCDEFFEDCBA
    jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-win.cab
    jpi_mimetype=application/x-java-applet;jpi-version=1.4.2
    4)load module Jcalender.fmb in form builder
    5)Register the path of 'Jcalender.jar' file where it is stored, in 'FORMS_BUILDER_CLASSPATH'
    5)import java class 'Jcalender.jar' from Program in menu bar
    6)Then it give an exception
    Importing Class oracle.forms.fd.Jcalender...
    Exception occurred: java.lang.UnsupportedClassVersionError: oracle/forms/fd/Jcalender (Unsupported major.minor version 49.0)
    help will be appreciated..plz
    Thank in advance..

    Hi..
    Thanks 4 ur suggestion.
    I am using forms 10.1.2.0.2.i am compiling it on my local m/c.
    Jcalender is not working but the method of all javabean is almost same.
    i can use laf.jar with template 'laf_template.fmb.
    will u plz tell me the steps to use javabean(with plugin ) and suggest the version.
    thanks a lot. Expecting reply..
    bye..

  • Static/Dynamic PDF problem with Forms 7.0

    Hi all
    I wonder if anyone has an answer to this?
    I'm having problems with getting the instance manager to work correct in a couple of forms. It works great if I preview in Designer (8.1) or render through ES 8.2, but since we haven't upgraded our production environments yet, I'm stuck with Forms 7.0 there. And when I try to render with that, the form is simply not working as it should...
    My guess is that Forms 7.0 chooses to make the form static instead of dynamic, but how to change this behaviour from the xdp? I've checked all the options of making it a dynamic xdp via Forms->Properties and checked just about everything I can come up with, but it's simply not working right now... anyone with ideas?
    What I'm trying to do is to hide subforms depending on what the user has chosen in a different form (html), so that the user won't see irrelevant data. It's been done before but now it seems like Forms 7.0 wants to run the forms static always.
    I've contacted Adobe support for a week ago but still haven't got anything from them leading me the right way. That's the reason I'm now asking here if anyone has any good idea...
    A bit more information about what I've tried:
    When I set min instances to 1, they are all visible but then they don't hide.
    If I don't set minimum instances to 1, they don't display at all in forms 7.0 when choice Repeat subform for each item is set.
    Using initialCount set to 1 do no good.
    Doesn't matter if I use setInstances, addInstance or removeInstance as far as I've been able to see. I have also tried using presence = "hidden"; but with no luck.
    If the prefill xml file is using appropriate xml syntax, it shows correct number of subforms but since I also wants to hide irrelevant subforms, it's not an acceptable solution.
    Thanks in advance for any tips.

    Yes. I could add an "Of course" but it has happened before that it's something that simple. Been scratching my head for at least 4 hours just today and at least the same amount of hours before so I think I've narrowed out all the simple stuff but I might have missed one..
    Any more tips? One strange issue is the fact that the form behaves different if the prefill xml file is structured in different ways. Nothing to do with prefilling, just how the PDF itself behaves.

  • Need help with Forms 6 on 11g

    Hello all,
    I wonder if anyone has come across this issue. I'll try to explain this as best as I can. We just migrated/upgraded our database from a SUSe9 (32 bit) Oracle 9.2.0.7 configuration to a Redhat 5.3 64 bit. We were running Oracle Forms 6 on certain desktops which connected fine against our version 9 databse. I am now experiencing the following error message after I enter my user ID, password and Database: ORA-02248: Invalid option for ALTER SESSION. Now, I may be facing the issue of an outdated forms application trying to interface with 11g. I heard this version 6 did work on Oracle 10g, but some folks may be having issues on 11g, like myself. Any input or suggestions would be appreciated.
    Thanks,
    Rob

    As Jan Carlin noted, it is not a certified combination (using 6i against 11g) and I hope you understand what the consequences are if you are using a non-certified combination in a production environment.
    But, if you really really want to use 6i(with ps 18) against the 11g database server, the answer is YES it is working with the following workaround. I believe I am the first one found and reported the issue on OTN when I was testing our 6i and 10gR2 forms application against the 11g database server. The issue is also applicable to 10gR2 forms against 11g database as well as 6i forms.
    Here is the workaround:
    ==============================================================
    Oracle 11g database has a new parameter
    SEC_CASE_SENSITIVE_LOGON (case sensitive password enabled for logon) - default is
    TRUE. Forms built-in "OPEN_FORM (...SESSION)" uses password in capital letters by
    default. There are two workarounds that solves this problem with Forms agains 11g
    database server. Either use the Oracle sqlplus command (login as system): alter user <your OraUser>
    identified by YOUR_PASSWORD (use your own Oracle user name and password - be careful to use capital
    letters for the password) or set the SEC_CASE_SENSITIVE_LOGON database parameter to
    FALSE (do not forget to change the parameter for the spfile as for the current session). This
    parameter can be changed by using the Oracle Enterprise Manager GUI (refer to your Oracle
    database server documentation for details).
    Hope this proves useful.
    R/ Zafer

  • Weblogic Server upgrade along with Forms & Reports

    Hi Gurus,
    I would need some help on upgrading one our Weblogic server from 10.3.2 to 10.3.6. Also, we have forms & reports ( version: 11.1.1.2 ) configured on this server and we would have to upgrade this to version: 11.1.2.1
    Can you please help me or point me to a good document to do this.
    I am a DBA and my weblogic experience is very little.
    Thanks
    Prakash
    Edited by: 1004698 on May 8, 2013 4:52 AM

    Hi Prakash,
    First, very smart decision to move to 11gR2 Forms - performance is much better in 11gR2. Customers i've worked with, are very happy with it compared to 11gR1.
    Now, if you want to upgrade from 11gR1 (11.1.1.2) to 11gR2 Forms (11.1.2.1), I would do a new install. Simply because, there is no simple/straight-forward Architecture upgrade path from 11gR1 to 11gR2 Forms. And the installation will also be a clean isntall. Don't worry about your forms/reports source code, you can just recompile no problem in 11gR2 Forms.
    If you want to do a re-install heres some things to consider:
    1.) Update and/or Install an Oracle certified JDK - you can verify the correct JDK in the certification matrix provided by oracle: http://www.oracle.com/technetwork/developer-tools/forms/oracle-forms-11gr2certmatrix-519680.xls
    2.) Verify your OS is certified with Forms 11gR2
    3.)Install WLS in a new middleware Home.
    4.) At his point, you should install the Oracle Forms 11gR2 Binaries Home in your new 10.3.6 Middleware Home.
    5.) Optional: If you want the same exact ports as 11gR1 Forms installation - you'll have to shutdown all the 11gR1 Forms/Reports processes- OPMN Processes, WLS_FORMS, WLS_REPORTS, AdminServer.
    5.) Run the Forms 11gR2 Configuration Wizard to install and configure a new Forms 11gr2 domain.
    6.) After the configuration wizard completes successfully:
    - Migrate over your formsweb.cfg/env settings
    - Migrate ORACLE_HOME customizations
    - Definitely install/configure webutil components
    - Migrate over any other additional customizations
    If you run into any weird issues, check out my companies knowledge base, its full of installation knowledge: http://pitss.com/us/knowledgebase/
    Hope this helps!
    Gavin

  • How to call a javabean with more argumets?

    I've create a javabean with more arguments,i've used fbean.add_arg:
    arglist := FBean.Create_Arglist;
    FBean.add_arg(arglist,'c:\dev10\esdir.fmb');
    FBean.add_arg(arglist,wdata);
    FBean.add_arg(arglist,wtime);
    wprova:=FBean.invoke_char('BEAN_IMAGE',1,'getDATA',arglist);
    but the javabean isn't invoked, where is my error?
    the javabean's code is:
    package oracle.forms.fd;
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.Toolkit;
    import java.io.*;
    import java.net.URL;
    import java.sql.*;
    import java.lang.Long;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    public class LeggiDir extends VBean
    private URL url;
    private Image img;
    public LeggiDir()
    super();
    System.out.println("prova");
    public void paint(Graphics g) {
    // draw the image
    g.drawImage(img, 0, 0, this);
    public void DisplayImage( String sFileName )
    // load image file
    System.out.println("prova 2");
    img = getImage(sFileName);
    repaint() ;
    public static Image getImage(String imageURL)
    // URL imageURL = null;
    boolean loadSuccess = false;
    Image img = null ;
    //JAR
    // imageURL = imageName;
    if (imageURL != null)
    try
    img = Toolkit.getDefaultToolkit().getImage(new java.net.URL(imageURL));
    loadSuccess = true;
    System.out.println("prova 3");
    return img ;
    catch (Exception ilex)
    System.out.println("Error loading image from JAR: " + ilex.toString());
    else
    System.out.println("Unable to find " + imageURL + " in JAR");
    if (loadSuccess == false)
    System.out.println("Error image " + imageURL + " could not be located");
    return img ;
    public static String getList(String directory)
    String result = null;
    String element = "";
    File path = new File( directory );
    File files[] = path.listFiles() ;
    String[] list = path.list();
    File p ;
    long lSize ;
    SimpleDateFormat data_formato = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
    for(int i = 0; i < list.length; i++)
    p = files[i] ;
    lSize = p.lastModified();
    // System.out.println(data.toString());
    element = element + data_formato.format(new Date(p.lastModified()))+' '+ list[i] + ' '+ '|';
    return element;
    public static String getFile(String filename)
    String result = null;
    String element = "";
    File p = new File( filename );
    long lSize ;
    SimpleDateFormat data_formato = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
    lSize = p.lastModified();
    System.out.println(lSize);
    element = data_formato.format(new Date(p.lastModified()));
    return element;
    public static String getData(String filename,String datafile,String orafile)
    System.out.println("entrato");
    String element = "";
    String data_costr = "";
    File p = new File( filename );
    SimpleDateFormat data_formato = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
    data_costr = datafile + ' '+orafile;
    System.out.println(data_costr);
    Date date = null;
    boolean success = true;
    try
    date = data_formato.parse(data_costr);
    long datacorr = date.getTime();
    success = p.setLastModified(datacorr);
    } catch (ParseException e) {
    success = false;
    if (success)
    element = data_formato.format(new Date(p.lastModified()));
    return element;
    else
    element = "data errata";
    return element;
    thanks
    cedo001

    Hello,
    Java is case sensitive. you call a getDATA function from Forms, but there is a getData() in the bean.
    Francois

  • How to use JavaBean in Form Builder 6i

    Hi,
    How to use JavaBean in Form Builder 6i (Oracle Developer 6i)?.
    i'am using Oracle Sever 8.0.4 and Oracle Developer 6i.
    Please give your valuable suggestion
    Regards
    Seema

    I would suggest you start with the sample Java bean code we have
    on otn.
    http://otn.oracle.com/products/forms
    go to the sample code section.

  • Troubles with forms

    It's been months in since moving to Acrobat X and I still can't get it. It's so infuriating with all the menu items moved to the sidebar. Over all I find things take longer now. Good thing I kept version 8 on hand.
    But anyway, these are my current headaches:
    - how do you GET OUT of form editing mode? In Acrobat 8 you just click the hand tool. In X I click the Preview button to test out the form, but all other non-form functions are disabled. I have to close the file and then reopen it.
    - if I select several fields at once and then nudge their position using the arrow keys, it messes up the tab order forcing me to re-do the order. This doesn't happen if I nudge one form at a time but I don't want to nudge 20 fields on their own.
    - Click to Set Tab Order has apparantly been removed. I can't find it at least. While the ability to reorder via the list is handy, in many situations the click to reorder is much faster.
    And to top it all off, editing forms is slow. There is a lag of a second or 2 after each thing I do. I will be going back to Actobat 8 when dealing with forms.

    I do see the same delay, which is why I never edit forms on a Mac. The screen does multiple redraws whenever I open into edit mode, and when an item is added/removed/resized/relocated. It is impossible to get anything done in the Mac version imho, this does not seem to be an issue on PC (at least, not to me).
    I also keep older versions around - I almost never use Acrobat X. The interface is horrible (I liken it to Microsoft's switch to the 'Ribbon' in Office) I will agree that it takes a lot longer to do anything (I had to make changes that required me to constantly switch back and forth between different tabs on the sidebar instead of being able to select a single menu item). About the only thing in Acrobat which hasn't been a huge step backwards over the various versions is the Javascript editor (and that's only because they couldn't have made it any worse to begin with!)
    I will say this, though - with all of the issues in Acrobat/PDF forms, at least it isn't Microsoft Word. I am forced to work on several forms in Word, and I can tell you that experience is excruciating.

  • Little help with FORM POST data not in UTF-8 (JSP/servlet)

    Hello,
    I am trying to update a MySQL database record with UTF-8 characters with my JSP application.
    1) I have MySQL correctly configured to handle UTF8 and have tested insert/update/select with UTF8 characters
    2) I have an "editRecord.jsp" page. At the top of the page, I specify:
    <% request.setCharacterEncoding("UTF-8"); %>
    3) I have an input form which is specified in that page which follows:
    <form action="<c:url value="/updateRecord.jsp"/>"
    name="updatetForm" method="post"
    ACCEPT-CHARSET="UTF-8"
    enctype="multipart/form-data">
    4) I have a servlet filter that takes every HttpServletRequest and modifies that object in
    doFilter(...){
    request.setCharacterEncoding("UTF-8");
    chain.doFilter(...)
    5) In updateRecord.jsp, I fill a JavaBean with the form data. Here's an example of the form input:
    name = Company
    Comments=Here's some unicode text: "&#1610;&#1606;&#1610; &#1573;&#1606; &#1576;&#1604;&#1575;&#1583;&#1607; &#1605;
    6) When I put a breakpoint and inspect the contents of the UpdateBean after posting the form, running the request through the filter, I see
    I see:
    name = Company
    Comments=Here's some unicode text: &#132;������...."
    Where could I possibly be missing something to force UTF8 encoding of these values?

    If you have to use the following code to fix the encoding:
    String value = new String(item.getString().getBytes("ISO-8859-1"), "UTF-8"); ...
    then you are just putting a band aid on something that is broken somewhere else (since this code creates a byte array in 8859-1 and then creates a string from that byte array, but assuming that the array is encoded in UTF-8). That will only work if the string you start out with is mangled.
    In many cases such a fix will actually "work" (in the sense that you may end up with something that is correctly encoded in the end), but you run the risk of breaking if the source of the original corruption is removed.

  • FRM-13008 when adding JavaBeans to Forms

    I'm keep getting a FRM-13008 "Cannot find JavaBean with name ..." when I try to set the Implementation Class for a new BeanArea in a form. Even with the demo classes I'm getting the same error. I'm using the fully qualified class names, such as oracle.forms.demos.ProgressBarPJC
    The demo class files are installed in my \orant\forms60\java\oracle\forms\demos directory. My FORMS60_JAVADIR points to \orant\forms60\java. Since it's a demo class, I know the IView interface is ok.
    Are there other causes for the 13008 error? Is there anything else I need to know or check? Any help would be greatly appreciated.

    I'm having exactly the same problem you have, and I didn't have any reply even from Oracle Italian Support, did you find the way to solve it?
    Thank you, Nicoletta Bindi
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jay Bailey ([email protected]):
    I'm keep getting a FRM-13008 "Cannot find JavaBean with name ..." when I try to set the Implementation Class for a new BeanArea in a form. Even with the demo classes I'm getting the same error. I'm using the fully qualified class names, such as oracle.forms.demos.ProgressBarPJC
    The demo class files are installed in my \orant\forms60\java\oracle\forms\demos directory. My FORMS60_JAVADIR points to \orant\forms60\java. Since it's a demo class, I know the IView interface is ok.
    Are there other causes for the 13008 error? Is there anything else I need to know or check? Any help would be greatly appreciated.<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • Can't edit in iPhoto

    Hello-- My copy of iPhoto '09 Version 8.1.2 (424) is exhibiting anomalous behavior and I'd like some suggestions  to fix it. I've done the following procedure successfully many times.  Day before yesterday it started acting up.  I'd appreciate your i

  • ADF/UIX where clause and VO on different pages

    Hi, i have a VO called Periods which contains Periods and their statuses. On one page for entering data i use the periods VO in LOV mode with a where clause limiting the user to selecting periods with open status. I have another page which is for mai

  • Flash Mp3 player auto loads files from folder

    I'm making a website from flash 8 that can include an mp3 player that will create a playlist from files within a specified folder. As mp3 files are uploaded i hope the player will auto update the list. Any help would be appreciated.

  • Where do we assigned  movement types to schedule lines

    hi genius where do we assigned with this movement types system should pick this movement types.  can we create our own movement types in sap can we use one movement types both transactions. how system will knows this movement types should come  with

  • Lost pictures from iOS6 Update

    Hi, I just updated iOS6 on my iPhone 4s and lost all of my pictures! Is there any way I can get them back?