Quantcast

Another PMD parsing issue

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Another PMD parsing issue

mrumpf
Hi,

we found another PMD parsing issue:

17:38:28  [ERROR] [17:38:28.819] Fail to execute PMD. Following file
is ignored: /export/build/hudson-slave/workspace/xxx-trunk/xxx/xxx-ams-build/build/sonar/source/com/company/xxx/base/favorites/dao/SelectFavorites_AsUnion_SQL.java
17:38:28  net.sourceforge.pmd.ast.ParseException: Encountered " "(" "(
"" at line 42, column 30.
17:38:28  Was expecting one of:
17:38:28      "." ...
...
17:38:28      "." ...
17:38:28
17:38:28   at net.sourceforge.pmd.ast.JavaParser.generateParseException(JavaParser.java:9853)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.ast.JavaParser.jj_consume_token(JavaParser.java:9737)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.ast.JavaParser.PrimaryPrefix(JavaParser.java:3523)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.ast.JavaParser.PrimaryExpression(JavaParser.java:3433)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.ast.JavaParser.StatementExpression(JavaParser.java:4359)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.ast.JavaParser.Statement(JavaParser.java:4054)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.ast.JavaParser.BlockStatement(JavaParser.java:4201)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.ast.JavaParser.ConstructorDeclaration(JavaParser.java:1668)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBodyDeclaration(JavaParser.java:1069)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBody(JavaParser.java:1004)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceDeclaration(JavaParser.java:514)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBodyDeclaration(JavaParser.java:1065)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBody(JavaParser.java:1004)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceDeclaration(JavaParser.java:514)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.ast.JavaParser.TypeDeclaration(JavaParser.java:406)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.ast.JavaParser.CompilationUnit(JavaParser.java:164)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.parsers.Java15Parser.parse(Java15Parser.java:24)
~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.PMD.processFile(PMD.java:98) ~[pmd-4.3.jar:na]
17:38:28   at net.sourceforge.pmd.PMD.processFile(PMD.java:75) ~[pmd-4.3.jar:na]
17:38:28   at org.sonar.plugins.pmd.PmdExecutor.execute(PmdExecutor.java:70)
~[sonar-pmd-plugin-2.14.jar:na]
17:38:28   at org.sonar.plugins.pmd.PmdSensor.analyse(PmdSensor.java:45)
[sonar-pmd-plugin-2.14.jar:na]
17:38:28   at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
[sonar-batch-2.14.jar:na]
17:38:28   at org.sonar.batch.phases.Phases.execute(Phases.java:93)
[sonar-batch-2.14.jar:na]
17:38:28   at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
[sonar-batch-2.14.jar:na]
17:38:28   at org.sonar.batch.bootstrap.Module.start(Module.java:83)
[sonar-batch-2.14.jar:na]
17:38:28   at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
[sonar-batch-2.14.jar:na]
17:38:28   at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
[sonar-batch-2.14.jar:na]
17:38:28   at org.sonar.batch.bootstrap.Module.start(Module.java:83)
[sonar-batch-2.14.jar:na]
17:38:28   at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:102)
[sonar-batch-2.14.jar:na]
17:38:28   at org.sonar.batch.bootstrap.Module.start(Module.java:83)
[sonar-batch-2.14.jar:na]
17:38:28   at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:71)
[sonar-batch-2.14.jar:na]
17:38:28   at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:58)
[sonar-batch-2.14.jar:na]
17:38:28   at org.sonar.maven.SonarMojo.execute(SonarMojo.java:151)
[sonar-maven-plugin-2.14.jar:na]
17:38:28   at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28   at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:98)
[sonar-maven-plugin-1.0.jar:na]
17:38:28   at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:79)
[sonar-maven-plugin-1.0.jar:na]
17:38:28   at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:88)
[sonar-maven-plugin-1.0.jar:na]
17:38:28   at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28   at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28   at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) ~[na:1.6.0_20]
17:38:28   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_20]
17:38:28   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_20]
17:38:28   at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_20]
17:38:28   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
[classworlds-1.1.jar:1.1]
17:38:28   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
[classworlds-1.1.jar:1.1]
17:38:28   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
[classworlds-1.1.jar:1.1]
17:38:28   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[classworlds-1.1.jar:1.1]

The code in error looks like this:

===================================================
package com.company.xxx.base.favorites.dao;

import java.sql.SQLException;

import com.company.xxx.base.dao.schema.TblFavoriten;
import com.company.xxx.base.dao.schema.TblSachnummerInTeilefamilie;
import com.company.xxx.base.favorites.FavoritenSearchFilter;
import com.company.xxx.database.SQLParameterMap;
import com.company.xxx.database.sql.Restriction;
import com.company.xxx.database.sql.Restrictions;
import com.company.xxx.database.sql.Stmt;
import com.company.xxx.database.sql.Stmts;
import com.company.xxx.database.sql.UnionStmt;
import com.company.xxx.exception.BaseModelException;

/**
 * Class SelectFavorites.
 * @author      xxxx
 *
 */
public class SelectFavorites_AsUnion_SQL extends
AbstractSelectFavoritesStructureSQL {

        /** Creates SelectFavorites_AsUnion_SQL. */
        public SelectFavorites_AsUnion_SQL() {
                this.fav = addStandardProjections(Stmts.createSelectStmt(TblFavoriten.T_Name,
"fav"));
                this.fav2 = addStandardProjections(Stmts.createSelectStmt(TblFavoriten.T_Name,
"fav"));
        }
       
        protected Stmt createStatement(FavoritenSearchFilter filter,
SQLParameterMap params) throws SQLException, BaseModelException {
                UnionStmt result = Stmts.createUnionStmt(
                                new SelectFavsFromSNRFAV().createStatement(filter, params),
                                new SelectFavsFromTFRFAV().createStatement(filter, params)
                );
                return result
                        .setFetchOnly(true)
                ;
        }
       
        private class SelectFavsFromSNRFAV extends SelectFavoritesOneMemberSQL {
                /** Creates SelectFavorites_AsUnion_SQL.SelectFavsFromSNRFAV. */
                public SelectFavsFromSNRFAV() {
/* line 42 */ super(new Tables(){{
                                this.fav = SelectFavorites_AsUnion_SQL.this.fav;
                                this.lft = SelectFavorites_AsUnion_SQL.this.lft;
                                this.lftidx = SelectFavorites_AsUnion_SQL.this.lftidx;
                                this.lmimk = SelectFavorites_AsUnion_SQL.this.lmimk;
                                this.lsnr = SelectFavorites_AsUnion_SQL.this.lsnr;
                                this.snr = SelectFavorites_AsUnion_SQL.this.snr;
                                this.snrfav = SelectFavorites_AsUnion_SQL.this.snrfav;
                                this.tbe = SelectFavorites_AsUnion_SQL.this.tbe;
                                this.plan = SelectFavorites_AsUnion_SQL.this.plan;
                                this.wkgrp = SelectFavorites_AsUnion_SQL.this.wkgrp;
                        }});
                }
        }
    /* stripped */
}
===================================================

Regards,
      Michael

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Another PMD parsing issue

Patroklos Papapetrou
Hi Michael

Well, if it's a PMD parsing issue (and from the log file it seems to be )  then you should ask PMD user mailing list...  :)
Regards
Patroklos

2012/7/6 Michael Rumpf <[hidden email]>
Hi,

we found another PMD parsing issue:

17:38:28  [ERROR] [17:38:28.819] Fail to execute PMD. Following file
is ignored: /export/build/hudson-slave/workspace/xxx-trunk/xxx/xxx-ams-build/build/sonar/source/com/company/xxx/base/favorites/dao/SelectFavorites_AsUnion_SQL.java
17:38:28  net.sourceforge.pmd.ast.ParseException: Encountered " "(" "(
"" at line 42, column 30.
17:38:28  Was expecting one of:
17:38:28      "." ...
...
17:38:28      "." ...
17:38:28
17:38:28        at net.sourceforge.pmd.ast.JavaParser.generateParseException(JavaParser.java:9853)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.ast.JavaParser.jj_consume_token(JavaParser.java:9737)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.ast.JavaParser.PrimaryPrefix(JavaParser.java:3523)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.ast.JavaParser.PrimaryExpression(JavaParser.java:3433)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.ast.JavaParser.StatementExpression(JavaParser.java:4359)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.ast.JavaParser.Statement(JavaParser.java:4054)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.ast.JavaParser.BlockStatement(JavaParser.java:4201)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.ast.JavaParser.ConstructorDeclaration(JavaParser.java:1668)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBodyDeclaration(JavaParser.java:1069)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBody(JavaParser.java:1004)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceDeclaration(JavaParser.java:514)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBodyDeclaration(JavaParser.java:1065)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBody(JavaParser.java:1004)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceDeclaration(JavaParser.java:514)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.ast.JavaParser.TypeDeclaration(JavaParser.java:406)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.ast.JavaParser.CompilationUnit(JavaParser.java:164)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.parsers.Java15Parser.parse(Java15Parser.java:24)
~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.PMD.processFile(PMD.java:98) ~[pmd-4.3.jar:na]
17:38:28        at net.sourceforge.pmd.PMD.processFile(PMD.java:75) ~[pmd-4.3.jar:na]
17:38:28        at org.sonar.plugins.pmd.PmdExecutor.execute(PmdExecutor.java:70)
~[sonar-pmd-plugin-2.14.jar:na]
17:38:28        at org.sonar.plugins.pmd.PmdSensor.analyse(PmdSensor.java:45)
[sonar-pmd-plugin-2.14.jar:na]
17:38:28        at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
[sonar-batch-2.14.jar:na]
17:38:28        at org.sonar.batch.phases.Phases.execute(Phases.java:93)
[sonar-batch-2.14.jar:na]
17:38:28        at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
[sonar-batch-2.14.jar:na]
17:38:28        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
[sonar-batch-2.14.jar:na]
17:38:28        at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
[sonar-batch-2.14.jar:na]
17:38:28        at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
[sonar-batch-2.14.jar:na]
17:38:28        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
[sonar-batch-2.14.jar:na]
17:38:28        at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:102)
[sonar-batch-2.14.jar:na]
17:38:28        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
[sonar-batch-2.14.jar:na]
17:38:28        at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:71)
[sonar-batch-2.14.jar:na]
17:38:28        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:58)
[sonar-batch-2.14.jar:na]
17:38:28        at org.sonar.maven.SonarMojo.execute(SonarMojo.java:151)
[sonar-maven-plugin-2.14.jar:na]
17:38:28        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28        at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:98)
[sonar-maven-plugin-1.0.jar:na]
17:38:28        at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:79)
[sonar-maven-plugin-1.0.jar:na]
17:38:28        at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:88)
[sonar-maven-plugin-1.0.jar:na]
17:38:28        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
[maven-2.2.1-uber.jar:2.2.1]
17:38:28        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) ~[na:1.6.0_20]
17:38:28        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_20]
17:38:28        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_20]
17:38:28        at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_20]
17:38:28        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
[classworlds-1.1.jar:1.1]
17:38:28        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
[classworlds-1.1.jar:1.1]
17:38:28        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
[classworlds-1.1.jar:1.1]
17:38:28        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[classworlds-1.1.jar:1.1]

The code in error looks like this:

===================================================
package com.company.xxx.base.favorites.dao;

import java.sql.SQLException;

import com.company.xxx.base.dao.schema.TblFavoriten;
import com.company.xxx.base.dao.schema.TblSachnummerInTeilefamilie;
import com.company.xxx.base.favorites.FavoritenSearchFilter;
import com.company.xxx.database.SQLParameterMap;
import com.company.xxx.database.sql.Restriction;
import com.company.xxx.database.sql.Restrictions;
import com.company.xxx.database.sql.Stmt;
import com.company.xxx.database.sql.Stmts;
import com.company.xxx.database.sql.UnionStmt;
import com.company.xxx.exception.BaseModelException;

/**
 * Class SelectFavorites.
 * @author      xxxx
 *
 */
public class SelectFavorites_AsUnion_SQL extends
AbstractSelectFavoritesStructureSQL {

        /** Creates SelectFavorites_AsUnion_SQL. */
        public SelectFavorites_AsUnion_SQL() {
                this.fav = addStandardProjections(Stmts.createSelectStmt(TblFavoriten.T_Name,
"fav"));
                this.fav2 = addStandardProjections(Stmts.createSelectStmt(TblFavoriten.T_Name,
"fav"));
        }

        protected Stmt createStatement(FavoritenSearchFilter filter,
SQLParameterMap params) throws SQLException, BaseModelException {
                UnionStmt result = Stmts.createUnionStmt(
                                new SelectFavsFromSNRFAV().createStatement(filter, params),
                                new SelectFavsFromTFRFAV().createStatement(filter, params)
                );
                return result
                        .setFetchOnly(true)
                ;
        }

        private class SelectFavsFromSNRFAV extends SelectFavoritesOneMemberSQL {
                /** Creates SelectFavorites_AsUnion_SQL.SelectFavsFromSNRFAV. */
                public SelectFavsFromSNRFAV() {
/* line 42 */   super(new Tables(){{
                                this.fav = SelectFavorites_AsUnion_SQL.this.fav;
                                this.lft = SelectFavorites_AsUnion_SQL.this.lft;
                                this.lftidx = SelectFavorites_AsUnion_SQL.this.lftidx;
                                this.lmimk = SelectFavorites_AsUnion_SQL.this.lmimk;
                                this.lsnr = SelectFavorites_AsUnion_SQL.this.lsnr;
                                this.snr = SelectFavorites_AsUnion_SQL.this.snr;
                                this.snrfav = SelectFavorites_AsUnion_SQL.this.snrfav;
                                this.tbe = SelectFavorites_AsUnion_SQL.this.tbe;
                                this.plan = SelectFavorites_AsUnion_SQL.this.plan;
                                this.wkgrp = SelectFavorites_AsUnion_SQL.this.wkgrp;
                        }});
                }
        }
    /* stripped */
}
===================================================

Regards,
      Michael

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Another PMD parsing issue

mrumpf
Hi,

when reporting the last issue regarding PMD parsing issues I got the
impression that the Sonar team wanted to know about it.
Because PMD is embedded, isn't it important to know which bugs the
embedded tool has?

Regards,
     Michael


On Mon, Jul 9, 2012 at 8:02 AM, Papapetrou P.Patroklos
<[hidden email]> wrote:

> Hi Michael
>
> Well, if it's a PMD parsing issue (and from the log file it seems to be )
> then you should ask PMD user mailing list...  :)
> Regards
> Patroklos
>
> 2012/7/6 Michael Rumpf <[hidden email]>
>>
>> Hi,
>>
>> we found another PMD parsing issue:
>>
>> 17:38:28  [ERROR] [17:38:28.819] Fail to execute PMD. Following file
>> is ignored:
>> /export/build/hudson-slave/workspace/xxx-trunk/xxx/xxx-ams-build/build/sonar/source/com/company/xxx/base/favorites/dao/SelectFavorites_AsUnion_SQL.java
>> 17:38:28  net.sourceforge.pmd.ast.ParseException: Encountered " "(" "(
>> "" at line 42, column 30.
>> 17:38:28  Was expecting one of:
>> 17:38:28      "." ...
>> ...
>> 17:38:28      "." ...
>> 17:38:28
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.generateParseException(JavaParser.java:9853)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.jj_consume_token(JavaParser.java:9737)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.PrimaryPrefix(JavaParser.java:3523)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.PrimaryExpression(JavaParser.java:3433)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.StatementExpression(JavaParser.java:4359)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.Statement(JavaParser.java:4054)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.BlockStatement(JavaParser.java:4201)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ConstructorDeclaration(JavaParser.java:1668)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBodyDeclaration(JavaParser.java:1069)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBody(JavaParser.java:1004)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceDeclaration(JavaParser.java:514)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBodyDeclaration(JavaParser.java:1065)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBody(JavaParser.java:1004)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceDeclaration(JavaParser.java:514)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.TypeDeclaration(JavaParser.java:406)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.CompilationUnit(JavaParser.java:164)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.parsers.Java15Parser.parse(Java15Parser.java:24)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at net.sourceforge.pmd.PMD.processFile(PMD.java:98)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at net.sourceforge.pmd.PMD.processFile(PMD.java:75)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> org.sonar.plugins.pmd.PmdExecutor.execute(PmdExecutor.java:70)
>> ~[sonar-pmd-plugin-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.plugins.pmd.PmdSensor.analyse(PmdSensor.java:45)
>> [sonar-pmd-plugin-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at org.sonar.batch.phases.Phases.execute(Phases.java:93)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:102)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:71)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrapper.Batch.execute(Batch.java:58)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at org.sonar.maven.SonarMojo.execute(SonarMojo.java:151)
>> [sonar-maven-plugin-2.14.jar:na]
>> 17:38:28        at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:98)
>> [sonar-maven-plugin-1.0.jar:na]
>> 17:38:28        at
>> org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:79)
>> [sonar-maven-plugin-1.0.jar:na]
>> 17:38:28        at
>> org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:88)
>> [sonar-maven-plugin-1.0.jar:na]
>> 17:38:28        at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method) ~[na:1.6.0_20]
>> 17:38:28        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> ~[na:1.6.0_20]
>> 17:38:28        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> ~[na:1.6.0_20]
>> 17:38:28        at java.lang.reflect.Method.invoke(Method.java:597)
>> ~[na:1.6.0_20]
>> 17:38:28        at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> [classworlds-1.1.jar:1.1]
>> 17:38:28        at
>> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> [classworlds-1.1.jar:1.1]
>> 17:38:28        at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> [classworlds-1.1.jar:1.1]
>> 17:38:28        at
>> org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> [classworlds-1.1.jar:1.1]
>>
>> The code in error looks like this:
>>
>> ===================================================
>> package com.company.xxx.base.favorites.dao;
>>
>> import java.sql.SQLException;
>>
>> import com.company.xxx.base.dao.schema.TblFavoriten;
>> import com.company.xxx.base.dao.schema.TblSachnummerInTeilefamilie;
>> import com.company.xxx.base.favorites.FavoritenSearchFilter;
>> import com.company.xxx.database.SQLParameterMap;
>> import com.company.xxx.database.sql.Restriction;
>> import com.company.xxx.database.sql.Restrictions;
>> import com.company.xxx.database.sql.Stmt;
>> import com.company.xxx.database.sql.Stmts;
>> import com.company.xxx.database.sql.UnionStmt;
>> import com.company.xxx.exception.BaseModelException;
>>
>> /**
>>  * Class SelectFavorites.
>>  * @author      xxxx
>>  *
>>  */
>> public class SelectFavorites_AsUnion_SQL extends
>> AbstractSelectFavoritesStructureSQL {
>>
>>         /** Creates SelectFavorites_AsUnion_SQL. */
>>         public SelectFavorites_AsUnion_SQL() {
>>                 this.fav =
>> addStandardProjections(Stmts.createSelectStmt(TblFavoriten.T_Name,
>> "fav"));
>>                 this.fav2 =
>> addStandardProjections(Stmts.createSelectStmt(TblFavoriten.T_Name,
>> "fav"));
>>         }
>>
>>         protected Stmt createStatement(FavoritenSearchFilter filter,
>> SQLParameterMap params) throws SQLException, BaseModelException {
>>                 UnionStmt result = Stmts.createUnionStmt(
>>                                 new
>> SelectFavsFromSNRFAV().createStatement(filter, params),
>>                                 new
>> SelectFavsFromTFRFAV().createStatement(filter, params)
>>                 );
>>                 return result
>>                         .setFetchOnly(true)
>>                 ;
>>         }
>>
>>         private class SelectFavsFromSNRFAV extends
>> SelectFavoritesOneMemberSQL {
>>                 /** Creates
>> SelectFavorites_AsUnion_SQL.SelectFavsFromSNRFAV. */
>>                 public SelectFavsFromSNRFAV() {
>> /* line 42 */   super(new Tables(){{
>>                                 this.fav =
>> SelectFavorites_AsUnion_SQL.this.fav;
>>                                 this.lft =
>> SelectFavorites_AsUnion_SQL.this.lft;
>>                                 this.lftidx =
>> SelectFavorites_AsUnion_SQL.this.lftidx;
>>                                 this.lmimk =
>> SelectFavorites_AsUnion_SQL.this.lmimk;
>>                                 this.lsnr =
>> SelectFavorites_AsUnion_SQL.this.lsnr;
>>                                 this.snr =
>> SelectFavorites_AsUnion_SQL.this.snr;
>>                                 this.snrfav =
>> SelectFavorites_AsUnion_SQL.this.snrfav;
>>                                 this.tbe =
>> SelectFavorites_AsUnion_SQL.this.tbe;
>>                                 this.plan =
>> SelectFavorites_AsUnion_SQL.this.plan;
>>                                 this.wkgrp =
>> SelectFavorites_AsUnion_SQL.this.wkgrp;
>>                         }});
>>                 }
>>         }
>>     /* stripped */
>> }
>> ===================================================
>>
>> Regards,
>>       Michael
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Another PMD parsing issue

Patroklos Papapetrou
Hi Michael

I bet Sonar folks would appreciate that :) but I am not sure if they can do anything for that :)
Regards
Patroklos

2012/7/9 Michael Rumpf <[hidden email]>
Hi,

when reporting the last issue regarding PMD parsing issues I got the
impression that the Sonar team wanted to know about it.
Because PMD is embedded, isn't it important to know which bugs the
embedded tool has?

Regards,
     Michael


On Mon, Jul 9, 2012 at 8:02 AM, Papapetrou P.Patroklos
<[hidden email]> wrote:
> Hi Michael
>
> Well, if it's a PMD parsing issue (and from the log file it seems to be )
> then you should ask PMD user mailing list...  :)
> Regards
> Patroklos
>
> 2012/7/6 Michael Rumpf <[hidden email]>
>>
>> Hi,
>>
>> we found another PMD parsing issue:
>>
>> 17:38:28  [ERROR] [17:38:28.819] Fail to execute PMD. Following file
>> is ignored:
>> /export/build/hudson-slave/workspace/xxx-trunk/xxx/xxx-ams-build/build/sonar/source/com/company/xxx/base/favorites/dao/SelectFavorites_AsUnion_SQL.java
>> 17:38:28  net.sourceforge.pmd.ast.ParseException: Encountered " "(" "(
>> "" at line 42, column 30.
>> 17:38:28  Was expecting one of:
>> 17:38:28      "." ...
>> ...
>> 17:38:28      "." ...
>> 17:38:28
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.generateParseException(JavaParser.java:9853)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.jj_consume_token(JavaParser.java:9737)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.PrimaryPrefix(JavaParser.java:3523)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.PrimaryExpression(JavaParser.java:3433)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.StatementExpression(JavaParser.java:4359)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.Statement(JavaParser.java:4054)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.BlockStatement(JavaParser.java:4201)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ConstructorDeclaration(JavaParser.java:1668)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBodyDeclaration(JavaParser.java:1069)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBody(JavaParser.java:1004)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceDeclaration(JavaParser.java:514)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBodyDeclaration(JavaParser.java:1065)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBody(JavaParser.java:1004)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceDeclaration(JavaParser.java:514)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.TypeDeclaration(JavaParser.java:406)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.CompilationUnit(JavaParser.java:164)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.parsers.Java15Parser.parse(Java15Parser.java:24)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at net.sourceforge.pmd.PMD.processFile(PMD.java:98)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at net.sourceforge.pmd.PMD.processFile(PMD.java:75)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> org.sonar.plugins.pmd.PmdExecutor.execute(PmdExecutor.java:70)
>> ~[sonar-pmd-plugin-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.plugins.pmd.PmdSensor.analyse(PmdSensor.java:45)
>> [sonar-pmd-plugin-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at org.sonar.batch.phases.Phases.execute(Phases.java:93)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:102)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:71)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrapper.Batch.execute(Batch.java:58)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at org.sonar.maven.SonarMojo.execute(SonarMojo.java:151)
>> [sonar-maven-plugin-2.14.jar:na]
>> 17:38:28        at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:98)
>> [sonar-maven-plugin-1.0.jar:na]
>> 17:38:28        at
>> org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:79)
>> [sonar-maven-plugin-1.0.jar:na]
>> 17:38:28        at
>> org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:88)
>> [sonar-maven-plugin-1.0.jar:na]
>> 17:38:28        at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method) ~[na:1.6.0_20]
>> 17:38:28        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> ~[na:1.6.0_20]
>> 17:38:28        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> ~[na:1.6.0_20]
>> 17:38:28        at java.lang.reflect.Method.invoke(Method.java:597)
>> ~[na:1.6.0_20]
>> 17:38:28        at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> [classworlds-1.1.jar:1.1]
>> 17:38:28        at
>> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> [classworlds-1.1.jar:1.1]
>> 17:38:28        at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> [classworlds-1.1.jar:1.1]
>> 17:38:28        at
>> org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> [classworlds-1.1.jar:1.1]
>>
>> The code in error looks like this:
>>
>> ===================================================
>> package com.company.xxx.base.favorites.dao;
>>
>> import java.sql.SQLException;
>>
>> import com.company.xxx.base.dao.schema.TblFavoriten;
>> import com.company.xxx.base.dao.schema.TblSachnummerInTeilefamilie;
>> import com.company.xxx.base.favorites.FavoritenSearchFilter;
>> import com.company.xxx.database.SQLParameterMap;
>> import com.company.xxx.database.sql.Restriction;
>> import com.company.xxx.database.sql.Restrictions;
>> import com.company.xxx.database.sql.Stmt;
>> import com.company.xxx.database.sql.Stmts;
>> import com.company.xxx.database.sql.UnionStmt;
>> import com.company.xxx.exception.BaseModelException;
>>
>> /**
>>  * Class SelectFavorites.
>>  * @author      xxxx
>>  *
>>  */
>> public class SelectFavorites_AsUnion_SQL extends
>> AbstractSelectFavoritesStructureSQL {
>>
>>         /** Creates SelectFavorites_AsUnion_SQL. */
>>         public SelectFavorites_AsUnion_SQL() {
>>                 this.fav =
>> addStandardProjections(Stmts.createSelectStmt(TblFavoriten.T_Name,
>> "fav"));
>>                 this.fav2 =
>> addStandardProjections(Stmts.createSelectStmt(TblFavoriten.T_Name,
>> "fav"));
>>         }
>>
>>         protected Stmt createStatement(FavoritenSearchFilter filter,
>> SQLParameterMap params) throws SQLException, BaseModelException {
>>                 UnionStmt result = Stmts.createUnionStmt(
>>                                 new
>> SelectFavsFromSNRFAV().createStatement(filter, params),
>>                                 new
>> SelectFavsFromTFRFAV().createStatement(filter, params)
>>                 );
>>                 return result
>>                         .setFetchOnly(true)
>>                 ;
>>         }
>>
>>         private class SelectFavsFromSNRFAV extends
>> SelectFavoritesOneMemberSQL {
>>                 /** Creates
>> SelectFavorites_AsUnion_SQL.SelectFavsFromSNRFAV. */
>>                 public SelectFavsFromSNRFAV() {
>> /* line 42 */   super(new Tables(){{
>>                                 this.fav =
>> SelectFavorites_AsUnion_SQL.this.fav;
>>                                 this.lft =
>> SelectFavorites_AsUnion_SQL.this.lft;
>>                                 this.lftidx =
>> SelectFavorites_AsUnion_SQL.this.lftidx;
>>                                 this.lmimk =
>> SelectFavorites_AsUnion_SQL.this.lmimk;
>>                                 this.lsnr =
>> SelectFavorites_AsUnion_SQL.this.lsnr;
>>                                 this.snr =
>> SelectFavorites_AsUnion_SQL.this.snr;
>>                                 this.snrfav =
>> SelectFavorites_AsUnion_SQL.this.snrfav;
>>                                 this.tbe =
>> SelectFavorites_AsUnion_SQL.this.tbe;
>>                                 this.plan =
>> SelectFavorites_AsUnion_SQL.this.plan;
>>                                 this.wkgrp =
>> SelectFavorites_AsUnion_SQL.this.wkgrp;
>>                         }});
>>                 }
>>         }
>>     /* stripped */
>> }
>> ===================================================
>>
>> Regards,
>>       Michael
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Another PMD parsing issue

Freddy Mallet
Hi Guys,

In fact that's not an easy subject as :
Feel free to create the JIRA ticket Michael!

-----
Sonar for Continuous Inspection



On Mon, Jul 9, 2012 at 8:42 PM, Papapetrou P.Patroklos <[hidden email]> wrote:
Hi Michael

I bet Sonar folks would appreciate that :) but I am not sure if they can do anything for that :)
Regards
Patroklos

2012/7/9 Michael Rumpf <[hidden email]>
Hi,

when reporting the last issue regarding PMD parsing issues I got the
impression that the Sonar team wanted to know about it.
Because PMD is embedded, isn't it important to know which bugs the
embedded tool has?

Regards,
     Michael


On Mon, Jul 9, 2012 at 8:02 AM, Papapetrou P.Patroklos
<[hidden email]> wrote:
> Hi Michael
>
> Well, if it's a PMD parsing issue (and from the log file it seems to be )
> then you should ask PMD user mailing list...  :)
> Regards
> Patroklos
>
> 2012/7/6 Michael Rumpf <[hidden email]>
>>
>> Hi,
>>
>> we found another PMD parsing issue:
>>
>> 17:38:28  [ERROR] [17:38:28.819] Fail to execute PMD. Following file
>> is ignored:
>> /export/build/hudson-slave/workspace/xxx-trunk/xxx/xxx-ams-build/build/sonar/source/com/company/xxx/base/favorites/dao/SelectFavorites_AsUnion_SQL.java
>> 17:38:28  net.sourceforge.pmd.ast.ParseException: Encountered " "(" "(
>> "" at line 42, column 30.
>> 17:38:28  Was expecting one of:
>> 17:38:28      "." ...
>> ...
>> 17:38:28      "." ...
>> 17:38:28
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.generateParseException(JavaParser.java:9853)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.jj_consume_token(JavaParser.java:9737)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.PrimaryPrefix(JavaParser.java:3523)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.PrimaryExpression(JavaParser.java:3433)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.StatementExpression(JavaParser.java:4359)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.Statement(JavaParser.java:4054)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.BlockStatement(JavaParser.java:4201)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ConstructorDeclaration(JavaParser.java:1668)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBodyDeclaration(JavaParser.java:1069)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBody(JavaParser.java:1004)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceDeclaration(JavaParser.java:514)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBodyDeclaration(JavaParser.java:1065)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBody(JavaParser.java:1004)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceDeclaration(JavaParser.java:514)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.TypeDeclaration(JavaParser.java:406)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.ast.JavaParser.CompilationUnit(JavaParser.java:164)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> net.sourceforge.pmd.parsers.Java15Parser.parse(Java15Parser.java:24)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at net.sourceforge.pmd.PMD.processFile(PMD.java:98)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at net.sourceforge.pmd.PMD.processFile(PMD.java:75)
>> ~[pmd-4.3.jar:na]
>> 17:38:28        at
>> org.sonar.plugins.pmd.PmdExecutor.execute(PmdExecutor.java:70)
>> ~[sonar-pmd-plugin-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.plugins.pmd.PmdSensor.analyse(PmdSensor.java:45)
>> [sonar-pmd-plugin-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at org.sonar.batch.phases.Phases.execute(Phases.java:93)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:102)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:71)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at
>> org.sonar.batch.bootstrapper.Batch.execute(Batch.java:58)
>> [sonar-batch-2.14.jar:na]
>> 17:38:28        at org.sonar.maven.SonarMojo.execute(SonarMojo.java:151)
>> [sonar-maven-plugin-2.14.jar:na]
>> 17:38:28        at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:98)
>> [sonar-maven-plugin-1.0.jar:na]
>> 17:38:28        at
>> org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:79)
>> [sonar-maven-plugin-1.0.jar:na]
>> 17:38:28        at
>> org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:88)
>> [sonar-maven-plugin-1.0.jar:na]
>> 17:38:28        at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at
>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>> [maven-2.2.1-uber.jar:2.2.1]
>> 17:38:28        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method) ~[na:1.6.0_20]
>> 17:38:28        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> ~[na:1.6.0_20]
>> 17:38:28        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> ~[na:1.6.0_20]
>> 17:38:28        at java.lang.reflect.Method.invoke(Method.java:597)
>> ~[na:1.6.0_20]
>> 17:38:28        at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> [classworlds-1.1.jar:1.1]
>> 17:38:28        at
>> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> [classworlds-1.1.jar:1.1]
>> 17:38:28        at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> [classworlds-1.1.jar:1.1]
>> 17:38:28        at
>> org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> [classworlds-1.1.jar:1.1]
>>
>> The code in error looks like this:
>>
>> ===================================================
>> package com.company.xxx.base.favorites.dao;
>>
>> import java.sql.SQLException;
>>
>> import com.company.xxx.base.dao.schema.TblFavoriten;
>> import com.company.xxx.base.dao.schema.TblSachnummerInTeilefamilie;
>> import com.company.xxx.base.favorites.FavoritenSearchFilter;
>> import com.company.xxx.database.SQLParameterMap;
>> import com.company.xxx.database.sql.Restriction;
>> import com.company.xxx.database.sql.Restrictions;
>> import com.company.xxx.database.sql.Stmt;
>> import com.company.xxx.database.sql.Stmts;
>> import com.company.xxx.database.sql.UnionStmt;
>> import com.company.xxx.exception.BaseModelException;
>>
>> /**
>>  * Class SelectFavorites.
>>  * @author      xxxx
>>  *
>>  */
>> public class SelectFavorites_AsUnion_SQL extends
>> AbstractSelectFavoritesStructureSQL {
>>
>>         /** Creates SelectFavorites_AsUnion_SQL. */
>>         public SelectFavorites_AsUnion_SQL() {
>>                 this.fav =
>> addStandardProjections(Stmts.createSelectStmt(TblFavoriten.T_Name,
>> "fav"));
>>                 this.fav2 =
>> addStandardProjections(Stmts.createSelectStmt(TblFavoriten.T_Name,
>> "fav"));
>>         }
>>
>>         protected Stmt createStatement(FavoritenSearchFilter filter,
>> SQLParameterMap params) throws SQLException, BaseModelException {
>>                 UnionStmt result = Stmts.createUnionStmt(
>>                                 new
>> SelectFavsFromSNRFAV().createStatement(filter, params),
>>                                 new
>> SelectFavsFromTFRFAV().createStatement(filter, params)
>>                 );
>>                 return result
>>                         .setFetchOnly(true)
>>                 ;
>>         }
>>
>>         private class SelectFavsFromSNRFAV extends
>> SelectFavoritesOneMemberSQL {
>>                 /** Creates
>> SelectFavorites_AsUnion_SQL.SelectFavsFromSNRFAV. */
>>                 public SelectFavsFromSNRFAV() {
>> /* line 42 */   super(new Tables(){{
>>                                 this.fav =
>> SelectFavorites_AsUnion_SQL.this.fav;
>>                                 this.lft =
>> SelectFavorites_AsUnion_SQL.this.lft;
>>                                 this.lftidx =
>> SelectFavorites_AsUnion_SQL.this.lftidx;
>>                                 this.lmimk =
>> SelectFavorites_AsUnion_SQL.this.lmimk;
>>                                 this.lsnr =
>> SelectFavorites_AsUnion_SQL.this.lsnr;
>>                                 this.snr =
>> SelectFavorites_AsUnion_SQL.this.snr;
>>                                 this.snrfav =
>> SelectFavorites_AsUnion_SQL.this.snrfav;
>>                                 this.tbe =
>> SelectFavorites_AsUnion_SQL.this.tbe;
>>                                 this.plan =
>> SelectFavorites_AsUnion_SQL.this.plan;
>>                                 this.wkgrp =
>> SelectFavorites_AsUnion_SQL.this.wkgrp;
>>                         }});
>>                 }
>>         }
>>     /* stripped */
>> }
>> ===================================================
>>
>> Regards,
>>       Michael
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email




Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Another PMD parsing issue

mrumpf
Hi guys,

I'm cleaning up my backlog and finally created the ticket in the PMD tracker:
https://sourceforge.net/tracker/?func=detail&aid=3555959&group_id=56262&atid=479921

Regards,
     Michael

On Tue, Jul 10, 2012 at 3:13 PM, Freddy Mallet <[hidden email]> wrote:

> Hi Guys,
>
> In fact that's not an easy subject as :
>
> Creating a JIRA ticket in the Sonar project is perhaps the best way to get
> the bug fixed
> But the Sonar JIRA project is not the PMD issue tracking system and so "in a
> perfect world", this ticket should only be created here :
> http://sourceforge.net/tracker/?atid=479921&group_id=56262&func=browse
>
> Feel free to create the JIRA ticket Michael!
>
> -----
> twitter.com/FreddyMallet
> Sonar for Continuous Inspection
>
>
>
> On Mon, Jul 9, 2012 at 8:42 PM, Papapetrou P.Patroklos
> <[hidden email]> wrote:
>>
>> Hi Michael
>>
>> I bet Sonar folks would appreciate that :) but I am not sure if they can
>> do anything for that :)
>> Regards
>> Patroklos
>>
>> 2012/7/9 Michael Rumpf <[hidden email]>
>>>
>>> Hi,
>>>
>>> when reporting the last issue regarding PMD parsing issues I got the
>>> impression that the Sonar team wanted to know about it.
>>> Because PMD is embedded, isn't it important to know which bugs the
>>> embedded tool has?
>>>
>>> Regards,
>>>      Michael
>>>
>>>
>>> On Mon, Jul 9, 2012 at 8:02 AM, Papapetrou P.Patroklos
>>> <[hidden email]> wrote:
>>> > Hi Michael
>>> >
>>> > Well, if it's a PMD parsing issue (and from the log file it seems to be
>>> > )
>>> > then you should ask PMD user mailing list...  :)
>>> > Regards
>>> > Patroklos
>>> >
>>> > 2012/7/6 Michael Rumpf <[hidden email]>
>>> >>
>>> >> Hi,
>>> >>
>>> >> we found another PMD parsing issue:
>>> >>
>>> >> 17:38:28  [ERROR] [17:38:28.819] Fail to execute PMD. Following file
>>> >> is ignored:
>>> >>
>>> >> /export/build/hudson-slave/workspace/xxx-trunk/xxx/xxx-ams-build/build/sonar/source/com/company/xxx/base/favorites/dao/SelectFavorites_AsUnion_SQL.java
>>> >> 17:38:28  net.sourceforge.pmd.ast.ParseException: Encountered " "(" "(
>>> >> "" at line 42, column 30.
>>> >> 17:38:28  Was expecting one of:
>>> >> 17:38:28      "." ...
>>> >> ...
>>> >> 17:38:28      "." ...
>>> >> 17:38:28
>>> >> 17:38:28        at
>>> >>
>>> >> net.sourceforge.pmd.ast.JavaParser.generateParseException(JavaParser.java:9853)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> net.sourceforge.pmd.ast.JavaParser.jj_consume_token(JavaParser.java:9737)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >> net.sourceforge.pmd.ast.JavaParser.PrimaryPrefix(JavaParser.java:3523)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> net.sourceforge.pmd.ast.JavaParser.PrimaryExpression(JavaParser.java:3433)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> net.sourceforge.pmd.ast.JavaParser.StatementExpression(JavaParser.java:4359)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >> net.sourceforge.pmd.ast.JavaParser.Statement(JavaParser.java:4054)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> net.sourceforge.pmd.ast.JavaParser.BlockStatement(JavaParser.java:4201)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> net.sourceforge.pmd.ast.JavaParser.ConstructorDeclaration(JavaParser.java:1668)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBodyDeclaration(JavaParser.java:1069)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBody(JavaParser.java:1004)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceDeclaration(JavaParser.java:514)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBodyDeclaration(JavaParser.java:1065)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceBody(JavaParser.java:1004)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> net.sourceforge.pmd.ast.JavaParser.ClassOrInterfaceDeclaration(JavaParser.java:514)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> net.sourceforge.pmd.ast.JavaParser.TypeDeclaration(JavaParser.java:406)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> net.sourceforge.pmd.ast.JavaParser.CompilationUnit(JavaParser.java:164)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >> net.sourceforge.pmd.parsers.Java15Parser.parse(Java15Parser.java:24)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at net.sourceforge.pmd.PMD.processFile(PMD.java:98)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at net.sourceforge.pmd.PMD.processFile(PMD.java:75)
>>> >> ~[pmd-4.3.jar:na]
>>> >> 17:38:28        at
>>> >> org.sonar.plugins.pmd.PmdExecutor.execute(PmdExecutor.java:70)
>>> >> ~[sonar-pmd-plugin-2.14.jar:na]
>>> >> 17:38:28        at
>>> >> org.sonar.plugins.pmd.PmdSensor.analyse(PmdSensor.java:45)
>>> >> [sonar-pmd-plugin-2.14.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
>>> >> [sonar-batch-2.14.jar:na]
>>> >> 17:38:28        at
>>> >> org.sonar.batch.phases.Phases.execute(Phases.java:93)
>>> >> [sonar-batch-2.14.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
>>> >> [sonar-batch-2.14.jar:na]
>>> >> 17:38:28        at
>>> >> org.sonar.batch.bootstrap.Module.start(Module.java:83)
>>> >> [sonar-batch-2.14.jar:na]
>>> >> 17:38:28        at
>>> >> org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
>>> >> [sonar-batch-2.14.jar:na]
>>> >> 17:38:28        at
>>> >> org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
>>> >> [sonar-batch-2.14.jar:na]
>>> >> 17:38:28        at
>>> >> org.sonar.batch.bootstrap.Module.start(Module.java:83)
>>> >> [sonar-batch-2.14.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:102)
>>> >> [sonar-batch-2.14.jar:na]
>>> >> 17:38:28        at
>>> >> org.sonar.batch.bootstrap.Module.start(Module.java:83)
>>> >> [sonar-batch-2.14.jar:na]
>>> >> 17:38:28        at
>>> >> org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:71)
>>> >> [sonar-batch-2.14.jar:na]
>>> >> 17:38:28        at
>>> >> org.sonar.batch.bootstrapper.Batch.execute(Batch.java:58)
>>> >> [sonar-batch-2.14.jar:na]
>>> >> 17:38:28        at
>>> >> org.sonar.maven.SonarMojo.execute(SonarMojo.java:151)
>>> >> [sonar-maven-plugin-2.14.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>> >> [maven-2.2.1-uber.jar:2.2.1]
>>> >> 17:38:28        at
>>> >> org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:98)
>>> >> [sonar-maven-plugin-1.0.jar:na]
>>> >> 17:38:28        at
>>> >> org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:79)
>>> >> [sonar-maven-plugin-1.0.jar:na]
>>> >> 17:38:28        at
>>> >> org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:88)
>>> >> [sonar-maven-plugin-1.0.jar:na]
>>> >> 17:38:28        at
>>> >>
>>> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>> >> [maven-2.2.1-uber.jar:2.2.1]
>>> >> 17:38:28        at
>>> >>
>>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>> >> [maven-2.2.1-uber.jar:2.2.1]
>>> >> 17:38:28        at
>>> >>
>>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>>> >> [maven-2.2.1-uber.jar:2.2.1]
>>> >> 17:38:28        at
>>> >>
>>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>>> >> [maven-2.2.1-uber.jar:2.2.1]
>>> >> 17:38:28        at
>>> >>
>>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>> >> [maven-2.2.1-uber.jar:2.2.1]
>>> >> 17:38:28        at
>>> >>
>>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
>>> >> [maven-2.2.1-uber.jar:2.2.1]
>>> >> 17:38:28        at
>>> >>
>>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>> >> [maven-2.2.1-uber.jar:2.2.1]
>>> >> 17:38:28        at
>>> >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>> >> [maven-2.2.1-uber.jar:2.2.1]
>>> >> 17:38:28        at
>>> >> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>> >> [maven-2.2.1-uber.jar:2.2.1]
>>> >> 17:38:28        at
>>> >> org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>> >> [maven-2.2.1-uber.jar:2.2.1]
>>> >> 17:38:28        at
>>> >>
>>> >> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>> >> [maven-2.2.1-uber.jar:2.2.1]
>>> >> 17:38:28        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>> >> Method) ~[na:1.6.0_20]
>>> >> 17:38:28        at
>>> >>
>>> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> >> ~[na:1.6.0_20]
>>> >> 17:38:28        at
>>> >>
>>> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> >> ~[na:1.6.0_20]
>>> >> 17:38:28        at java.lang.reflect.Method.invoke(Method.java:597)
>>> >> ~[na:1.6.0_20]
>>> >> 17:38:28        at
>>> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>> >> [classworlds-1.1.jar:1.1]
>>> >> 17:38:28        at
>>> >> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>> >> [classworlds-1.1.jar:1.1]
>>> >> 17:38:28        at
>>> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>> >> [classworlds-1.1.jar:1.1]
>>> >> 17:38:28        at
>>> >> org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>> >> [classworlds-1.1.jar:1.1]
>>> >>
>>> >> The code in error looks like this:
>>> >>
>>> >> ===================================================
>>> >> package com.company.xxx.base.favorites.dao;
>>> >>
>>> >> import java.sql.SQLException;
>>> >>
>>> >> import com.company.xxx.base.dao.schema.TblFavoriten;
>>> >> import com.company.xxx.base.dao.schema.TblSachnummerInTeilefamilie;
>>> >> import com.company.xxx.base.favorites.FavoritenSearchFilter;
>>> >> import com.company.xxx.database.SQLParameterMap;
>>> >> import com.company.xxx.database.sql.Restriction;
>>> >> import com.company.xxx.database.sql.Restrictions;
>>> >> import com.company.xxx.database.sql.Stmt;
>>> >> import com.company.xxx.database.sql.Stmts;
>>> >> import com.company.xxx.database.sql.UnionStmt;
>>> >> import com.company.xxx.exception.BaseModelException;
>>> >>
>>> >> /**
>>> >>  * Class SelectFavorites.
>>> >>  * @author      xxxx
>>> >>  *
>>> >>  */
>>> >> public class SelectFavorites_AsUnion_SQL extends
>>> >> AbstractSelectFavoritesStructureSQL {
>>> >>
>>> >>         /** Creates SelectFavorites_AsUnion_SQL. */
>>> >>         public SelectFavorites_AsUnion_SQL() {
>>> >>                 this.fav =
>>> >> addStandardProjections(Stmts.createSelectStmt(TblFavoriten.T_Name,
>>> >> "fav"));
>>> >>                 this.fav2 =
>>> >> addStandardProjections(Stmts.createSelectStmt(TblFavoriten.T_Name,
>>> >> "fav"));
>>> >>         }
>>> >>
>>> >>         protected Stmt createStatement(FavoritenSearchFilter filter,
>>> >> SQLParameterMap params) throws SQLException, BaseModelException {
>>> >>                 UnionStmt result = Stmts.createUnionStmt(
>>> >>                                 new
>>> >> SelectFavsFromSNRFAV().createStatement(filter, params),
>>> >>                                 new
>>> >> SelectFavsFromTFRFAV().createStatement(filter, params)
>>> >>                 );
>>> >>                 return result
>>> >>                         .setFetchOnly(true)
>>> >>                 ;
>>> >>         }
>>> >>
>>> >>         private class SelectFavsFromSNRFAV extends
>>> >> SelectFavoritesOneMemberSQL {
>>> >>                 /** Creates
>>> >> SelectFavorites_AsUnion_SQL.SelectFavsFromSNRFAV. */
>>> >>                 public SelectFavsFromSNRFAV() {
>>> >> /* line 42 */   super(new Tables(){{
>>> >>                                 this.fav =
>>> >> SelectFavorites_AsUnion_SQL.this.fav;
>>> >>                                 this.lft =
>>> >> SelectFavorites_AsUnion_SQL.this.lft;
>>> >>                                 this.lftidx =
>>> >> SelectFavorites_AsUnion_SQL.this.lftidx;
>>> >>                                 this.lmimk =
>>> >> SelectFavorites_AsUnion_SQL.this.lmimk;
>>> >>                                 this.lsnr =
>>> >> SelectFavorites_AsUnion_SQL.this.lsnr;
>>> >>                                 this.snr =
>>> >> SelectFavorites_AsUnion_SQL.this.snr;
>>> >>                                 this.snrfav =
>>> >> SelectFavorites_AsUnion_SQL.this.snrfav;
>>> >>                                 this.tbe =
>>> >> SelectFavorites_AsUnion_SQL.this.tbe;
>>> >>                                 this.plan =
>>> >> SelectFavorites_AsUnion_SQL.this.plan;
>>> >>                                 this.wkgrp =
>>> >> SelectFavorites_AsUnion_SQL.this.wkgrp;
>>> >>                         }});
>>> >>                 }
>>> >>         }
>>> >>     /* stripped */
>>> >> }
>>> >> ===================================================
>>> >>
>>> >> Regards,
>>> >>       Michael
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> To unsubscribe from this list, please visit:
>>> >>
>>> >>     http://xircles.codehaus.org/manage_email
>>> >>
>>> >>
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>>     http://xircles.codehaus.org/manage_email
>>>
>>>
>>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...