duplicate logging log4j

It's the example of newspaper:

Problem when executing the SQL operations

java.lang.NullPointerException

at com.testing.Main.helloWorld(Main.java:35)

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 org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)

at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)

at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)

at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)

at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:838)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)

to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3717)

to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)

2013-11-08 14:08, 828 exception [DEBUG] [public Sub com.testing.Main.helloWorld (java.lang.String)] Manager resolution: java.lang.RuntimeException: java.lang.NullPointerException

2013-11-08 14:08, 841 exception [DEBUG] [public Sub com.testing.Main.helloWorld (java.lang.String)] Manager resolution: java.lang.RuntimeException: java.lang.NullPointerException

2013-11-08 14:08, 841 exception [DEBUG] [public Sub com.testing.Main.helloWorld (java.lang.String)] Manager resolution: java.lang.RuntimeException: java.lang.NullPointerException

2013-11-08 14:08, 847 [DEBUG] unable to complete request

java.lang.RuntimeException: java.lang.NullPointerException

at com.testing.MyLogger.error(MyLogger.java:24)

at com.testing.Main.helloWorld(Main.java:35)

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 org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)

at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)

at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)

at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)

at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:839)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)

to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)

to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3717)

to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)

Caused by: java.lang.NullPointerException

at com.testing.Main.helloWorld(Main.java:35)

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 org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)

at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)

at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)

at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)

at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:838)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)

to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3717)

to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)

... 1 more

as you can see, the same is be connected twice. the first newspaper isn't the part "caused by", where the second has that, but the... 1 more is very frustrating. I want a complete log.

This is the config file:

log4j.rootLogger = DEBUG, FILE

log4j.appender.file = org. Apache.log4j.FileAppender

log4j.appender.file.file=c:/application.log

log4j.appender.file.layout = org. Apache.log4j.PatternLayout

log4j.appender.file.layout.conversionPattern = %m %n


I'm this deployment in weblogic. What I am doing wrong?

Thank you

Basically your code connects it twice.  So to stop it stop it.

Your database layer is probably catch the exception, logging, then wrapping and throw the new exception.  Which layer another captures and records.

Basic standard of the process - not to save the exceptions that get up again.  Don't save the exceptions that are shrouded in other exceptions (which are then thrown.)

Tags: Java

Similar Questions

  • starting the server do not log4j.jar placed in the domain root/lib folder

    Hello

    I use oracle Weblogic server 11g Release 1 (11.1.1.6) and at the time of implementation of Log4j I am faced in error, I followed these steps



    1. copy wllog4j.jar in your WebLogic server/lib directory and place it in your domain_root/lib folder.
    2. copy your version of log4j.jar to your domain_root/lib folder.
    3. copy your log4j.xml to your domain_root folder.
    4. connect the console to the WebLogic Admin Server click servers-> server-> check Admin. Click Advanced mode, and change the implementation of the JDK to Log4J logging. Save your changes.

    Most of the blogs had these items, but the only critical part missing:
    5. (Linux) edit the setDomainEnv.sh file domain_root/bin directory. and look for the following code:


    If ["${LOG4J_CONFIG_FILE}"! = ""]; then
    JAVA_PROPERTIES = "${JAVA_PROPERTIES} - Dlog4j.configuration = file: ${LOG4J_CONFIG_FILE}" "
    export JAVA_PROPERTIES
    FI


    Insert the following above these lines of code (replace the path with the domain_root from your system directory):


    LOG4J_CONFIG_FILE = "/ u01/app/Oracle/middleware/user_projects/Domains/base_domain/log4j." XML ".
    Export LOG4J_CONFIG_FILE


    5. (Windows)
    Modify the setDomainEnv.cmd domain_root/bin directory. and look for the following code:


    in the CONTRARY case () "% LOG4J_CONFIG_FILE %"is.
    Set JAVA_PROPERTIES = % JAVA_PROPERTIES %-Dlog4j.configuration=file:%LOG4J_CONFIG_FILE%
    )


    Insert the following above these lines of code (replace the path with the domain_root from your system directory):


    Set LOG4J_CONFIG_FILE=%DOMAIN_HOME%/log4j.xml



    6 activate the changes, and then restart the management server.

    Here is an example of log4j.xml file. Of course, you will need to update to a valid location for your file appender and replace yourcompany and VotreProject with valid values.


    <? XML version = "1.0" encoding = "UTF-8"? >
    <! DOCTYPE log4j:configuration SYSTEM "log4j.dtd" >
    < log4j:configuration xmlns:log4j = "http://jakarta.apache.org/log4j/" debug = "false" >
    <!--====================================================================-->
    <! - appenders - >
    <!-%d {dd-MMM-yy HH} % - 5 p [%c {1}] %%n-> m
    < name appender = "CONSOLE" class = "org.apache.log4j.ConsoleAppender" >
    < param name = "Target" value = "System.out" / >
    < class = "org.apache.log4j.PatternLayout layout" >
    < param name = "ConversionPattern" value = "% [p] - %m (%F:%M:%L)%n"/ >) "
    <!-param name = "ConversionPattern" value = "%d {ISO8601} %p [%c {1}]-%m (%F:%M:%L)%n"/-->) "
    < / page layout >
    < / appender >

    < name appender = "The FILE" class = "org.apache.log4j.RollingFileAppender" >
    < param name = "File" value="/temp/logs/yourproject.log"/ >
    < param name = "Append" value = "true" / >
    < class = "org.apache.log4j.PatternLayout layout" >
    < param name = "ConversionPattern" value = "{ISO8601} %d %t % - 5 p %c {2} - %m%n"/ > "
    < / page layout >
    < / appender >

    <!--====================================================================-->
    <! - recording levels - >

    < name = "com.yourcompany.yourproject category" >
    < value priority = "DEBUG" / >
    < / category >

    < name = "org.apache category" >
    < value priority = "NOTIFY" / >
    < / category >

    < name = "org.springframework category" >
    < value priority = "NOTIFY" / >
    < / category >

    <!--===================================================================-->
    <! - appender assignments - >
    < root >
    < value priority = "ERROR" / >
    < Ref appender-ref = "FILE" / >
    < / root >
    < / log4j:configuration >







    The weblogic Server Getting does not his next error throw log4j.jar



    [18: 57:44] Girish A Patil: August 7, 2012 18:56:02 IST > < critical > < WebLogicServer > < BEA-000386 > < su Server
    bsystem failed. Reason: java.lang.NoSuchMethodError: com.bea.logging.LogBufferHa
    ndler.getServerLogBufferHandler (mCol, bea, recording, LogBufferHandler);
    java.lang.NoSuchMethodError: com.bea.logging.LogBufferHandler.getServerLogBuffer
    Manager (mCol, bea, recording, LogBufferHandler);
    at weblogic.logging.log4j.JDKLog4jAdapterFactory.createAndInitializeServ
    erLogger(JDKLog4jAdapterFactory.java:82)
    to weblogic.logging.ServerLoggingInitializer.initializeServerLogging (Ser
    verLoggingInitializer.java:50)
    to weblogic.diagnostics.lifecycle.ServerLoggingLifecycleImpl.initialize)
    ServerLoggingLifecycleImpl.java:43)
    to weblogic.diagnostics.lifecycle.DiagnosticFoundationService.start (Diag
    nosticFoundationService.java:108)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    Truncated. check the log file full stacktrace
    >
    ***************************************************************************
    The WebLogic Server has encountered a critical failure
    Reason: Assertion violated
    ***************************************************************************
    Exception in thread "main" java.lang.NoClassDefFoundError: has not been initialized
    class weblogic.protocol.ServerIdentityManager$ Initializer
    at weblogic.protocol.ServerIdentityManager.findServerIdentity (ServerIden
    tityManager.java:64)
    at weblogic.protocol.URLManager.findAdministrationURL (URLManager.java:17
    3)
    to weblogic.server.ServerLifeCycleRuntime.getLifeCycleOperationsRemote (S
    erverLifeCycleRuntime.java:1078)
    at weblogic.t3.srvr.ServerRuntime.sendStateToAdminServer (ServerRuntime.j
    AVA: 429)
    at weblogic.t3.srvr.ServerRuntime.updateRunState(ServerRuntime.java:415)

    at weblogic.t3.srvr.T3Srvr.setState(T3Srvr.java:206)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:482)
    in weblogic. Server.main (Server.Java:71)



    How do I give the address of log4j.jar in setDomainEnv.cmd please specify the server

    Concerning
    Mayur Mitkari

    You are in the wrong file, that is, of setDomainEnv (located in the ${DOMAIN_HOME} / bin directory).

    You should look in the file commEnv - located in the directory ${WL_HOME} / common/bin.

    Also note that the example above is for Linux and you're on Windows. Under Windows, you will need to use something like:

    Set WEBLOGIC_CLASSPATH=%WEBLOGIC_CLASSPATH%;DIRECTORY_WHERE_YOU_PLACED_YOUR_JARS\log4j.jar

  • How to write the output of the custom to xel.log adapter println

    I have a few system.out.println statement inside my adapter code of java customized for debugging purposes. I see these println in weblogic console output when the adapter code is called. But the same not saved in xel.log (log4j.logger.XELLERATE.ADAPTERS is set to DEBUG).

    What should I do to write these println output in file xel.log?

    WebLogic:
    Check File Appender section in the file log.properties of the IOM/config directory and comment it as required.

    JBoss
    Do the same thing in the file jboss - log4j.xml la */Server/all/conf * directory

  • Using Log4J in JRUN leads to conflict ClassLoader

    Summary:
    Using Log4J in JRUN leads to conflict ClassLoader

    Steps to reproduce:
    I created a java class file that uses Log4J. I've bundled in a jar and place it in the directory "JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\lib". When I use the < CFOBJECT > tag to instantiate the class, I get an error message:

    impossible log4j:error to instantiate appender named "adest.
    log4j:error a 'org.apache.log4j.ConsoleAppender' object is not assigned to a variable 'org.apache.log4j.Appender '.
    log4j:error the class 'org.apache.log4j.Appender' has been commissioned by
    log4j:error [sun.misc.Launcher$AppClassLoader@53ba3d] whereas the type object
    log4j:error 'org.apache.log4j.ConsoleAppender' has been charged by [coldfusion.bootstrap.BootstrapClassLoader@4ca6b6].

    Messages appear in the cfusion - err.log. My Appender is called adest, so I know it is to find the class and running. Maybe someone who knows more about the functioning of ColdFusion and JRun classloaders can help me. I checked on similar posts, but nothing is quite like this one.

    My Log4J configuration file is named "x_log4j.properties" and has this entry:
    ...
    log4j. Category.IHF.Logging.IHFAgentLogger = Warn, adest
    !-----------------------------------------------------------------------------!
    ! Declare an output file for the recorder of the IHF Agent Applications!
    !-----------------------------------------------------------------------------!
    log4j.appender.ADEST = org. Apache.log4j.RollingFileAppender
    log4j.appender.ADEST.file=C:\\Work\\agent_applications.log
    log4j.appender.ADEST.layout = org. Apache.log4j.PatternLayout
    log4j.appender.ADEST.layout.ConversionPattern=%p|+|%d{yyyy-mm-dd}|+|%d{hh:mm:SS:SSS}|+|%m| + | %n
    log4j.appender.ADEST.MaxFileSize = 25 KB
    log4j.appender.ADEST.MaxBackupIndex = 5
    log4j. Additivity.IHF.Logging.IHFAgentLogger = false

    ...

    What should have happened? :
    I should have not seen an error and a new logfile specified by my .properties file would be created and receive the output of the ColdFusion call

    Product version: ColdFusion MX7 7,0,0,91690
    Product version: JRun 4 (Build 84683)
    Information of the platform: Windows
    Material:
    OS version: XP
    RAM:
    Color depth:

    I think I myself have solved by moving my jar and application log4j.properties file in a directory that is not in the classpath JRun4. I moved in a directory specified in the ColdFusion administrator, where he says he's looking for COM and Java objects: \JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\gateway\lib

  • Integration of Golden Gate with HDFS

    Greetings,

    I had difficulty getting the Golden Gate to work with Manager HDFS.

    Basically, I want it to monitor changes to an Oracle Table propagate these changes to HDFS.

    My current settings are

    hdfs_ext.PRM

    EXTRACT hdfs_ext

    SetEnv (ORACLE_HOSTNAME = ' 10.0.0.4")

    SetEnv (ORACLE_SERVICE_NAME = 'oracle')

    Oracle username PASSWORD Xpand2015

    SetEnv (GGS_USEREXIT_CONF = "dirprm/hdfs.props")

    setEnv (GGS_JAVAUSEREXIT_CONF = "dirprm/hdfs.props")

    GetEnv (PATH)

    GetEnv (LD_LIBRARY_PATH)

    GetEnv (JAVA_HOME)

    SOURCEDEFS--./source.def

    EXTTRAIL--./dirdat/aa

    discardfile. / dirrpt/avro1.dsc, purge

    DDL include all

    LOGALLSUPCOLS

    CUSEREXIT libggjava_ue.so CUSEREXIT PASSTHRU, INCLUDEUPDATEBEFORES, PARAMS ' / home/xpand/app/oracle/ogg_src/dirprm/hdfs.props '.

    GETUPDATEBEFORES

    SOURCECATALOG pdborcl

    Oracle of the TABLE. A;

    -----

    HDFS.props

    GG.handlerlist = HDFS

    GG. Handler.HDFS.type = HDFS

    gg.handler.hdfs.includeTokens = false

    gg.handler.hdfs.maxFileSize = 1 g

    gg.handler.hdfs.rootFilePath=/ogg

    gg.handler.hdfs.fileRollInterval = 0

    gg.handler.hdfs.inactivityRollInterval = 0

    gg.handler.hdfs.fileSuffix = .txt

    gg.handler.hdfs.partitionByTable = true

    gg.handler.hdfs.rollOnMetadataChange = true

    gg.handler.hdfs.authType = none

    GG. Handler.HDFS.format = DelimitedText

    gg.handler.hdfs.format.includeColumnNames = true

    GG. Handler.HDFS.mode = TX

    GoldenGate.UserExit.Timestamp = UTC

    GoldenGate.UserExit.Writers = javawriter

    javawriter.stats.display = true

    javawriter.stats.Full = true

    GG.log = log4j

    GG.log.Level = trace

    GG. Report.Time = 30 sec

    GG.classpath=/Home/Xpand/app/Oracle/ogg_src/sites:/Home/Xpand/app/Oracle/ogg_src/Hadoop/lib/Hadoop-HDFS/*:/Home/Xpand/app/Oracle/ogg_src/Hadoop/lib/*:/Home/Xpand/app/Oracle/ogg_src/Hadoop/Jars/*

    ------

    Contents of the dir/home/xpand/app/oracle/ogg_src/sites

    Core - site.xml hdfs - site.xml ssl - client.xml ssl - server.xml

    After the start of the hdfs_ext process, nothing ever gets propagated to the HDFS.

    Here's the report typical https://www.dropbox.com/s/iyajf8begou90mz/HDFS_EXT.rpt?dl=0

    Note: the oracle with Golden Gate and the machine with hdfs are in the same network to following address 10.0.0.4 and 10.0.0.5

    Please notify.

    Can you please list ggsci

    > info ext1, detail

    > info ext1, showch

    > hdfs_ext info, detail

    > hdfs_ext info, showch

    Note that you can configure the adapter or bigdata extract to read a track OGG and one created by ext1 is fine.

    You can create another excerpt if you like and do the same thing as hdfs, except the name. Then add ext hdfs_two, exttrail ./dirdat/xx

    Yes do not put exttrail as the output of an ext hdfs hdfs.

    Now if hdfs_two works, lift a SR. provide the results of the information and report as well as your test files.

    See you soon

    Gan Kee

  • Installation: Problems with Weblogic 9.1

    Hello, Hello

    Sorry I'm new to this tool and I'm having a little trouble. Has anyone see or know what I'm doing wrong.
    Just downstairs, I loaded the HQ software and installed on the server on a Win2003 Server. On another server running Win2003 and weblogic 9.1 I have installed the client. When I do the auto-discovery, he can't find the weblogic server.

    Details of the system
    OS: win 2003
    Application server BEA Weblogic 9.1
    Location of weblogic jar: D:\bea91\weblogic91\server\lib
    HQ version: 2.7.6 - 163

    Auto discover options:
    Scan for the Type of server: weblogic 9.1
    scnDirs:
    C:\                  {runs but can't find that stuff to the BONE and not Weblogic}
    D:\                   {runs for awhile and then returns an IO error error - analysis of the D:\System Volume Information directory}
    ExcludeDirs: < default >

    I have to monitor Weblogic, canu help you?

    Here are the files agent.properties

    Thank you
    Tom Devlin
    949-672-9579.



    # Agent configuration file
    #
    # The following is the properties of the Agent recognizes:
    #
    # agent.listenPort
    # Default: "2144.
    #
    # Description: Port that listens to the agent.
    #
    # agent.listenIp
    # Default: «*»
    #
    # Description: Address that the agent to listen.  If the value "*",
    # the agent will listen on all available interfaces.
    #
    # agent.startupTimeOut
    # Default: '300 '.
    #
    # Description: This is the number of seconds that starting agent
    script # will wait before determining that the agent
    # doesn't have a successful boot.
    #
    # agent.maxBatchSize
    # Default: "500".
    #
    # Description: This is the maximum number of parameters that the
    # agent will send by contact with HQ.
    #

    # Use the following if you wish to have the agent configuration
    # automatically from these properties.  The values for these
    # properties are used to answer the questions of installation
    ##
    # If any of these properties are left not defined, Setup
    # process will ask their values
    ##
    # If the value to be used is the default when interactive
    # installation is made, use the string * default * as the value for the option

    #agent.setup.camIP = localhost
    #agent.setup.camPort = 7080
    #agent.setup.camSSLPort = 7443
    #agent.setup.camSecure = yes
    #agent.setup.camLogin = hqadmin
    #agent.setup.camPword = hqadmin
    #agent.setup.agentIP = * default *.
    #agent.setup.agentPort = * default *.
    #agent.setup.resetupTokens = no

    agent.tmpDir=./tmp

    # to find the server/lib/weblogic.jar
    #weblogic.installpath=/usr/local/bea/weblogic-8.1
    WebLogic.InstallPath=/bea91/weblogic91

    # to find pots of websphere
    #websphere.installpath=/opt/WebSphere/AppServer

    # to find pots of jboss
    #jboss.installpath=/usr/local/jboss-4.0.0

    ##
    # Logging settings
    ##
    agent.logFile=${agent.logDir}/agent.log
    log4j.rootLogger = info, R

    log4j.appender.R.file = ${agent. LogFile}
    log4j.appender.R.MaxBackupIndex = 1
    log4j.appender.R.MaxFileSize = 5000 KB
    log4j.appender.R.layout.ConversionPattern=%d % - 5 p [%c {1}] %m %n
    log4j.appender.R.layout = org. Apache.log4j.PatternLayout
    log4j.appender.R = org. Apache.log4j.RollingFileAppender

    ##
    # Disable too verbose logging
    ##
    log4j. Logger.httpclient.Wire = Error
    log4j.logger.org.Apache.Commons.HttpClient = Error
    log4j.logger.org.Hyperic.HQ.measurement.agent.Server.SenderThread = info
    log4j.logger.org.Hyperic.HQ.agent.Server.AgentDListProvider = info
    log4j.logger.org.Hyperic.HQ.agent.Server.MeasurementSchedule = info

    # Only log errors of naming context
    log4j.category.org.JNP.interfaces.NamingContext = Error
    log4j.category.org.Apache.axis = Error

    ##
    # Agent jars
    ##
    agent.pdkLibDir=./pdk/lib
    agent.pdkPluginDir=./pdk/plugins

    ##
    # Options auto-stocks
    ##

    #autoinventory.defaultScan.interval.millis = 86400000
    autoinventory.runtimeScan.interval.millis = 86400000

    # Agent classpath (pdk/lib / *.) {} jar, zip} are included by default)
    agent.classPath =.
    ./lib/AgentServer.jar:\
    ./lib/Lather.jar

    # Options to move to java
    agent.javaOpts =-Xmx128m - Djava .net .preferIPv4Stack = true

    Hi Tom,

    We were able to reproduce, a plugin update with the patch is attached
    for this post:

    http://JIRA.Hyperic.com/browse/HHQ-440

  • Push - centralized replication

    Hello

    I installed the example of push replication of the incubator (exit 10) for the centralized example - simple enough! Now, I'm trying to run some client console (i.e. com.tangosol.net.CacheFactory) that connect to each "site" so that I can get / put my own things and watch them reproduce. After that, I would then go see if I can write my own editor classes that can filter messages before sending them for replication, as I just want to send objects of a certain type of memory cache of my a cluster to another.

    I run the client using the following cmd script. It starts and connects to the HUB cluster, the others start and connect to clusters of leaves as the case may be. When I am prompted with the ' Map (?):' prompt I type "cache cache publication" and the newspaper I see the error, as shown below. All other configurations are from the central example in the incubator of PR.

    I use such configurations as provided through the incubator 10, coh 3.7.1 java 1.7. Any help would be appreciated.

    Thank you
    Ku

    Script command for customer HUB
    set MEMORY=256m
    
    set CLUSTERPORT=9000
    set CLUSTERADDRESS=239.255.9.99
    set SERVERTYPE=hub
    set SERVER_CLIENT=client
    set JMXPORT=50000
    set MAIN_CLASS=com.tangosol.net.CacheFactory
    set STORAGE=false
    
    set LOG4J="R:\MBS\PNG\Server\ThirdParty\log4j-1.2.15"
    
    if "%CACHE_SERVER%"=="" set CACHE_SERVER="D:\zCoherence\coherence-incubator-examples-1.3.4.31472\resource\pushreplicationpattern\central"
    
    if "%COHERENCE_SERVERLOG%"=="" set COHERENCE_SERVERLOG="D:\zCoherence\coherence-incubator-examples-1.3.4.31472\log"
    
    set JAVA_EXEC="%JAVA_HOME%\bin\java"
    set JAVA_OPTS=-Xms%MEMORY% -Xmx%MEMORY% -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=%JMXPORT% -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
    
    set SYS_OPTS=-Dtangosol.coherence.cacheconfig=%SERVERTYPE%-cache-clientconfig.xml -Dtangosol.coherence.distributed.localstorage=%STORAGE% -Dtangosol.coherence.clusteraddress=%CLUSTERADDRESS% -Dtangosol.coherence.clusterport=%CLUSTERPORT% -Dtangosol.coherence.log=log4j -Dlogfilepath=%COHERENCE_SERVERLOG%\%SERVERTYPE%-%SERVER_CLIENT%-%CLUSTERPORT%.log -Dtangosol.coherence.log.level=9 -Dtangosol.coherence.site=%SERVERTYPE%%SERVER_CLIENT% -Dtangosol.pof.config=central-example-pof-config.xml
    
    TITLE Cache Client on %SERVERTYPE%
    
    %JAVA_EXEC% -showversion %JAVA_OPTS% %SYS_OPTS% -cp "%CACHE_SERVER%\;%COHERENCE_HOME%\lib\coherence.jar;%LOG4J%\log4j-1.2.15.jar" %MAIN_CLASS%
    Error after attempting to map cache
    2012-03-08 16:46:08.209/10.434 Oracle Coherence GE 3.7.1.0 <Info> (thread=main, member=4): Loaded cache configuration from "file:/D:/zCoherence/coherence-incubator-examples-1.3.4.31472/resource/pushreplicationpattern/central/hub-cache-clientconfig.xml"; this document does not refer to any schema definition and has not been validated.
    2012-03-08 16:46:08.217/10.442 Oracle Coherence GE 3.7.1.0 <Error> (thread=main, member=4): 
    java.lang.IllegalArgumentException: No scheme for cache: "publishing-cache"
         at com.tangosol.net.DefaultConfigurableCacheFactory.findSchemeMapping(DefaultConfigurableCacheFactory.java:542)
         at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:290)
         at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:204)
         at com.tangosol.coherence.component.application.console.Coherence.doCache(Coherence.CDB:18)
         at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:212)
         at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:37)
         at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:601)
         at com.tangosol.net.CacheFactory.main(CacheFactory.java:827)
    Published by: Kunal on March 8, 2012 22:24

    Hi Kunal,

    Include binary files reside in the folder lib of the coherence incubator examples - 1.3.4.31472 in your HUB client classpath. Your mistake, it is clear that the consistency is unable to find one of the configuration files that defines the cache publication and if you look in your "hub-cache - clientconfig.xml", there will be as a configuration of cache included residing in some other jar (I think that consistency-messagingpattern).

    I hope this helps!

    See you soon,.
    NJ

  • Java7/JDBC 4.1 not backward compatible - DataSource getParentLogger()

    I tried to upgrade to Java 7 and had a nasty surprise. Java 7 is NOT backward compatible! After more than 15 years making the Java, this is the first time I encounter such a thing.

    The new 4.1 JDBC, now included in Java 7 requires that implement data sources:

    java.util.logging.Logger getParentLogger() launches SQLFeatureNotSupportedException

    It broke the a custom data source I use. The solution seems simple at first, implement getParentLogger. But I have encountered the following problems:

    (1) the documentation for this method sucks. It does not say much.

    (2) intuition makes me think that the simplest implementation is to just throw SQLFeatureNotSupportedException and JDBC will probably catch the exception and ignore any logging expected at this level. But we don't know if it is actually what he does.

    (3) another option would be to return a parent logger... except that I use jBoss 5.x and jBoss uses log4j for its record, not JUL. A real implementation would come back somehow a java.util.logging.Logger benefiting somehow a log4j logger. Someone suggested looking at slf4j, but it is not clear to me how I would use it for this task.

    Since Java 7 has been out for some time, I hope I'm not one to encounter this problem with the sources of data and logging log4j. Probably should already be advised on how to handle this.

    Can someone point me to a solution?

    I asked someone better than me and got:

    If an application does not support, or if the implementation of the data source is not
    use java.util.logging, a SQLFeatureNotSupportedException must be lifted and the
    the caller is supposed to handle this.

  • Deploy with custom libraries

    Hello

    I'm trying to test/deployment of my application. In the application, I use a library for logging (log4j).
    Successfully, I included the library in the model and used in the code.
    The compilation of the code but when I try to deploy the integrated weblogic server, I get this error:

    Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger

    I'm missing some step to include the custom library during the deploy?

    Thank you

    You mark the library that you have added to deploy by default?

  • Essbase dataload is successful, but the data did not get loaded

    Hi John,.

    I load the data into essbase cube. It worked successfully, but in the execution tab, the number of insertions is 0. When I saw the agent log the following appears. Could you please let me know what it means

    A JDK is required to run Web Services with OracleDI. You are currently using
    a JRE.
    From Oracle Data Integrator Agent...
    Version: 10.1.3.5 - 11/10/2008
    2009-10-22 08:15:30 AM (main): server launched
    Access to the properties file error. Essbase.Properties: essbase.properties (The
    system cannot find the file specified.) Using the default values.
    Hyperion provider Services - version 9.3.1.1.0 Release 050
    Copyright (c) 1991, 2007 Oracle and / or its subsidiaries. All rights reserved.
    connection mode: INTEGRATED
    Essbase.Properties: essbase.properties
    Domain.DB location: domain.db
    enable log console: false
    enable log file: false
    logRequest: false
    logLevel: ERROR
    DESS_ES_HOME Java System properties: null
    Initialization of the essbase and connection wrapper
    log4j: WARN no appenders could be found for logger (D:\Shared\Logs\WrkForce\WrkFo
    RCE.log).
    log4j: WARN Please initialize log4j correctly system.

    Hello

    If it was properly executed, and there is no insertions, releases, you must first check the log to see if all records have been rejected.
    Then you will need to check the SQL code generated because more than probably he not returned no documents.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to change the location of the log file in File Appender for log4j when used with the logic of the Web?

    I use log4j with weblogic

    I want to change the location of the log file in File Appender.

    I have tried providing another place but it will create the file in the same place in mydomain

    even if it has been changed in the log4j.xml.

    No idea why it's happening or what I can do to change the location of my log File? Thank you!

    Everything is perfect just replace '-' with "/" in the given file path.

  • log4j: logs record various appenders

    Hello

    I have this like log4j.properties

    log4j.rootCategory = DEBUG, file, log, stdout
    log4j. Category.MUTE = OFF

    log4j.appender.StdOut.threshold = ERROR
    log4j.appender.stdout = org.apache.log4j.ConsoleAppender
    log4j.appender.StdOut.layout = org.apache.log4j.PatternLayout
    log4j.appender.StdOut.layout.ConversionPattern = %d % {ABSOLUTE} 5 p [%t] %c - %m %n

    log4j.appender.file.threshold = ${qtl.log.level}
    log4j.appender.file.file = ${qtl.log.operation}
    log4j.appender.file.MaxFileSize = 10 MB
    log4j.appender.file.MaxBackupIndex = 10
    log4j.appender.file = org.apache.log4j.RollingFileAppender
    log4j.appender.file.layout = org.apache.log4j.PatternLayout
    log4j.appender.file.layout.ConversionPattern = % - 5 p | % - 80 m | %d %n

    log4j.appender.logfile.file = ${qtl.log.application}
    log4j.appender.logfile.MaxFileSize = 10 MB
    log4j.appender.logfile.MaxBackupIndex = 10
    log4j.appender.logfile = org.apache.log4j.RollingFileAppender
    log4j.appender.logfile.layout = org.apache.log4j.PatternLayout
    log4j.appender.logfile.layout.ConversionPattern = % - 5 p | % - 80 m | %d %n


    for these two appenders of different file, I want to instantiate two different loggers so how can I do

    at the present time I am instantiating journal like this

    String callingClassName = Thread.currentThread () .getStackTrace () [2] .getClass () .getCanonicalName ();
    Return Logger.getLogger (callingClassName);
    log4j.logger.myFile1=debug,file
    log4j.logger.myFile2=debug,Logfile
    

    in Java Code, you will need to choose one or the other paper:

    Logger fl1= Logger.getLogger("myFile1");// loggs to {qtl.log.operation}
    Logger fl2= Logger.getLogger("myFile2"); // loggs to ${qtl.log.application}
    

    Good bye
    DPT

  • The clause in the database log file duplicate

    I tried to duplicate a database (Oracle RAC 10 g ASM 2 node Windows 2003 Server R2) and in the document of the oracle, it went something like:

    DUPLICATE the TARGET DATABASE to dupdb
    PFILE = /dup/oracle/dbs/initDUPDB.ora
    LOGFILE
    ' / dup/oracle/oradata/trgt/redo01.log' SIZE 200 K,.
    ' / dup/oracle/oradata/trgt/redo02.log' SIZE 200 K,.
    ' / dup/oracle/oradata/trgt/redo03.log' SIZE 200 K;

    I thought as the source database RMAN backup already contained the definitions of redo log. Are only these redo log files used for the process during replication of the database? Is the logfile clause is required to use the command DUPLICATE TARGET DATABASE?

    Thank you much in advance.

    LOG file can be used to specify where the newspapers of recovery for the duplicate database should be placed. This clause is not mandatory and it is really necessary only if you intend to rename the redo log files. If you don't need/want to rename the files, you can use the NOFILENAMECHECK option.

  • Log4j logging on the Oracle application server.

    First of all, don't know where to post this, but this seems to be the most active forum in general.
    And the issue of cuts in good number of technologies/products.

    For common.logging-based logging, the IAS has the ability to dynamically adjust the loglevel during execution.
    This can be done under the administration of container and the logging configuration. All the registered papers will display. Newspapers at least all registrants based on common logging. But those of log4J are not displayed.

    He is a brilliant feature for debugging problems in a production environment.

    However, when you use log4j seems not possible more.

    I do not understand why, and no one knows how to fix this?

    Anton

    Hi Anton

    Maybe this can help...
    "Configuration and using Jakarta log4j.
    «+ The following sections cover the considerations for use of Jakarta log4j in an OC4J environment... +»
    http://download.Oracle.com/docs/CD/B32110_01/Web.1013/b28952/opensrc.htm#sthref174

    success
    Jan Vervecken

  • Tryig to install Com + security install, get the error "the COM + sub system is concealing duplicate event log entries to 86400 seconds.

    I try to install the installer Com + security but there is error thorwing as... The subsystem of COM + deletes log entries of events in double to 86400 seconds.  The removal timeout can be controlled by a REG_DWORD value called SuppressDuplicateDuration under the registry key next: HKLM\Software\Microsoft\COM3\Eventlog.

    Product: MMFSecurity - error 1001. Error 1001. An exception occurred during the validation phase for the installation. This exception is ignored and the installation will continue. However, the application may not work properly after installation. --> FATAL: component not found ' MMF. Core.MessageSecurityComPlusHost.MsgCodec' we just install.
    (NULL)
    (NULL)
    (NULL)
    (NULL)

    the message resource is present, but the message is not in the string/message table

    Hello

    ·          On what operating system are you trying to install?

    I suggest you to post your query in Microsoft TechNet forums as they are here.

    Here is the link to the TechNet forums: http://social.technet.microsoft.com/Forums/en-US/categories

    Refer to: http://technet.microsoft.com/en-us/library/cc774146 (WS.10) .aspx

Maybe you are looking for

  • Airport Extrem

    Hello world Nows somedy which means that the small number of '1' in a red dot? What should I do? Thanks in advance for your help. Best regards B2F

  • New iPhone on Cricket, can not modify or reproduce Visual Voicemail greeting

    I have an iPhone SE I just myself, set up Visual Voicemail with Cricket in the application the phone iOS tab voice mail Worked fine. But now, when I go to the reception area, the buttons don't ' work and I can not read. I can just hit Cancel. When I

  • How to import files from an SD card

    There is a slot for SD card in my Mac Book. But after inserting a SD card into the slot, then how to import files for Macbook, anyone know how? Thank you.

  • Satellite A300 - 1 5 - How to enable virtualization technology?

    Hello world!! I have this Toshiba [Satellite A300 - 1 G 5 | http://eu.computers.toshiba-europe.com/innovation/jsp/SUPPORTSECTION/discontinuedProductPage.do?service=EU&com.broadvis ion.session.new = Yes & PRODUCT_ID = 1055589]. If you check the featur

  • Why can't I download programs or open pdf files?

    HelloI have 2 month old dell Vista desktop Pc.I had a virus recently which, with the help of Mcafee, I think that I managed to get rid of.It seems that my pc works properly and I can connect to the internet and surf the web. BUT I can not download fi