WDJ Exception logging in NWA

Hi,
I am trying to write some piece of code in WDJ using which exceptions caught can be shown in NWA under "Default Trace".
I am using the following piece of code:
LoggingHKComp loggingHKComp = new LoggingHKComp(wdThis);
       String packageName = loggingHKComp.getClass().getPackage().getName();
       location = Location.getLocation(packageName);
       location.traceThrowableT(1, "Error in Application", hkexception);
hkexception is a parameter of the method of type java.lang.Exception.
This kind of works but does not show the whole stack trace in the  Default Trace . It actually points to some entry in the sever log file. Is there any way I can get the whole stack trace in the "Default Trace".
Also kindly advise me on any settings that need to be made in the NWA to achieve this.
I am using NWDS 7.1 EHP1 and CE 7.1
Thanks and Regards,
Himanshu

Solved using :
SimpleLogger.traceThrowable(Severity.ERROR, location, "Error inApplication", hkexception);
Himanshu

Similar Messages

  • Handling exception logging in a Java task scheduler program?

    I need to design a Task Scheduler Where
    1) User should be able to schedule multiple task at the same time.
    2) There should be proper error handling on failure of any task and should not affect the other running tasks.
    I found the related programme at http://www.roseindia.net/java/example/java/util/CertainAndRepeatTime.shtml
    My concern is about handling of point 2 in program provided at above link. Say I schedule a recurring mail send process in above program which will be run first time on 12 september 2011 at 2 am, and will be repeated after every 2 hours Say a one process fais at 8 am. I want to log it in log file with task name and time details. Now if I look at above programme i.e CertainAndRepeatTime.java. This program will exit once it schedules all the tasks. Where and how should handle the logging?
    Posted at http://stackoverflow.com/questions/7377204/handling-exception-logging-in-a-java-task-scheduler-program but folks suggesting Quartz scheduler . My Limitation is that i can't for quartz because my project allows me to use only standard java library. Is there any way we can handle logging in the same programme in case of exception.

    Well, first of all I wouldn't trust any code from roseindia. So you might want to look for more reliable advice.
    As for your logging, you can add it for example to the TimerTask itself. I don't recommend adding logging to that roseindia cr*p though.

  • CFMX7 cfserver.log and exception.log files on Linux

    Is there any way to make these log files CF Admin viewer
    friendly in Linux? The CF Admin log viewer doesn't have any sorting
    or filtering capabilities for these files and they start at the
    beginning of the log file. So it'll show me for example, 1 - 40 of
    54376 and I have to hit next, next, next, next, etc... to see the
    most recent activity. There's no last page button, which makes it
    impossible to use. I know I can cat the dang thing to the screen or
    use another linux utility but shouldn't this work in the CF Admin?
    Anyone have a tweak that does this? I'm sure there's an xml
    file somewhere I can change < log-usability
    logfile="exception.log" value="unusable" /> to <
    log-usability logfile="exception.log" value="admin-friendly" />.
    Thanks in advance.

    Is there any way to make these log files CF Admin viewer
    friendly in Linux? The CF Admin log viewer doesn't have any sorting
    or filtering capabilities for these files and they start at the
    beginning of the log file. So it'll show me for example, 1 - 40 of
    54376 and I have to hit next, next, next, next, etc... to see the
    most recent activity. There's no last page button, which makes it
    impossible to use. I know I can cat the dang thing to the screen or
    use another linux utility but shouldn't this work in the CF Admin?
    Anyone have a tweak that does this? I'm sure there's an xml
    file somewhere I can change < log-usability
    logfile="exception.log" value="unusable" /> to <
    log-usability logfile="exception.log" value="admin-friendly" />.
    Thanks in advance.

  • Exception.log and mail.log stopped logging (MX7)

    Hi all - we have been experiencing intermittent problems with our MX 7.02 server & checked the log files to help diagnose the problem.
    However both exception.log and mail.log appear to have stopped logging information in June 2010.
    The size of the logfiles is only 178K and 34K.
    Does anyone know why they've stopped & how to restart the logging?
    Many thanks
    cf_rog

    On CF7 as far as I know you need to restart the CF server. In CF9 you
    can selectively enable/disable logging for those files and thus
    attempt to restart logging.
    Mack

  • SAP Logs in NWA

    hi all,
    I am unable to view SAP logs in NWA logs and traces..It keeps on processing, but we can see logs once in a blue moon only.
    Since, NWA is main and powerful tool for J2ee engine troubleshooting, we need this be perfect so that we can make use to troubleshoot other errors.
    How to check if there is any problem with the NWA ? it opens properly and i am able to login and browse through the tabs..Please help.
    Appreciate your time..
    Thanks!
    Addy

    Ramanath,
    Thanks for your reply.The problem here is that i am not able to view "Last 24 hours" logs under Logs and Traces..!! And my question here was how to check if there is any problem with the NWA itself..??
    Sometimes, after processing for a long time, It opens...
    NWA is configured properly and i am able to use it..but, when it comes to checking logs, it keeps on processing for a long time and never shows the results most of the time..
    Please help...Appreciate your time.
    Addy

  • Query Log and Exception log

    Hi All,
    I have running essbase application in my system. I execute some query now, what i need to do? to see query log file and exception log file.

    An exception log is only produced if the essbase server or application/database shuts down abnormally, more information :- http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_dbag/dlogs.html#dlogs1038688
    Query log I provided the details to set up in your previous post :- Log Files
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Error while logging into NWA in CE 7.1

    Hi,
    I added sap.theme.default= http://host:port/webdynpro/resources/sap.com/tcwddispwda/global/SSR/themes/Theme in NWA WebDynpro properties.Post that there is an exception coming up in NWA screen itslf.
    Excpetion log:
    java.lang.IllegalStateException: You have to configure also the theme name using configuration parameter <sap.theme.name.default> when running with inline CSS.
        at com.sap.tc.webdynpro.serverimpl.defaultimpl.laf.LookAndFeelService.getDefaultTheme(LookAndFeelService.java:490)
        at com.sap.tc.webdynpro.serverimpl.defaultimpl.laf.LookAndFeelService.getStyleSheetURLs(LookAndFeelService.java:208)
        at com.sap.tc.webdynpro.serverimpl.defaultimpl.laf.LookAndFeelService.getCurrentThemeName(LookAndFeelService.java:86)
        at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager$System.<init>(LSRenderManager.java:385)
        at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.<init>(LSRenderManager.java:51)
        ... 54 more
    Regards
    Radhika

    Check this...if you have not that already: PI 7.1 - Unable to find associated SLD element for specified class
    Incorrect/ expired password was cited as a cause of error.
    Regards,
    Abhishek.

  • Exception logged but not thrown on invocation of webservice (BEA-000905)

    Using webservices.jar that comes with Weblogic SP3 and ant task clientgen to build the client, I got this warning on console:
    <14/Abr/2005 16H00m BST> <Warning> <Net> <BEA-000905> <Could not open connection with host: localhost and port: 7777.>
    Of course, weblogic is right, localhost:7777 is not listening, but the problem is that the application does not know this, since no exception is thrown. I'm catching for a Throwable and I get nothing. This is severe because I'm changing the state of some records in a DB table if the invocation of the webservice is OK, i.e., if no exception is thrown. But there really is a connection exception...
    Can anyone help?

    Just to clarify: the warning is logged when invoking a webservice and the target machine is down. I'm sniffing the communication through localhost:7777 (so this is the target machine for the invocation), and then it redirects the request to the machine where the webservice is hosted.
    I was expecting to catch an exception like IOException or RemoteException, or even a custom exception that I defined in the throws clause of the webservice method.

  • FTP communication channel generating logs in NWA Logs and Traces

    Dear all
    Wishihg you all a very happy new year. I have a peculiar issue, where I am using a FTP adapter, and files are deposited in an FTP location. This processing is runnign succesfully. However, my NWA logs says that there is communication issues while putting htis file in the server.
    Whenever there is a transaction happening this error gets generated in NWA log.
    Does any one have any idea why this is happening.
    Many thanks & Regards : Bobby Bal
    Below mentioned is the error message.
    Message:   Error during disconnect from ftp server ediftp-pw09.colpal.com, ignored: com.sap.aii.adapter.file.ftp.FTPEx: 421 Unexpected reply codeTerminating connection.
    Severity:   Error
    Date:   2012-01-10
    Time:   09:18:12:191
    Category:   /Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/File
    Location:   com.sap.aii.adapter.file.File2XI.disconnectFTPServer
    Application:   
    Thread:   XI File2XI[XXX_WMS_SENDER_CC/SYS321/XX_ChinaWMS]_34877
    Data Source:   j2ee/cluster/server1/log/applications_01.log
    Arguments:   
    Passport User Activity ID:   7f0f0ddd38fd11e1b099c68806a4be02
    Message ID:   com.sap.SOA.apt_file.0058
    Session:   0
    Transaction:   
    User:   J2EE_GUEST
    Time Zone:   0-500
    Customer Message Component:   BC-XI-CON-AFW
    Runtime Component:   com.sap.aii.af.lib
    Correlation ID:   144518351000001784
    Passport Session:   7F0F0DDD38FD11E1B099C68806A4BE02
    Passport Connection:   7f0f0ddd38fd11e1b099c68806a4be02
    Passport Connection Counter:   0
    Log ID:   C000A7E404320DFE00000000013600A4
    Host:   xppapp14
    System:   XPP
    Instance:   DVEBMGS14
    Node:   server1

    Hi Bobby,
    1. Check whether the user you are using has access control i.e Read/Write Access from the folder in FTP server..
    2. Check it at OS level by directly pasting or pick the files..
    3. From SAP end check the user credientials provided in the file adapter i.e username of the FTP server and the Password of the FTP server it is case-sensitive.
    4. Try to give the exact path from where the file is to be picked and reactivate the scenario.
    5. what is the file size of the file that is going to be picked from the ftp server.
    6. Then finally check in Communication channel monitoring detailed log what is the error it was coming and check the log in XI server you can clearly notice the error.
    Even some times it will access at OS level but not through the server for this reactivate the adapter and provdie the user credentials and the path once again..
    Regards,
    Ravi

  • How to track beans which are destroyed, but no exception log?

    According to the WLS console, we have two out of about 30 entity beans
    which have instances which are being destroyed. However, I cannot find
    the exception which is causing them to be destroyed. I see nothing in
    the WLS logs, nothing in our own logs, nothing, nothing, nothing.
    I am wondering if this might be because for those two beans, there are
    finder methods which are being invoked, and which may not find anything,
    in which case the exception is caught and processing continues
    appropriately. Is this a scenario where a bean instance might be created
    and then destroyed?
    Any ideas on how I can determine why these beans on being destroyed, if
    the above scenario does not apply?
    Thanks!

    Well, there are only 2 paths to 'does not exist' in the spec.
    unsetEntityContext or system exception. If unsetEntityContext isn't being
    called, then it must be a system exception. If that isn't being logged, the
    container isn't obeying the spec. If a FinderException is causing the
    destruction of the instance, that isn't spec compliant, either. A
    reproducible test case and a support call may be your best course of action.
    Bill
    "Jay Schmidgall" <no@spam> wrote in message news:41dd5bd9$1@mail...
    Well, I put logging in the unsetEntityContext method and it is
    apparently not being called; max-beans-in-cache is not explicity set, so
    it defaults to 1000, I believe, and the console tells me the cached
    beans current count is under 50 for both.
    On the other hand, the scenario I suggested does seem to cooincide well
    with the destroyed count; that is, after the bean is not found by the
    finder, the destroyed count goes up. From your description, that seems
    like it is just coincidence, but it is definitely there.
    bill kemp wrote:
    Finder methods are called on a pooled instance of the bean. If the
    finder
    doesn't find the entity, a FinderException(which is just an application
    exception) should be thrown, which is reported to the client, but the
    instance is not destroyed. If a system exception is thrown, thecontainer is
    supposed to log it before it destroys the instance. The only other pathto
    destruction in the state diagram is when the bean goes from 'pooled' to
    'does not exist' when the container calls the unsetEntityContext method.So,
    maybe put some output code in the unsetEntityContext method to see ifthe
    container is removing beans because of cache size considerations. Just a
    guess. Do you have <max-beans-in-cache> set to anything in particular?

  • Fetch From UWL to WD view :UWL Exception Logged in users context or session

    Hi,
    We have a requirement in which , we need to fetch all UWL Items and need to display these in a webdynpro view.
    We tried based on this link [Custom UWL|http://searchsap.techtarget.com/tip/0,289483,sid21_gci1240907,00.html].
    Coding What I have Tried is
           IWDClientUser user1 = WDClientUser.getLoggedInClientUser();
                IUser epUser1 =user1.getSAPUser();
                IPortalRuntimeResources runtimeResources = PortalRuntime.getRuntimeResources();
                wdComponentAPI.getMessageManager().reportSuccess("Version "+PortalRuntime.getVersion());
                IUWLService uwlService = (IUWLService) runtimeResources.getService(IUWLService.ALIAS_KEY);
                uwlService = (IUWLService) runtimeResources.getService(IUWLService.ALIAS_KEY);
                wdComponentAPI.getMessageManager().reportSuccess("6");
                UWLContext uwlContext = new UWLContext();
                uwlContext.setUser(epUser1);
                wdComponentAPI.getMessageManager().reportSuccess(" UML Context"+uwlContext.getUserId());     
                wdComponentAPI.getMessageManager().reportSuccess("9");
                IUWLSession uwlSess=uwlService.beginSession(uwlContext, 6000);
                uwlContext.setSession(uwlSess);
                wdComponentAPI.getMessageManager().reportSuccess(" UML Session"+uwlSess.getUser().getUniqueID());
                IUWLItemManager itemManager = uwlService.getItemManager(uwlContext);
                wdComponentAPI.getMessageManager().reportSuccess("Item manager"+itemManager.getItems(uwlContext,null,null));
                QueryResult result = itemManager.getItems(uwlContext,null,null);
                wdComponentAPI.getMessageManager().reportSuccess("12");
                int size = result.getTotalNumberOfItems();
                ItemCollection collection = result.getItems();
                java.util.List list = collection.list();
                Item item = null;
                Date date = null;
                String subject = null;
                for(int i = 0; i < 5; i++)
                if(!(i > (size -1)))
                item = collection.get(i);
                date = item.getDueDate();
                subject = item.getSubject();
                wdComponentAPI.getMessageManager().reportSuccess("item "+item);
                wdComponentAPI.getMessageManager().reportSuccess("date "+date);
                wdComponentAPI.getMessageManager().reportSuccess("subject "+subject);
    But I am getting the Exception
    Exp: com.sap.netweaver.bc.uwl.UWLException: Wed May 14 11:20:29 IST 2008 (Default) Logged in users context or session doesnt exist
    in the line
    QueryResult result = itemManager.getItems(uwlContext,null,null);
    But according to first mentioned link the user is getting through Portal Request Object. In webdynpro, we were not able to get Portal request object. So we  are getting the current user from UME .
    So we are getting the exception.
    Can anybody help me
    Thanks and Regards
    Smitha

    check this link
    Re: UWL breaks behind TAM

  • How to see Exceptions Logged in the Tomcat Server

    Software Installed
    jakarta-tomcat-5.5.2
    Windows 98SE
    IE6.0SP1
    Requirement
    There is a long Exception appearing when I start the Tomcat Server by running startup.bat.in the Dos Console Window Everything is scrolled out and so I am not able to see the real Exception.
    How to read the real Exception.I have heard that the Exceptions are logged in the %CATALINA_HOME%\logs Folder But I can't find anything.
    Is there any change required in the server.xml file for logging the Exceptions
    Thanks in advance
    CSJakharia

    Right click on the title bar of the DOS command window. Select properties. Set the "Screen Buffer Size" Height to 1000. This should allow you to view the entire Exception stack trace in the DOS window.

  • How to disable http exception logging in Diagnostics ?

    I have a lof o such entries in my WADLogsTable ;
    Message string
    Operation=ReflectedHttpActionDescriptor.ExecuteAsync, Status=500 (InternalServerError), Exception=System.Web.Http.HttpResponseException: Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response'
    property of this exception for details.
       at MyApi.Helper.SaveDataHub(NewDatas p2d)
       at MyApi.Controllers.Mycontoller.<>c__DisplayClass19.<UploadData>b__17(Task`1 readTask)
       at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
       at System.Threading.Tasks.Task.Execute(); TraceSource 'w3wp.exe' event
    As I already Log Http 500 exception with Trace.TraceError, how can i disable HttpException to be logged by Azure ?

    Hi,
    May I know how do you configure your diagnostics?
    From my experience, we can choose what we will use, refer to
    http://www.windowsazure.com/en-us/develop/net/common-tasks/diagnostics/ for more information.
    Regards

  • Fw: Exception Logging

    Does anyone know whether Forte automatically logs exceptions when a raised
    exception crosses between partitions / between environments.
    We want to create, add to the stack and raise an exception on the server,
    and trap
    it on the client (in a different environment), without that exception being
    written to
    the log.
    I know that the raised exception wouldn't normally get logged without the
    call to ShowErrors, but I wanted to make sure that Forte would not
    automatically log it when it crosses between environments.
    Cheers,
    Dave
    Triad Group PLC, EMail: [email protected]
    GU7 1XE, England. Tel: 01483 860222 X 513

    Aha, I knew it would be something simple, works now, thanks!
    Richard

  • Exception Logging

    Hi All,
    1. In a BPEL process if a fault occurs then, Im able to see the cause of the error in the Auit Flow, by clicking on the activity which errored out.
    I want to capture that error message in a particular variable and write it to log files.
    Is anyone able to capture the exact exception message and write to some log file?
    2. I can see some system defined faults that can be caught. Can some one provide me with the documentation regarding the specification of each system defined faults.
    3. If at runtime I get some fault that is not defined either in System defined faults or in Partner link fault messgaes, how can I capture that fault message.
    Any help is highy appreciated.
    Thanks,

    Pls note that fault policy managemnt was intoduced with 10.1.3.3.hope you are using the same.
    You could write a java component which implements IFaultRecoveryJavaClass and use this component in the javaAction tag of the policy file.
    iFaultRecoveryContext.getFault().getMessage() in handleBPELFault() method (search for this method in http://technology.amis.nl/blog/?p=2485 ) would give you the fault message which you can insert into your custom logger.
    Details regarding where to put policy file etc is on the blog http://www.it-eye.nl/weblog/2007/09/10/oracle-bpel-10133-fault-policy-management/
    Pls note that the class file of the java component you create should be placed in
    ORACLE_HOME/bpel/system/classes/
    Yes the fault policy will overide the catch blocks
    Thnks

Maybe you are looking for