Logging & Tracing - Location.getLocation(????????????????)

Hi!
I have a java File *.java  which is inside of Developments
src/packages/.......
The problem is now that I would like trace some methods and variables of this class(*.java ).
But I can't use - >  wdThis.wdGetIPersonController().getLocation() in the mentioned java File.
What can I use instead of ?
mLocation =
     Location.getLocation(????????????????)
The standard usage of Logging at WebDynpro  is as follows:
I have to implement a getLocation method:
  public com.sap.tc.logging.Location getLocation( )
    //@@begin getLocation()
mLocation =
     Location.getLocation(                         wdThis.wdGetIPersonController().getLocation(),
     "im.IPersonMainView");
     return getLocation();
          return mLocation;
    //@@end

Sas-
You do not have to create a getLocation() method. When you create a component/view/custom controllers. Each controller has a private Location reference:
  private static final com.sap.tc.logging.Location logger =
    com.sap.tc.logging.Location.getLocation(TableCompView.class);
Just use this reference logger for all your logging needs. For example:
logger.debugT("The number of rows fetched is " + numRows);
Cheers-
Atul

Similar Messages

  • Problems with SAP logging,tracing in custom LoginModule

    Hello,
    We are developing a custom logimodule for our J2EE application on WebAS.
    We are using eclipse IDE to develop the code.
    We want to use the SAP logging framework in the custom loginmodule.
    In this regard we have certain queries:
    - If we hard code the log(category) and trace(location) file location in our loginmodules
    the logging, tracing works fine i.e. we are able to see the traces etc. in the files at the specified location.
    - Our requirement is that we want to leverage the logging tracing mechanism provided by the J2EE engine.That is we want that our traces should appear in the WebAS defaultTrace.0.trc file. Also we want that the trace properties for our loginmodule like severity, TraceFormatting etc. could be configured using the WebAS visual admin tool etc.
    As per documentation to configure tracing, we navigated to Log Configurator in visual Admin tool and from there to the destination tab but we don't see our LoginModule int the list of destinations.
    How could we enforce our LoginModule to use defaultTrace.0.trc file and let J2EE engine decide
    the logging properties like severity etc. for our LoginModule.
    Thanks
    Alok

    Hi,
    No, I´m not yet in the middle of a update. I want to apply some support package using JSPM, and it need to SDM run in integrated mode, but my sdm don´t start in integrated mode,
    Feb 18, 2009 5:51:57 PM  Info:
    Feb 18, 2009 5:51:57 PM  Info: ============================================
    Feb 18, 2009 5:51:57 PM  Info: =   Starting to execute command 'server'   =
    Feb 18, 2009 5:51:57 PM  Info: ============================================
    Feb 18, 2009 5:51:57 PM  Info: Starting SDM - Software Deployment Manager...
    Feb 18, 2009 5:51:58 PM  Info: tc/SL/SDM/SDM/sap.com/SAP AG/7.0014.20071029094708.0000
    Feb 18, 2009 5:51:59 PM  Info: SDM operation mode successfully set to: Integrated
    Feb 18, 2009 5:52:00 PM  Info: JStartupFramework is active
    Feb 18, 2009 5:52:00 PM  Info: Operation mode of SDM in JStartupFramework is "Integrated".
    Feb 18, 2009 5:52:00 PM  Info: Check if Server is running already.
    Feb 18, 2009 5:52:01 PM  Info: OK server is not running. Enable SDM Process in JStartupFramework.
    Feb 18, 2009 5:52:01 PM  Info: enabling SDM Process with JStartupFramework
    Feb 18, 2009 5:52:01 PM  Info: enabled SDM Process with JStartupFramework
    Feb 18, 2009 5:52:01 PM  Info: Successfully enabled SDM Process in JStartupFramework.
    Feb 18, 2009 6:04:11 PM  Error: SDM server startup not finished after 600 seconds. Giving up.
    Feb 18, 2009 6:04:11 PM  Error: Could not start SDM. Processing error. Return code: 4
    For these reason I want to extend the timeout value, or any other idea.
    Thanks.

  • Time-out checking log bucket location.

    Hi,
    Earlier this month, I successfully ran the OSB Cloud Module for Amazon S3 installer. It created a "new registration for this S3 user" with a new "Registration ID". It also generated an "S3 Logging Bucket" with a name based off of my Amazon nickname which at the time of running the Cloud module installer was "javanetworking".
    $ *./osbws_install.sh*
    Oracle Secure Backup Database Web-Service Install Tool, build 2011-02-04.0001
    AWS credentials are valid.
    Creating new registration for this S3 user.
    Created new log bucket.
    Registration ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    S3 Logging Bucket: oracle-log-javanetw-1
    Validating log bucket location ...
    Validating license file ...
    Create credential oracle.security.client.connect_string1
    OSB web-services wallet created in directory /u01/app/oracle/product/11.2.0/dbhome_1/dbs/osbws_wallet.
    OSB web-services initialization file /u01/app/oracle/product/11.2.0/dbhome_1/dbs/osbwstestdb1.ora created.
    Downloading OSB Web Services Software Library from file osbws_linux64.zip.
    Downloaded 20744341 bytes in 10 seconds. Transfer rate was 2074434 bytes/second.
    Download complete.
    Extracted file /u01/app/oracle/product/11.2.0/dbhome_1/lib/libosbws12.so
    Since then, I have changed my Amazon nickname (https://www.amazon.com/gp/nickname/index.html"). I was hoping to re-run the Cloud module installer and have it generate a new "S3 Logging Bucket". I removed the two S3 buckets that were created in the initial Cloud module install (the data and log buckets).
    However, when I attempt to re-run the Cloud module installer, it complains that it cannot find the original "S3 Logging Bucket":
    $ *./osbws_install.sh*
    Oracle Secure Backup Database Web-Service Install Tool, build 2011-02-04.0001
    AWS credentials are valid.
    S3 user already registered.
    Registration ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    S3 Logging Bucket: *oracle-log-javanetw-1*
    Validating log bucket location ...
    Time-out checking log bucket location.
    Please try again later.
    I even tried using the *-newLogBucket* option to osbws_install.jar so it would force the creation of new log bucket; however, it doesn't appear to do anything. It still complains about not finding the original S3 Logging Bucket.
    I thought the best option would be to "un-register" the Amazon S3 user the installer generated. There is no documented option in osbws_install.jar to perform a full "un-install" or "un-register". The Registration ID the installer creates appears to be hard-coded metadata somewhere in Amazon S3.
    +AWS credentials are valid.+
    +S3 user already registered.+
    +Registration ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx+
    I know that the registration information is not stored with your OTN profile because I tried putting in a fake OTN username/password when calling osbws_install.jar. It doesn't use the OTN username/password because it first uses your AWSID/AWSKey to see if there is information that the S3 user is already registered. Once it determines that the S3 account is already registered, it doesn't need to log in to OTN and displays:
    *S3 user already registered.*
    I did try this and it worked for modifying the backup bucket (OSB_WS_BUCKET) but didn't appear to work for the S3 Logging Blucket (_OSB_WS_LOG_BUCKET).
    1.) Manually re-create the missing S3 Logging Bucket (oracle-log-javanetw-1).
    2.) Run the Cloud module installer so it creates the wallet, configFile, and downloads the library.
    3.) Determine list of valid parameters that can be set in the configFile:
    $ *strings $ORACLE_HOME/lib/libosbws12.so | grep '^OSB_' | sort*
    OSB_WS_BUCKET <----------
    OSB_WS_CHUNK_SIZE
    OSB_WS_HOST
    OSB_WS_LICENSE_ID
    OSB_WS_LICENSE_MAX_SESSIONS
    OSB_WS_LOCATION
    OSB_WS_PFILE
    OSB_WS_PROXY
    OSB_WS_WALLET
    $ *strings $ORACLE_HOME/lib/libosbws12.so | grep '^_OSB_' | sort*
    _OSB_WS_100_CONTINUE
    _OSB_WS_ACCESSLOG
    _OSB_WS_ACCESSLOG_CLEANER
    _OSB_WS_ACCESSLOG_RETENTION_TIME
    _OSB_WS_ALLOCBUF_DISABLE
    _OSB_WS_BASIC_AUTH
    _OSB_WS_BUFFER_READ
    _OSB_WS_BUFFER_WRITE
    _OSB_WS_CHECKER_RETENTION_TIME
    _OSB_WS_CLEANER
    _OSB_WS_CLEANER_RETENTION_TIME
    _OSB_WS_DEFERRED_DELETE
    _OSB_WS_EVENT
    _OSB_WS_IP_REFRESH_TIMEOUT
    _OSB_WS_LOAD_BALANCE
    _OSB_WS_LOG_BUCKET <----------
    _OSB_WS_PURGE_LIMIT
    _OSB_WS_RECV_BUF_SIZE
    _OSB_WS_REDIRECT
    _OSB_WS_RESPONSE_TIMEOUT
    _OSB_WS_RETRY_WAIT_TIME
    _OSB_WS_REUSE_CONNECTION
    _OSB_WS_RUN_CLEANER
    _OSB_WS_SDU_SIZE
    _OSB_WS_SEND_BUF_SIZE
    _OSB_WS_SESSION_RETENTION_TIME
    _OSB_WS_TDU_SIZE
    _OSB_WS_TRACE_LEVEL
    _OSB_WS_UPLOAD_DELAY
    _OSB_WS_USE_IPV6
    _OSB_WS_VALIDATE_CHUNK
    4.) Modify the configFile to include:
    $ *cat $ORACLE_HOME/dbs/osbwstestdb1.ora*
    OSB_WS_HOST=s3.amazonaws.com
    OSB_WS_LICENSE_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    OSB_WS_WALLET='location=file:/u01/app/oracle/product/11.2.0/dbhome_1/dbs/osbws_wallet CREDENTIAL_ALIAS=idevjhun_aws'
    OSB_WS_BUCKET=idevelopment-oracle-backups
    _OSB_WS_LOG_BUCKET=idevelopment-oracle-log
    So,
    1.) Is the *-newLogBucket* option broke or an unimplemented method?
    2.) Is there a way to "un-register" or modify the S3 registration information so that the Cloud module installer will register a new S3 user? (i.e. starting from scratch)
    It would seem to me that a user might want to completely uninstall and un-register at some time in the future.
    3.) Where is the "Registered S3 User" metadata stored?
    4.) Can you specify the S3 Logging Bucket (and data bucket) during the install?
    There is a similar post which the user ran into the same issue when removing the S3 Logging Bucket.
    https://forums.oracle.com/forums/thread.jspa?messageID=4581188
    Best regards,
    jeff

    Hi again,
    my problem seems to be caused by us having deleted the bucket at an earlier stage. When we ran the installer script again, the installer was confused by this, and was not able to re-create a bucket.
    Rune

  • I get ERROR U44M1P7: Error log file location: C:\Program Files (x86)\Common Files\Adobe\Installers

    When updating Photoshop CS6 (Creative Cloud) I get ERROR U44M1P7: Error log file location: C:\Program Files (x86)\Common Files\Adobe\Installers. Initial Installation and actual funcioning wuith no problem, only on updating. I have tried several times with same error.

    Hi Alberto Pomares,
    Please refer the KB Doc : http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-updates-ccm.html

  • Cannot shrink log file 2 because the logical log file located at the end of the file is in use ?

    HI,
    I am getting this error frequently.. any recomendations :
    Executed as user: DB0\sqlservices. Processing database: dbin [SQLSTATE 01000] (Message 0) 
    Cannot shrink log file 2 (DB_log) because the logical log file located at the end of the file is in use. [SQLSTATE 01000] (Message 9008) 
    Processing database: DB_ [SQLSTATE 01000] (Message 0)  DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528) 
    Cannot shrink log file 2 (DB_log) because the logical log file located at the end of the file is in use. [SQLSTATE 01000] (Message 9008) 
    Processing database: DB [SQLSTATE 01000] (Message 0) 
    DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528) 
    Backup, file manipulation operations (such as ALTER DATABASE ADD FILE) and encryption changes on a database must be serialized. Reissue the statement after the current backup or file manipulation operation is completed. [SQLSTATE 42000] (Error 3023) 
    Processing database: DB_AC [SQLSTATE 01000] (Error 0)  
    [SQLSTATE 01000] (Error 0)  DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Error 2528). 
    The step failed.
    Please give any receomendations to avoid this error in future :
    Yangamuni Prasad M

     
    Hi Yangamuni,
    Are there any progress?
    Please have a look on the below threads with the similar issues as yours:
    http://www.sqlservercentral.com/Forums/Topic652579-146-1.aspx
    http://social.msdn.microsoft.com/forums/en-US/sqldatabaseengine/thread/ae4db890-c15e-44de-a2af-e85c04260331
    The solution is change the recovery mode to SIMPLE, shrink log files and then change to the FULL recovery mode.
    Thanks,
    Weilin Qiao
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.

  • [ALSB] turning on/off logging/tracing for proxy services

    Hi all,
    do you have any snippet for turning on/off logging/tracing for proxy services using WLST or JMX ?
    I've seen a previous thread about Enable/Disable Proxy Service using JMX and I'm looking for something similar.
    Regards
    ferp

    Thanks, but I mean using WLST or JMX code and not by ALSB console
    regards
    ferp

  • Logging/Tracing on Netweaver Studio console

    Hello All,
    I am new to SAP Netweaver. I have worked on Java before and have used log4j Apache logging API for logging.
    I am able to see the logs on console and also redirect it to a file depending on the appender i have configured.
    My question here is, in Netweaver domian, how do i check logs on my studio console.
    There is an option in Visual Admin where i can configure in Log Configurator --> advanced mode
    - log destination where i can select the Console Log.
    Even after selecting this and having a restart of application on the J2EE engine, i am not able to see any logs on console.
    All logs/traces are appended to defaultTrc.
    Please help me with this. Could you please provide me a flow as to how can i use Logging/Tracing in and out?
    Thanks for your help and support.
    Nimbuskudva

    Hi Nimbuskudva,
    You can implement a logger in your webdynpro java application in NWDS and you can see the logs by going to the netweaver administration console of the application.
    The url for going to admin console would be http://<host>:<port>/nwa > you chold have admin priviledge to access this > login into it > go to Monitoring > Log and Traces > select default trace from the Show dropdown and you would be able to see the log.
    You need to keep the log level of the server to debug. This needs to be done by Basis.
    Regards,
    Sen

  • Log file location settings

    Is it possible to change the log file locations, both master log file (from hyperion_home\essbase\essbase.log) and individual application log files (from their respective applicaiton folders), to some completely different locations. If yes, then what are the files that need to be configured or what settings need to be done for that. Thanks a lot...

    I like the idea, but I don't believe there are any settings for this (unless they are undocumented, and I doubt it).Perhaps you could do something in the O.S. to cause a replication or redirection to occur. Seems feasible, at least.

  • Log file location

    I would like to change the log file location for the Weblogic.log,
    access.log and jdbc.log. I tried setting the last two in the properties
    file but WL didn't seem to take them. Do I have to use the double back
    slash stuff? and what about the weblogic.log?
    Thanks
    - Tom

    Hi,
    look at this class:
    java.util.logging.FileHandler and study the pattern. This allows you to change the log file location.
    L.P.

  • Ttcwerrors.log and ttcwmesg.log file locations

    Is there an option we can set in the ttcrsagent.options file to change the location of the ttcwerrors.log and ttcwmesg.log files?
    We can change the location of the daemon user and error log files by setting the -supportlog and -userlog options in ttendaemon.options, so we were hoping we could do the same in ttcrsagent.options.
    Thanks,
    -Jules

    Unfortunately, no. The ttcw log file location is not configurable
    Simon

  • Whicj log file locates the problem?

    Everywhere on the Internet it states to check your log file to see what causes any problems (kernel errors, apps unexpectedly quiting, etc.) with the OS. The problem is there are so many log files; which do I need to review to find the problem?

    Crash logs are located in ~/Library/Logs/CrashReporter and /Library/Logs/CrashReporter. They are best viewed via the Console.app. Launch it, select File->Open Quickly, and navigate to each one. Additionally, review the Console and System logs for other pertinent information, using the Console.app.

  • OSB log file location

    OSB log file location
    Where can I see the OSB logs if I use Report -> log action?
    Can somebody give me the name and location of the log file?

    Figured this out. It writes to weblogic admin server log:
    eg:
    C:\bea\user_projects\domains\ServiceBusTutorial\servers\AdminServer\logs\ServiceBusTutorial.log

  • Oracle 8 ver 8.1.7 log file location

    Dear all
    Do you know where is the Oracle log file location in OpenVMS platform? Please advice. Thanks

    8i is no longer available to download, it is only available at the oracle intranet under explicit request. I advise you to ask your Oracle representative for a copy of 8i. Here in the forum I suggest you to post a new thread at the download forum, and let people there know you want to have 8i for downloading at otn.
    I have seen several, certainly a lot of requests of 8i media, here in the forum, but not on the download section. I encourage you to let people who is monitoring this site to let them know your request.
    Download forum: Downloads Issues
    ~ Madrid.

  • Log file location for FC 3510

    Does somebody know whats the default log file location for a FC3510 connected to solaris 8 machine?
    thanks.

    You need to enable specific logger for the same:
    http://identityandaccessmanager.blogspot.com/2011/02/setting-up-log-level-in-oim-11g.html
    Loggers:
    oracle.iam.request
    oracle.iam.requestactions

  • I get the following error: Error log file location: /Library/Logs/Adobe/Installers

    I get the error U44M1P7 Error log file location: /Library/Logs/Adobe/Installers
    Does anyone have an idea what I need to do?  Thanks

    Did you ever find a solution? I am in sort of the same boat. I even had an Adobe rep try to help me. For some reason my Adobe App Manager does not work on my Macbook. It orginally did but one day it just would not launch. After numerous attempts of uninstalling and re-installing without success, the only workaround solution was to create another user on my Macbook and install the Application Manager on that user's account. I can then download the apps / programs and updates from there. When I log out of that user and back into my main account the Adobe programs work....well most of them. I have noticed that certain programs, like Muse will launch and work correctly under my second user account but it will not luanch without error on the main account.
    The fact that no one at Adobe seems to be able to provide a solution is frustraing. Everything worked fine one day, then its all messed up. Switching users is not an ideal solution at all.

Maybe you are looking for