PROBLEM IN ACTIVATION OF A CLASS WHICH IS COPIED FROM STD CLASS

Hi All,
         I have a problem in activating a class which is copied from the standard class.
std class: CL_GUI_FRONTEND_SERVICES
The class has got some protected methods and attributes.
here i'm getting following error whenever i try to activate the class:
1) access to protected method "CALL METHOD" is not allowed.
2) access to protected attribute "H_CONTROL"  is not allowed.
Thanks & Regards,
Deepak

hi,
i am not sure abt d way u hv coded, but there are some basic stuffs wic need to be taken care of:
1: access 2 protected methods are allowed by self class or its inherited classes. it ca't e accessed from outside class. also protected methods can b accessed from FRIEND class. please use inherited class objects to access protected attribute or methods...
2: also i have found that class implementation or declaration or method declaration can't be done inside PERFORM routines... try to avoid using forms.....
more info can be given if i get the exact code..
regards,
ags.

Similar Messages

  • Can I invoke a class that extends JAppl from another class extends JAppl

    Can I invoke a class that extends JApplet from another class that extends JApplet. I need to invoke an applet then select an action which opens another applet. Thanks in advance.

    Nobody is able to solve this problem, i cant even
    think this things. i have hope so plz try and get
    result and help.Did you understand what Sharad has said???
    Yep, you can forward to specific error page from servlet when even error occured in JSP. In order to achieve you have to open jsp file from servlet say example by using reqdisp.forward.
    handle exception in the part where you are forwarding. And forward to the specific error page inside catch block.

  • How do i run a class which has too many dependencies/class/jar file

    i am very new in java environment, i have developed a class which has to many jar file, it works fun when i run it from ide but problem arise which i wanna run it from command promt like
    java classname
    here is my code
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.util.HashMap;
    import java.util.Map;
    import net.sf.jasperreports.engine.JRException;
    import net.sf.jasperreports.engine.xml.JRXmlLoader;
    import net.sf.jasperreports.engine.JasperCompileManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperExportManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperReport;
    import net.sf.jasperreports.engine.design.JasperDesign;
    import net.sf.jasperreports.view.JasperViewer;
    public class ReportViewer {
         public static void main(String[] args) {
              try {
                   JasperDesign jasperDesign = JRXmlLoader.load("EmpDeptReport.xml");
                   JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
                   Map parameters = new HashMap();
                   parameters.put("Title", "JasperReport");
                   Connection conn = Database.getConnection();
                   JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,
                             parameters, conn);
                   JasperExportManager.exportReportToPdfFile(jasperPrint, "Sebl_Statement.pdf");
                   JasperViewer.viewReport(jasperPrint);
              } catch (JRException e) {
                   e.printStackTrace();
              } catch (SQLException e) {
                   e.printStackTrace();
    so expert people , please help a novice people.
    [code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    If you place all of your extra .jar files into a "lib" folder in same folder as your jar file then you can call the java class easily using a script similar to.....
    #--------- runJava.bat file to call java program --------------------
    cp=.
    for f in lib/*.jar; do cp=$cp:$f; done
    java -cp $cp:PROGRAM_JAR_FILE.jar com.myclass.mainclass
    #--------- end script -------------
    This loops over the *.jar files in the lib folder and adds them to the classpath. Please note that ":" is used as a cp seperator since this script was run on linux.
    hth,
    Robin

  • ZIC_AGENT webui role which is copied from standard webUI role not opening home page

    Hi Experts,
    We are facing production issue which is pertaining to ZIC_AGENT web ui role.
    We have copied from standard to ZIC_AGENT web ui role, all call centers are working on this role. However suddenly not working due to power issue in one of our call center where CTI server is placed.
    We do not want stop activities the rest of the call centers due to this issue and we are expecting to work like standard role.
    How to delink between main call center with other call centers, kindly advise us.
    Thanks,
    Penn.

        Hi Rohit ,
    I had copied these .class & .xml files under Myclasses -> oracle.apps.icx and oracle.apps.po and oracle.apps.fnd was same which comes part of the standard OA tutorial.
    I copied same under Myprojects as well.
    you have to decompile the class file into java file and then place it in Myproject directory , also copy all dependency files like BC4J components , and then
    try to run from Jdeveloper .
    Alternatively you can get the entire ICX folder and zip it and add it via library .
    --Keerthi

  • How to call html which holds JApplet from Jframe class

    Any one got idea please go ahead...its very urgent for the project..Thanks in advance

    Tulasi 1243 wrote:
    Thanks It's working.
    But, at the time of changing the first record only it working. how can we give for different records ?What do you mean by different records? is it different rows?
    Then how are you going to handle the multiple rows data into one apex page item??
    It seems like you have something like a manual tabular form?? why don't you use apex API's for that
    The best way is to create a manual tabular form using apex api's and then process the data.
    because in pl/sql am using cursor to display multiple data.What makes the column unique for each row in your case? for example APEX assigns a unique ID attribute for each input element

  • How do I correct the problem causing the following error message which prevents Firefox from opening: 'The instruction at "0x10008d37" referenced memory at "0xffffffff". The memory could not be "read".'?

    Please note the 'quote' above. That is the error message I receive. It asks me to click 'OK' to terminate the program, or click 'Cancel' to debug the program. Either button I click terminates the program.

    -> [[Backing up your profile|Backup your profile]]
    -> Now Completely [[Uninstalling Firefox|Uninstall Firefox]]
    * REMOVE USER DATA AND SETTINGS
    * Restart your system
    -> Download latest Firefox version from one of these links using some other Web Browser:
    * http://www.mozilla.com/en-US/firefox/new/
    * http://www.mozilla.com/en-US/firefox/central/
    * http://www.mozilla.com/en-US/firefox/fx/
    * http://www.mozilla.com/en-US/firefox/all.html
    -> [[Installing Firefox on Windows]]
    * http://kb.mozillazine.org/Installing_Firefox
    Check and tell if its working.

  • Loading XML using a custom class and accessing it from other classes?

    I began with a class for a movie clip rollover function
    FigureRollOver. It works marvellously. Three things happen:
    1) it loads XML from a file "mod1_fig1.xml" and uses another
    class, XMLMember, to retool the scoping of the XML so that I can
    get at it
    2) an onload call inside of XMLMember calls the myOnLoad
    function and transfers the XML into an array.
    3) so long as the array is finished building, rolling over a
    movie clip attaches a new movie clip with the rollover text in it.
    But I don't want all those functions in one because I need it
    to be more dynamic, starting with being able to load any old xml
    file instead of just "mod1_fig1.xml", plus it seems like
    overbuilding to have all of that in one class, so I've separated
    out the loading of the XML and building of the array into its own
    class, FigureXMLLoader. FigureRollOver is then left to just attach
    the rollover with text in it, extracted from the array built by the
    new class.
    Problem is, though the array builds inside FigureXMLLoader, I
    can't figure out how to make it available outside the class. I know
    that I'm constructing things in the wrong order, and that the array
    needs to be somehow built inside the class function to be
    available, but I can't figure out how to do that. A cruddy
    work-around is to put a function call at the end of the building of
    the array, which calls yet ANOTHER function on the main timeline of
    my .swf to put the array I've just built into a new variable. This
    works, but it's messy. It seems like I should be able to have one
    line of script in the .swf that generates an array on the main
    timeline (or just a public array) which I can then access from my
    FigureRollOver class:
    var myRollOvers:Array = new FigureXMLLoader("mod1_fig1.xml");
    Here is FigureXMLLoader (see comments in the code for more
    details) which obviously does not return an array as it is, because
    of all the working around I've had to do. Note the "testing"
    variable, which can be traced from the main timeline of the .swf,
    but I will get "not what I want" because of course the array hasn't
    been built yet, and never will be, inside of the declaration as it
    is. How do I get it in there so I can return an array?
    Thanks!

    Suggest you ask this question in the Actionscript forum as
    this forum is
    more tuned to database integration questions.
    You can create arrays outside a class and pass them into it
    by reference and
    visa versa build arrays inside a class and pass out via
    reference.
    The preferred approach is to place the array in a class and
    not expose it.
    Then add methods to use the array or should we say to use the
    class.
    Lon Hosford
    www.lonhosford.com
    Flash, Actionscript and Flash Media Server examples:
    http://flashexamples.hosfordusa.com
    May many happy bits flow your way!
    "maija_g" <[email protected]> wrote in
    message
    news:ed4i43$9v0$[email protected]..
    > Update: I've now put this on the main timeline of the
    .swf:
    >
    > myRollOversLoaded = false;
    > var myRollOvers:Array;
    > var roll_content = new FigureXMLLoader("mod1_fig1.xml");
    >
    > And inside the "myOnLoad" function in FigureXMLLoader,
    just after the
    > while
    > loop I've put this:
    >
    > _root.myRollOversLoaded = true;
    > _root.myRollOvers = figure_arr;
    >
    > The movie clip rollover won't act until
    myRollOversLoaded is true. It
    > works,
    > but it still seems klugey. Any suggestions for a more
    elegant solution
    > would be
    > appreciated.
    >

  • How to Refer a class of Model Layer From a Class of View Layer IN Struts?

    HI There !
    I am building an application on struts using JDeveloper 10.1.3.1. On Selecting New application and writing few classes this is my Application Hierarchy is like folowing:
    Application Name
    |___ Model (Project given by Jdeveloper)
    | |_____ Application Resources
    | |________ model (Package)
    | |__________ CheckUser.java
    | |__________ DataAccess.java
    |
    |___ ViewController(Project given by Jdeveloper)
    |________ Application Resources
    |__________ View (Package)
    |__________ logon.java
    I tried to use CkeckUser.java in logon.java by importing the package model.
    But Jdeveloper is showing an error which means that this Package is not available here.
    So then how I can refer this class at View layer classes.

    Hi Ankur,
    I'm facing the same problem, i need to access a method in the AppModuleImpl but when i try to call it from an action in my viewController this error pops out:
    Error: cannot access class oracle.jbo.server.ApplicationModuleImpl; file oracle\jbo\server\ApplicationModuleImpl.class not found
    Did you have some advances with this?
    Please let me know
    Thanks

  • Batch file from java class fails to copy from mapped drive

    I've some problem for a bacth file which XCOPY several files from folder to folder. If the source folder is a mapped network drive and I run the batch it works.
    But it fails with this error "Invalid drive specification" if I run it from within the java class. Everything is correct from the BATCH point of view as it works when I run it directly.
    I use Process p = Runtime.getRuntime().exec(command);where command is: "cmd /c C:\\just_for_test.bat".
    The batch file is:
    XCOPY /E G:\tmp\CD0005_Multi\*.* C:\Temp
    RD /S /Q G:\tmp\CD0005_Multi
    EXIT
    where G: is the mapped drive.
    Any ideas?
    Thanks.

    I used a batch-file to copy the specified files that looked like this in the end:
    net use s: \\192.168.200.7\e$ <passw> /USER:administrator
    s:
    COPY "S:\Temp\xxx.txt" "C:\Temp\xxx.txt"
    c:
    net use s: /deleteWhat happens is that i make a new mapped-connection to the harddrive
    and ending it after the copying-process is finished... Simple thingie.
    But, if you still want to copy the files through your program, do this:
    net use s: \\192.168.200.7\e$ <passw> /USER:administrator
    s:
    java myProgram
    c:
    net use s: /delete

  • Problem while activating an Enh. Imp.

    I met a problem. It is like that:
    I copied from an standard Enhancement Implementation OIC_MM06EFKO_PREISFINDUNG in the package of OIC to my own enh. imp of Z_OIC_MM06EFKO_PREISFINDUNG in my package.
    I have changed the code of Z_OIC.....UNG. And I can also see the change in the program of MM06EFKO_PREISFINDUNG. The changed codes are right there. But while running ME21N, this implementation was not executed. The original one which I copied from is executed well.
    Can anybody help me? I was in trouble with this for 2 days.
    By the way, what I wanna do is to achieve this:
    Change the pricing auto while I create a SO and reference from a PR. The price in conditions will be fetch from somewhere.
    Thanks a lot !!!!

    Hi Zhang,
    Got your problem, had also faced once, Goto tcode CMOD, i think you would have already created a project there, else create a project and assign the enhancement to that project and activate the project, Note here you have two options, you can activate and deactivate the projects(like a hook), when you want to use the standard functionalities u can deactivate, if you want the enhanced version activate here(CMOD). This info had solved my issue, hope the same in your case.
    Cheers...
    Santosh.
    P.S. Mark usefull answers.

  • How to pass params to another class which accepts keyboard input?

    How can I pass params to a stand-alone Java class that, when executed, gathers params using readLine()?
    In other words, MyClass, when executed from the command-line, uses readLine to gather params for program execution. I'd like to test this class by calling it from another class using Runtime.exec("java MyClass") or calling MyClass.main(args) directly. But, how can I simulate the input expected from the keyboard?
    Thanks!

    Alright, so it looks like this:
    proc = Runtime.getRuntime().exec("java Client");
    br = new BufferedReader(new InputStreamReader(proc.getInputStream()));
    bw = new BufferedWriter(new OutputStreamWriter(proc.getOutputStream()));
    bw.write("test");
    bw.newLine();
    But, how can write doesn't seem to be passed to the original client class.
    Suggestions?

  • How to add objects to panel in one class from another class

    Hi this is what i am trying to do. I have a drag and adrop tool working where the users and select objects on a small panel and drag them to another panel called the tpan. What i want to do is create another class, which creates objects and now i want to display these objects on the tpan. So say i have a class DisplayTpan(), this class is used to display the objects which have been dragged from the small panel, and objects on this panel have mouselisteners attached, so that these objects can be moved around on the tpan. I have created another class called creatObj(), and from this class i want to add objects to the tpan. The DisplayTpan class extends a Jpanel, would this be he case for the CreateObj() class? In the CreateClass i have made a call to DisplayTpan t = new DisplayTPan();
    t.add(object);
    But this does not add the object to the panel, any ideas on how it should be done?
    Problem number two i have is say, I have two objects created on that oanel, i now want to draw a line t connect the two objects, this is just simply a call to the drawLine function but how would it be possible to add a ,mouselistener to that line, so it can be extended moved around etc? Any help much appreciated thanks.

    Try to convert the PL/SQL code from Forms trigger into a PL/SQL library(.PLL),
    and then attach that PLL in your forms.
    Note that all Forms objects should be referenced indirectly, for example,
    you have to rewrite
    :B1.DEPT_CODE := :B2.DEPT_CODE;
    :B3.TOTAL_AMOUNT := 100;
    ==>
    copy('B2.DEPT_NO','B1.DEPT_NO');
    copy('100','B3.TOTAL_AMOUNT');
    This is the best way to share PL/SQL code among Oracle Forms.

  • How to add objects to panel from another class?

    Hi this is what i am trying to do. I have a drag and adrop tool working where the users and select objects on a small panel and drag them to another panel called the tpan. What i want to do is create another class, which creates objects and now i want to display these objects on the tpan. So say i have a class DisplayTpan(), this class is used to display the objects which have been dragged from the small panel, and objects on this panel have mouselisteners attached, so that these objects can be moved around on the tpan. I have created another class called creatObj(), and from this class i want to add objects to the tpan. The DisplayTpan class extends a Jpanel, would this be he case for the CreateObj() class? In the CreateClass i have made a call to DisplayTpan t = new DisplayTPan();
    t.add(object);
    But this does not add the object to the panel, any ideas on how it should be done?
    Problem number two i have is say, I have two objects created on that oanel, i now want to draw a line t connect the two objects, this is just simply a call to the drawLine function but how would it be possible to add a ,mouselistener to that line, so it can be extended moved around etc? Any help much appreciated thanks.

    As for your first problem...too confusing...too tired...mb tomorrow it will make sense :)
    Fer the second...no need to add a mouse listener to each line. There are a couple options that spring to mind, the easiest I can think of is just check to see if the mouse click intersects with any of the lines (bit of geometry).
    The second, ugly but a hella allot more accurate and better (me thinks), is to create a bounding box around the line, so the user doesn't have to click right right on the line. I created this bounding box by painting the pixels with a special key to correspond to that line. The other nice thing about this key is the fact that the lookup is quick.
    The first step was the create a array of integers the size of the surface. Whenever a line is drawn on the graphical surface, do a corresponding line in the integer array, and create the bounding box inside this invisible array. Now whenever the user clicks just do a lookup into this array and check to see which line was selected...then go to town.
    If you want a more detailed explination, i'll post some code later.

  • Refreshing AbstractTableModel from different class...

    Hi there ppl
    Anybody know how to call:
    model.fireTableStructureChanged()
    from a different class? when i try i get a compiler error saying that i cannot reference a non-static variable from a staic content.
    the first jframe holds a jtable that displays the model which consists of data from a db. the second jframe (which resides in another class) has a jtextfield which when submitted will update the db, therefore the db results need to be updated and then the model needs to be updated via
    model.fireTableStructureChanged()
    but from a different class. Is this possible and if so can somebody explain to me how?
    Thanks fellow Javites.

    Thanks for replying...
    The TrainServiceFrame.updateStationTable() exists within the TrainServiceFrame class and is intended to update the stationModel object when called from another class (which will be the NewTrainStationFrame class).
    <code>
         public static void updateStationTable() {
              stationModel.fireTableStructureChanged();          
    </code>
    The second code fragement is from the second class NewTrainStationFrame (which is not a subclass) which contains a jframe, jtextfield and a button. the method call to the stationModel(stationModel = AbstractTableModel) is done via: TrainServiceFrame.updateStationTable() when the submit button is clicked sending the string to a method ( addNewStation(newStation); )which updates the db.
    <code>
    button.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e) {
                        newStation = newStationField.getText();
                        addNewStation(newStation);
    // this would retrieve the updated db results + store in a TreeSet object
    // TrainServiceFrame.getTrainStations();
                        TrainServiceFrame.updateStationTable();
    </code>
    I have just noticed something that is missing which when attempted to fix resulted in the same problem. there should also be a method called to retrieve the updated db, but as this is from a static context yet again i fall into the same ditch as the variables that store these db results are non-static and exist within the TrainStationFrame class.
    Is the solution simply to change these relevent variables and methods that are to be called from another class, so that they are all static?

  • After copied class from standard class program getting dump.?

    HI
    Expert
    I copied to a zclass from standard class (CL_SPROJECT_SOLAR_BASE_REPORT).. if calling program through zclass program getting dump, if calliing program through above standard class then it works fine...
    error is
    The function module interface allows you to specify only fields of particular type under i_so_report. The field "ME" specified different here......
    Note:- Totaly i copied from standard class and activated it also.. even i did not changed any code inside method .but facing this dump why..
    How to achieve this...pls help me out
    Thanks
    Susanta

    I did wt ever was there given solution but still not resolved pls help me ..thanks
    showing error
    Call Method XXXXX
    DATA: lo_grid TYPE REF TO CL_SPROJECT_SOLAR_BASE_REPORT.
    lo_grid = me.
      CALL FUNCTION 'SPROJECT_EVAL_SET_SELSCREEN'
        EXPORTING
          i_o_data_container     = a_o_data_container
          i_v_reptype            = global_reptype
          i_o_sa_report          = lo_grid
          i_v_category           = category
          i_o_data_cont_lnk_docu = a_o_data_cont_lnk_docu "MP 21.07.05
    syntax error - The type of "ME" cannot be converted to the type of "LO_GRID". ..why..? did i coded incoreclty or tell me where to define that data type...

Maybe you are looking for