Results 1 to 2 of 2
  1. #1
    vilas_tadoori is offline Member
    Join Date
    Jun 2010
    Posts
    2
    Rep Power
    0

    Smile Log4j Appender issue

    Hi All,
    we are using the log4j MBean's and when we are setting the log levels dynamically we are getting the following error message.

    The following are the list of MBean attributes

    MBean description:
    This MBean acts as a management facade for a org.apache.log4j.Logger instance.
    --------------------------------------------------------------------------------

    List of MBean attributes:

    Name Type Access
    appender=ProcessAppender javax.management.ObjectName RW
    Value
    log4j:appender=ProcessAppender


    The screen shot of the same is in the attachments.

    When we change the level of logs dynamically we get the following error message as


    477 All Attributes Not Set



    --------------------------------------------------------------------------------

    2/3 attribute(s) were not set:


    appender%3DLM_CON_APP_com.teamcenter.mld
    appender%3DLM_APP_com.teamcenter.mld


    I will be pasting the detailed sequence in the doc file...it would be great if anyone can give me pointers to help me solve this issue. Your help will be appreciated.

    ~Vilas.
    Attached Files Attached Files

  2. #2
    vilas_tadoori is offline Member
    Join Date
    Jun 2010
    Posts
    2
    Rep Power
    0

    Default

    In the console we are getting this message below is there a patch that we need to apply....

    javax.management.AttributeNotFoundException: Attribute appender%3DLM_APP_com.tea
    mcenter.mld not found in org.apache.log4j.jmx.LoggerDynamicMBean
    at org.apache.log4j.jmx.LoggerDynamicMBean.setAttribu te(Unknown Source)
    at org.apache.log4j.jmx.AbstractDynamicMBean.setAttri butes(Unknown Sourc
    e)
    at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.setAttributes(D
    efaultMBeanServerInterceptor.java:819)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.setAttribut es(JmxMBeanServer.j
    ava:728)
    at com.sun.jdmk.comm.HtmlObjectPage.setObjectValue(Ht mlObjectPage.java:4
    26)
    at com.sun.jdmk.comm.HtmlRequestHandler.processGetReq uest(HtmlRequestHan
    dler.java:301)
    at com.sun.jdmk.comm.HtmlRequestHandler.processReques t(HtmlRequestHandle
    r.java:155)
    at com.sun.jdmk.comm.HtmlRequestHandler.doRun(HtmlReq uestHandler.java:82
    )
    at com.sun.jdmk.comm.ClientHandler.run(ClientHandler. java:99)
    at java.lang.Thread.run(Thread.java:619)
    javax.management.AttributeNotFoundException: Attribute appender%3DLM_CON_APP_com
    .teamcenter.mld not found in org.apache.log4j.jmx.LoggerDynamicMBean
    at org.apache.log4j.jmx.LoggerDynamicMBean.setAttribu te(Unknown Source)
    at org.apache.log4j.jmx.AbstractDynamicMBean.setAttri butes(Unknown Sourc
    e)
    at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.setAttributes(D
    efaultMBeanServerInterceptor.java:819)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.setAttribut es(JmxMBeanServer.j
    ava:728)
    at com.sun.jdmk.comm.HtmlObjectPage.setObjectValue(Ht mlObjectPage.java:4
    26)
    at com.sun.jdmk.comm.HtmlRequestHandler.processGetReq uest(HtmlRequestHan
    dler.java:301)
    at com.sun.jdmk.comm.HtmlRequestHandler.processReques t(HtmlRequestHandle
    r.java:155)
    at com.sun.jdmk.comm.HtmlRequestHandler.doRun(HtmlReq uestHandler.java:82
    )
    at com.sun.jdmk.comm.ClientHandler.run(ClientHandler. java:99)
    at java.lang.Thread.run(Thread.java:619)
    javax.management.AttributeNotFoundException: Attribute appender%3DLM_APP_com.tea
    mcenter.mld not found in org.apache.log4j.jmx.LoggerDynamicMBean
    at org.apache.log4j.jmx.LoggerDynamicMBean.setAttribu te(Unknown Source)
    at org.apache.log4j.jmx.AbstractDynamicMBean.setAttri butes(Unknown Sourc
    e)
    at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.setAttributes(D
    efaultMBeanServerInterceptor.java:819)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.setAttribut es(JmxMBeanServer.j
    ava:728)
    at com.sun.jdmk.comm.HtmlObjectPage.setObjectValue(Ht mlObjectPage.java:4
    26)
    at com.sun.jdmk.comm.HtmlRequestHandler.processGetReq uest(HtmlRequestHan
    dler.java:301)
    at com.sun.jdmk.comm.HtmlRequestHandler.processReques t(HtmlRequestHandle
    r.java:155)
    at com.sun.jdmk.comm.HtmlRequestHandler.doRun(HtmlReq uestHandler.java:82
    )
    at com.sun.jdmk.comm.ClientHandler.run(ClientHandler. java:99)
    at java.lang.Thread.run(Thread.java:619)
    javax.management.AttributeNotFoundException: Attribute appender%3DLM_CON_APP_com
    .teamcenter.mld not found in org.apache.log4j.jmx.LoggerDynamicMBean
    at org.apache.log4j.jmx.LoggerDynamicMBean.setAttribu te(Unknown Source)
    at org.apache.log4j.jmx.AbstractDynamicMBean.setAttri butes(Unknown Sourc
    e)
    at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.setAttributes(D
    efaultMBeanServerInterceptor.java:819)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.setAttribut es(JmxMBeanServer.j
    ava:728)
    at com.sun.jdmk.comm.HtmlObjectPage.setObjectValue(Ht mlObjectPage.java:4
    26)
    at com.sun.jdmk.comm.HtmlRequestHandler.processGetReq uest(HtmlRequestHan
    dler.java:301)
    at com.sun.jdmk.comm.HtmlRequestHandler.processReques t(HtmlRequestHandle
    r.java:155)
    at com.sun.jdmk.comm.HtmlRequestHandler.doRun(HtmlReq uestHandler.java:82
    )
    at com.sun.jdmk.comm.ClientHandler.run(ClientHandler. java:99)
    at java.lang.Thread.run(Thread.java:619)
    javax.management.AttributeNotFoundException: Attribute appender%3DLM_APP_com.tea
    mcenter.mld not found in org.apache.log4j.jmx.LoggerDynamicMBean
    at org.apache.log4j.jmx.LoggerDynamicMBean.setAttribu te(Unknown Source)
    at org.apache.log4j.jmx.AbstractDynamicMBean.setAttri butes(Unknown Sourc
    e)
    at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.setAttributes(D
    efaultMBeanServerInterceptor.java:819)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.setAttribut es(JmxMBeanServer.j
    ava:728)
    at com.sun.jdmk.comm.HtmlObjectPage.setObjectValue(Ht mlObjectPage.java:4
    26)
    at com.sun.jdmk.comm.HtmlRequestHandler.processGetReq uest(HtmlRequestHan
    dler.java:301)
    at com.sun.jdmk.comm.HtmlRequestHandler.processReques t(HtmlRequestHandle
    r.java:155)
    at com.sun.jdmk.comm.HtmlRequestHandler.doRun(HtmlReq uestHandler.java:82
    )
    at com.sun.jdmk.comm.ClientHandler.run(ClientHandler. java:99)
    at java.lang.Thread.run(Thread.java:619)
    javax.management.AttributeNotFoundException: Attribute appender%3DLM_CON_APP_com
    .teamcenter.mld not found in org.apache.log4j.jmx.LoggerDynamicMBean
    at org.apache.log4j.jmx.LoggerDynamicMBean.setAttribu te(Unknown Source)
    at org.apache.log4j.jmx.AbstractDynamicMBean.setAttri butes(Unknown Sourc
    e)
    at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.setAttributes(D
    efaultMBeanServerInterceptor.java:819)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.setAttribut es(JmxMBeanServer.j
    ava:728)
    at com.sun.jdmk.comm.HtmlObjectPage.setObjectValue(Ht mlObjectPage.java:4
    26)
    at com.sun.jdmk.comm.HtmlRequestHandler.processGetReq uest(HtmlRequestHan
    dler.java:301)
    at com.sun.jdmk.comm.HtmlRequestHandler.processReques t(HtmlRequestHandle
    r.java:155)
    at com.sun.jdmk.comm.HtmlRequestHandler.doRun(HtmlReq uestHandler.java:82
    )
    at com.sun.jdmk.comm.ClientHandler.run(ClientHandler. java:99)
    at java.lang.Thread.run(Thread.java:619)
    javax.management.AttributeNotFoundException: Attribute appender%3DProcessAppende
    r not found in org.apache.log4j.jmx.LoggerDynamicMBean
    at org.apache.log4j.jmx.LoggerDynamicMBean.setAttribu te(Unknown Source)
    at org.apache.log4j.jmx.AbstractDynamicMBean.setAttri butes(Unknown Sourc
    e)
    at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.setAttributes(D
    efaultMBeanServerInterceptor.java:819)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.setAttribut es(JmxMBeanServer.j
    ava:728)
    at com.sun.jdmk.comm.HtmlObjectPage.setObjectValue(Ht mlObjectPage.java:4
    26)
    at com.sun.jdmk.comm.HtmlRequestHandler.processGetReq uest(HtmlRequestHan
    dler.java:301)
    at com.sun.jdmk.comm.HtmlRequestHandler.processReques t(HtmlRequestHandle
    r.java:155)
    at com.sun.jdmk.comm.HtmlRequestHandler.doRun(HtmlReq uestHandler.java:82
    )
    at com.sun.jdmk.comm.ClientHandler.run(ClientHandler. java:99)
    at java.lang.Thread.run(Thread.java:619)

Similar Threads

  1. log4j
    By swapna_d in forum New To Java
    Replies: 7
    Last Post: 08-04-2010, 12:23 AM
  2. Getting log level in Appender class
    By ashu_knw in forum New To Java
    Replies: 0
    Last Post: 05-14-2010, 11:22 AM
  3. log4j multi appender
    By tomatino in forum New To Java
    Replies: 0
    Last Post: 01-02-2010, 08:06 PM
  4. console appender to a text file
    By jazz2k8 in forum Advanced Java
    Replies: 2
    Last Post: 06-25-2009, 02:47 PM
  5. Log4j Issue
    By nag98 in forum Forum Lobby
    Replies: 0
    Last Post: 06-22-2008, 08:22 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •