Logging Not Working?

For some reason i cant get the logging to work on weblogic, although it was working the other day. Im going mad with this problem as the code is some simple. In an EJB i basically do this...
serverLogger = LoggingHelper.getServerLogger();
serverLogger.log(Level.Info, "WORKING");
But it does not appear in the logs on weblogic admin, i have put in checks for null pointers, exceptions, everything but still i see no logs.
The other day the servers crashed out with an error about a cyclic queue being full, which i have since traced to the shared capacity for work managers being full. Could this be related? Do i need to do something else to force the log message, i.e. flush() or something similar.
Thanks.

Chris, here's the code, read it and dispair at my works!
package org.acme;
import javax.ejb.CreateException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import weblogic.ejbgen.*;
import java.util.logging.Logger;
import java.util.logging.Handler;
import weblogic.logging.LoggingHelper;
import weblogic.logging.WLLevel;
@FileGeneration(remoteClass = Constants.Bool.TRUE,
localHome = Constants.Bool.FALSE,
remoteHome = Constants.Bool.TRUE,
remoteClassName = "Hello",
remoteHomeName = "HelloHome",
localClass = Constants.Bool.FALSE)
@JarSettings(ejbClientJar = "hello_client.jar")
@JndiName(remote = "HelloHome")
@Session(maxBeansInFreePool = "1000",
initialBeansInFreePool = "0",
transTimeoutSeconds = "0",
type = Session.SessionType.STATELESS,
defaultTransaction = Constants.TransactionAttribute.REQUIRED,
ejbName = "statelessSession",
enableCallByReference = Constants.Bool.TRUE)
public class HelloBean implements SessionBean {
private SessionContext ctx;
private Logger serverLogger = LoggingHelper.getServerLogger();
// You might also consider using WebLogic's log service
private void log(String s) {
Handler[] handlerArray = serverLogger.getHandlers();
for (int i=0; i < handlerArray.length; i++) {
Handler h = handlerArray;
h.setLevel(WLLevel.INFO);
serverLogger.log(WLLevel.INFO, s);
* This method is required by the EJB Specification,
* but is not used by this example.
public void ejbActivate() {
log("ejbActivate called");
* This method is required by the EJB Specification,
* but is not used by this example.
public void ejbRemove() {
log("ejbRemove called");
* This method is required by the EJB Specification,
* but is not used by this example.
public void ejbPassivate() {
log("ejbPassivate called");
* Sets the session context.
* @param ctx SessionContext Context for session
public void setSessionContext(SessionContext ctx) {
log("setSessionContext called");
this.ctx = ctx;
* This method corresponds to the create method in the home interface.
* @exception javax.ejb.CreateException if there is
* a communications or systems failure
* @see org.acme.HelloBean
public void ejbCreate () throws CreateException {
log("ejbCreate called");
@RemoteMethod()
public void sayHello() {
log("Hello");

Similar Messages

  • Logging Not Working in Java Code

    Hi everyone,
    I'm looking into the Java code for the Portal app, and I'm trying to do some debugging as to what's going on.  I see a lot of the Adobe classes use the log4j Logger to output general logging information as well as errors, but there never seems to be any output in the log files.  The files I'm checking for activity are:
    Adobe LiveCycle ES2\jboss\server\lc_turnkey\log\server.log
    Adobe LiveCycle ES2\jboss\bin\correspondencemanagement.log
    When I build and deploy the application onto the LC server, just before my application starts I get the following line in the server.log:
    2011-04-29 14:30:49,055 INFO  [STDOUT] **** No servlet context set in ServletLogTarget - logging disabled.
    followed by a message saying that my application has started.  The line above happens everytime I re-deploy the application (without actually running the app), right before it starts, so I'm assuming that it is directly related to my application.
    The only 'com.adobe' related logging lines that happen in the correspondencemanagement.log file are written when I physically run the app, and I get the following line:
    2011-04-29 14:31:34,298 69729 INFO  [com.adobe.dct.service.impl.DataDictionaryRegistryServiceImpl] Fetching Complete Data Dictionary object graph.
    Looking into the code for the com.adobe.dct.service.impl.DataDictionaryRegistryServiceImpl class, I see it uses a completely different logging system (ie not log4j).
    *sigh*
    I've changed the services-config.xml file and tried setting the logging target to both flex.messaging.log.ServletLogTarget and flex.messaging.log.ConsoleTarget, but neither seem to make a difference.
    I must be missing some kind of configuration to get the logging to work correctly, but Google has been little help as well.
    Hopefully someone has crossed this issue before, and has a solution?  Any help / pointers / advice etc welcome and appreciated!!!
    Thanks,
    Kristian

    Thanks for the reply Saket.
    It turns out that the logging was working correctly all along.  The messages I could not find were all related to bootstrap code.  I was assuming that the bootstrapper would run each time the application was deployed, or at the very least each time the server was started.  It turns out that you manually need to run the bootstrapper.  So I was looking for log lines that would never appear by themselves.  Once I manually ran the bootstrap process, the log lines ran as expected.
    Cheers,
    K.

  • Logging not working in RH Linux (ALUI portal 6.1MP1)

    Hi,
    we've installed the ALUI portal 6.1MP1 on a RedHat Enterprise Linux 4, and the logging does not seem to be working - PTSpy does not show anything.
    We've also installed the same portal version on a couple of Windows machines - there the logging works fine.
    Any ideas on where to look for possible causes?

    fwiw, I recently installed ALUI 6.1 MP1 on RHEL 4 Update 3 and was able to have both the Spy Logger and the consolelogger working locally on the RHEL console (running GNOME).
    I then tried to access the RHEL virtual machine from my host Windows OS where I access things via Cygwin (startx) and Putty (SSH). Spy Logger still does not work (because of the SWT issues I mentioned earlier) but consolelogger works fine.
    If you are still having issues I'd encourage you to open a case with tech Support.
    john

  • Logs filled up circular logging not working

    hey. i have exchange 2010 with dag and logs filled up and shut down database.  i remove some logs according to old date then i turn on circular logging.  But still not logs shrinking but only growing.  i move more logs now.  how come
    circular loggins not work?  i dismount and remount already.  thank you in advace. 
    EC David

    EC,
    Do you have time to just run a full backup? 
    The reason why the circular logging is not working is because you need to break the DAG.  Dismount the passive copy, remove the copy then dismount the active.  Once you remount the circular logging should work.  Once that is done you Or you
    can just run a full backup if you have the time to let the logs truncate from that.  Either way you will have to run a backup.  Actually, why don't you just run a full backup?
    Oh, if you go that route, don't forget to reseed the database.  I hope you can just do a full backup.
    S

  • Parental Controls iChat Logs not working

    I use parental controls on both of our family Macs--a G5 tower and an Intel iMac. I have set up the controls so that each child has exactly the same controls by copying the settings from one computer to the other (I don't remember which I set up first). On the G5, the iChat logging is working fine (as are the other logs)--I don't restrict iChat, but I do want to see the logs. On the iMac, though, while the other logs are fine, the iChat log is missing for all 3 children. I can't find any threads that address this specific issue. Any ideas/hints?
    Thanks,
    Lou

    A debt of gratitude goes out to this guy for solving the issue.
    https://discussions.apple.com/message/11846530#11846530
    Essentially, make sure the email address listed in the Mail.app account of the person receiving the "Always allow" mail and the email address listed in Parental Controls>Mail>notify are the same.

  • Change logs not working for manual update modify/delete statements.

    Hi experts,
                     My requirement is to display the change logs for a few custom z tables.The log data changes is selected in technical settings of the table.When any changes are made to the table using sm30 the changes are logged.
    My requirement also displays an alv grid which allows the users to edit/insert/delete   entries in the table.
    In this case the change logs are not getting recorded(ie whenever the user manually updates or inserts a row into the table the change docs are not getting stored).
    My code works like this,
    Whenever the user chooses a custom table and selects the display change log button i transter the control of my abap program to the standard  rsvtprot program(sap std. pgm to display change logs).
    sample code:
    elseif sscrfields-ucomm eq c_chgdoc.
        refresh:r_seltab.
        clear:r_seltab.
        r_seltab-sign   = 'I'.
        r_seltab-option = 'EQ'.
        r_seltab-low      = w_tab.
        append r_seltab.
    Call the sap standard program rsvtprot via selection screen
    by passing the table name and display grid parameters.
        submit rsvtprot via selection-screen
                          with cusobj   in r_seltab
                          with alv_grid eq c_x
                          and return.
    Is there any way by which i can extend the change logs functionality for the changes made using the alv grid?
    Please help me out.

    Hi Anuraag,
    In TM you should open the transaction /SCMTMS/ZONE. Here you select the zone you would like to modify and you execute the changes you would like to make.
    Regards,
    Nico.

  • SQL Logging not working in SSIS 2008

    Hello,
    I have packages created in SSIS 2008 and I am trying to enable logging in them. I specified a SQL Server provider and gave it a working SQL Server DB connection as the configuration. I chose to log all the events from the Details tab, then I executed the package. It ran without errors, but no logging occured. Actually neither the logging table, nor the stored procedure that should perform the loggign were created. These exact steps used to work with SSIS 2005 and they'd generate the table, stored proc and start storing logging information. For testing, I also added to the same package logging options a text logging and a SQL Profiler log providers. These were created successfully and have logs entered in them. I tried different DB connections on different servers, but still the table and sp are not even getting created. Any ideas?
    Best Regards,
    Ketara

    Had the same problem. When I read the documentation Microsoft explicitly states that you must use an OLEDB provider for SQL Server logging. I checked, and mine was the "SQL Server Native Client" rather than the "Microsoft OLE DB Provider for
    SQL Server". When I switched out the driver, it worked. 
    The log table is under System Tables called: dbo.sysssislog
    The stored procedure that populates the table is under System Stored Procedures called: dbo.sp_ssis_addlogentry

  • Log4j - logging not working correctly in OC4J

    I am using log4j to log all data from my system, ie. interface data, errors, info, performance data. Interface data going to one file, errors and info to another file, and performance data to another file. I am using the RollingFileAppender to log data into files. I have a wrapper class that is used to call the log4j methods. When this is tested in Jdev- everything works ok. When deployed to the server, my interface data does not get logged but everything else does. The only time that the interface data logs is when that data goes to the console as well as the file. Does anyone know what could be the problem?
    Thanks.
    Chris

    Check all the places where log4j.jar is available. If possible cross check against your earlier environment too. Remove in places where it is not necesary.
    Check out this article also.
    www.oracle.com/technology/tech/java/oc4j/pdf/ClassLoadingInOC4J_WP.pdf

  • SSAS 2012 Tabular. Analysis Services Query Log not working

    Hello.
    It is possible to configure Analysis Services Query Log on SSAS 2012 Tabular (11.0.3321) server? Or this feature works only with Multidimensional server mode?
    It is not a problem for me to configure Query Log on Multidimensional server. But when I'm trying to do this in Tabular server result is always the same: table S_OlapQueryLog created but no data there.
    This problem exist in our production server. And is fully reproduced in test environment. This problem was reproduced with SQL 2012 RTM, CU4, SP1 and SP1 CU1.
    I tryed to configure Analysis Services Query Log by using SQL account. Later by using windows authentification. Accounts was db owners. Later I have used accounts with sysadmin rights. Results was the same.
    In msmdsrv.log i can find only related events like this:
    (12/7/2012 9:22:59 PM) Message: The query log was started. (Source:
    \\?\P:\Olap\Log\msmdsrv.log, Type: 1, Category: 289, Event ID: 0x41210003)
    (12/7/2012 9:25:03 PM) Message: The query log was stopped. (Source:
    \\?\P:\Olap\Log\msmdsrv.log, Type: 1, Category: 289, Event ID: 0x41210004)
    I'm stuck completely with this functionality. So if someone was much luckier than I please write to me.
    Regards
    Audrius

    I agree with Gerhard's comments, but there are a couple of additional points
    - I am not 100 percent sure if queries that are answered by the SE cache are recorded in the query log
    Queries answered by the SE cache are not definitely not recorded in the QueryLog. So depending on the types of queries and the design of your cube you could possible miss a large proportion of the actual end user queries.
    The QueryLog records the QuerySubcube events and there are zero to many of these generated for a given end user query (zero if the query can be answered from cache). The optimizer may also choose to pre-fetch a wider range of data or to break a single range
    into a few smaller requests so it is not a true indication of the actual query that the end user generated.
    Doing a trace is the only way to catch the actual queries submitted by end users.
    http://darren.gosbell.com - please mark correct answers

  • OIM after BP12 patch system error and logging not working

    Hi,
    I am using Weblogic 10.3.2 and need to install OIM. I have installed the 9.1.0.1 and then the patchset to 9.1.0.2. Then I have installed the bundle patch BP07 and everything was ok.
    Finally I have installed the BP12: now i am unable to log in the OIM admin panel ( system error ) and i cannot connect with the design console (NullPointerException). The worst part is that OIM does not write a log file anymore, so i can't determine what's wrong. What should i do?
    thx in advance

    no errors, everything fine. The webapps (xellerate and nexaweb) are started normally.
    As an additional information, i just tried to revert to BP07, it still doesn't work.

  • Mavericks: Parental Controls: Messages Logs not working

    Hello - my parental controls appear to be working ok - except for monitoring Messages via the "view logs".  When I attempt to view messages it has no content even though she (my daughter) has been using the Messages app and it says something like 50 messages were exchanged.
    She has an iPhone too so is it possible that the iPhone messages don't come into the Parental Controls logs of Messages?   - even though the Macbook DOES show her iPhone messages in the Messages app when she's logged into the computer ?
    Thanks in advance

    A debt of gratitude goes out to this guy for solving the issue.
    https://discussions.apple.com/message/11846530#11846530
    Essentially, make sure the email address listed in the Mail.app account of the person receiving the "Always allow" mail and the email address listed in Parental Controls>Mail>notify are the same.

  • OSD SCCM 2012 R2: MDT integrated task sequence central logging not working

    Hi,
    Please advise on making dynamic logging work for SCCM 2012 R2 MDT integrated tasks sequence.
    This is what I specified in customsettings.ini
    [Settings]
    Priority=Default
    Properties=MyCustomProperty
    [Default]
    OSInstall=Y
    SkipCapture=YES
    SkipAdminPassword=NO
    SkipProductKey=YES
    ; Copy Logs if en error occurs or when deployment is successfully completed
    SLSHARE=\\sccmserver\OSD\Logs\MDT
    ; Enable Dynamig Logging
    SLSHAREDynamicLogging=\\\sccmserver\OSD\Logs\MDTDynLogs\%OSDComputername%
    UserID=administrator
    UserDomain=ourdomain
    UserPassword=ourpassword
    Jan Hoedt

    I keep on getting access denied though when I connect in a dosprompt with the credentials I can make a connection.
    Mapping server share: \\ourdomain.com\share    ZTIValidate    4/03/2014 0:08:14    0 (0x0000)
    <Message containing password has been suppressed>    ZTIValidate    4/03/2014 0:08:14    0 (0x0000)
    Access is denied.
        ZTIValidate    4/03/2014 0:08:14    0 (0x0000)
    Unable to connect to \\ourdomain.com\share.  Sleeping for 5 seconds.    ZTIValidate    4/03/2014 0:08:14    0 (0x0000)
    <Message containing password has been suppressed>    ZTIValidate    4/03/2014 0:08:19    0 (0x0000)
    Access is denied.
        ZTIValidate    4/03/2014 0:08:19    0 (0x0000)
    Unable to connect to \\ourdomain.com\share.  Sleeping for 10 seconds.    ZTIValidate    4/03/2014 0:08:19    0 (0x0000)
    <Message containing password has been suppressed>    ZTIValidate    4/03/2014 0:08:29    0 (0x0000)
    Access is denied.
        ZTIValidate    4/03/2014 0:08:29    0 (0x0000)
    Unable to connect to \\ourdomain.com\share.  Sleeping for 15 seconds.    ZTIValidate    4/03/2014 0:08:29    0 (0x0000)
    <Message containing password has been suppressed>    ZTIValidate    4/03/2014 0:08:44    0 (0x0000)
    Access is denied.
        ZTIValidate    4/03/2014 0:08:44    0 (0x0000)
    Unable to connect to \\ourdomain.com\share.  Sleeping for 20 seconds.    ZTIValidate    4/03/2014 0:08:44    0 (0x0000)
    <Message containing password has been suppressed>    ZTIValidate    4/03/2014 0:09:04    0 (0x0000)
    Access is denied.
        ZTIValidate    4/03/2014 0:09:05    0 (0x0000)
    Unable to connect to \\ourdomain.com\share.  Sleeping for 25 seconds.    ZTIValidate    4/03/2014 0:09:05    0 (0x0000)
    ERROR - Unable to map a network drive to \\ourdomain.com\share.    ZTIValidate    4/03/2014 0:09:30    0 (0x0000)
    An invalid SLShareDynamicLogging value of \\ourdomain.com\share\PackageSources\OSD\Logs\MDT-DynLogs\computername was specified.    ZTIValidate    4/03/2014 0:09:30    0 (0x0000)
    Jan Hoedt

  • NetWeaver and NWDI - Activity deployment log not working

    Hello guys, I'm here again.
    This image shows what's happening. The build log works fine, the CBS build log works fine too.
    http://free-image-hosting.biz/3220081431541020595
    Can anyone say what's happening? Thanks alot!

    Julio,
    I dont know the reason why you are getting this error.
    but you can check the request log by logging into
    http://server:port/devinf -
    CBS - activities-select the buildspaceadvanced search - search click the view under Request Log column
    Thanks
    Bala Duvvuri

  • Search-MailboxAuditLog is empty - Mailbox Audit Logging not working in Exchange 2013 CU6 environment

    Hello,
    i activated Mailbox Audit Logging for Admin, delegate and owner with all supported operations (update, delete, etc..)
    like mentioned here:
    http://exchangeserverpro.com/using-exchange-server-2013-mailbox-audit-logging/
    But also two days later (and also one Server reboot later) search-MailboxAuditLog is still empty.
    any ideas how to fix this?
    Best,
    martin

    Hi S.Nithyanandham,
    i looked up the mailboxfolderstatistics. There are items in the folder: 
    [PS] C:\Windows\system32>Get-MailboxFolderStatistics mailboxname |where{$_.Name -like "*audit*"}
    RunspaceId : a95e32b8-93c3-4330-8d42-45cade9d64d4
    Date : 18.09.2014 16:35:20
    Name : Audits
    FolderPath : /Audits
    FolderId : LgAAAADmBpGVdb8iQp3F89WOcmcHAQBpQNFODkTESLeLj74B887wAAAAAAESAAAB
    FolderType : Audits
    ItemsInFolder : 147
    DeletedItemsInFolder : 0
    FolderSize : 434.2 KB (444,649 bytes)
    ItemsInFolderAndSubfolders : 147
    DeletedItemsInFolderAndSubfolders : 0
    FolderAndSubfolderSize : 434.2 KB (444,649 bytes)
    OldestItemReceivedDate :
    NewestItemReceivedDate :
    OldestDeletedItemReceivedDate :
    NewestDeletedItemReceivedDate :
    OldestItemLastModifiedDate :
    NewestItemLastModifiedDate :
    OldestDeletedItemLastModifiedDate :
    NewestDeletedItemLastModifiedDate :
    ManagedFolder :
    DeletePolicy :
    ArchivePolicy :
    TopSubject :
    TopSubjectSize : 0 B (0 bytes)
    TopSubjectCount : 0
    TopSubjectClass :
    TopSubjectPath :
    TopSubjectReceivedTime :
    TopSubjectFrom :
    TopClientInfoForSubject :
    TopClientInfoCountForSubject : 0
    SearchFolders :
    Identity : mailboxname\Audits
    IsValid : True
    ObjectState : New
    What do you think?
    why cant i search and find these entries the auditlog?
    best, 
    martin

  • WRVS4400N - syslog / local log not working ?

    I have tried everytihng I can think of - I am running v2.0.0.8 and have enabled all sorts of log options, syslog, smtp etc. The only thing I can get in my log is level 4 warnings, but I need to see all traffic.  Any ideas ?

    To report bugs to apple:
    http://www.apple.com/feedback/macosx.html

Maybe you are looking for

  • How to make Outlook 2013 calendar only show specific hours and hide the others that are grayed out

    I'd like to show 7am to 10pm thus allowing the rest of the day to be less cramped vertically on my screen.  I don't want to see all the grayed out hours which are outside of business hours.  How can I do this?

  • Trouble printing

    I have an all-in-one printer, scanner & copier - Model PSC`1315V - I can scan, print a test page - make a copy of document but cannot print anything from the computer - either on notebook word  or print out an E-mail - when i write a document and pre

  • Date field - User Override

    I have a date/time field on my form that uses a FormCalc script to default to the current date, as shown below, in the Layout:Ready event: $.rawValue = Concat(Num2Date(Date(), "YYYY-MM-DD")) How do I configure this field so that it allows the user to

  • Printing to Adobe Acrobat in Leopard

    I recently upgraded to Leopard. I love it but have one problem: I have Adobe Acrobat 8.0 and with Tiger I could print to Acrobat. Since upgrading I don't have that option & can't find how to enable it. I know, I know - I can just "Save as PDF..." but

  • How do I transfer my IPod library from my pc to my laptop?

    I really don't want to import all my cds again to my laptop so I was wondering how do I get my old songs in my old library to my new library?   Windows XP