Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Errors running builder 'Maven Project Builder' on project 'X'

There is a logback.<version>.xml file in the same dir along with 0.log (there might be more than one, use the latest one).
Change the value of INFO to DEBUG under <root> element and restart eclipse.

2014-10-23 16:11 GMT+03:00 MEYER, Julien <j-meyer@xxxxxxxxx>:

Hi Anto,

 

Thanks for your advices. I searched in the 0.log file as you told me but I didn’t find any stacktrace of a NPE. In fact, I don’t know were I must set the log debug severity (I mean inside the file). Could you make me a little example ?

 

Thanks.

-Julien.

 

De : m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx] De la part de Anton Tanasenko
Envoyé : jeudi 23 octobre 2014 12:13
À : Maven Integration for Eclipse users mailing list
Objet : Re: [m2e-users] Errors running builder 'Maven Project Builder' on project 'X'

 

Hi,

It does seem that m2e BuildProblemInfo cannot cope with nulls in exception error message and fails to log the root problem.

Until this is fixed, you can consult the 0.log file in  <workspace>/.metadata/.plugins/org.eclipse.m2e.logback.configuration but since

mojo execution exceptions are logged with debug severity, you should enable that in logback config in the same dir.

Most probably there's an NPE from somewhere.

 

 

 

2014-10-23 12:47 GMT+03:00 MEYER, Julien <j-meyer@xxxxxxxxx>:

Hi everyone,

 

I am having trouble using the new Eclipse Luna 4.4 SR1 with my m2e plugins. The thing is that when I am saving a JSP file (or whatever) followed by a project  build (Project > Build Project), eclipse raised an exception that I really don’t unterstand. It happens when I am copying files from one project to another too.

 

I’ve searched for hours but I didn’t fight the right answer of my questions in the web so I thought you guys could help me.

 

Here is the stack trace of the exception I am fighting with :

 

« Message : Errors running builder 'Maven Project Builder' on project 'efluid-webapp'.

!ENTRY org.eclipse.core.resources 4 2 2014-10-23 11:26:54.575

!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".

!STACK 0

java.lang.NullPointerException

        at java.lang.StringBuilder.<init>(Unknown Source)

        at org.eclipse.m2e.core.internal.builder.BuildProblemInfo.formatMessage(BuildProblemInfo.java:27)

        at org.eclipse.m2e.core.internal.builder.BuildProblemInfo.<init>(BuildProblemInfo.java:23)

        at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.processBuildResults(MavenBuilderImpl.java:312)

        at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:174)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:172)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:115)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1.call(MavenBuilder.java:105)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:86)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:200)

        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)

        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)

        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)

        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)

        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)

        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)

        at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)

        at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:496)

        at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:405)

        at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:180)

        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

 

!ENTRY org.eclipse.core.resources 4 75 2014-10-23 11:26:54.577

!MESSAGE Errors occurred during the build.

!SUBENTRY 1 org.eclipse.m2e.core 4 75 2014-10-23 11:26:54.577

!MESSAGE Errors running builder 'Maven Project Builder' on project 'efluid-webapp'.

!STACK 0

java.lang.NullPointerException

        at java.lang.StringBuilder.<init>(Unknown Source)

        at org.eclipse.m2e.core.internal.builder.BuildProblemInfo.formatMessage(BuildProblemInfo.java:27)

        at org.eclipse.m2e.core.internal.builder.BuildProblemInfo.<init>(BuildProblemInfo.java:23)

        at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.processBuildResults(MavenBuilderImpl.java:312)

        at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:174)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:172)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:115)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1.call(MavenBuilder.java:105)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:86)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:200)

        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)

        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)

        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)

        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)

        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)

        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)

        at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)

        at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:496)

        at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:405)

        at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:180)

        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

 

!ENTRY org.eclipse.core.resources 4 2 2014-10-23 11:27:34.585

!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".

!STACK 0

java.lang.NullPointerException

        at java.lang.StringBuilder.<init>(Unknown Source)

        at org.eclipse.m2e.core.internal.builder.BuildProblemInfo.formatMessage(BuildProblemInfo.java:27)

        at org.eclipse.m2e.core.internal.builder.BuildProblemInfo.<init>(BuildProblemInfo.java:23)

        at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.processBuildResults(MavenBuilderImpl.java:312)

        at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:174)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:172)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:115)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1.call(MavenBuilder.java:105)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:86)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:200)

        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)

        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)

        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)

        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)

        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)

        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)

        at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)

        at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:496)

        at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:405)

        at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:180)

        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

 

!ENTRY org.eclipse.core.resources 4 75 2014-10-23 11:27:34.600

!MESSAGE Errors occurred during the build.

!SUBENTRY 1 org.eclipse.m2e.core 4 75 2014-10-23 11:27:34.600

!MESSAGE Errors running builder 'Maven Project Builder' on project 'efluid-webapp'.

!STACK 0

java.lang.NullPointerException

        at java.lang.StringBuilder.<init>(Unknown Source)

        at org.eclipse.m2e.core.internal.builder.BuildProblemInfo.formatMessage(BuildProblemInfo.java:27)

        at org.eclipse.m2e.core.internal.builder.BuildProblemInfo.<init>(BuildProblemInfo.java:23)

        at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.processBuildResults(MavenBuilderImpl.java:312)

        at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:174)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:172)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:115)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1.call(MavenBuilder.java:105)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)

        at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:86)

        at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:200)

        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)

        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)

        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)

        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)

        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)

        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)

        at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)

        at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:496)

        at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:405)

        at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:180)

        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) »

               

 

Let me give you a little summary of the m2e plugins present in my eclipse :

 

Name of the plugin

Version

m2e - Maven Integration for Eclipse

v. 1.6.0.20140819-1152

m2e - slf4j over logback logging

v. 1.6.0.20140819-1152

m2e connector for build-helper-maven-plugin (PROBLEM HERE ?)  

v. 0.15.0.201207090124

Maven Integration for Eclipse JDT APT (m2e-apt)

v. 1.1.1.201409241934

 

And my computer settings :

Eclipse.version=Eclipse Luna 4.4.1

java.version=1.7.0_45

java.vendor=Sun Microsystems Inc.

 

I apologize in advance if I am using the wrong mailing list. Please tell me if so. Plus I apologize for my English if I made some mistakes.

 

Thanks

-Julien


_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users



 

--

Regards,

Anton.


_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users



--
Regards,
Anton.

Back to the top