Forms9i -"ora_java.jobject"  Instantiation of object throws err 201 message

Hi,
I am not able to instantiate a new object of class that i have created.
Below is the scenario.
Step1; Created a HelloWorld Class with 1 argument constructur
Another function getMessage which actually returns the message which was an argument.
Step2 : Compiled the Helloworld.. and is in c:\test folder
Step 3: I added this c:\test folder in Envinronment settings.
step 4: Opend forms 9i and imported the class HelloWorld.
Step 5: Opened up an pl/sql editor and started typing the below code
DECLARE
jo ora_java.jobject;
BEGIN
jo := HelloWorld.new('Test');
end;
If compiled it generates Error 201. HelloWorld.new('Test') must be declared.
What are the other settings i need to do for getting rid of this instantiation error.
Regards,
ashwath.

Hi,
I am not able to instantiate a new object of class that i have created.
Below is the scenario.
Step1; Created a HelloWorld Class with 1 argument constructur
Another function getMessage which actually returns the message which was an argument.
Step2 : Compiled the Helloworld.. and is in c:\test folder
Step 3: I added this c:\test folder in Envinronment settings.
step 4: Opend forms 9i and imported the class HelloWorld.
Step 5: Opened up an pl/sql editor and started typing the below code
DECLARE
jo ora_java.jobject;
BEGIN
jo := HelloWorld.new('Test');
end;
If compiled it generates Error 201. HelloWorld.new('Test') must be declared.
What are the other settings i need to do for getting rid of this instantiation error.
Regards,
ashwath.

Similar Messages

  • How do you interpret an ORA_JAVA.JOBJECT?

    Using Forms 9.0.4
    I have imported a jar file into a form and am calling a function that returns an ORA_JAVA.JOBJECT. Apologies if I am making a basic error in asking this question but how am I supposed to interpret this return type?
    The java method I am calling returns a java object containing several 'members' but I have no idea how to extract these in the form.

    Thanks Francois.
    I have finally managed to resolve to issue I was having. I had to import java.lang.Integer and use the .toString function this created.
    There appeared to be some data compatability issues between the Java and the form that this resolved.
    The object being returned from the java call contained an integer and a string. The Jar File Import process in forms created a function to extract the string as a varchar2 but the function created to extract the integer returned an object. I passed this object into integer_.tostring and this extracted the value successfully.
    I did import java.lang.String but was unable to use any of the .tostring functions this created in the form. Interestingly, this import process creates a package called String but any calls to this clash with a reserved forms word. Changing it is not an issue but when you are trying to understand this all for the first time, it does cloud the issue.

  • Instantiating an object without an assignment

    Hi,
    I am learning Java. I would like to know what is the significance of instantiating an object without an assignment.
    I have created a class TestClass1 with a single constructor that prints a test message.
    In TestClass2, if I write "new TestClass1()" rather than "TestClass1 x = new TestClass1()" it still works, and prints the test message.
    I would like to know if I do not assign an object at the time of instantiation, it cannot be referenced or reused later, then what is the significance of this type of construct and when it can be useful, and where is the object being held.
    public class TestClass1 {
       TestClass1() {
         System.out.println("This is a test message");
    public class TestClass2 {
      public static void main (String... args) {
        TestClass1 x = new TestClass1();  //This prints "This is a test message"
        new TestClass1();                 //This also prints "This is a test message"
        String y = new String("abc");  //this makes sense
        //The following does not throw an exception - what purpose could this conceivably serve
        new String("def");               

    SRAY01 wrote:
    Sorry for using the wrong terminology - I mean a method is invoked rather than instantiated.
    A Constructor can be treated as a special type of method to instantiate an object of the class - but it does not have any expressed return type - so I assumed it implicitly returns an object (of same type as the class the contructor belongs to).
    But syntactically its usage is sort of similar to invoking a method (apart from the "new" keyword).
    I was wondering how is it possible that a constructor or a method with a return value could be called in a code without an assignment. I assumed it should be possible only for void type of methods.
    But apparently its a feature of Java. This feature is very different from any programming language I have worked with so far, e.g. PL/SQL where you cannot call a function with a return value without assigment.
    No the constructor doesn't 'return' anything.
    Construction is done by the new expression.  As PART of the execution of the new expression the constructor is called.  The new expression does other things besides just call the constructor.  For instance it allocates space and it is also responsible for returning the object.  And this is also true for languages like C# and C++ as well.

  • Getting status as ERROR while instantiating Business Object in work flow?

    Hi,
    Getting status as ERROR while instantiating Business Object in work flow.
    How to rectify it.
    Tahnks in Advance.
    Moderator message: please have a look at the dedicated Workflow forum on SCN.
    Edited by: Thomas Zloch on Jan 19, 2012

    Hi,
    Go to SWDD and create a new workflow. This workflow will have two steps. This is just for test purpose so we are not going to define any triggering event etc.  First step will instantiate (creating a runtime object) a business object and second step will use that runtime object to execute one of its method. We know that to instantiate any BO we need the object key to be passed. Key uniquely identifies a runtime instance of Business Object (henceforth we will refer it as BO or business object interchangeably). 
    use Business Object SYSTEM and method GENERICINSTANTIATE to instantiate any Business Object in workflow

  • Outlook 2016 getting crashed and throws an alert message as "microsoft outlook has encountered a problem and needs to close.

    Hi,
    Today i installed Microsoft Office 2016 preview for my Mac OS X 10.10 Yosemite. Word, Excel and Powerpoint applications are working without any problem. However, Outlook getting crashed and throws an alert message as "microsoft outlook has encountered a problem and needs to close.", it's happens always, when i launch outlook. please suggest me, how can i comet from this issue.
    Thanks in advance,
    Suresh Balakrishnan.

    Go to the Microsoft site for help. These forums are not offering support for MS products, especially not for beta products.

  • How to throw Custom Error  message in Portal

    Hi Experts !
    I am working on CRM 5.0 and using BADI CRM_ORDER_STATUS for LEAD transaction.
    This BADI is checking the userid when user is trying to change the status of a lead. if userid is not correct than it is  throwing an Error Message  in GUI but this message is reflecting in  Portal as an Exception but what I need here is a custom Message similar to GUI.
    Pls suggest .
    With Thanks & Regards
    Navneet

    Hi Experts !
    I am working on CRM 5.0 and using BADI CRM_ORDER_STATUS for LEAD transaction.
    This BADI is checking the userid when user is trying to change the status of a lead. if userid is not correct than it is  throwing an Error Message  in GUI but this message is reflecting in  Portal as an Exception but what I need here is a custom Message similar to GUI.
    Pls suggest .
    With Thanks & Regards
    Navneet

  • HT1379 My iMac (2011) has been persistently throwing this error message: "SafariDAVClient quit unexpectedly." This started when I moved up to Mavericks. Nothing crashes, and all I have to do is click "ok" to get rid of the error window. Still, annoying. H

    My iMac (2011) has been persistently throwing this error message: "SafariDAVClient quit unexpectedly." This started when I moved up to Mavericks, from Lion. Nothing crashes, and all I have to do is click "ok" to get rid of the error window. Still, annoying, as this darn Error message pops up at least every 60 seconds Help?
    Here is thev error data that shows up in my Console after it happens. Of course, it might as well be GREEK TO ME!:
    Process:         SafariDAVClient [5937]
    Path:            /System/Library/PrivateFrameworks/BookmarkDAV.framework/Versions/A/Helpers/Safa riDAVClient
    Identifier:      SafariDAVClient
    Version:         106
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [202]
    Responsible:     SafariDAVClient [5937]
    User ID:         501
    Date/Time:       2014-02-02 15:40:22.026 -0800
    OS Version:      Mac OS X 10.9.1 (13B42)
    Report Version:  11
    Anonymous UUID:  38C42EEE-0927-2A62-02AC-FE5E1CEBFA44
    Sleep/Wake UUID: F4BAEB51-39DA-42AE-8105-AB27895B59BD
    Crashed Thread:  0  Dispatch queue: com.apple.Safari.BookmarkFolder.childrenAccess
    As well, my iCloud Pref Pane will not open!
    What the HECK is goin' on?

    feckinHell wrote:
    As well, my iCloud Pref Pane will not open!
    That's related since the process is attempting to load your Safari bookmarks from iCloud, and is crashing for some reason.
    Try this:
    Select the entire line that follows (triple-click to select it), then control-click, and from the contextual menu that appears, select Services > Reveal in Finder:
    ~/Library/Caches/com.apple.iCloudHelper
    Drag that entire folder to the Desktop.
    Quit Safari.
    Attempt to open iCloud Preferences again. If it opens de-select Safari.
    Launch Safari again and determine if the problem is fixed.

  • How do I access iCloud from my iPhone 5 because it keeps throwing up a message that I have to accept the new terms

    How do I access my iCloud account on my iPhone5 when it has greyed out everything. I can't click on anything & it keeps throwing up a message: to use iCloud I have to accept the new terms & condtions & when I click on there it says it can't contact the server!! This has been happening for months

    If you are already signed into iCloud, first save your photo stream photos to your camera roll, then go to Settings>iCloud, tap Delete Account, provide your password and choose Delete from My iPhone when prompted.  Then after 30 seconds or so, sign back in.  This deletes the account and iCloud data from your phone but not from iCloud.  Your data will reappear on your phone when you sign back in.

  • Editable ALV - how to throw an error message for a specific line & field

    Hi all,
    I've implemented an editable ALV and also the ON_DATA_CHECK event to check the values, entered in the ALV. So this works fine and I can check the values.
    But now, I want to throw an error message corresponding to the field in the ALV, where the error occured.
    How can I throw this error message corresponding to a specific line/field in the ALV?
    I was using REPORT_ATTRIBUTE_ERROR_MESSAGE and REPORT_ELEMENT_ERROR_MESSAGE but without success.
    I'm also using a loop over the "CHANGES" in the ALV and within this loop, I use
    elem_alv = node_alv->get_element( index = <change>-element_index ) 
    to get the element for the message.
    CALL METHOD lo_message_manager->REPORT_ELEMENT_ERROR_MESSAGE
      EXPORTING
        MESSAGE_TEXT              = 'my message'
        ELEMENT                   = elem_alv
    *    ATTRIBUTES                =
    *    PARAMS                    =
    *    MSG_USER_DATA             =
    *    IS_PERMANENT              = ABAP_FALSE
    *    SCOPE_PERMANENT_MSG       = CO_MSG_SCOPE_CTXT_ELEMENT
    *    MSG_INDEX                 =
    *    CANCEL_NAVIGATION         =
    *    IS_VALIDATION_INDEPENDENT = ABAP_FALSE.
    2.) is it right, that for an editable ALV, I can't use the WDDOBEFOREACTION to do the checks?
    If I try to use this, I can't get the values of my ALV table to check it.
    Thanks,
    Andreas

    Hi Andreas,
    I have tried to replicate your problem and I am getting the desired output. I have a row by name TEMP_NEW in my ALV and I want to throw an error message whenever the user enters a value of 4 for that particular field. Please find my coding as below. The important thing is where we perform the actual comparison between the r_value and 4. r_value is defined in SALV_WD_S_TABLE_MOD_CELL as reference to type DATA. So suppose the user enters a value of say 3 in the TEMP_NEW field of the ALV then r_value would contain 3 but if you observe its type in debugging mode it would be as TYPE REF TO I and not TYPE I. So you cannot directly say something like:
    "if ls_modified_cells-r_value = 3" as this would lead to a syntax error. Define a field-symbol say <temp> and then use it to get the actual value into it by saying like:
    ASSIGN ls_modified_cells-r_value->* TO <temp>.
    Then you can use this <temp> for comparison in your IF statement like:
    IF  <temp> = 3.
    Find the entire coding as below:
    METHOD check_data.
      DATA: lr_node TYPE REF TO if_wd_context_node,
            lr_element TYPE REF TO if_wd_context_element,
            ls_modified_cells TYPE salv_wd_s_table_mod_cell.
      FIELD-SYMBOLS <temp> TYPE data.
    " get message manager
      DATA lo_api_controller     TYPE REF TO if_wd_controller.
      DATA lo_message_manager    TYPE REF TO if_wd_message_manager.
      lo_api_controller ?= wd_this->wd_get_api( ).
      CALL METHOD lo_api_controller->get_message_manager
        RECEIVING
          message_manager = lo_message_manager.
      lr_node = wd_context->get_child_node( name = 'NODE' ).
      LOOP AT r_param->t_modified_cells INTO ls_modified_cells.
        lr_element = lr_node->get_element( index = ls_modified_cells-index ).
        IF ls_modified_cells-attribute = 'TEMP_NEW'.
    " Get the value extracted into the field symbol from the reference variable
          ASSIGN ls_modified_cells-r_value->* TO <temp>.
    " Use the value present in this field-symbol for your comparison
          IF  <temp> = 4.
    " report message
            CALL METHOD lo_message_manager->report_attribute_error_message
              EXPORTING
                message_text   = 'Sample message text'
                element        = lr_element
                attribute_name = ls_modified_cells-attribute.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDMETHOD.
    Hope this helps resolve your problem.
    Regards,
    Uday

  • Object does not exist :  MESSAGE OL 826 - Production issue

    R/3 release 4.6C
    Transaction: FB03
    Custom WF:  Triggering events: FIPP-CREATE  and FIPP-COMPLETED
    When we try to post a document (journal) the workflow gets triggered and reaches the approver. The approver approves it and then it gets posted.
    Here in this case, after the approval the workflow running into error with u201Cmessage OL 826 Object does not existu201D
    When I click on the message I get this information
    Object does not exist   :   Message no. OL 826                                                    
    Diagnosis :   You tried to create an instance of the object type EMPLOYEET with the
                        key 1234520080603. No instance of this kind exists.                   
                    PERNR u2013 12345
         Date      - 03.06.2008
    I checked this using the FM P_EMPLOYEE_CHECKEXISTENCE and it is working fine there. This FM is used in EMPLOYEET object for existence check.
    Initially I thought the problem was with document and the buffer but after checking u201Cdiagnosisu201D message, it confirms me that this is related to Employee.
    This is happening only to one employee and all other have NO issues.
    I have checked with HR team and they reckon everything is fine from their side.
    Since this is in Prod I am unable to debug and test.
    I was looking into the previous forums to find the solution but couldnu2019t find RIGHT one. Could you please suggest any solution for this ?
    Your help greatly appreciated.
    Sreethan
    Edited by: SAP User on Jun 12, 2008 12:13 PM

    Dear Mike/Martin,
            Could you please explain a bit about the authorization problem?
            PERNR    A, B, C, and D do the posting the docs through FB01 and PERNR  X usually do the approvals. the problem is happening onlyl with PERNR A ... if the approver has the auth problem then it could be same issue with other...  please correct me if I am wrong.
        As Martin suggested I have contacted HR team but they say .... they dont see anything different or changes for this EMP.  The personal record is coming from the EVENT FIPP-CREATE or COMPLETED so there is no manual interaction.
    Just guessing: if this is the problem for all the employees then what could be the reason ? guessing that in random it is happening to this emp. He has posted 6 docs....all of them have the same issue. I checked last 3 months records and I did see Couple of workflows in last 3 months with the same error....  so just thinking if this is the problem with all emp happens onlly ramdomly.
    Thoughts ??
    Thanks & Regards,
    Sreethan

  • Trying to update from os 1.1.5 for a gen 1 ipod touch to os 3.1.1 but keep receiving an err 8288 message?

    I have tried mutiple times to update to the 3.1.1 os for my Gen 1 ipod touch from the 1.1.5 os but keep receiveing an err 8288 message. I paid the one time 4.99 fee to download the os from ithe itunes store but the error message persists. HELP!

    Any word on this fix yet? Kicking myself in the @#$ for not checking ALL issues with downloading the updated software. I am trying to update to the iOS 3, with no avail. I have the 2.2.1  - thinking that i could update it and give it to my child. Do you think the store can help? I don't want to pay $40-$50 through apple support to get my $4.95 back. I am by no means computer literate, so the firmware (3rd party) is sitting on my computer waiting for me to do something.
    If anyone comes up with the latest and greatest help, that would be just fine.

  • Doing VF01 Invoice third party  system is throwing below error message.

    Hi All,
    After creating Standard PO for third party.
    Doing VF01 Invoice system is throwing below error message.
    Error Log
               5005000511 000010 No open billing quantity has been determined
              Technical data
                  Tech. data details
                   Client                                 200
                   Group Number
                   Sales Document Number                  5005000511
                   Item Number of the SD Document         000010
                   Schedule Line Number                   0147
                   Counter in Control Tables              00
                   Message Identification                 VF
                   System Message Number                  147
                   Output Type                            I
                   Message Variable 01
                   Message Variable 02
                   Message Variable 03
                   Message Variable 04
                   Group Type                             F
    Aditya.

    Hello,
    Please, I have the same issue but in my case it's a Purchase Requisition. First I created a Purchasing info-record for Vendor, Material, Purchasing organization and Plant.
    After I set a Source List Master Data for Material, Plant, Vendor and Purchasing Organization.
    Like this I have the Purchase Requisition created automatically when I create the Sales Order. I am testing a Third Party Handling scenario in Brazil...
    But now I can not create the Billing Document.
    The following error happens:
    "No open billing quantity has been determined"
    Tech. data details
    Client                                 210
    Group Number
    Sales Document Number                  0000000179
    Item Number of the SD Document         000010
    Schedule Line Number                   0147
    Counter in Control Tables              00
    Message Identification                 VF
    System Message Number                  147
    Output Type                            I
    Message Variable 01
    Message Variable 02
    Message Variable 03
    Message Variable 04
    Group Type                             F
    I tried what you suggested but they didn't work. I don't know if I have to create a MIRO for my Purchase Requisition. I tried to release it but it didn't work as well.
    Please, can you help me?
    Thank you,

  • I need to throw an error message if the terms&conditions checkbox is not checked on click of Submit Button. Can anyone suggest.

    I need to throw an error message if the terms&conditions checkbox is not checked on click of Submit Button in webdynpro java. Can anyone suggest.

    My Apologies. The simplest way- write the following code in the action of the Submit button-
    if (<check box not checked>)
    wdComponentAPI.getMessageManager().reportException("Please accept Terms and Conditions to continue",false);
    else
         continueExecution();
    The exception message will be shown on top of the view.
    You may like to use Message Area UI element and place it at the bottom of the WD4J view to show our exception message at the bottom of the view.
    I hope this helps !
    Cheers,
    -Amol Gupta

  • HT4623 my ipad is version 5.1.1  gen 3 ipad ,  says software update available ,  when i accept  click  update  download  it  gos about 1 minute  then throws out a  message An error occurred  downloading  7.0.2  what  should  i do

    my ipad is version 5.1.1  gen 3 ipad ,  says software update available ,  when i accept  click  update  download  it  gos about 1 minute  then throws out a  message An error occurred  downloading  7.0.2  what  should  i do,  so  i  hit reset  no  i have  lost all  ,  i cant  even  find  my  wifi  its  going from  bad to worse  please  advise

    Tap Settings > General > Reset > Reset Network Settings
    You will have to re enter the Wi-Fi password.
    Then tap Settings > General > Software Update

  • Throw a warning message before calender opens

    Hi,
    I wanted to throw a warning message whenever we are clicking on the calender icon but before the calender opens.
    Kindly help me.

    Hi,
    To throw a warning message before the calendar opens, do the next steps:
    1- Find the applet that has the calendar icon and open its browser script.
    2- On the Browser script Edit Mode, expand the folder "EDIT" that contains all controls mapped.
    3- Find the target Control and expand the events to edit the "onfocus" event.
    4- Insert some code like that:
    function Edit__0__Control__Birth_SDate__onfocus (applet, id)
         alert("Message");
    }Finnaly, don't forgot the genbscript.
    Regards.

Maybe you are looking for

  • Itunes not working on my windows 7 64 bit pc

    Every time i load itunes it will run for a few seconds and then a box appears Itunes has stopped working.

  • Default Value to Form using Custom Library?

    In Custom Form A, in the global variables i have store the value , How to populate default value to Form B using in custom library. I tried using COPY, but its not working? COPY('GLOBAL.EXP_PRO',':IT_QF.PROJECT_NUMBER'); Is their any other way to do

  • Speed up my Mac Mini

    I have my Mac Mini server setup in my office and when I connect from it at home it's very slow i.e. 5 minutes to download a 18mb file – using something like Dropbox is heaps faster... But I would really like to be using the Mac Mini. Should I get mor

  • Pleaseeee helpp meee!!

    this is my second time i had this kind of problem and i`m kinda sick of it!! firstly i bought 4 page application cost around 100 bucks, suddendly cannot connect to wifi and i`ve already call apple care hotline.he asked me reboot my ipod .then have to

  • How to make a mpeg4 video file with an .avi extention

    Can anybody tell me how to do this with Quicktime Pro, Final Cut Pro, or something else? Thanks.