How do I redirect the output to a log file?
On 9/7/07, dvicente <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I'm the dashboard project leader.
>
> No, i haven't seen this error before.
>
> could you do a mvn -e -X site and redirect the output to a log file and
> upload it as an attachment ?
>
> so, could you also uncomment the dashboard plugin but still left the PMD
> plugin commented out, and do a mvn -e -X site and redirect the output to
> a
> log file and upload it as an attachment ?
>
> Thanks
>
> Best regards
>
> David Vicente
>
>
>
> Mick Knutson-4 wrote:
> >
> > To add more details, I removed the dashboard plugin as well as the pmd
> > plugin, and it works fine, but then I don't get PMD and I really need
> it!
> >
> > So I also uncommented PMD but still left the dashboard plugin commented
> > out,
> > and went back to the same error "Provider
> > oracle.xml.jaxp.JXDocumentBuilderFactory could not be instantiated:
> > java.lang.NullPointerException" with the first module that did not have
> > java
> > code.
> >
> >
> >
> >
> >
> > On 9/7/07, Mick Knutson <[EMAIL PROTECTED]> wrote:
> >>
> >> I have a strange and intermittent error. It appears [mostly], when I am
> >> running site on a module goup that does not have any java code in it.
> >> Now oracle.xml.jaxp.JXDocumentBuilderFactory is the jaxp lib's from
> OC4j
> >> in my project, but I have no idea how that is getting referenced as I
> am
> >> running the SUN JDK, not the Oracle JDK.
> >>
> >> I have done 2 things:
> >> 1. Add site plugin to every pom (>30 of them) and only turn site
> >> generation onto the ones that need it. The issue with that is the
> >> dashboard
> >> plugin then does not include Checkstyle or PMD in the report even
> though
> >> locally the reports are generated. (see PMD error #1)
> >>
> >> 2. commented out just the custom <ruleset> and there was no change.
> >>
> >> 3. I commented out the PMD plugin (removed the work from #1), and then
> I
> >> started getting these dashboard errors with the modules that had no
> java
> >> source in them. (seeDashboard Error below).
> >>
> >>
> >> Here is my <reporting> plugin:
> >>
> >> <plugin>
> >> <groupId>org.apache.maven.plugins</groupId>
> >> <artifactId>maven-pmd-plugin</artifactId>
> >> <version>2.2</version>
> >> <configuration>
> >> <linkXref>true</linkXref>
> >> <sourceEncoding>utf-8</sourceEncoding>
> >> <minimumTokens>100</minimumTokens>
> >> <targetJdk>1.5</targetJdk>
> >> <rulesets>
> >> <ruleset>${project.root
> >> }tools/build-tools/src/main/resources/pmd-rules.xml</ruleset>
> >> </rulesets>
> >> <excludes>
> >> <exclude>**/* Bean.java</exclude>
> >> <exclude>**/generated-sources/*.java</exclude>
> >> </excludes>
> >> </configuration>
> >> </plugin>
> >>
> >>
> >>
> >> Here is the error I get (PMD error #1):
> >>
> >>
> >> [DEBUG] **************************************************************
> >> [DEBUG] Starting Jakarta Velocity v1.4
> >> [DEBUG] RuntimeInstance initializing.
> >> [DEBUG] Default Properties File:
> >> org\apache\velocity\runtime\defaults\velocity.properties
> >> [DEBUG] Trying to use logger class
> >> org.apache.maven.jxr.log.VelocityLogger
> >> [DEBUG] Using logger class org.apache.maven.jxr.log.VelocityLogger
> >> [DEBUG] Default ResourceManager initializing. (class
> >> org.apache.velocity.runtime.resource.ResourceManagerImpl)
> >> [DEBUG] Resource Loader Instantiated:
> >> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
> >> [DEBUG] ClasspathResourceLoader : initialization starting.
> >> [DEBUG] ClasspathResourceLoader : initialization complete.
> >> [DEBUG] ResourceCache : initialized. (class
> >> org.apache.velocity.runtime.resource.ResourceCacheImpl)
> >> [DEBUG] Default ResourceManager initialization complete.
> >> [DEBUG] Loaded System Directive:
> >> org.apache.velocity.runtime.directive.Literal
> >> [DEBUG] Loaded System Directive:
> >> org.apache.velocity.runtime.directive.Macro
> >> [DEBUG] Loaded System Directive:
> >> org.apache.velocity.runtime.directive.Parse
> >> [DEBUG] Loaded System Directive:
> >> org.apache.velocity.runtime.directive.Include
> >> [DEBUG] Loaded System Directive:
> >> org.apache.velocity.runtime.directive.Foreach
> >> [DEBUG] Created: 20 parsers.
> >> [DEBUG] Velocimacro : initialization starting.
> >> [DEBUG] Velocimacro : allowInline = true : VMs can be defined inline in
> >> templates
> >> [DEBUG] Velocimacro : allowInlineToOverride = false : VMs defined
> inline
> >> may NOT replace previous VM definitions
> >> [DEBUG] Velocimacro : allowInlineLocal = false : VMs defined inline
> will
> >> be global in scope if allowed.
> >> [DEBUG] Velocimacro : messages on : VM system will output logging
> >> messages
> >> [DEBUG] Velocimacro : autoload off : VM system will not automatically
> >> reload global library macros
> >> [DEBUG] Velocimacro : initialization complete.
> >> [DEBUG] Velocity successfully started.
> >> [DEBUG] ResourceManager : found templates/index.vm with loader
> >> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
> >> [DEBUG] ResourceManager : found templates/overview-frame.vm with loader
> >> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
> >> [DEBUG] ResourceManager : found templates/allclasses-frame.vm with
> loader
> >> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
> >> [DEBUG] ResourceManager : found templates/overview-summary.vm with
> loader
> >> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
> >> [DEBUG] ResourceManager : found templates/package- summary.vm with
> loader
> >> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
> >> [DEBUG] ResourceManager : found templates/package-frame.vm with loader
> >> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
> >> [DEBUG] ResourceManager : found templates/package-summary.vm with
> loader
> >> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
> >> [DEBUG] ResourceManager : found templates/package-frame.vm with loader
> >> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
> >> [DEBUG] Generating
> >>
> C:\viewstore\esp_lynx_dap\esp\dap\c2\bpel\get-mtv-ids-bpel\target\site\cpd.html
> >> [INFO] Generate "CPD Report" report.
> >> [DEBUG] Excluded files:
> >> '**/*Bean.java
> ,**/generated-sources/*.java,**/*~,**/#*#,**/.#*,**/%*%,**/._*,**/CVS,**/CVS/**,**/.cvsignore,**/SCCS,**/SCCS/**,**/v
> >>
> >> ssver.scc,**/.svn,**/.svn/**,**/.arch-ids,**/.arch-ids/**,**/.DS_Store'
> >> [DEBUG] Generating
> >>
> C:\viewstore\esp_lynx_dap\esp\dap\c2\bpel\get-mtv-ids-bpel\target\site\pmd.html
> >> [INFO] Generate "PMD Report" report.
> >> [DEBUG] Preparing ruleset:
> >>
> C:/viewstore/esp_lynx_dap/esp/dap/tools/build-tools/src/main/resources/pmd-
> >> rules.xml
> >> [DEBUG] Before:
> >>
> C:/viewstore/esp_lynx_dap/esp/dap/tools/build-tools/src/main/resources/pmd-
> >> rules.xml After: pmd-rules.xml
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [ERROR] FATAL ERROR
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [INFO] Provider oracle.xml.jaxp.JXDocumentBuilderFactory could not be
> >> instantiated: java.lang.NullPointerException
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [DEBUG] Trace
> >> javax.xml.parsers.FactoryConfigurationError : Provider
> >> oracle.xml.jaxp.JXDocumentBuilderFactory could not be instantiated:
> >> java.lang.NullPointerException
> >> at javax.xml.parsers.DocumentBuilderFactory.newInstance(
> >> DocumentBuilderFactory.java:104)
> >> at net.sourceforge.pmd.RuleSetFactory.createRuleSet(
> >> RuleSetFactory.java:189)
> >> at net.sourceforge.pmd.RuleSetFactory.createRuleSet(
> >> RuleSetFactory.java:177)
> >> at org.apache.maven.plugin.pmd.PmdReport.executeReport (
> >> PmdReport.java:182)
> >> at org.apache.maven.reporting.AbstractMavenReport.generate(
> >> AbstractMavenReport.java:98)
> >> at
> >> org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(
> >> ReportDocumentRenderer.java :67)
> >> at
> >> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(
> >> DefaultSiteRenderer.java:239)
> >> at
> >> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(
> >> DefaultSiteRenderer.java:115)
> >> at org.apache.maven.plugins.site.SiteMojo.renderLocale(
> >> SiteMojo.java:124)
> >> at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java
> >> :92)
> >> at org.apache.maven.plugin.DefaultPluginManager.executeMojo (
> >> DefaultPluginManager.java:420)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> >> DefaultLifecycleExecutor.java:539)
> >> at
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> (
> >> DefaultLifecycleExecutor.java:480)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> >> (DefaultLifecycleExecutor.java:459)
> >> at
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (
> >> DefaultLifecycleExecutor.java:311)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
> (
> >> DefaultLifecycleExecutor.java:278)
> >> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> >> DefaultLifecycleExecutor.java:143)
> >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> :330)
> >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
> >> at org.apache.maven.cli.MavenCli.main (MavenCli.java:272)
> >> 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:585)
> >> at org.codehaus.classworlds.Launcher.launchEnhanced(
> Launcher.java
> >> :315)
> >> at org.codehaus.classworlds.Launcher.launch (Launcher.java:255)
> >> at org.codehaus.classworlds.Launcher.mainWithExitCode(
> >> Launcher.java:430)
> >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >>
> >>
> >>
> >>
> >> Dashboard error report:
> >>
> >> [INFO] Generate "Project Team" report.
> >> [DEBUG] Generating
> >> C:\viewstore\esp_lynx_dap\esp\dap\utilities\target\site\dashboard-
> >> report.html
> >> [INFO] Generate "Global DashBoard Report" report.
> >> [INFO] MultiReportMojo project = Utilities
> >> [INFO] MultiReportMojo nb modules = 2
> >> [INFO] MultiReportMojo output directory =
> >> C:\viewstore\esp_lynx_dap\esp\dap\utilities\target/site
> >> [INFO] MultiReportMojo base directory =
> >> C:\viewstore\esp_lynx_dap\esp\dap\utilities
> >> [INFO] MultiReportMojo this reporting output directory =
> >> C:\viewstore\esp_lynx_dap\esp\dap\utilities\target\site
> >> [INFO] MultiReportMojo project language = none
> >> getDashBoardReportBean sub-module org.delta.esp.dap.utilities.common =
> >> exist
> >> getDashBoardReportBean sub-module
> >> org.delta.esp.dap.utilities.common.common-a3 = exist
> >> Cobertura: Loaded information on 1 classes.
> >> getDashBoardReportBean sub-module
> >> org.delta.esp.dap.utilities.common.common-exception = exist
> >> Cobertura: Loaded information on 2 classes.
> >> getDashBoardReportBean sub-module
> >> org.delta.esp.dap.utilities.common.common-jar = exist
> >> Cobertura: Loaded information on 14 classes.
> >> getDashBoardReportBean sub-module
> >> org.delta.esp.dap.utilities.common.common-logging = exist
> >> Cobertura: Loaded information on 14 classes.
> >> getDashBoardReportBean sub-module org.delta.esp.dap.utilities.services=
> >> exist
> >> getDashBoardReportBean sub-module
> >> org.delta.esp.dap.utilities.services.logging = exist
> >> Cobertura: Loaded information on 4 classes.
> >> getDashBoardReportBean sub-module
> >> org.delta.esp.dap.utilities.services.logging-ear = exist
> >> getDashBoardReportBean sub-module
> >> org.delta.esp.dap.utilities.services.logging-mdb = exist
> >> Cobertura: Loaded information on 2 classes.
> >> getDashBoardReportBean sub-module
> >> org.delta.esp.dap.utilities.services.logging-proxy = exist
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [ERROR] FATAL ERROR
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [INFO] Provider oracle.xml.jaxp.JXDocumentBuilderFactory could not be
> >> instantiated: java.lang.NullPointerException
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> [DEBUG] Trace
> >> javax.xml.parsers.FactoryConfigurationError: Provider
> >> oracle.xml.jaxp.JXDocumentBuilderFactory could not be instantiated:
> >> java.lang.NullPointerException
> >> at javax.xml.parsers.DocumentBuilderFactory.newInstance(
> >> DocumentBuilderFactory.java:104)
> >> at
> >> com.thoughtworks.xstream.io.xml.DomDriver.<init>(DomDriver.java
> >> :42)
> >> at
> >> com.thoughtworks.xstream.io.xml.DomDriver.<init>(DomDriver.java
> >> :34)
> >> at
> >> com.thoughtworks.xstream.io.xml.DomDriver.<init>(DomDriver.java
> >> :30)
> >> at
> >>
> org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.saveXMLDashBoardReport
> (
> >> DashBoardUtils.java:646)
> >> at
> >>
> org.codehaus.mojo.dashboard.report.plugin.DashBoardReportMojo.executeReport
> >> (DashBoardReportMojo.java:132)
> >> at org.apache.maven.reporting.AbstractMavenReport.generate(
> >> AbstractMavenReport.java :98)
> >> at
> >> org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(
> >> ReportDocumentRenderer.java:67)
> >> at
> >> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(
> >> DefaultSiteRenderer.java :239)
> >> at
> >> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(
> >> DefaultSiteRenderer.java:115)
> >> at org.apache.maven.plugins.site.SiteMojo.renderLocale(
> >> SiteMojo.java:124)
> >> at org.apache.maven.plugins.site.SiteMojo.execute (
> SiteMojo.java
> >> :92)
> >> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> >> DefaultPluginManager.java:420)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> >> DefaultLifecycleExecutor.java :539)
> >> at
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> >> (DefaultLifecycleExecutor.java:480)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> >> (DefaultLifecycleExecutor.java :459)
> >> at
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> >> (DefaultLifecycleExecutor.java:311)
> >> at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> >> DefaultLifecycleExecutor.java:278)
> >> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> >> DefaultLifecycleExecutor.java:143)
> >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> :330)
> >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
> >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> >> 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:585)
> >> at org.codehaus.classworlds.Launcher.launchEnhanced(
> Launcher.java
> >> :315)
> >> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >> at org.codehaus.classworlds.Launcher.mainWithExitCode (
> >> Launcher.java:430)
> >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >>
> >>
> >> It almost seems like the dashboard report does not honor the
> >> <generateReports>false</generateReports> in the site plugin.
> >>
> >> --
> >>
> >> Thanks,
> >> Mick Knutson
> >>
> >> http://www.baselogic.com
> >> http://www.blincmagazine.com
> >> http://www.djmick.com
> >> http://www.myspace.com/mickknutson
> >> http://www.myspace.com/djmick_dot_com
> >> http://www.myspace.com/sexybeotches
> >> http://www.thumpradio.com
> >> ---
> >
> >
> >
> >
> > --
> >
> > Thanks,
> > Mick Knutson
> >
> > http://www.baselogic.com
> > http://www.blincmagazine.com
> > http://www.djmick.com
> > http://www.myspace.com/mickknutson
> > http://www.myspace.com/djmick_dot_com
> > http://www.myspace.com/sexybeotches
> > http://www.thumpradio.com
> > ---
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/-m2--strange%2C-show-stopping-PMD-error-tf4403427s177.html#a12562585
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Thanks,
Mick Knutson
http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---