NWA Log Viewer - Sort by columns

Hello Experts,
I'm using NWA log viewer (J2EE version is 7.31 SP7).
Is it possible to sort by columns?
It doesn't make sense donwloading to excel just for sorting )-:
Am I missing something?
Regards,
Omri

Got an official answer from SAP - it is not possible to sort in NWA log viewer )-:
Omri

Similar Messages

  • NWA Log Viewer Access

    Hello
    Is there a way of giving someone access to log viewer in NWA and nothing else, not in NWA and not in the poprtal?
    Thanks
    Roy

    Try assigning the role "SAP_JAVA_NWADMIN_LOGVIEWER_ONLY" .. user should see only log viewer through NWA.
    Mahesh

  • I am unable to sort multiple columns in a table created in Pages.

    I had been using Appleworks up until I installed Lion and have now switched to iWork. I created a table within a Pages document and am able to sort a single column (using the Table Inspector and choosing Sort from  Edit Rows and Columns) but the Sort option is grayed out when I attempt to sort multiple columns.
    In another post, someone talked about this being a problem if you have merged fields. I do not believe I have done this (to be honest I don't know the function of merging fields).
    This is very frustrating as I was easily able to sort these tables in Appleworks.

    Sharon Anderson wrote:
    Thanks for your quick response! I have been trying that but then found that Numbers would only let me print in landscape view so I had to paste the table back into Pages. Is there a way to print in portrat view (from Numbers?)
    Not so. In the lower left corner of the window, there's an icon that looks like a piece of paper. If you see this:
    you are in Sheet View, or normal, mode. If you see this:
    You are in Print View mode. Now you see the icons for portrait and landscape modes. Click your choice. Then arrange your content to fit the pages as you wish.
    Jerry

  • Sort table columns in a table and context created dinamically

    Hello all,
    I have implemented the table sorting several times in another developments, but now I'm facing a problem.
    I have created the table and context node that I need to sort dinamically (before somebody ask me why, I would say that it's the only way to do that for my current project, there was no possibility of doing that in dessign time). I have implemented the table sorting more or less the same way I would do with a table created in dessing time, but when I run my WD the sorting of columns doesn't work.
    In the wdDoModifyView, I have put the following code:
    if(firstTime){
    IWDAction ordenacion     = wdThis.wdCreateAction(IPrivateResultDispGlobalView.WDActionEventHandler.ORDENACION,  null);
    IWDParameters param = ordenacion.getActionParameters();
    param.addParameter("nombreNodo",nombreNodo);
    and in the code of the action
        //@@begin onActionOrdenacion(ServerEvent)
         System.err.println("**** NOMBRE NODO **** "+nombreNodo);
         wdContext.currentContextElement().getTableSorter().sort(wdEvent, wdContext.getChildNode(nombreNodo, IWDNode.LEAD_SELECTION));
        //@@end
    The name of the node ("nombreNodo) it's only correct the first time I click on a column.
    Has anybody implemented the table sorting in a dinamically created table and context node? And how do you do to make it works.
    Thank you very much

    Here is the code
    //Preparamos Navegaciones
    IWDAction abrirProyecto = wdThis.wdCreateAction(IPrivateResultDispGlobalView.WDActionEventHandler.ABRIR_PROYECTO, null);
    IWDAction abrirDisp     = wdThis.wdCreateAction(IPrivateResultDispGlobalView.WDActionEventHandler.ABRIR_DISPONIBLE,  null);
    //IWDAction ordenacion     = wdThis.wdCreateAction(IPrivateResultDispGlobalView.WDActionEventHandler.ORDENACION,  null);
    IWDAction ordenacion=wdThis.wdGetOrdenacionAction();
    IWDParameters param = ordenacion.getActionParameters();
    param.addParameter("nombreNodo",nombreNodo);
    IWDTable table = wdThis.wdGetInformesController().crearTabla(view, nombreNodo, movimientosInfo,new String[]{"Codi Projecte",null,"Nom Projecte", "Import Projecte", "Client", "Increment Disponible futur per facturació no emesa i / o anualitats pendents","Increment Disponible futur per ingressos pendents de cobrar", "Disponible"},new String[]{"10px", null,"10px", "10px","10px","10px","10px","10px"},new IWDAction[]{abrirProyecto,null, null, null, null,null,null,abrirDisp}, -1);
    //ordenar tabla
    wdContext.currentContextElement().setTableSorter(new TableSorter(table, ordenacion,null));
    containerTablasProyecto.addChild(table);
    Edited by: Mireia Romo on May 28, 2009 12:27 PM

  • Sort Order Column not Working

    I have set a sort order column on one of A VARCHAR field, but the functionality is not working. The sorting is enabled in the table view and when I sort by the said column it still sorts based on the VARCHAR values of the column instead of the other INT column I want to sort by. The logical SQL and physical query never even includes the column to sort. Are there any exceptions for the 'Sort Order Column' setting? Is there a config setting or data connections setting that I need to check to make this work?
    Thank You!
    Edited by: VNC on Oct 3, 2011 9:08 AM

    hi,
    can you give me more detailes like some sample column data like below kind
    Like Ex: varchar month column it sould display based on month id
    month : Fev-2011,Dec-2011,jan-2011 and month id 1 to 12
    set your month id as sort order column of month name.
    double click month name ->In general tab set the sort order column as month id
    FYI...see the sample link
    http://www.biconsultinggroup.com/obiee-tips-and-tricks/setting-a-sort-order-column.html
    i hope helped you
    THanks
    Deva
    Edited by: Devarasu on Oct 4, 2011 12:39 AM

  • Sort order column in a report

    hi all,
    I've seen in a dashboard (OBIEE 10.1.3) on linux os that is possible to sort the columns of the measures in a table (an arrow appears next to the name of the column), but I haven't noticed in the settings how get this result.
    is a feature of linux or you can apply this in windows? if so, how?
    thank you for the reply

    you have to enable the sorting for table view in Answers report. refer below article.
    http://gerardnico.com/wiki/dat/obiee/dashboard_column_sorting
    - Madan

  • Strange application behaviour after try to sort datagrid column

    Hi all
    I have a simple Air desktop application with customized DataGrid (Spark version). Problem that users found is when they trying to sort grid by one of the columns applicaiton closes without any messages. I've repeated this bug on my PC but there is a problem - in debug mode (i mean with ADL) it works OK without any tries to crash on sort. So my questions in priority order:
    1. Is that possible to obtain live Air application errors log? I mean after installation. Maybe with 3rd party applicaiton. I'm using MonsterDebugger and added few log messages but looks like application just crashes without firing closing or close event.
    2. Which part of DataGrid could crash applicaiton in release mode? Just thought debug mode is more strict.
    My dev system:
    Flash Builder 4.6
    Adobe Air 3.2
    Win 7 Ultimate 64bit
    Best regards, Roman
    P.S. Sorry for my bad english

    Based on your idea, i've intercepted the click event and I use stopImmediatePropagation.
    THen i added an image to sort the column. So if the image is clicked the sort is ok.

  • Log Viewer not working

    Hi Guys,
    I'm hitting error (RFC_ERROR_SYSTEM_FAILTURE) when i access MSS Team Calendar from the Portal. I'm trying to access the log files (defaultTrace.trc in the Log Viewer of the Visual Administrator) to try to find the error but it does not seem to capture it. ANyone has any idea why?

    hiiiiiii...
    try like this::
    http://hostname:port/nwa
    give ur hostname and port no... it wil open logviewer..
    refer the following thread::
    <a href="https://www.sdn.sap.com/irj/sdn/thread?messageID=758436#758436">https://www.sdn.sap.com/irj/sdn/thread?messageID=758436#758436</a>
    <a href="https://www.sdn.sap.com/irj/sdn/thread?messageID=387115#387115">https://www.sdn.sap.com/irj/sdn/thread?messageID=387115#387115</a>
    hope it may help u..
    thanks and regards,
    Chinnadurai.R
    [points r welcome ]

  • SAP NW 7.3 Application Server Java: Not able to open log viewer

    Hi Experts,
    I am facing this strange error in the NW 7.3 AS Java hence not able to see the logs. I tried to open the logs from nwa/logs and from troubleshooting --> logs and traces as well. Not sure whats wrong.
    Error while loading Log Viewer: Overview
    Next steps :Create CSS ticket in component BC-JAS-ADM-LOG-LGV 
    Technical Details :Stack Trace  See Logs
    com.sap.tc.webdynpro.services.exceptions.ApplicationFaultException: wdDoInit: exception thrown in this user coding area
    Caused by: java.lang.NullPointerException: while trying to load from an object array loaded from local variable 'content'
    Please suggest on this, any pointer will be appreciated.
    Regards
    Jeetendra

    Hi Satish,
    I can see the logs from OS level but that is restricted only to administrative use not all the users of server have os level access. I updated the LM CORE and CORE Tools component to NW 7.3 SP03 however, it did not help. I am posting the log as follows
    Stack Trace
    com.sap.tc.webdynpro.services.exceptions.ApplicationFaultException: wdDoInit: exception thrown in this user coding area
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:164)
    at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:227)
    at com.sap.tc.webdynpro.progmodel.components.Component.initController(Component.java:258)
    at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:206)
    at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:418)
    at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponent(ComponentUsage.java:352)
    at com.sap.lm.itsam.ui.floorplan.FloorPlan.loadEmbeddedApplicationInternal(FloorPlan.java:2051)
    at com.sap.lm.itsam.ui.floorplan.FloorPlan.loadEmbeddedApplication(FloorPlan.java:442)
    at com.sap.lm.itsam.ui.floorplan.FloorPlan.init(FloorPlan.java:645)
    at com.sap.lm.itsam.ui.floorplan.FloorPlan.loadProfessionalApplication(FloorPlan.java:1174)
    at com.sap.lm.itsam.ui.floorplan.FloorPlan.navigateNFtoEmbeddedApplication(FloorPlan.java:1745)
    at com.sap.lm.itsam.ui.floorplan.wdp.InternalFloorPlan.wdInvokeEventHandler(InternalFloorPlan.java:966)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.invokeEventHandler(DelegatingComponent.java:248)
    at com.sap.tc.webdynpro.progmodel.components.Component.fireEvent(Component.java:492)
    at com.sap.tc.lm.co.ui.nwa.workcenter.overview.wdp.InternalWorkCenterOverview.wdFireEventNavigateToEmbeddedApplication(InternalWorkCenterOverview.java:315)
    at com.sap.tc.lm.co.ui.nwa.workcenter.overview.WorkCenterOverview.fireEventNavigateToEA(WorkCenterOverview.java:381)
    at com.sap.tc.lm.co.ui.nwa.workcenter.overview.wdp.InternalWorkCenterOverview.fireEventNavigateToEA(InternalWorkCenterOverview.java:222)
    at com.sap.tc.lm.co.ui.nwa.workcenter.overview.WorkCenterOverviewView.onActionNavigate(WorkCenterOverviewView.java:440)
    at com.sap.tc.lm.co.ui.nwa.workcenter.overview.wdp.InternalWorkCenterOverviewView.wdInvokeEventHandler(InternalWorkCenterOverviewView.java:221)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:142)
    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:75)
    at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.doHandleActionEvent(ProcessingEventPhase.java:159)
    at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.execute(ProcessingEventPhase.java:94)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:162)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:110)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:97)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:515)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:55)
    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1667)
    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1481)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingStandalone(ApplicationSession.java:899)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessing(ApplicationSession.java:871)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:355)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:325)
    at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
    at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:89)
    at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doPost(AbstractDispatcherServlet.java:62)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
    at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:453)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
    at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:276)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:462)
    at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:270)
    at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
    at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    Caused by: java.lang.NullPointerException: while trying to load from an object array loaded from local variable 'content'
    at com.sap.lm.itsam.ui.lv.wd.comp.LV.isExternalLocation(LV.java:488)
    at com.sap.lm.itsam.ui.lv.wd.comp.LV.wdDoInit(LV.java:151)
    at com.sap.lm.itsam.ui.lv.wd.comp.wdp.InternalLV.wdDoInit(InternalLV.java:231)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:161)
    ... 77 more
    Please let me know if there is any other work-around for this. Thanks a-lot for your help.
    Regards
    Jeetendra

  • New View / Sort Field, PLEASE!

    I'll start off by saying that iTunes is not at all my favorite software for media organization; I use J. River Media Center. But I have to use it because I proudly own a new iPhone 3GS, and iPod Touch.
    If someone could please make my life with iTunes easier by creating a "Filename" or "Folder Path" viewing/sorting field in the iTunes Library that would just be GREAT. I heavily rely on sorting my media by their locations in my directory, and I'm sure many would appreciate it. If you ask me, it's a far more valuable field for sorting than like Disc Number or Skip Count. Please, please, please get a "Filename" field in the iTunes Library asap.

    J. River Media Center allows me to (extremely easily) rename, move, and copy files according to certain rules based off their tags. Therefore, all of my music is already in their correct folders etc. by the time iTunes gets to it.
    In iTunes I don't need to know which folder a file is in or what the filename is. Frankly, I don't care.
    I can find any song, movie, podcast, etc. directly in iTunes.
    All I'm asking for is another way to sort my media.
    In iTunes, you can sort on any of the columns available (soetihng like 27 different variable).
    You can use smart playlists, as weel as selecting any genre, artist, album and sort those by any of the previous mentioned columns.
    However, if none of this suits your needs, send suggestions here as Meg mentioned -> http://www.apple.com/feedback/itunesapp.html

  • PI NWA Log Config change does it need restart?

    I would like to see detail trace info of FTP messages, hopefully to see ftp commands in the trace.
    So I have changed the   File adapter default trace level to "All" in NWA Log Configuration.
    I logged out of NWA and posted some ftp messages and relogged into NWA and looking log viewer (defaultTrace) file, I don't see the details.
    Do I need to restart the PI server this trace level to take effect?
    also is there any other way to get to see the details of the ftp commands?
    Thanks in advance.

    Hello
    No, a restart is not required. The application should start writing at the new logging severity. It is possible that the message was processed on a different java server node. Anyway, you can check note #761921 Creating an XI Adapter Framework trace file. This documents the exact steps required to increase the logging severity.
    There is another tool available in note #1514898 XPI Inspector for troubleshooting XI. You will be able to see the ftp commands in here also.
    Regards
    Mark

  • Log View Link Disappeared

    Hi All,
    I used to be able to access the Log Viewer via
    Systems Administration >> Support >> Portal Runtime >> Log Viewer (EP 6.4 SP12)
    However I can't find it on SP15.  I have super_admin access.
    I have a work around by creating an URL iView.  with the URL >>/irj/servlet/prt/portal/prtroot/com.sap.portal.runtime.admin.logviewer.default
    or entering
    http://myserver.com:51000/irj/servlet/prt/portal/prtroot/com.sap.portal.runtime.admin.logviewer.default
    Thanks
    Brian

    Hi Brian,
    the Log viewer you are searching for is gone because of too many apps providing the same functionality (visual admin, NWA, standalone log viewer etc.)
    Regards,
    Pascal

  • Gkismet and kismet-log-viewer

    kismet-log-viewer PKGBUILD
    pkgname=kismet-log-viewer
    pkgver=0.9.7
    pkgrel=1
    pkgdesc="Takes Kismet .xml log files and produces a nicely formatted html interface to browse the logs with"
    url="http://www.mindflip.org/klv/"
    depends=('perl-xml-libxml')
    source=(http://www.mindflip.org/klv/$pkgname-$pkgver.tar.gz)
    md5sums=('d9d878690e807477a918b2292946993f')
    build() {
    cd $startdir/src/$pkgname-$pkgver
    install -d -m755 $startdir/pkg/usr/bin
    install -m755 ./*.pl $startdir/pkg/usr/bin
    EDIT
    I'm sorry for this but it looks like I was too fast with posting gkismet pkgbuild.
    This package will not work with current gtk-perl version because it does not support old gnome libs (1.4). And there is no package for old gnome-libs.
    If you already have gnome-libs from somewhere you can recompile gtk-perl (change standard gtk-perl pkgbuild from extra) and gkismet should work fine.
    But IMO this is not worth the time and used disk space.
    I hope gkismet devs will move to gtk2 soon.
    Sorry again for any trouble.
    gkismet PKGBUILD
    pkgname=gkismet
    pkgver=0.0.9
    pkgrel=1
    pkgdesc="GTK GUI frontend for Kismet wireless snifer"
    url="http://gkismet.sourceforge.net"
    depends=('gtk-perl' 'kismet')
    makedepends=('sed')
    source=(http://gkismet.sourceforge.net/$pkgname-$pkgver.tar.gz)
    md5sums=('cbcdbc9d29d470e8b4e4564f1c2c370c')
    build() {
    cd $startdir/src/$pkgname-$pkgver
    #fixing paths
    sed -i "s:PREFIX=/usr/local:PREFIX=${startdir}/pkg/usr:" ./Makefile
    sed -i "s:ETC=$(PREFIX)/etc/gkismet:ETC=${startdir}/pkg/etc/gkismet:" ./Makefile
    sed -i "s:!PREFIX!:/usr:" ./gkismet.pl
    sed -i "s:$self->{'path'}{'etc'} = $prefix . '/etc/gkismet':$self->{'path'}{'etc'} = '/etc/gkismet':" ./GKismetApplication.pm
    make install

    I stopped CE then moved the entire log to a temporary location and created a new empty log directory. I started CE and then went into NWA to see if the Log Viewer would display. I still recieve the same error as before. Any other suggestions possibly? Is there a way to simply install the Log Viewer?
    Thanks and regards,
    Cheryl

  • Unable to see custom Trace messages in Log Viewer which were defined in UDF

    Hello Experts, I am not able to see my trace messages in Log Viewer. I have a small user defined fuction which takes a variable and returns its uppercase and while do that it writes few warning level trace messages in the trace file. I've tried changing the levels from Warning to Info but I still don't see anything in my Log Viewer. At this point I am not even sure if I am looking at right place. When I test my mapping in Message Mapping's Test tab it works fine and shows me all my trace messages. But when I do end to end it is not writing anything to the trace file. I've tried to use instructions from following blogs:
    1. /people/michal.krawczyk2/blog/2007/04/30/xipi-personalized-logging-tracing(logging and tracing)
    2. /people/michal.krawczyk2/blog/2005/05/10/xi-i-cannot-see-some-of-my-messages-in-the-sxmbmoni (logging and tracing)
    3. /people/michal.krawczyk2/blog/2005/02/25/simple-java-code-in-graphical-mapping--xi(for my UDF)
    but I still don't see traces in my Log Viewer. Please let me know if I am doing anything wrong here.
    Thanks in advance!!
    ==============================================================
    public String TraceVar(String var1, Container container) throws StreamTransformationException{
    AbstractTrace importanttrace; //create an instace of AbstractTrace
    importanttrace = container.getTrace(); //get trace
    importanttrace.addWarning("FiletoFileMP:MyUdflibrary: " + var1); //write first message to the trace
    // fix the naming conventions later
    String SenderName; // declare multiple vars to store infos
    String ReceiverName;
    String interface_name;
    String message_ID;
    String time_Sent;
    java.util.Map map;
    map = container.getTransformationParameters();
    //get interface info into the variables
    time_Sent = (String) map.get(StreamTransformationConstants.TIME_SENT);
    message_ID = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
    interface_name = (String) map.get(StreamTransformationConstants.INTERFACE);
    SenderName = (String) map.get(StreamTransformationConstants.SENDER_NAME);
    ReceiverName = (String) map.get(StreamTransformationConstants.RECEIVER_NAME);
    //post interface info to the trace
    importanttrace.addWarning("Time Sent: " + time_Sent);
    importanttrace.addWarning("Message ID: " + message_ID);
    importanttrace.addWarning("Interface Name: " + interface_name);
    importanttrace.addWarning("Sender Name: " + SenderName);
    importanttrace.addWarning("Receiver Name: " + ReceiverName);
    //convert var1 to uppercase to make sure this function has be executed
    return var1.toUpperCase();
    Edited by: Mayur Patel on May 5, 2009 11:03 PM

    Thank you Prateek for a quick response.
    Yes I was able to see my trace messages in SXMB_MONI. Below is my the info... This is great. I am still not sure why this info is not showing up in Log Veiwer's (default trace) window. Any ideas? Since this XML file contains lots of other information I was wondering how to put my trace messages into the log viewer.
    Thanks!!
      <Trace level="1" type="T">*** START APPLICATION TRACE ***</Trace>
      <Trace level="2" type="T">FiletoFileMP:MyUdfLibrary: Honda</Trace>
      <Trace level="1" type="T">FiletoFileMP:MyUdfLibrary: Honda</Trace>
      <Trace level="1" type="T">Time Sent: 2009-05-05T16:16:39Z</Trace>
      <Trace level="1" type="T">Message ID: 366CEAF14D3B410033AFDDB71CD2AF73</Trace>
      <Trace level="1" type="T">Interface Name: SIC_Car_Outbound</Trace>
      <Trace level="1" type="T">Sender Name: SIC_Car_Outbound</Trace>
      <Trace level="1" type="T">Receiver Name: SI_Car_Inbound</Trace>
      <Trace level="1" type="T">*** END APPLICATION TRACE ***</Trace>

  • Reading .log file & Sorting input

    Hello all
    Currently I'm working on a projekt were I have to read a "in.log" file, sort it and save it to another "out.log" file, the contents of the in.log file is:
    [204.0.44.73]: Dir: path
    [204.0.44.73]: Dir: path
    [204.0.44.74]: Dir: path
    [204.0.44.73]: Dir: path
    [204.0.44.74]: Dir: path
    and so on, now what I have to end up with is this in the out.log:
    #1
    [204.0.44.73]: Dir: path
    [204.0.44.73]: Dir: path
    [204.0.44.73]: Dir: path
    Count = 3
    #2
    [204.0.44.74]: Dir: path
    [204.0.44.74]: Dir: path
    Count = 2
    It's for the system administrator at school who doesn't want to do it himself but wants to pay an amount for me to do it (very small amount). I'll pay max duke dollars for a reply which can help me..
    Please help, thx in advance

    I must be really bored... Use it with "java Parser <logname>"
    import java.io.*;
    import java.util.*;
    public class Parser{
         public void splitLog( File input ){
              try{
                   FileInputStream fis = new FileInputStream( input );
                   BufferedReader br = new BufferedReader( new InputStreamReader( fis ) );
                   Hashtable hosts = new Hashtable();
                   String line;
                   while( ( line = br.readLine() ) != null ){
                        StringTokenizer st = new StringTokenizer( line, "]" );
                        if( st.hasMoreTokens() ){
                             String host = st.nextToken();
                             if( host.trim().startsWith("[") ){
                                  host = host.trim().substring(1);
                             if( !hosts.containsKey( host ) ){
                                  hosts.put( host, new Vector() );
                             Vector v = (Vector)hosts.get( host );
                             v.addElement( line );
                   Enumeration enum = hosts.keys();
                   while( enum.hasMoreElements() ){
                        String host = (String)enum.nextElement();
                        Vector v = (Vector)hosts.get(host);
                        FileOutputStream fos = new FileOutputStream( host + ".log" );
                        for( int i = 0; i < v.size(); i++ ){
                             line = (String)v.elementAt( i );
                             fos.write( (line + "\r\n").getBytes());
                        fos.close();
              catch( Exception e ){
                   e.printStackTrace();
         public static void main( String[] args ){
              File input = new File( args[0] );
              Parser parser = new Parser();
              parser.splitLog( input );
    }

Maybe you are looking for

  • Problem in Controlling Area created with 3 characters long

    Hi: I have a "small" problem, perhaps you could help me. We have created a new Controlling Area, but it is created only with 3 characters, instead of four. We have been working with no problem until me have to create a Purchase Order with some profil

  • I cannot connect any Apple device to my business network.  iPhone or iPad

    Several employees and the owner of the company have iPhones and iPads but not one single person can connect any of them to my Wi-Fi network.  All Android devices and all laptops (we do not have any Macs) can connect just fine.  What are we doing wron

  • Non read privileges for css folder under grid

    Trying to use the global view function gv$ to give a RAC view of some errors but getting read permissions on the css folder. select inst_id, originating_timestamp, message_text from TABLE(gv$(cursor(select inst_id, originating_timestamp, message_text

  • Share in Elements 9

    I recently installed Elements 9 and also have Elements 8, as well as Lightroom 3.  First, had trouble with where images got saved (which is now resolved) but have tried to share an image using e-mail attachments, or share to  flickr, facebook, etc. a

  • Exel 2010 opening .xls as .txt

    I have this customer that only wants to use .xls files so i made it so that when they right-klick in an explorer window they get the option of creating "new microsoft excel 97-2003 worksheet" and this works fine. the problem arises when they create a