Results 1 to 3 of 3

Thread: ZuckerReports Error: "log4j:WARN No appenders could be found for logger"

  1. #1
    tomcdonnell is offline Senior Member
    Join Date
    Mar 2010
    Posts
    23

    Default ZuckerReports Error: "log4j:WARN No appenders could be found for logger"

    Greetings all.

    I have installed ZuckerReports v1.12 in SugarCRM 5.5.1. When I attempt to run a report I get the following error message.

    cmdline: javaw -classpath "custom/ZuckerReports/resources/;custom/ZuckerReports/resources/contact_counts_by_first_name.jasper_files/;modules/ZuckerReports/jasper/ant-1.7.1.jar;modules/ZuckerReports/jasper/antlr-2.7.6.jar;modules/ZuckerReports/jasper/asm-attrs.jar;modules/ZuckerReports/jasper/asm.jar;modules/ZuckerReports/jasper/barbecue-1.5-beta1.jar;modules/ZuckerReports/jasper/barcode4j-2.0.jar;modules/ZuckerReports/jasper/batik-anim.jar;modules/ZuckerReports/jasper/batik-awt-util.jar;modules/ZuckerReports/jasper/batik-bridge.jar;modules/ZuckerReports/jasper/batik-css.jar;modules/ZuckerReports/jasper/batik-dom.jar;modules/ZuckerReports/jasper/batik-ext.jar;modules/ZuckerReports/jasper/batik-gvt.jar;modules/ZuckerReports/jasper/batik-parser.jar;modules/ZuckerReports/jasper/batik-script.jar;modules/ZuckerReports/jasper/batik-svg-dom.jar;modules/ZuckerReports/jasper/batik-svggen.jar;modules/ZuckerReports/jasper/batik-util.jar;modules/ZuckerReports/jasper/batik-xml.jar;modules/ZuckerReports/jasper/bcel-5.2.jar;modules/ZuckerReports/jasper/bsh-2.0b4.jar;modules/ZuckerReports/jasper/castor-1.2.jar;modules/ZuckerReports/jasper/cglib-2.1.jar;modules/ZuckerReports/jasper/cincom-jr-xmla.jar;modules/ZuckerReports/jasper/commons-beanutils-1.8.2.jar;modules/ZuckerReports/jasper/commons-collections-3.2.1.jar;modules/ZuckerReports/jasper/commons-dbcp-1.2.2.jar;modules/ZuckerReports/jasper/commons-digester-1.7.jar;modules/ZuckerReports/jasper/commons-javaflow-20060411.jar;modules/ZuckerReports/jasper/commons-logging-1.1.jar;modules/ZuckerReports/jasper/commons-math-1.0.jar;modules/ZuckerReports/jasper/commons-pool-1.3.jar;modules/ZuckerReports/jasper/commons-vfs-1.0.jar;modules/ZuckerReports/jasper/dom4j-1.6.jar;modules/ZuckerReports/jasper/ehcache-1.1.jar;modules/ZuckerReports/jasper/eigenbase-properties-1.1.0.10924.jar;modules/ZuckerReports/jasper/eigenbase-resgen-1.3.0.11873.jar;modules/ZuckerReports/jasper/eigenbase-xom-1.3.0.11999.jar;modules/ZuckerReports/jasper/ejb3-persistence.jar;modules/ZuckerReports/jasper/groovy-all-1.5.5.jar;modules/ZuckerReports/jasper/hibernate-annotations.jar;modules/ZuckerReports/jasper/hibernate-commons-annotations.jar;modules/ZuckerReports/jasper/hibernate3.jar;modules/ZuckerReports/jasper/hsqldb-1.8.0-10.jar;modules/ZuckerReports/jasper/iText-2.1.0.jar;modules/ZuckerReports/jasper/iTextAsian.jar;modules/ZuckerReports/jasper/jakarta-bcel-20050813.jar;modules/ZuckerReports/jasper/jasperreports-3.7.1.jar;modules/ZuckerReports/jasper/jasperreports-chart-themes-3.6.2.jar;modules/ZuckerReports/jasper/jasperreports-extensions-3.5.3.jar;modules/ZuckerReports/jasper/jasperreports-fonts-3.6.1.jar;modules/ZuckerReports/jasper/javacup.jar;modules/ZuckerReports/jasper/javassist-3.4.GA.jar;modules/ZuckerReports/jasper/jaxen-1.1.1.jar;modules/ZuckerReports/jasper/jcommon-1.0.15.jar;modules/ZuckerReports/jasper/jdt-compiler-3.1.1.jar;modules/ZuckerReports/jasper/jfreechart-1.0.12.jar;modules/ZuckerReports/jasper/jpa.jar;modules/ZuckerReports/jasper/js_activation-1.1.jar;modules/ZuckerReports/jasper/js_axis-1.4patched.jar;modules/ZuckerReports/jasper/js_commons-codec-1.3.jar;modules/ZuckerReports/jasper/js_commons-discovery-0.2.jar;modules/ZuckerReports/jasper/js_commons-httpclient-3.1.jar;modules/ZuckerReports/jasper/js_jasperserver-common-ws-3.5.0.jar;modules/ZuckerReports/jasper/js_jaxrpc.jar;modules/ZuckerReports/jasper/js_mail-1.4.jar;modules/ZuckerReports/jasper/js_saaj-api-1.3.jar;modules/ZuckerReports/jasper/js_wsdl4j-1.5.1.jar;modules/ZuckerReports/jasper/jta.jar;modules/ZuckerReports/jasper/jxl-2.6.jar;modules/ZuckerReports/jasper/log4j-1.2.15.jar;modules/ZuckerReports/jasper/mondrian-3.1.1.12687-Jaspersoft.jar;modules/ZuckerReports/jasper/mysql-connector-java-3.1.11-bin.jar;modules/ZuckerReports/jasper/olap4j-0.9.7.145.jar;modules/ZuckerReports/jasper/png-encoder-1.5.jar;modules/ZuckerReports/jasper/poi-3.2-FINAL-20081019.jar;modules/ZuckerReports/jasper/rex-20080421.jar;modules/ZuckerReports/jasper/rhino-1.7R1.jar;modules/ZuckerReports/jasper/saaj-api-1.3.jar;modules/ZuckerReports/jasper/slf4j-api.jar;modules/ZuckerReports/jasper/slf4j-log4j12.jar;modules/ZuckerReports/jasper/spring.jar;modules/ZuckerReports/jasper/sqleonardo-2007.03.jar;modules/ZuckerReports/jasper/swingx-2007_10_07.jar;modules/ZuckerReports/jasper/xml-apis-ext.jar;modules/ZuckerReports/jasper/xml-apis.jar;modules/ZuckerReports/jasper/zuckerreports-1.0.jar" at.go_mobile.zuckerreports.JasperBatchMain custom/ZuckerReports/temp/aff882c1-684b-d2de-403e-4be367bc2f5f/cmd.properties 2>&1
    JasperBatchMain :: loading jasper design custom/ZuckerReports/resources/contact_counts_by_first_name.jasper
    JasperBatchMain :: getParameterValue(REPORT_PARAMETERS_MAP, java.util.Map) => null
    JasperBatchMain :: getParameterValue(JASPER_REPORT, net.sf.jasperreports.engine.JasperReport) => null
    JasperBatchMain :: getParameterValue(REPORT_CONNECTION, java.sql.Connection) => null
    JasperBatchMain :: getParameterValue(REPORT_MAX_COUNT, java.lang.Integer) => null
    JasperBatchMain :: getParameterValue(REPORT_DATA_SOURCE, net.sf.jasperreports.engine.JRDataSource) => null
    JasperBatchMain :: getParameterValue(REPORT_SCRIPTLET, net.sf.jasperreports.engine.JRAbstractScriptlet) => null
    JasperBatchMain :: getParameterValue(REPORT_LOCALE, java.util.Locale) => null
    JasperBatchMain :: getParameterValue(REPORT_RESOURCE_BUNDLE, java.util.ResourceBundle) => null
    JasperBatchMain :: getParameterValue(REPORT_TIME_ZONE, java.util.TimeZone) => null
    JasperBatchMain :: getParameterValue(REPORT_FORMAT_FACTORY, net.sf.jasperreports.engine.util.FormatFactory) => null
    JasperBatchMain :: getParameterValue(REPORT_CLASS_LOADER, java.lang.ClassLoader) => null
    JasperBatchMain :: getParameterValue(REPORT_URL_HANDLER_FACTORY, java.net.URLStreamHandlerFactory) => null
    JasperBatchMain :: getParameterValue(REPORT_FILE_RESOLVER, net.sf.jasperreports.engine.util.FileResolver) => null
    JasperBatchMain :: getParameterValue(REPORT_VIRTUALIZER, net.sf.jasperreports.engine.JRVirtualizer) => null
    JasperBatchMain :: getParameterValue(IS_IGNORE_PAGINATION, java.lang.Boolean) => null
    JasperBatchMain :: getParameterValue(REPORT_TEMPLATES, java.util.Collection) => null
    log4j:WARN No appenders could be found for logger (net.sf.jasperreports.extensions.ExtensionsEnviron ment).
    log4j:WARN Please initialize the log4j system properly.
    Exception in thread "main" java.lang.IllegalArgumentException: Null 'key' argument.
    at org.jfree.data.DefaultKeyedValues.setValue(Default KeyedValues.java:229)
    at org.jfree.data.DefaultKeyedValues2D.setValue(Defau ltKeyedValues2D.java:337)
    at org.jfree.data.DefaultKeyedValues2D.addValue(Defau ltKeyedValues2D.java:303)
    at org.jfree.data.category.DefaultCategoryDataset.add Value(DefaultCategoryDataset.java:222)
    at net.sf.jasperreports.charts.fill.JRFillCategoryDat aset.customIncrement(JRFillCategoryDataset.java:14 3)
    at net.sf.jasperreports.engine.fill.JRFillElementData set.increment(JRFillElementDataset.java:175)
    at net.sf.jasperreports.engine.fill.JRCalculator.calc ulateVariables(JRCalculator.java:148)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillDetail(JRVerticalFiller.java:736)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillReportContent(JRVerticalFiller.java:272)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillReport(JRVerticalFiller.java:114)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill (JRBaseFiller.java:923)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill (JRBaseFiller.java:826)
    at net.sf.jasperreports.engine.fill.JRFiller.fillRepo rt(JRFiller.java:59)
    at at.go_mobile.zuckerreports.JasperBatchMain.main(Ja sperBatchMain.java:126)

    The same report runs correctly in another SugarCRM installation on the same server. The installation in which the report runs correctly is of the same version, and has the same version of the ZuckerReports module.

    The report previously ran correctly on both installations. I think that the only changes that have been made on the installation in which the report now does not work since the report was last successfully run are the addition of a few custom fields in the Contacts module. These changes should have nothing to do with ZuckerReports.

    I have tried uninstalling and reinstalling the ZuckerReports module, but the problem remains.

    A google search for the warnings given in the error message ie.
    log4j:WARN No appenders could be found for logger (net.sf.jasperreports.extensions.ExtensionsEnviron ment).
    log4j:WARN Please initialize the log4j system properly.
    Returns a few links (not specific to ZuckerReports) with tips similar to the following:
    log4j.properties or log4j.xml needs to be on the classpath where log4j can find it.
    I cannot find a file with either of those names anywhere on my server, and yet the report can be run successfully on one of my SugarCRM installations. So I figure log4j must be being configured another way.

    Can anyone suggest a way to solve this problem? Or explain how log4j is configured in ZuckerReports?
    Last edited by tomcdonnell; 2010-05-19 at 02:01 AM. Reason: Fix typo.

  2. #2
    tomcdonnell is offline Senior Member
    Join Date
    Mar 2010
    Posts
    23

    Default Re: ZuckerReports Error: "log4j:WARN No appenders could be found for logger"

    I created a new report in Jasper iReport, and was suprised and delighted to find that it worked in both SugarCRM/ZuckerReports installations. Although I do not understand why new reports seem to work in both installations while an older report no longer works in one installation, I no longer require help since the older report can be recreated.

    Anyone else having similar problems may find the following link useful: http://www.sugarforge.org/forum/foru...61&forum_id=87

  3. #3
    tomcdonnell is offline Senior Member
    Join Date
    Mar 2010
    Posts
    23

    Default Re: ZuckerReports Error: "log4j:WARN No appenders could be found for logger"

    Some general tips that may be of use.

    I had encountered similar warnings a few times since starting this thread. Each time I have eventually solved the problem starting with clues given in the error message following the log4j warnings. It seems that the log4j logger is only used if another error has occurred. Therefore do not worry about log4j, and focus on the other error.

    With my new knowledge, the error message above seems to refer to a 2D chart function parameter that has a default value when run in iReport, but has no default when run in ZuckerReports. That is where I would start investigating if faced with this problem again.

    The problem that led to this post was a report containing sub-reports working in iReport but not in ZuckerReports. A similar error message starting with log4j warnings was displayed. The solution involved moving the jrxml files defining the sub-reports into the same directory as the main report, and changing all file references from absolute to relative paths (so that only the filename was used).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 2009-09-09, 01:57 PM
  2. Replies: 9
    Last Post: 2009-01-13, 06:15 AM
  3. Replies: 2
    Last Post: 2008-06-10, 07:47 AM
  4. Replies: 2
    Last Post: 2008-04-28, 04:54 PM
  5. Replies: 0
    Last Post: 2006-07-05, 11:18 AM

Bookmarks

Posting Permissions

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