How can I log the WebService-http stack in JDK

I have a WebService server in jdk (no applicationserver)
I have a class with @Webservice and publish it with EndPoint.publish(...
My users sometimes gets "500 bad request" or something when they make calls with invalid http or xml.
How can I make java to log this? I want to see in my log when a user send a invalid call, and how the call looked like.
How do I turn on the logging and direct it in a file. java.util.logging? Which classes? Anyone that have a good config-file for this?

well for starters, doing "com.sun.xml.ws.transport.http.HttpAdapter.dump = true;" will cause the raw http information to be dumped to stdout.

Similar Messages

  • How can I log the data transmission of my switch in a file to analyze the quality of my communication channel?

    How can I log the data transmission of my switch in a file to analyze the quality of my communication channels?

    A lot depends on what type of switch you have and what kind of communication channels you're asking about.
    There are several Cisco tools (e.g., "ip sla", SNMP-queried values, show commands etc.) that can give useful information.
    If you give us some more information we can help more specifically.

  • How can I log the process id associated to a local socket blocked by the PF firewall?

    Hi,
    There seem to be a problem with mac OSX PF firewall logging capabilities.
    I am trying to find the process id associated with a connection attempt blocked by PF. I am replicating, in a way, the feature found in a commercial firewall caled "Little Snitch"
    This is the method I have tried so far:
    1- I wrote a new pf config file with a ruleset that blocks all outbound connection attempts and logs it (see my ruleset at the bottom)
    2- I create the pflog0 interface
    sudo ifconfig pflog0 create
    3- I load the new pf config file
    sudo pfctl -d && sudo pfctl -f ./mypf.conf && sudo pfctl -e
    4- I log the blocked packet and try to retrieve the process names
    sudo tcpdump -n -e -vvv -ttt -i pflog0 > mypf.log
    OR
    sudo tcpdump -n -s0 -w ./mypf.pcap
    Either way, none of my "mypf.log" or "mypf.pcap" files contains any information about the processes.
    Any idea how I could log the PID of the processes?
    ##my ruleset mypf.conf
    ##MACRO
    host_if = "en0"
    ##OPTIONS
    set loginterface $host_if
    set debug misc
    set skip on lo
    ##RULES
    #I dont want to log all incomming connection, I just want to block it by default
    block in all
    #I want to log all attempts from processes to establish a connection outside
    block out log (user) all

    Hmmm....
    Your story is familiar - many folks here are somewhat bewildered by the
    technology that keeps coming up in their faces when they think that this
    process should be a simple one.  It SHOULD be, but....
    SONY Reader software for your PC is designed to 'captivate' you so that
    your ereader will function well with their store.  It is, in essence, their
    way of managing your elibrary.  And it's proprietary to SONY.   You can add
    ebooks to it in a similar way that you can add them to ADE.  Since we're an
    ADE forum, I don't have those steps in my reference file - sorry.
    As you've explained it, DRM protection is really not the issue here.  ADE's
    way of managing the relationship between you and the ebook is to keep track
    of who did the original download in a small ID file embedded in the ebook.
    ADE is telling you that your husband downloaded the ebook in question, and
    that you're not able to read it with your own ID.  The SONY message is
    essentially the same thing, but in different and confusing wording, which
    makes you believe that DRM protection is getting in your way.  That's
    probably not true, because you're not getting a 'No Permission To Copy
    Here' message from ADE - their way of telling you that the digital rights
    assigned by the publisher, distributor or author will prevent you from
    making a copy.  Shame on SONY for confusing the issue!
    What you can try is to deauthorize ADE by using the CNTLSHIFTD keys
    together after it opens and is waiting for you to do something.  Then,
    close ADE.  When you reopen ADE, it will ask you to authorize it, and you
    can put your husband's ID in.  ADE now thinks you are your husband, and
    will let you access all of his ebooks.  You can copy them to your ereader
    at this point and then open them to read - assuming that there really is no
    DRM protection that prohibits the copy.
    There's more, but let's take this one step at a time, eh?
    ================

  • How can I log the byte count for a network interface

    I'd like to track/log the number bytes transmitted and received on a network interface. The end result is to give daily and or monthly usage counts.
    How can I do that?

    This software might do the trick. Not too expensive and it has a free trial.
    It keeps logs of each time the program is run and you can configure it to run at system startup in the preferences window. If you go to the Tools menu and choose Traffic Log the calculator can let you specify time frames. Might be what you need!
    http://www.macupdate.com/info.php/id/6172/net-monitor
    -Pat

  • How can I capture the complete http-message sent from client to WAS?

    Hello,
    When debugging a BSP application several utility classes/objects are available. Only I can't find the original authentication information forwarded by the client (userid). Therefor I would like to have available the whole http-message (full header and body) so I can distil the information myself.
    Is there a method available which gives me the full, original http-message sent by the client?
    NOTE: I use http-watch in my browser but this is not available on the reversed proxy.
    kind regards,
    Roelof Jan

    Thanks Durairaj,
    I have converted ws_xtring to a string which results in the readable stream below:
    GET /tomonline(bD1lbiZjPTAxMA==)/bp_login.htm HTTP/1.0##host: kappa.trespa.com:8
    015##accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vn
    d.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-sho
    ckwave-flash, /##accept-language: en-us##cache-control: no-cache##connection:
    Keep-Alive##cookie: sap-usercontext=sap-client=010;##pragma: no-cache##referer:
    https://trespa.infonet-asp.com/__extraweb__authen##user-agent: Mozilla/4.0 (comp
    atible; MSIE 6.0; Windows NT 5.0)##authorization:
    But now we get to my real problem. I'm missing authentication information in the httpmessage, forwarded by a reversed proxyserver which is visible in the serverlog (SMICM>Goto>HTTP Log>Server Name>Display Entries):
    ...snapshot of logtail, related to http string above
    212.189.47.211 - tomadmin [20/Apr/2006:11:50:12 +0200] "GET /tomonline(bD1lbiZjPTAxMA==)/bp_login.htm HTTP/1.0" 500 3700
    >212.189.47.211 = the ipadres of the reversed proxy (=client for the BSP application)
    >tomadmin       = the userid which is forwarded basic authentication userid by reversed proxy
    I'm purely interested in this userid <b>tomadmin</b> which I want to use in my application.
    Where did my <b>tomadmin</b> go???
    I configured the service ztomonline as anonymous login. Maybe this mechanism strips of the userid.
    regards Roelof Jan
    Message was edited by: Roelof Jan Bouwknegt

  • How can I log the webdav

    My server is 9ias9.0.2 + 9ifs9.0.2 on w2k. I want to see the logs when I run the webdav. Can you tell me which kind of commands are needed to set up the logs on webdav?
    Thank you in advance for your time and your helps.

    Thank you for your suggestion. It truely does work. What I want to know is something like below. My OS is win2000, application server is 9ias9.0.2 and 9ifs9.0.2. Your advice is highly appreciated.
    sample:
    i've set the following parameter in
    "../Apache/Jserv/etc/ifsprops.properties":
    # Arguments passed to Java interpreter (optional)
    # Syntax: wrapper.bin.parameters=[parameters] (String)
    # Default: NONE
    wrapper.bin.parameters=-DIFS_DAV_DEBUG=true
    Then i'restart the whole 9iFS with:
    ifsJservctl -stop
    ifsstopdomain
    apachectl stop
    apachectl start
    ifslaunchdc
    ifslaunchnode
    ifsstartdomain
    ifsJservctl -start
    jserv.log:
    [22/11/2001 00:31:13:194 GMT+01:00] <debug> - Using
    configuration file:
    /opt/oracle/product/o9i/Apache/Jserv/etc/ifs.properties
    [22/11/2001 00:31:13:342 GMT+01:00] <debug> Creating new sessions
    hashtable.
    [22/11/2001 00:31:14:346 GMT+01:00] <servletLog>
    files/oracle.ifs.protocols.dav.impl.IfsDavServlet: init
    [22/11/2001 00:31:14:793 GMT+01:00] <servletLog>
    files/oracle.ifs.protocols.dav.impl.IfsDavServlet: NodeGuardian:
    [22/11/2001 00:31:14:795 GMT+01:00] <servletLog>
    files/oracle.ifs.protocols.dav.impl.IfsDavServlet: NodeGuardian:
    Oracle Internet File System
    [22/11/2001 00:31:14:799 GMT+01:00] <servletLog>
    files/oracle.ifs.protocols.dav.impl.IfsDavServlet: NodeGuardian:

  • How can I log ad System?

    I installed OS X and I get logged as Admin. To cancel any apps or to unlock the System Preferences I need to be logged as System. How do I do that?
    Thanks.

    There are NT service "shell" utilities that allow Weblogic to be run "as a
    service", and you need to consult the documentation per each to determine
    how to capture std out / err.
    Peace,
    Cameron Purdy
    Tangosol Inc.
    << Tangosol Server: How Weblogic applications are customized >>
    << Download now from http://www.tangosol.com/download.jsp >>
    "Poe Lam" <[email protected]> wrote in message
    news:3b95d59b$[email protected]..
    >
    But if my weblogic is running in service, how can i log the std err?
    "Cameron Purdy" <[email protected]> wrote:
    Typically to capture std out you use '>' and to capture std err you use
    '>2'
    instead so you can send both to a single log file on most OSs.
    Peace,
    Cameron Purdy
    Tangosol Inc.
    << Tangosol Server: How Weblogic applications are customized >>
    << Download now from http://www.tangosol.com/download.jsp >>
    "Poe Lam" <[email protected]> wrote in message
    news:3b8f35ee$[email protected]..
    Hi all,
    I would like to ask how can i log System.err to weblogic.log, is itpossible?
    and how?
    I'm using version 5.1
    Thank you very much
    Poe

  • How can I log BT device IDs names in a log file using Toshiba BT stack

    Hi,
    without Microsoft stack I can't use a lot of freeware programs (BluetoothView.exe, BluetoothCL.exe, BTScanner for Windows) to "catch" bluetooth devices in a log file.
    How can I log bt device ids/description names in a log file using Toshiba Bluetooth stack?
    Thank you

    I've just contacted Toshiba here:
    http://aps2.toshiba-tro.de/bluetooth/?page=faq/sdk
    There are other solutions for Windows XP or Toshiba SDK is the only one?

  • Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address.  My other devices all have the correct address.  How can I get the correct address for my iPhone?  The only Apple ID that works for logging in is my new one.

    Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address.  My other devices all have the correct address.  How can I get the correct address for my iPhone?  The only Apple ID that works for logging in is my new one.

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iPhone (if you're using iOS 7), then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • My macbook wont allow me to use the same hotmail address as i used on my other computers. How can I keep the same email and log into it on a macbook?

    my macbook wont allow me to use the same hotmail address as i used on my other computers. How can I keep the same email and log into it on a macbook?

    That indicates a hardware failure. Read here:
    http://support.apple.com/kb/ts1559
    If nothing works, you most likely have a hardware failure. Make an appointment at an Apple store to confirm.

  • How can I increase the hard limit of the stack size?

    Hi,
    My process gives an error of segmentation fault (SIGSEGV) that is caused because the stack limit is reached. I have a doubt about how to increase the stack size. I have tried change it with "ulimit - hard" but this size is 65532kb, and is very low for my process. How can I increase the hard limit?
    Thanks.

    When last I checked, the kernel had a fixed stack size limit.
    Do you have the source code to this application? If so, [see this Tiger stack size article|http://homepage.mac.com/eric.c/hpc/contents/documentation/How%20to%20in crease%20the%20stack%20size%20on%20Mac%20OS%20X.pdf], and specifically have a look at the +ld -stack_size+ mechanism; rebuild the code with a bigger limit.
    Entirely FWIW, this question would be more typical over in the developer forums or maybe in the Unix forum if you don't have Apple developer access. Better audience for application development and for software-related questions over there.

  • Hi ! I got an iPhone 5 from someone who I don't know the real owner. Then I wanna change iCloud on it, but I don't know the password of owner. How can I log out that iCloud account without password ? Please help me, thank you

    Thank you, please help me !

    How can I log out that iCloud account without password ?
    You can't.
    Return the phone to whoever you bought it from and get a refund. Without the previous owners password you will not be able to enter your own iCloud acount, and when you update the phone, you won't be able to re-activate it as it will be locked to the previous owners account.
    You should've checked the phone was not locked to someone else's iCloud account BEFORE buying it.
    Instructions here: http://support.apple.com/kb/ht5818

  • Wrong email for new ID verification email, how can I log in to change the wrong email?

    Just changed my Apple ID but after I was done I realized the email I used as my ID is wrong.  Now when I try to sign into iTunes I am being asked to verify the new ID using the verification email sent to the new email, problem being that that new email is wrong and I can't access it.  How can I log back into my account to change that email?  Help please.

    Did you get an answer to this? i have a new email and I can't verify the old one as it is blocked so can't log into it.  Any help will be appreciated.... thanks

  • I have an iMac with OS Lion. The Smartart feature for Office for Mac will not work when I am logged on to my personal user account. It works with other user accounts on the same computer, and it works after "safe start". How can I fix the problem?

    The Smartart feature of Office for Mac will not work in my user account. It works for all other user accounts on the same computer, and it works after a "safe start". How can I fix the problem?

    You may also want to search/ask in the forums run by the people who make the product which is causing you problems:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011

  • How can I log onto iCloud from my iPad when the option is in grey and therefore not available

    How can I log onto iCloud from my iPad when the option is in grey and therefore not available. I deleted my account as it was showing up with an old Id ( I'd changed my email) but now I've done that it won't give me the option of logging back on. Do I have to do this on another device Or computer linked to iTunes first?
    THanks

    Hi Kate, have you perchance enabled restrictions on your device. (Settings > General > Restrictions)

Maybe you are looking for