Using System.err.println() from within the classes of WAS ?

hi,
I am using admin.jar,a jar file which is being used by Web Application Server in my own class.
I am referencing some of the classes from admin.jar from my class.
I tried to print some trace statements,using System.err.println() from within the classes in admin.jar but they did not reflect in defaulttrace0.trc.
I made these changes in the admin.jar being used by WAS.
I restarted the server and even restarted the machine but without success.
I want to know how to print System.out.println() statements from within the classes in admin.jar.
Also, am i looking for these statements in the right file for eg. defaulttrace0.trc. or is it some other file that i need to look into.
I need urgent help on this.
Reward points assured.
thanks a lot.
Saurav

thanks craig,
ur answer has helped me a lot.but it didnt quite help me.
nevertheless i am trying to set different levels of severity.
Is there anything else that i can do.
Also,i commented out a line of code today in one of the class DataSourceManagerImpl.java in sapj2eenginedeploy.jar
for eg. temp.delete in it deploy method.Buth that line still executed.
I m totally lost as to wht to do.
I m trying to create a datasource from my application in WAS.For that i m using the WAS APIs.But its not working completely.
I am using the above jar and its method createdatasource.
I am callin it from my application's class.
It creates a datasource and i can see it in JDBC Connector list in Visual Administrator.But it appears with red sign meaning its not started.When i start it from the tool then it starts.
But in defaulttrace.trc file it shows an error "FileNotFindException". This happens,and i am very much sure, in the deploy() of DataSourceManagerImpl.java class of sapj2eenginedeploy.jar.
i want to apply println inside this method so i may know where exactly i ma getting the error and get so more info so i may solve my problem.
pls help me.
its really urgent.
thanks again
saurav

Similar Messages

  • Where does System.err.println("huh?"); goto?

    Hi. Where does the System.err.println("asdfds"); goto for .class files?
    When I try this for .jsp files, I get an output line in the console,
    expected. :> But when I put it in a class I'm using in that jsp file, I
    don't get anything anywhere, or at least no where I found. Can anyone give
    me an idea of what I'm doing wrong here? I know I can use the Logger, but
    this System.err is just for immediate debugging and I want to pull it out as
    soon as I'm done.
    Thanks for any input.

    I found out what I was doing wrong! :< I was copying the .java file instead
    of the .class file. :< Silly. :< Sorry about that.
    "PeterH" <!REMOVEBeforeSending![email protected]> wrote in message
    news:3c9f48a2$[email protected]..
    Hi. Where does the System.err.println("asdfds"); goto for .class files?
    When I try this for .jsp files, I get an output line in the console,
    expected. :> But when I put it in a class I'm using in that jsp file, I
    don't get anything anywhere, or at least no where I found. Can anyonegive
    me an idea of what I'm doing wrong here? I know I can use the Logger, but
    this System.err is just for immediate debugging and I want to pull it outas
    soon as I'm done.
    Thanks for any input.

  • Is it possible not to use System.out.println?

    Hi guyz,
    Can anyone tell me if there is a way not to use System.out.println but produce the output on the command prompt? I need to add two numbers which are accepted through the args(command prompt). I have to add them and show them on command prompt without using System.out.println. Can ANYONE HELP?

    Hi guyz,
    Can anyone tell me if there is a way not
    s a way not to use System.out.println but produce the
    output on the command prompt? I need to add two
    numbers which are accepted through the args(command
    prompt). I have to add them and show them on command
    prompt without using System.out.println. Can ANYONE
    HELP?Why can't you use System.out.println? What's the reason?
    Kaj

  • System.out.println() and System.err.println()

    Can any one tell me the difference between System.out.println()
    and System.err.println() ?

    Can any one tell me the difference between
    System.out.println() Sends the output to the 'stdout' stream
    and System.err.println() ?sends the output to the 'stderr' stream.
    http://en.wikipedia.org/wiki/Standard_input

  • No access to method from within the same class

    Hey there.
    First I have to excuse my English for I'm german and just learning...
    Ok, my problem is as follows. I have a class called JDBC_Wrapper it includes the method sendQuery(String query). When I call this method from within another class (where 'wrapper' is my instance of JDBC_Wrapper) it works fine. For example:
    wrapper.sendQuery("SELECT * FROM myDataBase");
    But then I have written a method called getNumRows() into my JDBC_Wrapper class.
    This method should send a query through sendQuery(Strin query) but when calling getNumRows() it says: "java.sql.SQLException: [FileMaker][ODBC FileMaker Pro driver][FileMaker Pro]Unbekannter Fehler." (Unbekannter Fehler -> Unknown Exception). What could that be?
    I'm using jdk2 sdk 1.4.2 with BlueJ. My database is Filemaker Pro 6. The ODBC/JDBC connector works fine.
    BerndZack

    This is within my JDBC_Wrapper class:
    public ResultSet sendQuery(String query)
            if(connected)
                try
                    Statement s = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
                    ResultSet rs = s.executeQuery(query);
                    return rs;
                catch(Exception e)
                    System.out.println(e);
            else
                //System.out.println("There is no connection to the datasource!");
            return null;
    public int getNumRows()
            try
                ResultSet r;
                r = this.sendQuery("SELECT COUNT(*) FROM " + table_name); // At this line the error occurs
                r.next();
                return (int)r.getInt(1);
            catch(Exception e)
                System.out.println(e.getMessage());
                return -1;
    }When I call sendQuery() from within another class it works, but calling getNumRows()
    throws an exception.

  • Using System.out.println or System.err.println

    Hi All,
    I've a Web Dynpro project which uses a simple java helper class.
    The java class has 'try catch' statements.
    When I'm in 'catch' I want to display an error message on the screen.
    I know that System.err.println writes the message in the defaultTrace.trc log file in the server but as a developer I don't always have access to the server.
    Is there an option to display the error message on the screen with some kind of response object? (I cannot use wdComponentAPI.getMessageManager.reportSuccess in my helper class)
    Thanks,
    Omri

    Hi Omri,
       It's not true that you cannot use the MessageManager in your helper java classes. Here's how you can do it:
    1. Create a java class in the src directory of your project and in the same packeage as your project. I think you have already done this. Let's say the class is called HelperClass.
    2. Declare a public variable of type com.sap.tc.webdynpro.progmodel.api.IWDMessageManager. Call it say, msgManager. The import will be added automatically.
    3. In the wdDoInit() of your WD write something like:
    HelperClass helperObj = new HelperClass();
    helperObj.msgManager  = wdComponentAPI.getMessageManager();
    4. Then when you catch the exception in your helper class, do a simple reportException().
    Regards,
    Satyajit.

  • How to refer to enclosing instance from within the member class?

    Hi
    How to refer to the enclosing instance from within the member class?
    I have the following code :
    import java.awt.*;
    import java.awt.event.*;
    public class MyDialog extends Dialog
         public MyDialog(Frame fr,boolean modal)
              super(fr,modal);
              addWindowListener(new MyWindowAdapter());
         public void paint(Graphics g)
              g.drawString("Modal Dialogs are sometimes needed...",10,10);
         class MyWindowAdapter extends WindowAdapter
              public void windowClosing(WindowEvent evt)
                   //MyDialog.close(); // is this right?
    In the above code, how can I call the "close()" method of the "Dialog" class (which is the enclosing class) from the inner class?
    Thanks in advance.
    Senthil.

    Hi Senthil,
    You can directly call the outer class method. Otherwise use the following way MyDialog.this.close(); (But there is no close() method in Dialog!!)
    If this is not you expected, give me more details about problem.
    (Siva E.)

  • Windows 8.1 PC, using reader, when searching a folder containing approx 100 doc's. If i search for a word, no results are returned. only the doc names can be found but nothing from within the doc. This is a new problem and was not the case before.

    Windows 8.1 PC, using reader, when searching a folder containing approx 100 doc's. If i search for a word, no results are returned. only the doc names can be found but nothing from within the doc.
    This is a new problem and was not the case before.

    Works perfectly fine for me with the latest Reader version (11.0.09).
    You write that it worked "before"; before what?  An update?  Update from what version to what version?

  • Whenever I use the trackpad on my 17" Macbook Pro (2010 model) there is a small, trebly processor sound coming from within the enclosure.

    Whenever I use my trackpad, there is a whirring, trebly sound coming from within the computer itself. It happens also when webpages are loaded or programs are compiled, but not when I use the keyboard or when the computer is in disuse. It has become louder over time, and it is obvious that when the computer senses input from the trackpad and must translate it, the sound is produced. Is there any way to reset the firmware or an option on the Settings menu that could perhaps help? I am concerned that it is a symptom of a larger problem. Thanks.

    The question mark means the computer cannot find a bootable volumes so can;t do anything, That, combined with annoying sounds, strongly suggests a failed hard drive.
    You can ask a "genius" at an Apple Rtail Store to test it but I'm pretty sure the drive is kaput. I'm hoping you had your data backed up.

  • Request.getParameter("blah") from within a class?

    Hi Everyone,
    Not sure if I'm missing something...
    I'm trying to create a class that will examine and parse information from a form, and then pass it to another class that knows how to handle the input.
    A request in the form of http://www.domain.com/stuff.jsp?1=param1&2=param2&4=param4
    stuff.jsp only has this:
    UrlRequestGetter params = new UrlRequestGetter();
    out.println(params.getTheParams());and the general idea for the UrlRequestGetter class is this:
    public classUrlRequestGetter {
         public String getTheParams(){
              String request1 = request.getParameter("1");
                    String request2 = request.getParameter("2");
                    String request3 = request.getParameter("3");
                    String request4 = request.getParameter("4");
    }Within that class, there will be various actions to check whether or not fields are empty, etc. The big point is that i'm trying to do a request.getparameter from within a class. When i try to compile, I get:
    cannot find symbol
    symbol:variable request
    Any thoughts?
    Thanks!

    Take a step back from all that, and read the error message: cannot find symbol: symbol:variable request
    Is "request" a variable you have declared or passed into your method getTheParams() ?
    Where is it supposed to get the request from?
    "request" is an implicit variable to your JSP. If you want to use it in your bean, you have to pass it as a parameter.
    I'm trying to create a class that will examine and parse information from a form, and then pass it to another class that knows how to handle the input.You might consider using the <jsp:setProperty> tag to map parameters to bean attributes automagically.
    Or the BeanUtils.populate method provided by Jakarta Commons BeanUtils.
    Or any framework like struts, jsf, spring, stripes....
    Cheers,
    evnafets

  • System.err.println or System.out.println

    while(true)
    System.err.println("Exception");
    The above sentences will cause the memory usage always increaing, at the end it will run out of memory.
    Why?

    public class Test {
    public static void main(String [] args) {
    while(true) {
    System.err.println("Exception");
    This is the whole program. It is definately a infinite loop, but it doesn't matter. Anyone can test it by changing the string value. Also, you can monitor the memory usage. It is very different between "Exception" and other strings which don't include "Exception".
    I use the Jbuilder5 under NT 4.0.

  • Create fixed assets from within the transaction for creating the purchase order

    Hello All,
    I have gone through the notes on help.sap.com related to automatic creation of asset master record at the time of creating purchase order.  I am not sure how do we achieve this?
    Link to the notes on help.sap.com
    SAP Library - Asset Accounting (FI-AA)
    Any suggesstions from the expert group is appreciated.
    Thank you,
    Vinay

    Hi Vinay
    I know there is a feature whereby you assign asset classes per material group and then you create assets from within the PO. I never used it though
    Let me tell you one thing or rather ask you. Will you as a finance consultant be willing to let a MM guy create the assets??
    Or will a MM guy be willing to create it?? If you allow them, you should be ready for surprises.
    Honestly, this is a feature not worth exploring unless a FI guy is willing to create the PO. I would suggest the creation of asset masters should be with FI only
    Br. Ajay M

  • Using Web Dynpro WDUrlGenerator from within J2EE Application deployed on NW

    I have two applications deployed on a NetWeaver Application Server 2004s.
    1. A Web Dynpro application.
    2. A J2EE Application
    What I want to do is to be able to build a url to the Web Dynpro application from within the J2EE application. Obviously the problem is using Web Dynpro classes within the J2EE application.
    So I edited the Java Build Path of the J2EE application to include the werbdynproservices.jar file and exception.jar files by extending ECLIPSE_HOME variable in the libraries section. I also checked them in Order and Export. I verified the built .war file and it does contain the two .jar files.
    This was sufficient to get my project build and deployed, however the servlet in my J2EE application shows NoClassDefFoundException when I run it. My guess is there's more I need to do to get the WDUrlGenerator to run in my J2EE class.
    Is this possible or is there a better way? I am trying to avoid the client having to modify a web.xml for each depployment.
    Thanks in Advance.

    This looks like what I want, but I am unable to test it.
    I found the application-j2ee-engine.xml file under the <project-root>/gen_wdp folder. I then attempted to open it with the SAP EARDD editor. It opens with the Source tab selected. If I try to click the General tab I get an error saying:
    "The source page has errors. Other pages cannot be used until these erros are corrected."
    I see nothing wrong with the XML document. It's source is here:
    <?xml version="1.0" encoding="UTF-8"?>
    <application-j2ee-engine>
        <provider-name>local</provider-name> 
        <modules-additional>
        <module>
          <entry-name>EVENTS_WorkflowNotification.wda</entry-name>
          <container-type>webdynpro</container-type>
        </module>
      </modules-additional>
    </application-j2ee-engine>
    When I deploy the application, everything works fine. I was going to edit the XML document by hand, but of course there is no DTD listed so I don't know what's supposed to go in there without the Editor doing it for me.
    Getting closer. Thanks so much.

  • Need to start JINI registrar instance from within the code

    HI All,
    I need to write JUnits for our app using JINI for which we need to start JINI registrar from within the code and then publish some services to it.
    Any idea how we could be starting the JINI registrar from Java Code ? Any thoughts/suggestions/pointers would be highly appreciated.
    Thanks in advance
    Vikram

    Hi Senthil,
    You can directly call the outer class method. Otherwise use the following way MyDialog.this.close(); (But there is no close() method in Dialog!!)
    If this is not you expected, give me more details about problem.
    (Siva E.)

  • I have CS 6 installed on a Win 7 OS machine. I can not connect to the internet to get updates from within the program. How do I fix this?

    I have CS 6 installed on a Win 7 OS machine. I can not connect to the internet to get updates from within the program. How do I fix this?

    IP routing doesn't work the way many folks might initially think it does; functional IP routing requires manual configuration and the establishment of static routes and default routes specific to the local network configurations, and it's very easy to get it wrong, or to get the default route swapped. Multiple NIC boxes don't magically work, either. (Been there, done that, wondered what happened to my network when the paths got reordered or my route settings were messed up, etc.)
    Routing configuration errors can be quite subtle, too. (Again, voice of experience. Ever had a thousand-seat office LAN accidentally routing through your desktop? As the, um, unnamed guilty party discovered, getting into that configuration was subtle. Seeing the performance crater on the fellow's box and on the LAN was obvious.)
    Knowing how IP routing works is a prerequisite to getting this configuration to work; there's manual configuration required. Clearly something has gone weird here.
    What to do? Read up on IP routing. I'll again suggest the threads and the manual mentioned earlier.
    And in general, I prefer to avoid using my comparatively expensive Mac boxes as sub-optimal IP routers or as firewall boxes. General-purpose operating systems and generic x86 boxes are going to be inherently poor IP routers. Dedicated routers (or embedded or surplus x86 boxes with routing software loaded) offload the Mac boxes here, and are also typically easier to configure manage. And "real" IP routers can have hardware specific to efficiently routing packets. Use of an outboard firewall or firewall-router box also greatly simplifies gateway routing, too; it's a configuration that many folks and many businesses tend to use.

Maybe you are looking for

  • Flash Player 16.0.0.235 breaks audio driver on Windows

    There is a severe bug in the latest version of Flash Player, relating to audio playback on Windows. Ever since upgrading to v16.0.0.235, Flash has been repeatedly breaking audio playback for the entire Windows system (i.e. every application that trie

  • My fullscreen playback doesn't play any sound

    I just go the latest iTunes update (as of 19th of September, 2013) and since then I haven't been able to play any of my movies, tv shows or podcasts with sound! Why is this? Please help ASAP!

  • App store crashes after updating to Yosemite

    MacBook Pro (13-Inch, Mid 2012) Processor 2.9GHz Intel Core i7 Memory 16 GB 1600 MHz DDR3 TRIM enabled. Symptoms: Unable to Update Yosemite Drivers via App Store, the Store app crashes with the following: Process:               App Store [966] Path: 

  • PS CC 2014.1 annoying UI bug

    2014.1 seems to have introduced a UI bug in the form of a permanent thick blue button mode outline in save dialogs.  See this screenshot. Note the blue outline around "None".  This used to be much thinner, and should move to the various radio buttons

  • Recovering Logical Standby - Non-Guarded Schemas

    I'm making use of logical standby databases for our reporting environment. We are also making use of the capability of having a number of other schemas that havent come from the primary and are therefore not managed by data guard. Recently had a prob