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

Similar Messages

  • Calling another class from a java program

    I tried to call the Server1.class from the password program, but I failed. The password program source code is as follows:
    class PasswordDialog extends java.awt.Dialog implements java.awt.event.ActionListener
         * Constructor. Create this visual dialog component.
         public PasswordDialog(java.awt.Frame parent, PasswordVerifier verifier)
              super(parent);
              addWindowListener(new WindowEventHandler());
              setLayout(new java.awt.FlowLayout());
              setSize(500, 100);
              this.verifier = verifier;
              add(useridField = new java.awt.TextField(10));
              add(passwordField = new java.awt.TextField(10));
              add(okButton = new java.awt.Button("Submit"));
              add(cancelButton = new java.awt.Button("Cancel"));
              okButton.addActionListener(this);
              cancelButton.addActionListener(this);
              passwordField.setEchoChar('*');
              useridField.requestFocus();
         public void actionPerformed(java.awt.event.ActionEvent e)
              if (e.getSource() == okButton)
                   // Invoke password verification callback
                   try
                        boolean result = verifier.verifyPassword(
                             useridField.getText(), passwordField.getText());
                        if (! result) return;     // verification failed; don't close this dialog
                   catch (Exception ex)
                        ex.printStackTrace();
                   // Close this dialog
                   System.out.println("I still can't call the Server1 class");
                   dispose();
              else if (e.getSource() == cancelButton)
                   dispose();
         class WindowEventHandler extends java.awt.event.WindowAdapter
              public void windowClosing(java.awt.event.WindowEvent e)
                   System.exit(0);
         // Private objects
         private PasswordVerifier verifier;
         private java.awt.TextField useridField;
         private java.awt.TextField passwordField;
         private java.awt.Button okButton;
         private java.awt.Button cancelButton;
    interface PasswordVerifier
         public boolean verifyPassword(String userid, String password) throws Exception;
    public class password implements PasswordVerifier
         * Main routine for testing only.
         public static void main(String[] args)
              password verifier = new password();
              java.awt.Frame f = new java.awt.Frame("Password Verifier");
              f.setSize(100, 100);
              f.show();
              PasswordDialog d = new PasswordDialog(f, verifier);
              d.show();
         public boolean verifyPassword(String userid, String password) throws Exception
              return (userid.equals("Albert") && password.equals("Einstein"));
    and the Server1.java is as follows:
    //Server Application
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    public class Server1 extends Frame implements ActionListener,Runnable,KeyListener
    ServerSocket s;
    Socket s1;
    BufferedReader br;
    BufferedWriter bw;
    TextField text;
    TextField name;
    Button exit,clear;
    Label label;
    List list;
    Panel p1=null;
    Panel p2=null;
    Panel sp21=null;
    Panel sp22=null;
    Panel jp=null;
    public void run()
              try{s1.setSoTimeout(1);}catch(Exception e){}
              while (true)
                   try{
    list.add(br.readLine());
                   }catch (Exception h){}
    if(list.getItemCount()==7)
    list.remove(0);
    public Server1(String m)
    {       super(m);
    jp=new Panel();
    p1=new Panel();
    p2=new Panel();
    sp21=new Panel();
    sp22=new Panel();
    jp.setLayout(new GridLayout(2,1));
    p1.setLayout(new GridLayout(1,1));
    p2.setLayout(new GridLayout(2,1));
    sp21.setLayout(new FlowLayout());
    sp22.setLayout(new FlowLayout());
    exit = new Button("Exit");
    clear = new Button("Clear");
    exit.addActionListener(this);
    clear.addActionListener(this);
    list = new List(50);
    text = new TextField(43);
    name = new TextField(10);
    label = new Label("Enter your name");
    name.addKeyListener(this);
    text.addKeyListener(this);
    p1.add(list);
    sp21.add(text);
    sp21.add(exit);
    sp22.add(label);
    sp22.add(name);
    sp22.add(clear);
    p2.add(sp21);
    p2.add(sp22);
    jp.add(p1);
    jp.add(p2);
    this.add(jp);
    setBackground(Color.orange);
    setSize(380,300);
    setLocation(0,0);
    setVisible(true);
    setResizable(false);
    name.requestFocus();
    try{
    s = new ServerSocket(786);
                   s1=s.accept();
                   br = new BufferedReader(new InputStreamReader(
                             s1.getInputStream()));
                   bw = new BufferedWriter(new OutputStreamWriter(
                             s1.getOutputStream()));
    bw.write("Welcome");bw.newLine();bw.flush();
                   Thread th;
                   th = new Thread(this);
                   th.start();
              }catch(Exception e){}
    public static void main(String args[])
    new Server1("Server");
         public void actionPerformed ( ActionEvent e)
    if (e.getSource().equals(exit))
                   System.exit(0);
    else if (e.getSource().equals(clear))
    { name.setText(" ");
    name.setEditable(true);
    public void keyPressed(KeyEvent ke) {
    if(text.equals(ke.getSource()))
    if(ke.getKeyCode()==KeyEvent.VK_ENTER)
    try{
    bw.write(name.getText()+">>"+text.getText());
                   bw.newLine();bw.flush();
                   }catch(Exception m){}
    list.add(name.getText()+">>"+text.getText());
    text.setText("");
    else if(name.equals(ke.getSource())) {
    if(ke.getKeyCode()==KeyEvent.VK_ENTER)
    name.setEditable(false);
    text.requestFocus();
    public void keyReleased(KeyEvent ke)
    //something
    public void keyTyped(KeyEvent ke)
    //something
    I tried to create a new object by typing:
    Server1 s = new Server1();
    then call the main function
    new Server1("Server");
    but it doesn't work. Anybody can help me with this?

    try
    Server1 s = new Server1();
    s.Server1("Server");
    or
    new Server1().Server1("Server");

  • Accessing a variable defined in one class from another class..

    Greetings,
    I've only been programming in as3 for a couple months, and so far I've written several compositional classes that take MovieClips as inputs to handle behaviors and interactions in a simple game I'm creating. One problem I keep coming upon is that I'd love to access the custom variables I define within one class from another class. In the game I'm creating, Main.as is my document class, from which I invoke a class called 'Level1.as' which invokes all the other classes I've written.
    Below I've pasted my class 'DieLikeThePhishes'. For example, I would love to know the syntax for accessing the boolean variable 'phish1BeenHit' (line 31) from another class. I've tried the dot syntax you would use to access a MovieClip inside another MovieClip and it doesn't seem  to be working for me. Any ideas would be appreciated.  Thanks,
    - Jeremy
    package  jab.enemy
    import flash.display.MovieClip;
    import flash.events.Event;
    import jab.enemy.MissleDisappear;
    public class DieLikeThePhishes
    private var _clip2:MovieClip; // player
    private var _clip3:MovieClip; //phish1
    private var _clip4:MovieClip; //phish2
    private var _clip5:MovieClip; //phish3
    private var _clip6:MovieClip; //phish4
    private var _clip10:MovieClip; // background
    private var _clip11:MovieClip // missle1
    private var _clip12:MovieClip // missle2
    private var _clip13:MovieClip // missle3
    private var _clip14:MovieClip // missle4
    private var _clip15:MovieClip // missle5
    private var _clip16:MovieClip // missle6
    private var _clip17:MovieClip // missle7
    private var _clip18:MovieClip // missle8
    private var _clip19:MovieClip // missle9
    private var _clip20:MovieClip // missle10
    private var _clip21:MovieClip // missle11
    private var _clip22:MovieClip // missle12
    var ay1 = 0;var ay2 = 0;var ay3 = 0;var ay4 = 0;
    var vy1 = 0;var vy2 = 0;var vy3 = 0;var vy4 = 0;
    var phish1BeenHit:Boolean = false;var phish2BeenHit:Boolean = false;
    var phish3BeenHit:Boolean = false;var phish4BeenHit:Boolean = false;
    public function DieLikeThePhishes(clip2:MovieClip,clip3:MovieClip,clip4:MovieClip,clip5:MovieClip,clip6:M ovieClip,clip10:MovieClip,clip11:MovieClip,clip12:MovieClip,clip13:MovieClip,clip14:MovieC lip,clip15:MovieClip,clip16:MovieClip,clip17:MovieClip,clip18:MovieClip,clip19:MovieClip,c lip20:MovieClip,clip21:MovieClip,clip22:MovieClip)
    _clip2 = clip2;_clip3 = clip3;_clip4 = clip4;_clip5 = clip5;_clip6 = clip6;
    _clip10 = clip10;_clip11 = clip11;_clip12 = clip12;_clip13 = clip13;_clip14 = clip14;
    _clip15 = clip15;_clip16 = clip16;_clip17 = clip17;_clip18 = clip18;_clip19 = clip19;
    _clip20 = clip20;_clip21 = clip21;_clip22= clip22;
    _clip3.stage.addEventListener(Event.ENTER_FRAME, onEnterFrame)
    function onEnterFrame(event:Event):void
    vy1+= ay1;_clip3.y += vy1; vy2+= ay2;_clip4.y += vy2;
    vy3+= ay3;_clip5.y += vy3; vy4+= ay4;_clip6.y += vy4;
    if (phish1BeenHit ==false)
    if(_clip3.y >620)
    {_clip3.y = 620;}
    if (phish2BeenHit ==false)
    if(_clip4.y >620)
    {_clip4.y = 620;}
    if (phish3BeenHit ==false)
    if(_clip5.y >620)
    {_clip5.y = 620;}
    if (phish4BeenHit ==false)
    if(_clip6.y >620)
    {_clip6.y = 620;}
    if (_clip11.hitTestObject(_clip3) ||_clip12.hitTestObject(_clip3)||_clip13.hitTestObject(_clip3)||_clip14.hitTestObject(_cl ip3)||_clip15.hitTestObject(_clip3)||_clip16.hitTestObject(_clip3)||_clip17.hitTestObject( _clip3)||_clip18.hitTestObject(_clip3)||_clip19.hitTestObject(_clip3)||_clip20.hitTestObje ct(_clip3)||_clip21.hitTestObject(_clip3)||_clip22.hitTestObject(_clip3))
    _clip3.scaleY = -Math.abs(_clip3.scaleY);
    _clip3.alpha = 0.4;
    ay1 = 3
    vy1= -2;
    phish1BeenHit = true;
    if (_clip11.hitTestObject(_clip4) ||_clip12.hitTestObject(_clip4)||_clip13.hitTestObject(_clip4)||_clip14.hitTestObject(_cl ip4)||_clip15.hitTestObject(_clip4)||_clip16.hitTestObject(_clip4)||_clip17.hitTestObject( _clip4)||_clip18.hitTestObject(_clip4)||_clip19.hitTestObject(_clip4)||_clip20.hitTestObje ct(_clip4)||_clip21.hitTestObject(_clip4)||_clip22.hitTestObject(_clip4))
    _clip4.scaleY = -Math.abs(_clip4.scaleY);
    _clip4.alpha = 0.4;
    ay2 = 3
    vy2= -2;
    phish2BeenHit = true;
    if (_clip11.hitTestObject(_clip5) ||_clip12.hitTestObject(_clip5)||_clip13.hitTestObject(_clip5)||_clip14.hitTestObject(_cl ip5)||_clip15.hitTestObject(_clip5)||_clip16.hitTestObject(_clip5)||_clip17.hitTestObject( _clip5)||_clip18.hitTestObject(_clip5)||_clip19.hitTestObject(_clip5)||_clip20.hitTestObje ct(_clip5)||_clip21.hitTestObject(_clip5)||_clip22.hitTestObject(_clip5))
    _clip5.scaleY = -Math.abs(_clip5.scaleY);
    _clip5.alpha = 0.4;
    ay3 = 3
    vy3= -2;
    phish3BeenHit = true;
    if (_clip11.hitTestObject(_clip6) ||_clip12.hitTestObject(_clip6)||_clip13.hitTestObject(_clip6)||_clip14.hitTestObject(_cl ip6)||_clip15.hitTestObject(_clip6)||_clip16.hitTestObject(_clip6)||_clip17.hitTestObject( _clip6)||_clip18.hitTestObject(_clip6)||_clip19.hitTestObject(_clip6)||_clip20.hitTestObje ct(_clip6)||_clip21.hitTestObject(_clip6)||_clip22.hitTestObject(_clip6))
    _clip6.scaleY = -Math.abs(_clip6.scaleY);
    _clip6.alpha = 0.4;
    ay4 = 3
    vy4= -2;
    phish4BeenHit = true;
    if (_clip3.y > 10000)
    _clip3.x = 1000 +3000*Math.random()-_clip10.x;
    _clip3.y = 300;
    _clip3.alpha = 1;
    _clip3.scaleY = Math.abs(_clip3.scaleY);
    ay1 = vy1 = 0;
    phish1BeenHit = false;
    if (_clip4.y > 10000)
    _clip4.x = 1000 +3000*Math.random()-_clip10.x;
    _clip4.y = 300;
    _clip4.alpha = 1;
    _clip4.scaleY = Math.abs(_clip4.scaleY);
    ay2 = vy2 = 0;
    phish2BeenHit = false;
    if (_clip5.y > 10000)
    _clip5.x = 1000 +3000*Math.random()-_clip10.x;
    _clip5.y = 300;
    _clip5.alpha = 1;
    _clip5.scaleY = Math.abs(_clip5.scaleY);
    ay3 = vy3 = 0;
    phish3BeenHit = false;
    if (_clip6.y > 10000)
    _clip6.x = 1000 +3000*Math.random()-_clip10.x;
    _clip6.y = 300;
    _clip6.alpha = 1;
    _clip6.scaleY = Math.abs(_clip6.scaleY);
    ay4 = vy4 = 0;
    phish4BeenHit = false;
    var missleDisappear1 = new MissleDisappear(_clip11,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear2 = new MissleDisappear(_clip12,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear3 = new MissleDisappear(_clip13,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear4 = new MissleDisappear(_clip14,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear5 = new MissleDisappear(_clip15,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear6 = new MissleDisappear(_clip16,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear7 = new MissleDisappear(_clip17,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear8 = new MissleDisappear(_clip18,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear9 = new MissleDisappear(_clip19,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear10 = new MissleDisappear(_clip20,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear11 = new MissleDisappear(_clip21,_clip3,_clip4,_clip5,_clip6,_clip10);
    var missleDisappear12 = new MissleDisappear(_clip22,_clip3,_clip4,_clip5,_clip6,_clip10);

    I would approach it in much the same way as you would in java, by making getters and setters for all of your class variables.
    Getters being for returning the values, Setters being for setting them.
    So you would make a get function for the variable you want to access ala:
    function get1PhishBeenHit():boolean {
         return this.phish1BeenHit;
    Then to access the value of that variable from outwith the class:
    var result:boolean = ClassInstanceName.get1PhishBeenHit();

  • How Do I Run A Class From Another Class?

    Hiya everyone, id like to know how to run a class from another class.
    Ive got a Login class which extends a JFrame and a Personnel class which also extends a JFrame. When i press the login button (in Login class), ive got it to decide if password/login are acceptable and if they are, I want the Login class to close then run the Personnel class.
    Im just after the code which says to close this class and run the Personnel class. How do i do that?
    Ive researched this but couldnt get an understandable answer!
    Help would be much appreciated, Ant...

    This is the Login Class:
    public class MainMenu extends javax.swing.JFrame {
        Statement statement = null;
        int currentRecord;
        ResultSet rs = null;
        String name = null, job = null, mission = null, login = null, password = null;
        String loginVal;
        String passwordVal;
        /** Creates new form MainMenu */
        public MainMenu() {
            initComponents();
            try{
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                String filename = System.getProperty("user.dir") + "/src/Personnel.mdb";
                String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=" + filename;
                Connection conn = DriverManager.getConnection( database , "","");
                statement = conn.createStatement();
                System.out.println("Connected...ok");
            } catch (Exception e) {
                System.err.println("Got a connection Problem!");
                System.err.println(e.getMessage());
        private void btnLoginActionPerformed(java.awt.event.ActionEvent evt) {                                        
            loginVal = txtLogin.getText();
            passwordVal = txtPassword.getText();
            String name = null, job = null, mission = null, login = null, password = null;
            try{
                rs = statement.executeQuery("SELECT Login,Password FROM Personnel WHERE Login = '" + loginVal + "' ");
                System.out.println("TRYING SELECT CLAUSE");
                if(rs.next()){
                    System.out.println("THERE IS A NEXT RECORD");
                    login = rs.getString(1);
                    password = rs.getString(2);
                    System.out.println("GOT THE NEXT RECORD");
                    System.out.println(login + password);
                System.out.println("Query Complete");
            }catch(Exception s){
                //s.printStackTrace();
                System.out.println("NO RECORDS EXIST FOR THIS LOGIN ID");
            if(passwordVal.equals(password)){
                System.out.println("Access Granted"); //CLOSE MAIN AND RUN CONTROL CLASS
            } else{
                System.out.println("Access Denied"); //RE-RUN CLASS
        }                 

  • How to kill one class from another class

    I need to dipose one class from another class.
    So that first i have to find what are all threads running in that class and then to kill them
    Assist me.

    Subbu_Srinivasan wrote:
    I am explaining you in clear way
    No you haven't been.
    >
    In my application i am handling many JInternalFrame.Simultaneously i am running working on more than one frame.
    Due to some poor performance of some thread in one JInternalFrame,the thread is keeps on running .
    i could not able to proceed further on that screen.
    So i have to kill that JInternalFrame.Yoinks.
    To be begin with your problem sounds like you are doing everything in one thread. So stop doing that. Second when you get it split up and if a task is taking too much time then interrupt it. No kill. Interrupt. This means the worker thread needs to check sometimes if it has been interrupted.

  • Why capital letters change in lower after copying them from a PDF document, or otherwise, why some uppercase are in fact lowercase when I look in the Text Property in any PDF Reader.

    Why capital letters change in lower after copying them from a PDF document (Made by InDesign), or otherwise, why some uppercase are in fact lowercase when I look in the Text Property in any PDF Reader.

    your home page to get into your Web site should be index.html (for Mac) or index.htm  (on PC)
    You can name it something other than index, but will be harder to find.  when you create the subjects and link to them, they can can be named anything with the html extension  Or if your using PHP end in .php. There is a Microsoft type asp or aspx but your hosting service has to set up using windows server system.
    My hosting service use a Linux server normally but can convert Windows for a Fee.  UNIX Linux has no concept of asp or aspx.
    See this : https://skitch.com/pjonescet/8mnnx/dreamweaver

  • How to find the folder (EBS_R12) in OEL 5 after copy/paste from Windows 7 ?

    Folks,
    Hello. I have just installed Oracle Linux 5 as Guest OS on the top of VMPlayer. Host OS is Windows 7.
    I downloaded Oracle E-Business Suite R12 from edelivery into Windows 7 in a folder(EBS_R12) on my LapTop screen.
    In order to install EBS R12 into Oracle Linux 5, I copy/paste the folder EBS_R12 into Oracle Linux 5 screen. The file size is about 50GB. After coply/paste is completed successfully, I cannot find where is the folder (EBS_R12) in the Guest OS Oracle Linux 5.
    Can any folks tell me where is the folder (EBS_R12) in Oracle Linux 5 after copy/paste from Windows 7 ?

    Hi,
    After coply/paste is completed successfully, I cannot find where is the folder (EBS_R12) in the Guest OS Oracle Linux 5.Was the copy/paste successful.
    If yes then you can do the following
    #find / -name EBS_R12 -type d -print
    (Assuming you copied the folder "EBS_R12" , But not its contents).
    Thanks

  • Calling a object of class from other class's function with in a package

    Hello Sir,
    I have a package.package have two classes.I want to use object of one class in function of another class of this same package.
    Like that:
    one.java
    package co;
    public class one
    private String aa="Vijay";  //something like
    }main.java:
    package co;
    import java.util.Stack;
    public class main extends Stack
    public void show(one obj)
    push(obj);
    public static void main(String args[])
    main oo=new main();
    }when I compile main class, Its not compile.
    Its give error.can not resolve symbol:
    symbol: class one
    location: class co.main
    public void show(one obj)
                              ^Please help How that compile "Calling a object of class from other class's function with in a package" beacuse I want to use this funda in an application

    kumar.vijaydahiya wrote:
    .It is set in environment variable.path=C:\bea\jdk141_02\bin;.,C:\oraclexe\app\oracle\product\10.2.0\server\bin;. command is:
    c:\Core\co\javac one.javaIts compiled already.
    c:\Core\co\javac main.javaBut it give error.
    Both java classes in co package.Okay, open a command prompt and execute these two commands:
    // to compile both classes:
    javac -cp c:\Core c:\Core\co\*.java
    // to run your main-class:
    java -cp c:\Core co.main

  • How does EF Distinguish Regular Classes from Entity Classes?

    I'm newbie to EF, just read a couple of short articles on it the other day.  When reading them I didn't pick up on what criteria EF has for distinguishing regular classes from EF classes. Suppose for instance I wrote up a class for internal use only
    (but which happened to have the same name as one of my Sql Server tables).  Aside from reading my mind, how would EF know that I never intended this class for entity purposes?

    What are you talking about here? It's back to the namespaces.
    If you are making folders in a VS project, then that's a namespace. You crate a class in that namespace, then it should be decelerated with a namespace attribute specifying what namespace the class is in, and you woud have to use an Imports in VB or a Using
    statement in C# pointing to the namesapce where the class is located in the class that needs to use a class in another namespace. Or you don't use Import or Using and you give the full namespace path to the class in code of namespace.classname.The below DB
    first, only a part of the code in  namespace, the usage was installed into the DAL.Model namespace where I have a project called DAL and within the DAL  project I made a folder, a namespace,  named Model and pointed EF to that folder in doing
    an add of a new Item in VS. And everything about EF is in the DAL.MODEL namespace. You can have Jal2 class in the namespace and Jal2 in some other namespace. Ef could care less about Jal2 in the other not DAL.Model namespace.
    I don't care how you do it. I don't care if you are using EF DB first, Model first, Code first,  any other kind of first or you start making your own classes for data yourself, but you need to understand Namespaces in .NET, what they are for,and how
    to use them effectively in creating  .NET solutions. 
    Comon man, this is .NET 101 you should have figured out long ago.
    https://msdn.microsoft.com/en-us/library/ms973231.aspx#assenamesp_topic5
    using System;
    using System.Data.Objects;
    using System.Data.Objects.DataClasses;
    using System.Data.EntityClient;
    using System.ComponentModel;
    using System.Xml.Serialization;
    using System.Runtime.Serialization;
    [assembly: EdmSchemaAttribute()]
    #region EDM Relationship Metadata
    [assembly: EdmRelationshipAttribute("PublishingCompanyModel", "FK_Article_Author", "Author", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(DAL.Model.Author), "Article", System.Data.Metadata.Edm.RelationshipMultiplicity.Many,
    typeof(DAL.Model.Article), true)]
    [assembly: EdmRelationshipAttribute("PublishingCompanyModel", "FK_Payroll_Author", "Author", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(DAL.Model.Author), "Payroll", System.Data.Metadata.Edm.RelationshipMultiplicity.Many,
    typeof(DAL.Model.Payroll), true)]
    #endregion
    namespace DAL.Model
        #region Contexts
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public partial class PublishingCompanyEntities : ObjectContext
            #region Constructors
            /// <summary>
            /// Initializes a new PublishingCompanyEntities object using the connection string found in the 'PublishingCompanyEntities' section of the application configuration file.
            /// </summary>
            public PublishingCompanyEntities() : base("name=PublishingCompanyEntities", "PublishingCompanyEntities")
                this.ContextOptions.LazyLoadingEnabled = true;
                OnContextCreated();

  • Dynamic proxy class from a Class instead of an Interface

    Why is not possible to create a dynamic proxy class from a Class instead of an Interface, using java.lang.reflect.Proxy?
    I have seen the source code of Proxy :
         * Verify that the Class object actually represents an
         * interface.
         if (!interfaceClass.isInterface()) {
              throw new IllegalArgumentException(
              interfaceClass.getName() + " is not an interface");
    It seems to be restricted as a desing desition. Has someone knows about the reason of that?
    There is a workarround for creating dynamic proxy classes from any POJO which not implements any interface?

    The JDK doesn't allow you to proxy classes for a few reasons: it encourages you to use interfaces - often a good idea - and also, proxying of classes exposes you to unpredictable behaviour. Since dynamic proxies are created by generating a new class at runtime, if you proxied a class you'd be generating a subclass of that class, and if the superclass had any final methods, the proxy wouldn't be able to intercept invocation of them, so your proxy wouldn't work properly. Also, the superclass would actually be loaded, which could produce other unpredictable results if, say, that class had a static initializer. With an interfaces, you generate an object that just has the public API described by the interface, with a class, you're actually generating a subclass of the proxied type, which isn't the same thing
    If you really want to proxy a class rather than an interface, there are various third-party libraries around that will do it for you. ASM, CGLIB, BCEL to name a few. My choice would be ASM, but really I'd urge you to try and re-design with interfaces if at all possible
    http://cglib.sourceforge.net/
    http://asm.objectweb.org/
    http://jakarta.apache.org/bcel/

  • How can I call a java class from within my program?

    I was wondering if there's a platform independent way to call a java class from my program.

    Here's my scenario. I'm working on a platform independent, feature rich, object-oriented command prompt program. The way I'm designing it is that users can drop classes they write into my bin directory and gain access to the class through my program. For example, they drop a class named Network.class in the bin directory. They would type Network network at my command prompt and gain access to all the methods available in that class. They can then type system.echo network.ipaddress() at my prompt and get the system's ip address. I have it designed that there's a server running in the background and the clients connect to my port. Once connected the end-user can enter their user name and password and gain access to the system. When they type a command they actually call another java program which connects to my server using a seperate thread. They can then communicate back and forth. I have it set that everything has a process id and it's used to keep track of who called what program. Once the program is done it disconnects and closes. Rather than getting into the nitty gritty (I didn't want to get into heavy detail, I know how everything will work) I'm really interested in finding out how I can call a java program from my program. I don't want it to be part of the app in any way.

  • Accessing Classes From the Main Program:

    Hey Guys if you want to take a crack at this: I'm not sure how to exaclty get the classes read into my program and stuff. So I dunno if not don't worry. And Also ther'es no need to insult me.
    * just copy this into any editor
    import java.io.*;
    import java.text.*;
    class Liststuff
    public class Node
    char info;
    Node next;
    public class listException extends Exception
    public listException(String message)
    super(message);
    class Queue
    private Liststuff.Node front;
    private Liststuff.Node rear;
    public Queue()
    front = null;
    rear = null;
    public boolean isEmpty()
    return (front == null);
    public void insert(char v)
    Liststuff.Node n = new Liststuff.Node();
    n.info = v;
    n.next = front;
    if (rear == null)
    front = n;
    else
    rear.next = n;
    public char Remove() throws Liststuff.listException
    char v;
    if (isEmpty())
    throw new Liststuff.listException("Nothing in OrigQue.");
    else
    v = rear.info;
    rear = rear.next;
    return (v);
    class Stack
    Liststuff.Node top = new Liststuff.Node();
    public Stack()
    top = null;
    public void push(char v)
    Liststuff.Node n = new Liststuff.Node();
    n.info = v;
    n.next = top;
    top = n;
    public char pop() throws Liststuff.listException
    char v;
    if (isEmpty())
    throw new Liststuff.listException("Stack underflow.");
    else
    v = top.info;
    top = top.next;
    return (v);
    public boolean isEmpty()
    return (top == null);
    class Deque
    private Liststuff.Node front = new Liststuff.Node();
    private Liststuff.Node rear = new Liststuff.Node();
    private Liststuff.Node f = new Liststuff.Node();
    public Deque()
    front = null;
    f = null;
    rear = null;
    public void insert(char v)
    Liststuff.Node n = new Liststuff.Node();
    n.info = v;
    n.next = front;
    if (rear == null)
    front = n;
    else
    rear.next = n;
    public char remove(char side) throws Liststuff.listException
    char v;
    if (isEmpty())
    throw new Liststuff.listException("Nothing in OrigQue.");
    else
    f = rear;
    if (side == 'R')
    while (f.next != front)
    f = f.next;
    v = front.info;
    front = f;
    else
    v = rear.info;
    rear = rear.next;
    return (v);
    public boolean isEmpty()
    return (front == rear);
    public class Prog8
    public static void main(String args[]) throws IOException, Liststuff.listException
    String line;
    int i;
    char t;
    Liststuff s = new Liststuff();
    BufferedReader br = new BufferedReader(new FileReader("numbers.txt"));
    line = br.readLine();
    StringCharacterIterator c = new StringCharacterIterator(line);
    while (line != null)
    for (i = 0; i <= c.getEndIndex(); i++)
    Liststuff.Queue Orig = new Liststuff.Queue();
    Liststuff.Stack Evenstk = new Liststuff.Stack();
                   Liststuff.Deque Oddque = new Liststuff.Deque();
                   Liststuff.Queue Final = new Liststuff.Queue();
    t = c.current();
    char v = (t);
    c.next();
    Orig.insert(v);
    line = br.readLine();
    if ((v % 2) == 0)
    Evenstk.push(v);
    else
    Oddque.insert(v);
    Final.insert(Evenstk.pop());
    while (!Oddque.isEmpty())
    Final.insert(Oddque.remove('R'));
    Final.insert(Oddque.remove('L'));
    System.out.print("Original Sequence: ");
    while (!Orig.isEmpty())
    System.out.print(Orig.Remove());
    System.out.print("New Sequence: ");
    while (!Final.isEmpty())
    System.out.print(Final.Remove());
    }

    hi mate
    System.out.print("Original Sequence: ");
    while (!Orig.isEmpty())
    System.out.print(Orig.Remove());
    System.out.print("New Sequence: ");
    while (!Final.isEmpty())
    System.out.print(Final.Remove());
    thats you wacky code remember its insult free comments
    well here the best way to do it
    for Final.insert(Oddque.remove('R'));
    System.out.print("Original Sequence: ");
    while (!Orig.isEmpty())
    System.out.print(Orig.Remove());
    while Final.insert(Oddque.remove('L'));
    System.out.print("New Sequence: ");
    while (!Final.isEmpty())
    System.out.print(Final.Remove());
    else bla bla bla
    hope it cann hep though i dont whats is the problem
    and be clear you question.

  • Error in copying Learner from a class to another

    Hi All,
    I am getting the following error when I try to copy enrollments from a normal class to a planned class.
    The status of enrollments in normal class is Requested.
    I have set profile option OTA: Maximum bulk enrollments processed at 50.
    Has anyone encountered such an error ?
    Any help will be much appreciated.
    Total Number of Enrollments requested 3
    Number of Learners processed Successfully 0
    Number of Enrollments processed with Errors 3
    Learners with Unfulfilled course prerequisites 0
    Learners with Unfulfilled Competency Prerequisites 0
    Enrollments errored out
    Learner Name Assignment Number Organization Name Error Description
    Test, Mr. X3 3 SAFCOL KLF BG ORA-20001: OTA_13667_WEB_STATUS_NOT_SEEDE:
    Test, Ms. X4 4 SAFCOL KLF BG ORA-20001: OTA_13667_WEB_STATUS_NOT_SEEDE:
    Test, Mr. X5 5 SAFCOL KLF BG ORA-20001: OTA_13667_WEB_STATUS_NOT_SEEDE:
    Thanks,
    Manish
    Edited by: manish.chauhan on Feb 6, 2012 9:39 PM

    Contact Oracle Support. They will be able to help you.
    regards
    Anders Northeved

  • I have copyide from standard class to Zclass cant copyied localclass,type

    Hi ,
          I have copyied Standard class To Zclass It was copyied Superclass, Attribute
    and Method but can't copyied Local Class and Local Types how it copyied ..pls can help me..
    Kind Regards
    Arief .S

    hi,
    You can copy the global classes are they are globally available. However, the local classes are defined in the program and hence not available globally. So you cannot copy a class that is not available. If you want the local class, then you need to define it again in your program. Hope this clears your doubt.
    Regards,
    Richa

  • Unknowingly a message class "C2" (standard class) was deleted from SE91

    Dear All,
    Unknowingly a message class "C2" (standard message class) was deleted from SE91 trnsaction in development client, subsequently I have reinstated from Quality system, however the original language has become En insted of DE.
    So please suggest the procedure to reinstate the same in development system.
    Does it have any impact on hot patch application.
    Thanks,
    Kumar.

    Hello,
    You have posted a question that is related to system transports. Unfortunately this category is not related to these kind of questions. SAP TM deals with logistics in the real world - moving pallets, containers, loading trucks, etc.
    To learn more about SAP TM please visit [http://service.sap.com/scm-tm|http://service.sap.com/scm-tm]
    Therefore I will now move this thread to the category Software Logistics. Thank you for your understanding.
    Kind regards,
    Nico van Os.

Maybe you are looking for

  • Report coding

    Interactive Report that list purchase order details of a vendor. When the user double clicks on material number it shows detail list with fields matkl, meins, brgew, ntgew, gewei.The selection screen consist of sales organisation, distribution channe

  • Best settings for book order

    What color settings are best when ordering Aperture 3 books?  I want to prevent photos that are printed too dark.  Last year, Apple advised calibrating to 2.2 gamma setting.  cr

  • How many revolution​s of data are required for order analysis?

    Hello, I have a requirement to collect, process, and save data for several hours at a user specified sampling interval.  I suspect that I will need to use the speed of the motor to determine how many revolutions of data I am collecting. Is there a mi

  • Pl/SQL Toolkit - oas_public - password???

    Can any please let me know what will be the passwords for "oas_public" and "websys" oracle users , when we install PL/SQL toolkit was install ???? Thanks, Krishna Kumar.

  • Can I find a webcamera with wideangle?

    I use a cheap Manhattan webcamera for Skype, which so far is good enough. But I would like to have a camera with a wider angle, so two persons can be in the picture at the same time. Can anybody tell me if such a camera exist? For direct mail, please