Cannot understand/pipe mplayer log output

Hi,
I'm hoping to do something with dzen to build a status bar for mplayer. Initially it will be very similar to mplayer's OSD, but in a bar above the video, not over the top of the video.
When you run mplayer you get output in the terminal like this (I'm just interested/showing the last few lines):
VO: [xv] 540x432 => 576x432 Planar YV12
A: 3.6 V: 3.6 A-V: 0.000 ct: 0.040 0/ 0 6% 1% 0.3% 0 0
The second line constantly updates as the audio/video plays, and it's what I'm interested in.
If you pipe it you will not see that second line, why is that? If you pipe it through grep or awk for example, you will not see that line while mplayer is running; you might do at the end, but it's no use then.
Can someone explain why this line does not get piped?
Thanks

That's most likely because the tools you are piping to (you give awk and grep as examples) read line by line.  Mplayer does not output a newline character, so the line is never "complete" until mplayer exits.  Awk, grep, or any script with a "read line" command will block until mplayer appends the newline and exits.
You can write such a tool though - just don't wait for a newline.  Mplayer can be piped through the following "repeater" that does absolutely nothing useful, but it does read and echo each character:
#include <stdio.h>
int main() {
int c;
while (c=getchar()) putchar(c);
return 0;
You can expand on this to do something with those characters.  Alternately, you could even make a non-endline piping tool that would check if 'c' was equal to the terminal code to move back to the start of the line and replace that with a '\n'.  This would allow you to use this ~10 line C program as an interpreter while doing everything else with grep, or awk, or any bash script.
I would not be surprised if mplayer also has an option to output in such a format, but I don't know it off hand.
EDIT: the following works as a translator.  Pipe through this to your preferred tool or script:
#include <stdio.h>
int main() {
int c;
int p1=0,p2=0;
while ( (c=getchar()) !=EOF ) {
putchar(c);
if (c == 'J' && p1 == '[' && p2 == 27) {
putchar('\n');
fflush(stdout);
p2 = p1; p1 = c;
return 0;
Last edited by Trilby (2012-11-07 15:27:33)

Similar Messages

  • Why do we not get logging output for the clients?

    Q: Why do we not get logging output like #show log all | include <client mac address> for the wireless clients?
    A: When the clients connected to Bridge mode SSID, Firewall hits and logging does not work.  
    This is one of the limitations with bridge mode.  

    logical. fair. I can understand the confusion in policy  as another fine cloud service - DropBox - has a different model for increases in free storage amounts for one account = evangelism. As many policies as there are services probably.
    cya 'round o' kilted one
    CCC

  • Cannot write to transaction log "C:\Program Files (x86)\SAP BusinessObjects\sqlanywhere\database\BI4_Audit.log

    Hi friends,
    My server Intelligence Agent (SIA) can not start because the database service "SQLAnywhereForBI" can't start also. I got the following error :
    "I . 08/09 20:35:06. A read failed with error code: (1392), Le fichier ou le répertoire est endommagé et illisible.
    E. 08/09 20:35:06. Fatal error:  cannot write to transaction log "C:\Program Files (x86)\SAP BusinessObjects\sqlanywhere\database\BI4_Audit.log"
    E. 08/09 20:35:06. unable to start database "C:\Program Files (x86)\SAP BusinessObjects\sqlanywhere\database\BI4_CMS.db"
    E. 08/09 20:35:06. Error writing to transaction log file
    I. 08/09 20:35:06. Database server shutdown due to startup error "
    inside the database log file.
    Please, can you help me

    I found the solution by following the advice given on the following forum:
    http://evtechnologies.com/transaction-logs-on-sybase-sql-anywhere-and-sap-​​businessobjects-bi-4-1
    In fact, I crushed the BI4_Audit.db and BI4_Audit.log files and I replaced with others that I got from another machine where I installed BO again and where the files are not corrupted . After I logged in to the CMS database by executing the command in the command line:
    dbisql -c "UID = DBA; PWD = mypassword; BI4 Server =; DBF = C: \ Program Files (x86) \ SAP BusinessObjects \ sqlanywhere \ database \ BI4_CMS.db."
    Once connected, I start the command:
    alter database 'C: \ Program Files (x86) \ SAP BusinessObjects \ sqlanywhere \ database \ BI4_Audit.db' alter log off;
    The query runs successfully.
    And that's good, I can be connected to BO smoothly.
    Thank you again Eric

  • Xorg freezes, video lags, high log output (linux,xorg-server,nvidia)

    Hey,
    It seems the up-to-date system doesn't work for my Laptop anymore. Wasn't too sure where to post this, as I couldn't test this anywhere else yet.
    I experience extreme lags in Xorg (apparently due to high log output to Xorg.0.log as mentioned here: https://bbs.archlinux.org/viewtopic.php … 9#p1305939 ). These lags seem to be related to Xorg, the linux kernel and maybe something else I haven't found yet.
    Concerning the hardware: Dell XPS 1340 with:
    00:00.0 Host bridge: NVIDIA Corporation MCP79 Host Bridge (rev b1)
    00:00.1 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
    00:03.0 ISA bridge: NVIDIA Corporation MCP79 LPC Bridge (rev b2)
    00:03.1 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
    00:03.2 SMBus: NVIDIA Corporation MCP79 SMBus (rev b1)
    00:03.3 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
    00:03.5 Co-processor: NVIDIA Corporation MCP79 Co-processor (rev b1)
    00:04.0 USB controller: NVIDIA Corporation MCP79 OHCI USB 1.1 Controller (rev b1)
    00:04.1 USB controller: NVIDIA Corporation MCP79 EHCI USB 2.0 Controller (rev b1)
    00:06.0 USB controller: NVIDIA Corporation MCP79 OHCI USB 1.1 Controller (rev b1)
    00:06.1 USB controller: NVIDIA Corporation MCP79 EHCI USB 2.0 Controller (rev b1)
    00:08.0 Audio device: NVIDIA Corporation MCP79 High Definition Audio (rev b1)
    00:09.0 PCI bridge: NVIDIA Corporation MCP79 PCI Bridge (rev b1)
    00:0a.0 Ethernet controller: NVIDIA Corporation MCP79 Ethernet (rev b1)
    00:0b.0 SATA controller: NVIDIA Corporation MCP79 AHCI Controller (rev b1)
    00:0c.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
    00:10.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
    00:15.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
    00:16.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
    00:17.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
    00:18.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
    01:07.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
    01:07.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
    01:07.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
    01:07.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)
    02:00.0 VGA compatible controller: NVIDIA Corporation G98M [GeForce 9200M GS] (rev a1)
    03:00.0 VGA compatible controller: NVIDIA Corporation C79 [GeForce 9400M G] (rev b1)
    06:00.0 Network controller: Qualcomm Atheros AR928X Wireless Network Adapter (PCI-Express) (rev 01)
    I tested the up-to-date nvidia and nouveau drivers, to no avail. They both spam Xorg.0.log as soon as I watch a video, move a window or do something similiar "hi-res" in Gnome, leading to lags in all applications and X itself until it dies from high CPU usage + high chip temperature.
    So I started downgrading my system.
    I tested linux 3.9.9 but that didn't do the trick.
    Currently I'm on linux 3.8.8-2, nvidia 313.30-5 and xorg-server 1.13.3-1, xf86-input-evdev 2.7.3-2 and xf86-input-wacom 0.20.0-1. This seems to be stable so far, the extreme X log output persists though, as soon as an external monitor is plugged in:
    [ 234.963] (II) NVIDIA(GPU-0): Display (DELL2407WFPHC (DFP-1)) does not support NVIDIA 3D
    [ 234.963] (II) NVIDIA(GPU-0): Vision stereo.
    [ 234.963] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
    [ 234.963] (**) NVIDIA(0): device DELL2407WFPHC (DFP-1) (Using EDID frequencies has
    [ 234.963] (**) NVIDIA(0): been enabled on all display devices.)
    I tried nvidia drivers with and without my xorg.conf.d snippets, but that didn't change anything.
    I'm kinda clueless... which package is the odd one out? All of them? At this point I wouldn't even know where to file a bug report.
    I've been away for a couple of months and didn't upgrade the system too often in between, but this behavior is really odd.
    Any ideas/ help would be highly appreciated!

    Okay... I can definitely revise my statement about the Xorg.0.log. It has been the same since yesterday... so the spamming is gone!
    I'd really like to find out if this is a linux kernel or a direct Xorg problem (of version 1.14 and above).

  • GlassFish Tools - Eclipse console does not show server log output

    Hi,
    I just installed the latest Glassfish Tools (6.2.1.201308190137) on Eclipse Kepler and Glassfish Server 3.1.2.  But when I start the server and open the console ('view log file' button) there is no output displayed (also not during deployment). When I open the server.log file in a text editor I can clearly see the log output. Re-starting Eclipse, re-opening the console view didn't help. I have this bug both on Windows 8 and OSX 10.8.4.
    Is there something obvious that I am missing? In my previous pre-kepler Eclipse installation this works like a charm (using the same glassfish server). Also the path to the log file displayed on the top of the console view is correct.
    This might be related to the following thread:
    GlassFish > View Log File opens in editor instead of console
    Will have to use my old eclipse installation until this is resolved. Any help is appreciated.
    -- Mike

    Apparently, the GlassFish Tools for eclipse is expecting the log messages in 'ODLLogFormatter' format only, and will refuse to show any logs messages that don't adhere to this format.
    I've tried configuring my logback messages to match this format, and that works until an exception is thrown and a log message is entered somewhere using the 'UniformLogFormatter' format, which then causes the server.log parser to refuse to show any more messages.
    This is a bug, but I'm unsure where to report bugs now since the move to OEPE.  (Was https://java.net/jira/browse/GLASSFISHPLUGINS)

  • Hello, I just bought a 2013 Mac mini and I cannot get the sound to output to my Dell U2713HM monitor.  I went to sound output but even though my Dell shows up there when I select it there is no sound output to it.  I am using a mini DP to DP cable...

    Hello, I just bought a 2013 Mac mini and I cannot get the sound to output to my Dell U2713HM monitor.  I went to sound output but even though my Dell shows up there when I select it there is no sound output to it.  I am using a mini DP to DP cable...Any ideas? Thanks

    Hi Alxx911, and John Hammer1. After reading John's reply - " You can plug something into it's headphone jack. though" . I thought i'd try out of curiosity. I plugged in some headphones. I didn't expect anything to happen  and nothing happened. The audio jack is for the Dell soundbar which is optional.
    Here's a direct copy and paste from the users manual: Section About Your Monitor.
    Attaching the Soundbar AX510 / AX510PA (Optional) CAUTION: Do not use with any device other than the Dell Soundbar. NOTE: The Soundbar power connector (+12 V DC output) is for the optional Dell Soundbar AX510/AX510PAonly. To attach the Soundbar: 1. Working from the back of the monitor, attach the Soundbar by aligning the two slots with the two tabs along the bottom of the monitor. 2. Slide the Soundbar to the left until it snaps into place. 3.  Connectthe Soundbar with the DC power connector. 4. Insert the mini stereo plug from the back of the Soundbar into the computerís audio output jack. For HDMI/DP, you can insert the mini stereo plug into the monitorís audio output port.  If there is no sound, check your PC if the Audio output is configured to HDMI/DP output.
    This monitor has no speakers. (Like John Hammer1 mentioned). The no speakers feature was one of the reasons I chose this monitor.
    Good Luck !

  • I have a Win7Pro SP1 PC locked down with a Group Policy as it is a public facing PC. PDF fillable forms cannot be completed when logged on as the restricted user. The forms work as a normal user. What are the user requirements/permissions needed to fill f

    I have a Win7Pro SP1 PC locked down with a Group Policy as it is a public facing PC. PDF fillable forms cannot be completed when logged on as the restricted user. The forms work as a normal user. What are the user requirements/permissions needed to fill forms?

    Well, try this (I was able to fix my with these steps):
    Go Utilities > Disk Utility
    Select your Startup Disk, e.g. Macintosh HD
    Then, under the First Aid Tab, click Verify Disk Permissions.
    If there are errors, then click repair Disk Permissions.
    After it is done, restart the computer and see if your problem is resolved.
    I hope this help.
    Zeke
    www.ZekeYuen.com/blog/

  • Cannot find PDL type for output device LOCL in J1INCRT

    Dear all
    I am getting error in PRD system. When I am running J1INCRT (Customizing for Certificate Printing)  the error
    cannot find PDL type for output device LOCL
    we are using ECC6 ,oracle 10g  and windows 2003
    Kernel release    701
    Please suggest how to solve 
    Regards,
    Kumar

    Hello
    It looks like that you had not installed the ADS(Adobe Document server) for the PDF type reports. Please check with your basis team if you want to configure ADS.
    If you need the output as a sapscript then please do the sollowing steps:
    (1) Execute transaction SM30
    (2) Enter 'Table/View' as V_T5F99OCFT
    (3) Select 'Maintain' option.
    (4) Select 'New Entries' option from the Application Too
    (5) Enter following entries:
         Logical Form Name    = HR_IN_EPF12A_99M
         Form Variant         = (Leave this field blank)
         End Date             = 31.12.9999
         Start Date           = 01.01.1990
         Form Type            = SAP Script (SSC)
         Def. Type            = (This field should be checke
         PDF Form Name        = HR_IN_EPF12A_99M
         SAP Script Form Name = HR_IN_EPF12A_99M
         Smart Form Name      = (Leave this field blank)
    (6) Save the entries
    The above example I have given you is only for the form 12A.
    You have to make entries for all the reports sapscript in this table.
    Please goto SE71 -> F4 -> Payroll -> Payroll India here you will find
    all the sapscripts you require.
    Regards
    Ramana

  • How oracle standard code to create/write concurrent log/output to $APPLCSF on the application tier server.

    Dear all,
    Could you please let me know how oracle standard code create/write concurrent log/output to $APPLCSF on the application tier server? utl_file ? or any other API?
    Thanks.
    Best & regards,

    APPS.FND_FILE
    PL/SQL APIs for Concurrent Processing
    http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T458258.htm
    PACKAGE: APPS.FND_FILE
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_details?c_name=FND_FILE&c_owner=APPS&c_type=PACKAGE&c_detail_type=sou…
    PACKAGE BODY: APPS.FND_FILE
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_details?c_name=FND_FILE&c_owner=APPS&c_type=PACKAGE%20BODY&c_detail_t…
    Thanks,
    Hussein

  • NOKIA LUMIA 520: I cannot see my call log date wis...

    Dear nokia support team and members,
                                I cannot view my call log date wise. If i receive call or If I missed a call I need to scroll down to the respective call entry like a treasure hunt in the call log history.
                               My brother has Lumia 610 which is a old version of wondows i.e.,7.5 mango where in he doesn't have this kind of issue at all. Being a updated model nokia lumia 520 should have this feature and should also expected additional features..But this is really disappointing ..
                                Please help me to solve this issue..
    Thanks !

    No, the date and time is correct. Even then the problem is same....

  • Event Viewer cannot open the event Log or Custom view. Verify that the Event log service is running or query is too long. The instance name passed was not recognized as valid by a WMI data provider(4201).

    "Event Viewer cannot open the event Log or Custom view. Verify that the Event log service is running or query is too long. The instance name passed was not recognized as valid by a WMI data provider(4201)"
    This error keeps cropping up now and again on most of our domain controllers (OS-2008 AND 2008R2)...Usually a restart fixes the issue however the issue repeats and security logs don't generate.
    Any advice on how to fix this issue permanently would be greatly appreciated.

    Please see this: https://social.technet.microsoft.com/Forums/windows/en-US/95987ca3-a1b2-4da6-95b7-d825d06cdac7/error-code-4201-the-instance-name-passed-was-not-recognized-as-valid-by-a-wmi-data-provider?forum=w7itprosecurity
    You can also try rebuilding the WMI repository: http://blogs.technet.com/b/askperf/archive/2009/04/13/wmi-rebuilding-the-wmi-repository.aspx
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Cannot find PDL type for output device '(Printer name)'

    Hi,
    After seeing the statutory reports (PF, ESI etc) in standard format, we try to print form. We get the below error:
    Cannot find PDL type for output device '(Printer name)'
    Message no. FPRUNX113
    Diagnosis
    No PDL type has been found for the specified output device.
    System Response
    Error message
    Procedure
    Contact your system administrator.
    Procedure for System Administration
    For more information, see SAP Note 685571.
    Any input will be off great help...
    Regards
    Pooja

    Hello
    It looks like that you had not installed the ADS(Adobe Document server) for the PDF type reports. Please check with your basis team if you want to configure ADS.
    If you need the output as a sapscript then please do the sollowing steps:
    (1) Execute transaction SM30
    (2) Enter 'Table/View' as V_T5F99OCFT
    (3) Select 'Maintain' option.
    (4) Select 'New Entries' option from the Application Too
    (5) Enter following entries:
         Logical Form Name    = HR_IN_EPF12A_99M
         Form Variant         = (Leave this field blank)
         End Date             = 31.12.9999
         Start Date           = 01.01.1990
         Form Type            = SAP Script (SSC)
         Def. Type            = (This field should be checke
         PDF Form Name        = HR_IN_EPF12A_99M
         SAP Script Form Name = HR_IN_EPF12A_99M
         Smart Form Name      = (Leave this field blank)
    (6) Save the entries
    The above example I have given you is only for the form 12A.
    You have to make entries for all the reports sapscript in this table.
    Please goto SE71 -> F4 -> Payroll -> Payroll India here you will find
    all the sapscripts you require.
    Regards
    Ramana

  • What is this error fatal: Write failed: Broken pipe in log of N7K

    <186>: 2015 Mar 24 08:29:27 HKT: %DAEMON-2-SYSTEM_MSG: fatal: Write failed: Broken pipe .Client is 75.121.220.251,length of packet causing error 84 84 - sshd[684]
    what is this error fatal: Write failed: Broken pipe in log of N7K
    i find many brute force guessing login,
    what can we do next?
    [7m--More--[27m
    iled for user root#02# from 222.186.30.115 - sshd[23714]
    [7m--More--[27m
    2015 Mar 24 07:17:25 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root#02##02# from 222.186.30.115 - sshd[23714]
    [7m--More--[27m
    2015 Mar 24 07:17:28 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root from 222.186.30.115 - sshd[23715]
    [7m--More--[27m
    2015 Mar 24 07:17:28 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root#02# from 222.186.30.115 - sshd[23715]
    [7m--More--[27m
    2015 Mar 24 07:17:28 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root#02##02# from 222.186.30.115 - sshd[23715]
    [7m--More--[27m
    2015 Mar 24 07:17:31 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root from 222.186.30.115 - sshd[23717]
    [7m--More--[27m
    2015 Mar 24 07:17:31 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root#02# from 222.186.30.115 - sshd[23717]
    [7m--More--[27m
    2015 Mar 24 07:17:31 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root#02##02# from 222.186.30.115 - sshd[23717]
    [7m--More--[27m
    2015 Mar 24 07:17:33 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root from 222.186.30.115 - sshd[23718]
    [7m--More--[27m
    2015 Mar 24 07:17:33 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root#02# from 222.186.30.115 - sshd[23718]
    [7m--More--[27m
    2015 Mar 24 07:17:34 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root#02##02# from 222.186.30.115 - sshd[23718]
    [7m--More--[27m
    2015 Mar 24 07:17:36 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root from 222.186.30.115 - sshd[23719]
    [7m--More--[27m
    2015 Mar 24 07:17:36 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root#02# from 222.186.30.115 - sshd[23719]
    [7m--More--[27m
    2015 Mar 24 07:17:36 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa

    Restrict your vty line logins with an access-list to prevent Internet origin login attempts. 

  • Log4j directing log output to directory?

    Ok how do you direct the log output to a directory? Below is a small snippet that does some log4j stuff using a properties file. Please excuse the crudeness of my directory structure. This will not be the final structure.
    This is the logging app:package src.gov.osti.exceptions;
    import org.apache.log4j.Logger;
    import org.apache.log4j.Level;
    import org.apache.log4j.SimpleLayout;
    import org.apache.log4j.FileAppender;
    import org.apache.log4j.PropertyConfigurator;
    import java.io.IOException;
    import java.lang.Object;
    public class Log4JTest
       /** Creates a new instance of Log4JTest */
       public Log4JTest()
       public static void main(String[] args)
          //PropertyConfigurator.configure("log4j.properties");
          PropertyConfigurator.configure("/home/orozcom/proj/examples/WEB-INF/log4j.properties");
          Logger logger = Logger.getLogger("simple");
          logger.debug("A debug message");
          logger.info("A info message");
          logger.warn("A warn message");
          logger.error("A error message");
          logger.fatal("A fatal message");
    This is the log4j.properties file:
    # A simple logger
    log4j.logger.src.osti.gov.exceptions.simple=DEBUG, simple
    # This simple example will log to a file
    log4j.appender.simple=org.apache.log4j.FileAppender
    log4j.appender.simple.File=log4jsimple.log
    # We will use a simple layout for this example
    log4j.appender.simple.layout=org.apache.log4j.SimpleLayout
    This is the testing directory which is local:
    /home/orozcom/proj/examples/src/gov/osti/exceptions
    This is the final directory Structure.
    /app/tomcat/webapps/proj-name/logs
    The proj-name is of couse the name of the app, and inside each app will be logs directory to log to.
    How do I set up each app to log to its own logs directory?

    Just to close this out. I figured it out on my own through alot of trial and error. The problem was that for some dumb reason (My Own Dumb Reason), I was trying to write to a file in the class itself, instead of change the directory in the properties file. When I look back I realize how dumb that was? Why was I looking in the class to write to a log file? Any way you can specify anywhere you want the log to go:
    log4j.appender.simple.File=/home/orozcom/proj/examples/logs/log4jsimple.log
    log4j.appender.simple.File=/tomcat/logs/log4jsimple.log

  • Cannot understand Security element wsu:Timestamp error

    I got the below error while trying to call the GetEvents method. I generated a Web Service proxy in Jdeveloper 11g and I'm using Weblogic 10.X. Below are my code. Do you have any idea?
    IntegrationEventWS integEventService = new IntegrationEventWS_Impl("IntegrationEventWS_saved_wsdl.wsdl");
    InputStream inbound = new Object().getClass().getResourceAsStream("/weblogic/wsee/policy/runtime/Wssp1.2-2007-Https-UsernameToken-Plain.xml");
    Default_Binding_IntegrationEventWS port = integEventService.getDefault(inbound, true, false);
    Stub portStub = (Stub)port;
    ArrayList credentialproviders = new ArrayList();
    CredentialProvider cp = new ClientUNTCredentialProvider(username.getBytes(),password.getBytes());
    credentialproviders.add(cp);
    portStub._setProperty(WSSecurityContext.CREDENTIAL_PROVIDER_LIST,credentialproviders);
    IntegrationEventWS_GetEvents_Input getEventsInput = new IntegrationEventWS_GetEvents_Input();
    getEventsInput.setEventCount(null);
    getEventsInput.setQueueName("Opportunity");
    IntegrationEventWS_GetEvents_Output getEventsOutput = port.getEvents(getEventsInput);
    Error
    java.rmi.RemoteException: SOAPFaultException - FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}MustUnderstand] FaultString [Cannot understand Security element wsu:Timestamp] FaultActor [null]No Detail; nested exception is:
         weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Cannot understand Security element wsu:Timestamp
    java.rmi.RemoteException: SOAPFaultException - FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}MustUnderstand] FaultString [Cannot understand Security element wsu:Timestamp] FaultActor [null]No Detail; nested exception is:
         weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Cannot understand Security element wsu:Timestamp
         at oracle.e1.bssv.JC57M007.proxy.Default_Binding_IntegrationEventWS_Stub.getEvents(Default_Binding_IntegrationEventWS_Stub.java:87)
         at oracle.e1.bssv.JC57M007.IBS_CRMODProcessor.manageOpportunity(IBS_CRMODProcessor.java:63)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.e1.bssvfoundation.impl.jdenet.CallSBFHandler.callSBF(Unknown Source)
         at oracle.e1.bssvfoundation.impl.jdenet.CallSBFMsgHandler.process(Unknown Source)
         at oracle.e1.bssvfoundation.impl.jdenet.SBFServerJavaKernel.process(Unknown Source)
         at com.jdedwards.system.net.ProcessKernel.run(Unknown Source)
    Caused by: weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Cannot understand Security element wsu:Timestamp
         at weblogic.wsee.codec.soap11.SoapCodec.decodeFault(SoapCodec.java:357)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeFault(CodecHandler.java:118)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.decode(CodecHandler.java:103)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.handleFault(CodecHandler.java:91)
         at weblogic.wsee.handler.HandlerIterator.handleFault(HandlerIterator.java:309)
         at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:269)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.handleResponse(ClientDispatcher.java:213)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:150)
         at weblogic.wsee.ws.WsStub.invoke(WsStub.java:87)
         at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:337)
         at oracle.e1.bssv.JC57M007.proxy.Default_Binding_IntegrationEventWS_Stub.getEvents(Default_Binding_IntegrationEventWS_Stub.java:82)
         ... 9 more

    Thank you for the replys. However, when running the command:
    *$ java -classpath /export/home/jtownsen/java/ojdbc14_g.jar Connect*
    I got the following error message:
    Exception in thread "main" java.lang.NoClassDefFoundError: Connect
    In case anyone is interested, I did figure out a solution. First, I set the environment variable like so: (using Korn shell)
    *$ CLASSPATH=/export/home/jtownsen/java/ojdbc14_g.jar:/export/home/jtownsen/java/Connect.class:*
    *$ export CLASSPATH*
    Then I compiled the program with:
    *$ javac Connect.java*
    ...which created the Connect.class file.
    And ran the program with:
    *$ java Connect*
    ...and the program ran with no errors returned.
    Now I can begin on the next step. Thanks again to those who have replied.

Maybe you are looking for

  • Desperate for new Griffin iPod Shuffle 2g dock adapter.....................

    .....I am in the U.K. - can some kind soul tell me where I can get one asap, Thanks.

  • Finder-Sidebar-Items disappear (spontaneously)

    High! Of course me searched a lot but apparently this seems rather unusual. Good for you. Thing is: the items in my sidebar (finder-window-sidebar) disappear at almost every startup - plus, sometimes spontaneously.* Wicked. All those vanishing folder

  • Fast External Drive Options Macbook Pro 15"

    Hello. I own a 15" Macbook pro 15" core i5 processor in it etc.. I have a dock style enclosure for 2 SATA hard drives that has USB connect and also eSATA. The USB is INCREDIBLY SLOW. I am waiting sometimes 2-3 minutes just to have a song start playin

  • Crw32.exe crashes

    I have a problem running Crystal Reports XI. As soon as I try to move a field from the field explorer into a report I get a message that says: crw32.exe has encountered a problem and needs to close. We are sorry for the inconvenience. After that I ge

  • Error while running Template Checker.

    Hi, Iam getting the error Exception in thread "main" java.lang.NoClassDefFoundError: oracle/apps/xdo/template/TemplateChecker when I call the template checker /local/java/jdk1.5.0_06/bin/java -classpath /home/tdexter/TemplateChecker/xmlparsev2-904.zi