Trace a class

Hi all
Is there any method to trace class.
We need to trace PCUI in CRM it is using certain classes and we need to trace these.
Hoping to get a quick reply.

Vijay,
ST05 is to tell you about the table accessed by a program at runtime. I don't think there is anything like that for Classes. but WHERE USED list should tell you where exactly the class has been used.
What you can also try is, in DEBUG mode, put a break point at the statement - CALL METHOD - this will stop the program at the method calls irrespective of the class.
Regards,
Ravi
Note : Please mark the helpful answers

Similar Messages

  • Trace java class execution

    hi all,
    I had a terrible experience recently. There was a Java class which creates some reports and uses some libraries also. This program was developed very primitively and exceptions not handled properly. Last time I observed that program is running and but no output and but no error prompted. (because exception was catched but not handled no even a system out).
    So I would like to know any method or technique to trace the situation of class execution and find what operations are blocked
    Indiika

    lkr wrote:
    hi all,
    I had a terrible experience recently. There was a Java class which creates some reports and uses some libraries also. This program was developed very primitively and exceptions not handled properly. Last time I observed that program is running and but no output and but no error prompted. (because exception was catched but not handled no even a system out).
    So I would like to know any method or technique to trace the situation of class execution and find what operations are blocked
    IndiikaYou could use AspectJ to add logging, but a simple thread dump can give you information on blocked threads.

  • Trace all classes and methods used

    I have a java application that uses a third party API jar file. I call methods on classes in this API. I need a application/API that will enable me dyamically (or possibly statically) to determine every single method in every class used that my application uses. If for example, my application uses a method on a class Stock : Stock.lookup("abc") and in turn lookup() calls a method in Stock2 and that method calls a method in Stock3. I need a way to to know the whole list of all methods in classes used for each method in my class.
    Please let me know if you know any such Application/API that does this.
    Ahmed

    The java -verbose:class output was useful, but I need an API/Application that will show me clearly which mehod each mehod invokes and in which class; method by method e.g:
    method foo1(String s) in class ABC.java line 19
    invokes foo2() in class ABC2.java line 3224
    invokes foo3() in class ABC3.java line 1556
    Ahmed

  • I just want my classes to compile.

    Hello,
    I'd just like to do something simple: compile a test class in
    AS3.0 (Flash CS3 on Mac OSX 10.4).
    Not having any luck, nor can I find any documentation. Hoping
    someone can help here. Here is what I have set up:
    - file structure: Inside a folder called "Notation" i have
    the files "editField.as" and "editFieldTest.fla"
    - class path: Points to the "Notation" folder
    - code in the "editField.as" file is:
    package Notation {
    import flash.display.MovieClip;
    public class editField extends MovieClip { //Compiler wanted
    me to extend MovieClip
    function editField() {
    trace( "editField.class" );
    - code in frame 1 of "editFieldTest.fla":
    import Notation.editField;
    var tf:editField = new editField();
    I've played with this a lot and the error messages vary. All
    I need is the correct way to set this up to get the class to
    compile.
    Thanks.
    Mark Goodes
    Flash MX expert
    Flash 3.0 newbie

    Thanks for the quick reply, kglad. Love your site!
    Unfortunately though when I tried your suggestion it didn't
    fix the problem. I got the error message:
    5001: The name of package 'Notation' does not reflect the
    location of this file. Please change the package definition's name
    inside this file, or move the file.
    /Users/markgoodes/Documents/Flash CS3
    Projects/Notation/editField.as
    I really wish the message would tell us which change was
    required instead of making us guess.
    Mark

  • Linking a class to a dynamic text field to load XML data.

    Hi,
    I'm quite new to ActionScript and would be grateful for any help here.
    I want to load text into a dynamic text field (called 'about_tab') using  a class depending on the language selected (by clicking on a flag icon)  by the user.
    I managed to get this to work when the ActionScript was written directly  in the timeline, but am having problems with doing the same thing via a  class.
    This is my class file:
    package
    import flash.display.SimpleButton;
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    import flash.net.URLRequest;
    import flash.net.URLLoader;
    import flash.events.Event;
    public class ChangeLang extends SimpleButton
    public function ChangeLang()
    addEventListener(MouseEvent.CLICK, switchLang);
    trace("ChangeLang class working");
    public function switchLang(event:MouseEvent):void
    var lang = event.target.name;
    var req:URLRequest = new  URLRequest("languages/"+lang+".xml");
    var loader:URLLoader = new URLLoader();
    var substance:XML;
    function xmlLoaded(event:Event):void
    trace("function xmlLoaded is running");
    substance = new XML(loader.data);
    about_tab.text =  substance.about_lbl;
    loader.addEventListener(Event.COMPLETE, xmlLoaded);
    loader.load(req);
    Here's one of my XML files (the other is the same except "About" is  written in German):
    <substance>
    <about_lbl>About</about_lbl>
    </substance>
    When I run it, it returns my trace statements that the class ChangeLang  and the function xmlLoaded are running, but no text appears in the  dynamic text field (I should/want to see the word 'About'). I get this  error message:
    1120: Access of undefined property about_tab
    The problem, I'm guessing, is in the part in red in my code. I think I need to target the text field in the display list by creating a  reference to it. If so, could someonw point out how I do this, or perhaps a tutorial that would help. I've tried adding the word stage (i.e.,stage.about_tab.text =  substance.about_lbl; ) but it still doesn't connect. I guess there's something really simple I'm missing, so I  apologize if this comes across as a stupid question
    Thanks for any help.

    Hello flashrocket!
    I'm also new to AS3 and I've just started using external classes and I think I know what you should do to put your code to work.
    Instead of using the text field you created inside your flash file, why don't you use the "TextField" class to create an instance of this object? It's the exact same thing as when you create and instantiate a new text field inside Flash.
    First, import flash.text.*; (includes classes like TextField, TextFieldAutoSize, TextFormat, TextFormatAlign, etc)
    Than you just have to create a var like
    public var about_tab : TextField;
    or
    public var about_tab : TextField = new TextField();
    then, to adjust the properties of this tab you use dotsyntax as if it where on your stage like:
    about_tab.x = 50; about_tab.alpha = .5; etc...
    you can even create a function to "config your textField"
              private function createAndConfigTextField() : void {
                   about_tab = new TextField(); //you only need this line if you
              // only typed something like "public var about_tab:TextField;
              // if instead you used "public var about_tab:TextField = new TextField(); outside
              // this function, just skip this first line because you already have an instance of
              // text field named "about_tab"...
                            about_tab.autoSize = TextFieldAutoSize.CENTER;
                   about_tab.background = true;
                   about_tab.border = true;
                   var aboutTextFormat : TextFormat = new TextFormat();
                   format.font = "Arial";
                   format.color = 0x000000;
                   format.size = 11;
                   format.bold = true;
                   format.align = TextFormatAlign.CENTER;
                   about_tab.defaultTextFormat = aboutTextFormat;
                   addChild(about_tab);
    This is just an example of what you can do... I hope you get it... let me know if you have any doubt...

  • A Custom Class says my class is Null

    Hi,
    I have a class (Math2) with misc functions for my project. It
    has a function called CheckRelations() which basically checks a
    static array in another class (relation). But the Math2 class acts
    as if the Relation class is non-existent, even though I have
    imported it and I also have all files in the same folder. When I
    try to relate to the class in any way i get a Runtime-Error 1009
    (Cannot access a property or method of a null object reference.)
    I tried tracing the class along with two other classes (one
    imported, but another is not) the two classes trace fine: [class
    Human] [class relationship]. The Relation class when traced in the
    Math2 class results in a 'null'
    Code for the CheckRelations function in math2 class: (takes
    in String value, and returns the index at which the input =
    relation.Type ( i.e. if (String_Input == Relation.Relations
    .Type) --> return i ) Return -1 if not found)
    import Human;
    import Relation; //notice that Relationship is not imported
    yet traces out fine
    //......REST OF CLASS (other static functions
    public static function
    CheckRelations(relationType:String):int {
    ///////Variables
    trace(Human,Relation,Relationship); //Human and Relationship
    are classes I used to test problem
    //Output: [class Human] null [class Relationship]
    var relationType:String;
    //relationType: the relation to look for in the relations
    array
    var array:Array = Relation.Relations; //Relations is a
    public static var (array)
    //array: the array to look inside
    var relation:Relation;
    //relation: used to hold temp values of relations to compare
    var ReturnValue:int = -1;
    //ReturnValue: the value to return
    var i:uint;
    //i: used in for..loops
    ///////Function
    //SOURCE OF ERROR: any reference to Relation class
    RelationCheck:for (i = 0; i < array.length; i++) {
    relation = array as Relation;
    if (relation.Type == relationType) { //relation.Type is a
    string value
    ReturnValue = i;
    break RelationCheck;
    return ReturnValue;
    Code for getRelation function in Relation class:
    public static function getRelation(relation:String):Relation
    var val:int = Math2.CheckRelations(relation); // SOURCE OF
    ERROR
    if (val == -1) {
    GameError.InvalidRelation(relation); //throws error when an
    invalid relation is specified {this is NOT the problem I'm having}
    }return Relations[relation];
    ------------------------------------------------------------------------------------------ ---------------------------------------------------------

    OK, I believe I have got the problem. When I tried to call
    the Relation class from another class, I couldn't do that before I
    cut any references to the Math2 class. So i ported the
    checkRelations function into the Relation class itself in order to
    cut any reference to the Math2 class. But to my surprise, when I
    did that, I could trace out the Relation class normally from not
    only another class, but the Math2 class itself! So after a long
    time fiddling with the program I figured out that the reason Math2
    was unable to relate to the Relation class was because the Relation
    class was still not fully initiated. And since Relation class used
    the Math2 class as part of the initiation, and the Math2 class
    needed to use the Relation class itself in order to initiate the
    Relation class there was practically no existence of the Relation
    class as it was still in the initialization process (if that makes
    any sense). So instead i called the defineRelations function in my
    main fla file, to make sure the Relation class is all set before
    hand, and it worked like a charm.
    Anyways, thanks a lot Jamesabth
    for taking the time to look at my code and help me
    out, it was your advice that lead me to this discovery after all .
    And also thanks to anyone who has took the time to look through my
    problem even though they may have not been able to help me with
    it.

  • How to use "Trace" in  JPDA

    I want to know how to use "Trace" in Java Platform Debugger Architecture.
    Trace displays traces of program execution.
    how to invoke it?
    Trace can be invoked as follows:
    java Trace options class args
    what in front of me is I set envoriment variant and system variant by windows 2000 pro control panel by set: "CLASSPATH", in variant name and �E:\Java\jdk1.5.0_06\lib\tools.jar� in variant value.
    But while I use
    jave Trace -help myclass
    (this myclass.class is working by "java myclass")
    there is:
    "Exception in thread "main" java.lang.NoClassDefFoundError: Trace"
    in the screen.
    Please help me by this function though Sun said it is easier than jdb.
    mysys:
    window 2000 pro. (Chinese)
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05
    Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
    thank for your attention

    ok, please read "How to use "Trace" in JPDA"
    sundararajan.a give me many thing than solution
    and read his blog...
    refer to http://blogs.sun.com/roller/page/sundararajan?entry=java_class_ic_errors
    as well.

  • As 2.0 class objects- how to swap depths of a movie clip

    How do you bring an object to the top? if it's just a movie
    clip, I could do a swapdepths, but if it's a movieclip that's part
    of an AS 2.0 object, how do you swap depths of the whole object?
    I create 2 objects (same class) which each have a movieclip
    within them. The movie clip is created on a unique level with
    getNextHighestDepth().
    I have a button which tries to swapDepths of the 2 objects,
    but I can't get it to work. Can anyone help?
    here's the detail:
    1. create a symbol in the library called "someShape_mc" and
    put some shape in it - a circle, a square, whatever - this symbol
    is exported for action script, and has an AS 2.0 Class of
    "ClassObject" ( I also put a dynamic text field in the shape to
    display the current depth - it's called "depth_txt")
    2. create a button called "swap_btn" on the stage.
    Frame 1 has the following actionscript:
    var BottomObject:ClassObject = new ClassObject(this,100,150);
    var topObject:ClassObject = new ClassObject(this,110,160);
    // for the button add this:
    Swap_btn.onRelease=function() {
    // try it with the full path:
    _root.BottomObject.__LocalMovieClip.swapDepths(_root.topObject.__LocalMovieClip);
    // try it with with just the objects:
    BottomObject.__LocalMovieClip.swapDepths(topObject.__LocalMovieClip);
    // try it with the object as a movieclip
    BottomObject.swapDepths(topObject);
    trace("Did it Swap?");
    // try it with a method in the class....
    BottomObject.swapIt(topObject.__LocalMovieClip);
    BottomObject.swapIt(topObject);
    trace("nope... no swapping going on...");
    ================================
    here's the AS file: "ClassObject.as"
    class ClassObject extends MovieClip{
    var __LocalMovieClip;
    var __Depth;
    function ClassObject(passedIn_mc:MovieClip,x:Number,y:Number)
    __Depth = passedIn_mc.getNextHighestDepth();
    __LocalMovieClip =
    passedIn_mc.attachMovie("someShape_mc","__LocalMovieClip",__Depth);
    trace("made a shape at " + __Depth);
    __LocalMovieClip._x = x;
    __LocalMovieClip._y = y;
    __LocalMovieClip.depth_txt.text = __Depth;
    public function swapIt(targetMc) {
    __LocalMovieClip.swapDepths(targetMc);
    __LocalMovieClip.depth_txt.text =
    __LocalMovieClip.getDepth(); // no difference.
    trace("Tried to swap from within the class...");
    ========================
    so- the goal is to bring the "bottom" Class object on top of
    the "top" object. The button tries various methods of swapping the
    depths of the movie clips - but there is not one that works. What
    am I missing?
    tia
    ferd

    Thank you for your response - and here I have included the
    code I reworked to show how it works, and doesn't work. you're
    right about not needing the extra containers, but this example is
    part of a bigger thing...
    I'm confused - it works ONLY if I attach the movie outside
    the class, even though the "attachment" occurs, I'm thinking, at
    the same scope level, that is, _root.holder_mc, in both examples.
    it seems that the advantage of having a class is defeated
    since I have to do the extra coding for each object that will be
    created. It's like the class can only have a reference to the
    movieclip outside itself, and not have a clip INSIDE that is fully
    functioning. am I right about this? Is there someplace good I can
    learn more about class objects and movieclip usage?
    also, my class object IS a movieclip, but " this.getDepth() "
    is meaningless inside the class object. hmmm...
    This one works..... attaching the movies at the root level
    (to a holder_mc)
    // Frame 1
    tmp1 =
    holder_mc.attachMovie("someShape_mc","tmp1",holder_mc.getNextHighestDepth());
    var BottomObject:ClassObject3 = new
    ClassObject3(tmp1,100,150);
    tmp2 =
    holder_mc.attachMovie("someShape_mc","tmp2",holder_mc.getNextHighestDepth());
    var topObject:ClassObject3 = new ClassObject3(tmp2,110,160);
    // for the button add this:
    Swap_btn.onRelease=function() {
    BottomObject.swapIt(topObject);
    trace("clicked button");
    // ClassObject3.as
    class ClassObject3 extends MovieClip{
    var __LocalMovieClip:MovieClip;
    function
    ClassObject3(passedInMovieClip:MovieClip,x:Number,y:Number) {
    trace(" this class object is at ["+this.getDepth()+"]");
    __LocalMovieClip = passedInMovieClip;
    __LocalMovieClip._x = x;
    __LocalMovieClip._y = y;
    public function swapIt(targetMc:MovieClip):Void {
    trace("do the swap in the class");
    trace("===========================");
    trace("target type :" + typeof(targetMc));
    trace("__LocalMovieClip type :" + typeof(__LocalMovieClip));
    __LocalMovieClip.swapDepths(targetMc.__LocalMovieClip);
    This one does NOT work..... attaching the movies within the
    class object...
    // Frame 1
    var BottomObject:ClassObject2 = new
    ClassObject2(holder_mc,100,150);
    var topObject:ClassObject2 = new
    ClassObject2(holder_mc,110,160);
    // for the button add this:
    Swap_btn.onRelease=function() {
    BottomObject.swapIt(topObject);
    trace("clicked button");
    // ClassObject2.as
    class ClassObject2 extends MovieClip{
    var __LocalMovieClip:MovieClip;
    function
    ClassObject2(passedInMovieClip:MovieClip,x:Number,y:Number) {
    __LocalMovieClip =
    passedInMovieClip.attachMovie("someShape_mc","stuff1",passedInMovieClip.getNextHighestDep th());
    __LocalMovieClip._x = x;
    __LocalMovieClip._y = y;
    public function swapIt(targetMc:MovieClip):Void {
    trace("do the swap in the class");
    trace("===========================");
    trace("target type :" + typeof(targetMc));
    trace("__LocalMovieClip type :" + typeof(__LocalMovieClip));
    __LocalMovieClip.swapDepths(targetMc.__LocalMovieClip);

  • Error in adding attachment to the workitem. load:class Query.class not foun

    Hi,
    We are using WebGui to access the Business Workplace(SBWP transaction) through Portal. For any work item, when i try to import a file from the local PC, i get a screen with the header -"Enter Some FIle attributes". Text displayed in the screen is "Please wait. You will be forwarded automatically. This page had to be included for techincal reasons". And i am struck in that screen. I believe a java popup winddow should come up at this point to select the PC File but it never happened. The screen also has a status message "
    Loading Java applet failed. Applet Query.class not inited ".
    WHen i look at the java console, i find the following error trace. Please let me know if anybody experienced this problem before and how to fix it. Thanks for the help.
    Trace ---
    load: class Query.class not found.
    java.lang.ClassNotFoundException: Query.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    Regards
    hari

    Hi all,
    I have encountered same problem in ITS 6.20.
    Query.class is packed in ws.jar which is stored at C:\Inetpub\wwwroot\<SID>\sap\its\mimes\webgui\99\applets and C:\Inetpub\wwwroot\<SID>\sap\its\mimes\webgui\2002\applets in ITS server.
    I increased the trace level to 3 in the Java console to inevestigate the problem further.
    == Java console (Trace level 3 ) ===
    network: cache entry not found URL: https://hostname.domain.co.jp:443/sap/its/mimes/webgui/2002/applets/ws.jar、version: null
    network: Connect to https://hostname.domain.co.jp:443/sap/its/mimes/webgui/2002/applets/ws.jar (Proxy=DIRECT)
    network: Connect to http://hostname.domain.co.jp:443/  (Proxy=DIRECT)
    java.net.ConnectException: Connection refused: connect
    load: class Query.class not found.
    java.lang.ClassNotFoundException: Query.class
    ==========================
    Then I found out that when system tried to load class Qery.class the connection to ITS was refused becase the incorrect protocol ( https ) was chosen.  In my case, SSL was not setup, therefore protocol must be http.
    I activated http by changing the configuration file for WGate in C:\Program Files\SAP\ITS\6.20\config\ ItsRegistryWGATE.xml
    After that, I restarted the WGate by accessing to http://hoostname.domain.co.jp:port/scripts/wgate/wgate-restart to activate the configuration.
    And also I restarted the AGate by restarting the Windows Service "SAP ITS Manager - <SID>".
    Anyway, the html (BHTML) file that displays the message below is stored at C:\Program Files\SAP\ITS\620\templates\system\dm\itsdoc.html
    "Please Wait. You will be forwarded automatically"
    "This page has been loaded due to technical Reasons"
    Best regards,
    Akira

  • Oracle Scheduler not picking up classes

    Hi
    I am trying out the new Oracle Scheduler in release 3. I have set up an EAR with a scheduler-ejb.jar (just like in the demo). I have put the class files in to this jar inside the ear. I have an init servlet that then submits the job to the scheduler.
    I keep getting an oracle.classloader.util.AnnotatedClassNotFoundException: Missing class: com.test.MailSender
    Here is the whole stack trace:
    InvalidArgumentException: class {0} was not found
    oracle.ias.scheduler.InvalidArgumentException: class {0} was not found
         at oracle.ias.scheduler.core.SchedulerImpl.add(SchedulerImpl.java:137)
         at oracle.ias.scheduler.core.SchedulerImpl.add(SchedulerImpl.java:48)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:55)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:86)
         at SchedulerRemote_StatelessSessionBeanWrapper12.add(SchedulerRemote_StatelessSessionBeanWrapper12.java:137)
         at com.test.InitServlet.initMailSender(InitServlet.java:152)
         at com.test.InitServlet.init(InitServlet.java:65)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2231)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4617)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4541)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4730)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1019)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:649)
         at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:428)
         at com.evermind.server.Application.getHttpApplication(Application.java:512)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1975)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1894)
         at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:633)
         at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:302)
         at com.evermind.server.http.HttpServer.setSites(HttpServer.java:273)
         at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:180)
         at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2296)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:944)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: com.test.MailSender
         Dependent class: oracle.ias.scheduler.core.SchedulerImpl
         Loader: default.root:0.0.0
         Code-Source: /C:/product/10.1.3/OracleAS_1/j2ee/Qas1/config/../../home/lib/scheduler.jar
         Configuration: <library> in /C:/product/10.1.3/OracleAS_1/j2ee/Qas1/config/application.xml
    This load was initiated at default.root:0.0.0 using the Class.forName() method.
    The missing class is available from the following locations:
         1. Code-Source: /C:/product/10.1.3/OracleAS_1/j2ee/Qas1/applications/omdis/scheduler-ejb.jar (from <ejb> in C:\product\10.1.3\OracleAS_1\j2ee\Qas1\applications\omdis)
         This code-source is available in loader omdis.root:0.0.0. This is a child of the dependent loader default.root:0.0.0.
         2. Code-Source: /C:/product/10.1.3/OracleAS_1/j2ee/Qas1/applications/omdis/omdis/WEB-INF/classes/ (from WEB-INF/classes/ in C:\product\10.1.3\OracleAS_1\j2ee\Qas1\applications\omdis\omdis\WEB-INF\classes)
         This code-source is available in loader omdis.web.omdis:0.0.0. This is the current thread's context loader, and it appears that Class.forName() was used to load the dependent class. If a loader was not explicitly passed to Class.forName(), try passing the result of calling Thread.currentThread().getContextClassLoader().
         at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2061)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1665)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1621)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1606)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.ias.scheduler.core.SchedulerImpl.add(SchedulerImpl.java:133)
         ... 35 more
    This is the code that submits the job:
    Scheduler scheduler = null;
    InitialContext ic = new InitialContext();
    Object ref = ic.lookup("java:comp/env/ejb/scheduler");
    SchedulerHome home = (SchedulerHome)
    PortableRemoteObject.narrow(ref, SchedulerHome.class);
    scheduler = home.create();
    IntervalSchedule schedule = new IntervalSchedule();
    schedule.setInterval(10000);
    Properties props = new Properties();
    scheduler.add("Mail Sender Job",
    new MailSender().getClass().getName(), schedule, props);
    The exception is thrown when I try to add the job.
    Any suggestions would be great!
    Thanks

    Guys, I'm also having the same trouble with Oracle AS 10.1.3 on startup after deployment of my application.
    java.lang.IllegalStateException: unexpected mbean count, 0
         at oracle.ias.scheduler.core.Configuration.writeActivationConfig(Configuration.java:447)
         at oracle.ias.scheduler.core.Configuration.bootstrap(Configuration.java:239)
         at oracle.ias.scheduler.core.SchedulerBean.ejbCreate(SchedulerBean.java:80)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.LifecycleManager$LifecycleCallback.invokeLifecycleMethod(LifecycleManager.java:619)
         at com.evermind.server.ejb.LifecycleManager$LifecycleCallback.invokeLifecycleMethod(LifecycleManager.java:606)
         at com.evermind.server.ejb.LifecycleManager.postConstruct(LifecycleManager.java:89)
         at com.evermind.server.ejb.StatelessSessionBeanPool.createContextImpl(StatelessSessionBeanPool.java:41)
         at com.evermind.server.ejb.BeanPool.createContext(BeanPool.java:405)
         at com.evermind.server.ejb.BeanPool.allocateContext(BeanPool.java:232)
         at com.evermind.server.ejb.StatelessSessionEJBHome.getContextInstance(StatelessSessionEJBHome.java:51)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:83)
         at SchedulerRemote_StatelessSessionBeanWrapper12.getJobs(SchedulerRemote_StatelessSessionBeanWrapper12.java:700)
         at oracle.j2ee.jmsrouter.schedjob.JobScheduleMgr.getJobConfig(JobScheduleMgr.java:321)
         at oracle.j2ee.jmsrouter.admin.PersistentConfig.getPersistentConfig(PersistentConfig.java:292)
         at oracle.j2ee.jmsrouter.admin.AdminMgr.getPersistentJobs(AdminMgr.java:768)
         at oracle.j2ee.jmsrouter.admin.AdminMgr.createStats(AdminMgr.java:708)
         at oracle.j2ee.jmsrouter.admin.AdminMgr.<init>(AdminMgr.java:157)
         at oracle.j2ee.jmsrouter.engine.CtrlTable.<init>(CtrlTable.java:123)
         at oracle.j2ee.jmsrouter.engine.CtrlTable.getCtrlTable(CtrlTable.java:145)
         at oracle.j2ee.jmsrouter.ejb.AdminMgrBean.getAdminMgr(AdminMgrBean.java:351)
         at oracle.j2ee.jmsrouter.ejb.AdminMgrBean.getLogMgr(AdminMgrBean.java:337)
         at oracle.j2ee.jmsrouter.ejb.AdminMgrBean.registerXMLConfigListener(AdminMgrBean.java:300)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:53)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.interceptor.system.RunAsInterceptor.invoke(RunAsInterceptor.java:31)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:86)
         at AdminMgr_StatelessSessionBeanWrapper8.registerXMLConfigListener(AdminMgr_StatelessSessionBeanWrapper8.java:512)
         at oracle.j2ee.jmsrouter.mbean.MsgRouterMBeanServlet.init(MsgRouterMBeanServlet.java:86)
         at javax.servlet.GenericServlet.init(GenericServlet.java:256)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2231)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4617)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4541)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4730)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1019)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:649)
         at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:428)
         at com.evermind.server.Application.getHttpApplication(Application.java:512)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1975)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1894)
         at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:633)
         at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:302)
         at com.evermind.server.http.HttpServer.setSites(HttpServer.java:273)
         at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:180)
         at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2296)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:944)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
         at java.lang.Thread.run(Thread.java:595)
    In my application i have only 4 session beans and 2 MDBs. But I am not using any Oracle scheduler feature. What is the reason of such exception and how can I overcome it. I don't need any oracle scheduler for my application, may be there is way to switch it off? This makes me really angry, bcz Oracle EM console failes to open coz of it.
    Best regards.

  • Class has be instantiated in document class but having issue..HELP

    Guys,
    I am making my way with AS3 in little steps and have hit a
    road block. This is what I have:
    I have a document class called "Document Class"
    I have a custom class called "Game"
    I have instantiated an object of "Game" class and I am able
    to trace a class method which return a simple "HELLO".
    within my Game class, I have a variable(type Array) called
    "questions" as instance variable.
    I would like to add questions to "questions" array by using
    "Mutator" method, or count the current elements with the questions
    array and return the total number of questions. I am unable to add
    or access elements to the questions array.
    Any help would highly be appreciated, please.

    First thing: you need to set the functions you're calling to
    public, so that you have access to them outside of your class.
    Second: you are initializing 'questions' to null. I made some
    changes and it seems to work for me:
    //////////////Game
    Class///////////////////////////////////////////////
    public function Game()
    //this.questions = null;
    this.correctAnswers = null;
    this.userAnswers = null;
    // SETQUESTION FUNCTION CAN ADD QUESTIONS TO THE QUESTION
    ARRAY;
    public function myArr():void
    trace(questions.length);
    public function AddQuestions(val:String)
    this.questions.push(val);
    trace(val);
    }

  • Storing details of objects in an array in a class

    Hi there
    New to all this class malarkey so having some teething
    problems and could do with some help.
    I have written a function to display 10 stars on screen using
    attachMovie
    i.e
    var vStar_Object = attachMovie(vLinkage_Name, vInstance_Name,
    vDepth);
    I later need to access these star objects to enable me to
    animate them to certain positions on screen.
    I am therefore trying to create a starManager class to store
    the details of these star objects.
    Here is my class so far:
    class classes.starManager {
    // Constructor
    public function starManager() {
    trace ("starManager class constructor");
    var List_Of_Star_Objects:Array = new Array();
    // Add Star Object
    public function
    Add_Star_Object(passed_Star_Object:Object):Void {
    List_Of_Star_Objects.push(passed_Star_Object);
    I have created an instance of this class as follows:
    myStarManager = new starManager();
    Therefore in the loop that creates my 10 star objects I call
    the function "Add_Star_Object" as follows:
    myStarManager.Add_Star_Object(vStar_Object);
    However I am getting the following error message:
    There is no method with the name 'List_Of_Star_Objects'.
    List_Of_Star_Objects.push(passed_Star_Object);
    Any ideas what I am doing wrong here or suggestions as how
    this is best done. Basically I need to store some reference to my
    star objects and I do not want to use globals.
    Thanks in advance
    Paul

    Before the constructor method
    // Class variables
    private var List_Of_Star_Objects:Array();
    In the constructor method
    change var List_Of_Star_Objects:Array = new Array();
    to List_Of_Star_Objects:Array = new Array();
    or this.List_Of_Star_Objects:Array = new Array();
    I recommend not capitalizing the first letter of variable
    names. Initial
    caps normally indicates a class name.
    Lon Hosford
    www.lonhosford.com
    Flash, Actionscript and Flash Media Server examples:
    http://flashexamples.hosfordusa.com
    May many happy bits flow your way!
    "ChuckyLeFrek" <[email protected]> wrote in
    message
    news:[email protected]
    > Hi there
    >
    > New to all this class malarkey so having some teething
    problems and could
    > do
    > with some help.
    >
    > I have written a function to display 10 stars on screen
    using attachMovie
    >
    > i.e
    >
    > var vStar_Object = attachMovie(vLinkage_Name,
    vInstance_Name, vDepth);
    >
    > I later need to access these star objects to enable me
    to animate them to
    > certain positions on screen.
    >
    > I am therefore trying to create a starManager class to
    store the details
    > of
    > these star objects.
    >
    > Here is my class so far:
    >
    > #############################
    >
    > class classes.starManager {
    >
    > // -----------
    > // Constructor
    > // -----------
    >
    > public function starManager() {
    >
    >
    > trace ("starManager class constructor");
    >
    > var List_Of_Star_Objects:Array = new Array();
    >
    >
    >
    > }
    >
    >
    >
    > // ---------------
    > // Add Star Object
    > // ---------------
    >
    > public function
    Add_Star_Object(passed_Star_Object:Object):Void {
    >
    >
    > List_Of_Star_Objects.push(passed_Star_Object);
    >
    >
    > }
    >
    >
    >
    > }
    >
    > #################################
    >
    > I have created an instance of this class as follows:
    >
    > myStarManager = new starManager();
    >
    > Therefore in the loop that creates my 10 star objects I
    call the function
    > "Add_Star_Object" as follows:
    >
    > myStarManager.Add_Star_Object(vStar_Object);
    >
    >
    > However I am getting the following error message:
    >
    > There is no method with the name 'List_Of_Star_Objects'.
    > List_Of_Star_Objects.push(passed_Star_Object);
    >
    >
    > Any ideas what I am doing wrong here or suggestions as
    how this is best
    > done.
    > Basically I need to store some reference to my star
    objects and I do not
    > want
    > to use globals.
    >
    > Thanks in advance
    >
    > Paul
    >
    >
    >

  • Document class Error #2136

    Hi, in Flash CS3 I've this DocumentClass:
    package {
        import flash.display.MovieClip;
        public class DocumentClass extends MovieClip {
            public function DocumentClass() {
                trace("document class created");
    This actually works, but I want to have the possibility to re-instance the DocumentClass (because I want to restart a game and the Main class is the DocumentClass).
    In the first frame I have:
    import flash.events.MouseEvent;
    btn.addEventListener(MouseEvent.MOUSE_DOWN, restart);
    function restart(evt:MouseEvent){
        var d = new DocumentClass();
    But this code (I simplified my situation, but the result is the same) throws an error:
    Error: Error #2136: The SWF file  file:///E|/Documents%20and%20Settings/Pepper/My%20Documents/FlashDevelopment/PepperGame.s wf  contains invalid data at DocumentClass/restart()/frame1()
    What can I do to restart my game by calling the DocumentClass point of entry? Is this possibile?
    Regards and thanks to everybody.

    When you apply a DocumentClass to an FLA, the code becomes a part of that document (just like putting the code on the first frame of the timeline).  You aren't able to say "new DocumentClass()" in your code because it's essentially telling your application to create itself.  Instead, you have two options.  Firstly, add a function in your DocumentClass called "reset".  Add in this function all the things that need to be reset (score, lives, position of objects).  When you want to start the game over, you can just call the reset() function.
    If you really want to "refresh" the whole SWF, you'll want to build a second SWF (a "shell") that acts as a container for your game.  It would basically just load in the game SWF (and maybe save any global information).  When you want to restart the game, just reload the SWF.

  • Standard B2C application Order page Java class called on Update?

    Hi All,
    On the Standard B2C application, on adding CampaignKey to the order or Changing the Quantity of the Items. We click UPDATE to update the sales order.
    Please can anyone help to find out which JAVA action Class is linked with the Update button.
    I need to create one Z java action class to update the order.
    Thanks a lot!
    Ekta

    Hi
    I used session logging to trace the class called. I am not able to use HTTP Watch. It is on the Client's network using Citrix. Hence cannot install it. but no doubt that is a better way.
    Classes and the action path is
    main java action class 
    MaintainBasketB2CDispatcherAction"
    linked action path for Update is
    Action path="/b2c/maintainBasket"
    Forward path name   
    <forward name="update" path="/b2c/basketupdate.do"/>
    and for action path
    action path="/b2c/basketupdate"
    java action class :
    MaintainBasketB2CUpdateAction"
    I am making Z action claa for MaintainBasketB2CUpdateAction" and i am updating the condig.xml file.
    I am making this thread open. To trace the flow if in case i get some problem
    Thanks to all of you for your support!
    Thanks
    Ekta

  • Trace NoClassDefFount Exception pls help

    Hello,
    I try to run trace form the console but I always get a NoClassDefFoundException.
    The Trace files (Trace.java/class EventThread.java/class ...) are in the directory: D:\emundo\Debugging\example\trace
    The class to trace is also under the specified path (hello.class + hello.java).
    Now I try to trace hello via console:
    java -cp "C:\Program Files\Java\jdk1.6.0_16\lib\tools.jar";D:\emundo\Debugging\example\trace\ Trace hello
    But get
    java.lang.NoClassDefFoundError: hello
    I hope you can help me to solve this problem...
    Thanks and best regards
    Alex

    Is that message in the Server Log ?
    If not, please check the server log and post what you can see
    Thanks

Maybe you are looking for

  • Question about Apps lost during data recovery. Help!

    My hard drive recently failed on my 2007 imac and having not backed up my mac for about 18 months I had to pay specialists to retrieve my data, which they put onto an external drive. I then got a new 1TB hybrid drive installed. Tonight I finally got

  • How do I zoom to a specific point on a page

    My first question ever to support: WIndows 7 - Firefox 32.0.2 - Laptop without touch screen or touch pad (mouse and keyboard only) I have found lots of ways to Zoom on a page. However, zoom always anchors to the top left. I would really love to zoom

  • Show cfdiv and cfinput in the same row

    Hi, I have some probloms on the layout when using "ColdFusion.navigate". For example, I use function checkClosingDate() {      ColdFusion.navigate('cfc/value_validation.cfc?method=checkDate&date='+document.getElement ById('inputdate').value,'dateErro

  • Mac will not play sound through JBL Bluetooth speaker

    My MacBook Pro will connect to the Bluetooth speaker, but refuses to play the sound through it. Seems like it isnt just me who has this issue. What can I do to connect it? Please help. Note: It works fine with other devices.

  • Need to download Adobe Acrobat X Pro (v10.1.8) onto new laptop

    Need to download Adobe Acrobat X Pro (v10.1.8) onto new laptop.  How can this be accomplished?