You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Lukas Theussl (JIRA)" <ji...@codehaus.org> on 2010/05/21 11:54:13 UTC

[jira] Created: (MPIR-194) [WARNING] Deprecated API called

[WARNING] Deprecated API called
-------------------------------

                 Key: MPIR-194
                 URL: http://jira.codehaus.org/browse/MPIR-194
             Project: Maven 2.x Project Info Reports Plugin
          Issue Type: Improvement
    Affects Versions: 2.2
            Reporter: Lukas Theussl
            Priority: Minor


Version 2.2 spits out a warning for each generated page:

{noformat}
[WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
{noformat}

The warning can be ignored AFAICT but it is annoying and confusing for users.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MPIR-194) [WARNING] Deprecated API called

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPIR-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=222030#action_222030 ] 

Olivier Lamy commented on MPIR-194:
-----------------------------------

this needs changes in site plugin and maven-reporting-impl. The issue is not in this plugin

> [WARNING] Deprecated API called
> -------------------------------
>
>                 Key: MPIR-194
>                 URL: http://jira.codehaus.org/browse/MPIR-194
>             Project: Maven 2.x Project Info Reports Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.2
>            Reporter: Lukas Theussl
>            Priority: Minor
>
> Version 2.2 spits out a warning for each generated page:
> {noformat}
> [WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
> {noformat}
> The warning can be ignored AFAICT but it is annoying and confusing for users.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MPIR-194) [WARNING] Deprecated API called

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPIR-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=227042#action_227042 ] 

Herve Boutemy commented on MPIR-194:
------------------------------------

I tracked the issue:
1. the message is written by maven-reporting-impl and is not very informative: when MSHARED-159 is fixed, updating the dependency will avoid the message
2. the real bug is in maven-site-plugin: see MSITE-490

> [WARNING] Deprecated API called
> -------------------------------
>
>                 Key: MPIR-194
>                 URL: http://jira.codehaus.org/browse/MPIR-194
>             Project: Maven 2.x Project Info Reports Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.2
>            Reporter: Lukas Theussl
>            Priority: Minor
>
> Version 2.2 spits out a warning for each generated page:
> {noformat}
> [WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
> {noformat}
> The warning can be ignored AFAICT but it is annoying and confusing for users.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MPIR-194) [WARNING] Deprecated API called

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPIR-194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Siveton closed MPIR-194.
--------------------------------

       Resolution: Not A Bug
    Fix Version/s: 2.3

Should be fixed in latest maven-site-plugin (2.2)

> [WARNING] Deprecated API called
> -------------------------------
>
>                 Key: MPIR-194
>                 URL: http://jira.codehaus.org/browse/MPIR-194
>             Project: Maven 2.x Project Info Reports Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.2
>            Reporter: Lukas Theussl
>            Priority: Minor
>             Fix For: 2.3
>
>
> Version 2.2 spits out a warning for each generated page:
> {noformat}
> [WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
> {noformat}
> The warning can be ignored AFAICT but it is annoying and confusing for users.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MPIR-194) [WARNING] Deprecated API called

Posted by "Ståle Tomten (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPIR-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=224064#action_224064 ] 

Ståle Tomten commented on MPIR-194:
-----------------------------------

I also got an error after the warning.

{code}
04-Jun-2010 09:21:39  	[WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
04-Jun-2010 09:21:40 	[INFO] Generating "Project Summary" report.
04-Jun-2010 09:21:40 	[WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
04-Jun-2010 09:21:40 	[INFO] ------------------------------------------------------------------------
04-Jun-2010 09:21:40 	[ERROR] FATAL ERROR
04-Jun-2010 09:21:40 	[INFO] ------------------------------------------------------------------------
04-Jun-2010 09:21:40 	[INFO] 1
04-Jun-2010 09:21:40 	[INFO] ------------------------------------------------------------------------
04-Jun-2010 09:21:40 	[INFO] Trace
04-Jun-2010 09:21:40 	java.lang.ArrayIndexOutOfBoundsException: 1
04-Jun-2010 09:21:40 	        at org.apache.maven.doxia.module.xhtml.XhtmlSink.tableCell(XhtmlSink.java:791)
04-Jun-2010 09:21:40 	        at org.apache.maven.doxia.module.xhtml.XhtmlSink.tableHeaderCell(XhtmlSink.java:777)
04-Jun-2010 09:21:40 	        at org.apache.maven.reporting.AbstractMavenReportRenderer.tableHeaderCell(AbstractMavenReportRenderer.java:267)
04-Jun-2010 09:21:40 	        at org.apache.maven.reporting.AbstractMavenReportRenderer.tableHeader(AbstractMavenReportRenderer.java:356)
04-Jun-2010 09:21:40 	        at org.apache.maven.report.projectinfo.ProjectSummaryReport$ProjectSummaryRenderer.renderBody(ProjectSummaryReport.java:107)
04-Jun-2010 09:21:40 	        at org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:79)
04-Jun-2010 09:21:40 	        at org.apache.maven.report.projectinfo.ProjectSummaryReport.executeReport(ProjectSummaryReport.java:49)
04-Jun-2010 09:21:40 	        at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:190)
04-Jun-2010 09:21:40 	        at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:144)
04-Jun-2010 09:21:40 	        at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:139)
04-Jun-2010 09:21:40 	        at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:269)
04-Jun-2010 09:21:40 	        at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:101)
04-Jun-2010 09:21:40 	        at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:133)
04-Jun-2010 09:21:40 	        at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:100)
04-Jun-2010 09:21:40 	        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
04-Jun-2010 09:21:40 	        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
04-Jun-2010 09:21:40 	        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
04-Jun-2010 09:21:40 	        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
04-Jun-2010 09:21:40 	        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
04-Jun-2010 09:21:40 	        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
04-Jun-2010 09:21:40 	        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
04-Jun-2010 09:21:40 	        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
04-Jun-2010 09:21:40 	        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
04-Jun-2010 09:21:40 	        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
04-Jun-2010 09:21:40 	        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
04-Jun-2010 09:21:40 	        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
04-Jun-2010 09:21:40 	        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
04-Jun-2010 09:21:40 	        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
04-Jun-2010 09:21:40 	        at java.lang.reflect.Method.invoke(Method.java:585)
04-Jun-2010 09:21:40 	        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
04-Jun-2010 09:21:40 	        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
04-Jun-2010 09:21:40 	        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
04-Jun-2010 09:21:40 	        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
04-Jun-2010 09:21:40 	[INFO] ------------------------------------------------------------------------
04-Jun-2010 09:21:40 	[INFO] Total time: 43 seconds
04-Jun-2010 09:21:40 	[INFO] Finished at: Fri Jun 04 09:21:40 CEST 2010
04-Jun-2010 09:21:40 	[INFO] Final Memory: 120M/&#8203;437M
04-Jun-2010 09:21:40 	[INFO] ------------------------------------------------------------------------
{code}

> [WARNING] Deprecated API called
> -------------------------------
>
>                 Key: MPIR-194
>                 URL: http://jira.codehaus.org/browse/MPIR-194
>             Project: Maven 2.x Project Info Reports Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.2
>            Reporter: Lukas Theussl
>            Priority: Minor
>
> Version 2.2 spits out a warning for each generated page:
> {noformat}
> [WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
> {noformat}
> The warning can be ignored AFAICT but it is annoying and confusing for users.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (MPIR-194) [WARNING] Deprecated API called

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPIR-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=224069#action_224069 ] 

Lukas Theussl commented on MPIR-194:
------------------------------------

You have to use site-plugin-2.1, see eg http://www.mail-archive.com/users@maven.apache.org/msg109240.html

> [WARNING] Deprecated API called
> -------------------------------
>
>                 Key: MPIR-194
>                 URL: http://jira.codehaus.org/browse/MPIR-194
>             Project: Maven 2.x Project Info Reports Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.2
>            Reporter: Lukas Theussl
>            Priority: Minor
>
> Version 2.2 spits out a warning for each generated page:
> {noformat}
> [WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
> {noformat}
> The warning can be ignored AFAICT but it is annoying and confusing for users.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MPIR-194) [WARNING] Deprecated API called

Posted by "alain szalajski (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPIR-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=225812#action_225812 ] 

alain szalajski commented on MPIR-194:
--------------------------------------

Same problem with : maven 2.2.1, site-plugin 2.1 maven-checkstyle-plugin 2.2 
With -X option of maven, the version of doxia is doxia-sink-api-1.1.2.pom

[INFO] Generating "Project Team" report.
[WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
[INFO] Generating "Surefire Report" report.
[INFO] Generating "Continuous Integration" report.
[WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
[INFO] Generating "Dependencies" report.
[WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] 1
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.ArrayIndexOutOfBoundsException: 1
        at org.apache.maven.doxia.module.xhtml.XhtmlSink.tableCell(XhtmlSink.java:791)
        at org.apache.maven.doxia.module.xhtml.XhtmlSink.tableHeaderCell(XhtmlSink.java:777)
        at org.apache.maven.reporting.AbstractMavenReportRenderer.tableHeaderCell(AbstractMavenReportRenderer.java:267)
        at org.apache.maven.reporting.AbstractMavenReportRenderer.tableHeader(AbstractMavenReportRenderer.java:356)
        at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.renderDependenciesForScope(DependenciesRenderer.java:787)
        at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.renderDependenciesForAllScopes(DependenciesRenderer.java:452)
        at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.renderSectionProjectDependencies(DependenciesRenderer.java:436)
        at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.renderBody(DependenciesRenderer.java:253)
        at org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:79)
        at org.apache.maven.report.projectinfo.DependenciesReport.executeReport(DependenciesReport.java:215)
        at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:190)
        at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:144)
        at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:139)
        at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:303)
        at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:135)
        at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:133)
        at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:100)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        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)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36 seconds
[INFO] Finished at: Fri Jun 18 18:19:07 CEST 2010
[INFO] Final Memory: 69M/123M
[INFO] ------------------------------------------------------------------------

> [WARNING] Deprecated API called
> -------------------------------
>
>                 Key: MPIR-194
>                 URL: http://jira.codehaus.org/browse/MPIR-194
>             Project: Maven 2.x Project Info Reports Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.2
>            Reporter: Lukas Theussl
>            Priority: Minor
>
> Version 2.2 spits out a warning for each generated page:
> {noformat}
> [WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
> {noformat}
> The warning can be ignored AFAICT but it is annoying and confusing for users.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MPIR-194) [WARNING] Deprecated API called

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPIR-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=222036#action_222036 ] 

Lukas Theussl commented on MPIR-194:
------------------------------------

Well, it gets triggered by upgrading MPIR to v2.2 (no warnings with 2.1.2), so that's where it manifests itself and where users see it. So I think it should be reported here and marked as fixed once it's fixed in the deps.

> [WARNING] Deprecated API called
> -------------------------------
>
>                 Key: MPIR-194
>                 URL: http://jira.codehaus.org/browse/MPIR-194
>             Project: Maven 2.x Project Info Reports Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.2
>            Reporter: Lukas Theussl
>            Priority: Minor
>
> Version 2.2 spits out a warning for each generated page:
> {noformat}
> [WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
> {noformat}
> The warning can be ignored AFAICT but it is annoying and confusing for users.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MPIR-194) [WARNING] Deprecated API called

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPIR-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=226542#action_226542 ] 

Lukas Theussl commented on MPIR-194:
------------------------------------

I don't think you are using site-plugin-2.1, line number 791 doesn't exist in XhtmlSink in doxia-1.1.x. Please attach a test project if you can't track it.

> [WARNING] Deprecated API called
> -------------------------------
>
>                 Key: MPIR-194
>                 URL: http://jira.codehaus.org/browse/MPIR-194
>             Project: Maven 2.x Project Info Reports Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.2
>            Reporter: Lukas Theussl
>            Priority: Minor
>
> Version 2.2 spits out a warning for each generated page:
> {noformat}
> [WARNING] Deprecated API called - not org.apache.maven.doxia.sink.Sink instance and no SinkFactory available. Please update this plugin.
> {noformat}
> The warning can be ignored AFAICT but it is annoying and confusing for users.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira