Closed GoogleCodeExporter closed 9 years ago
Hi
very strange behaviour ... i'll check soon
thx for feedback
Original comment by bartolom...@gmail.com
on 10 Oct 2011 at 10:06
Sorry.. I did not realize the "add comment below link" and posted three issues.
This problem was solved adding:
-vm
C:\Program Files\Java\jdk1.6.0_24\bin\javaw.exe
just before
-vmargs
in eclipse.ini
Original comment by luisace2...@gmail.com
on 11 Oct 2011 at 3:20
no problem .... rather thx for feedbacks will be very useful for all guys that
are moving to indigo
Original comment by bartolom...@gmail.com
on 11 Oct 2011 at 3:34
Unfortunately it does not work in my case.
Original comment by mrak...@gmail.com
on 23 Nov 2011 at 1:46
[deleted comment]
The problem is related to Eclipse JVM. Seems that the call
ToolProvider.getSystemJavaCompiler() returns null
I've find out a discussion thread about a similar problem at
http://fsteeg.com/2011/02/07/setting-up-contracts-for-java-in-eclipse/
Summarizing seems that a possible solution (regards Windows OS) could be add to
eclipse.ini the following 2 rows:
-vm
YOUR_JAVA_HOME\jre\bin\client\jvm.dll
Original comment by bartolom...@gmail.com
on 23 Nov 2011 at 2:41
I'm getting the same exception in a linux environment (32-bit Ubuntu 10.04,
Eclipse Indigo for Java SR1, maven-processor-plugin 2.0.5). The above
workaround does the trick in linux as well, just added the switch "-vm
/usr/lib/jvm/java-6-sun/bin/java" to the command launching eclipse (which is
where my sun^g^g^g oracle jdk is installed)
Original comment by akpr...@gmail.com
on 7 Dec 2011 at 10:13
Original comment by bartolom...@gmail.com
on 24 Apr 2012 at 7:30
I also have the above problem.
Windows OS 7.
Providing the switch in the eclipse.ini file
-vm C:\Program Files\Java\jdk1.6.0_31\jre\bin\classes\jvm.dll
just previous to the -vmargs switch. Restarting Eclipse and re running the
maven goal produced the same exception.
Original comment by 22jayf...@gmail.com
on 7 May 2012 at 7:16
have you tried the solution proposed on Comment 2?
Original comment by bartolom...@gmail.com
on 8 May 2012 at 7:02
Yes both solutions produce the same exception.
Using Windows 7, Eclipse Indigo, apache-maven 3.0
Here is my ini file
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jdk1.6.0_31\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
Here is output of maven build.
[INFO] Source directory:
C:\Users\11685\Projects\EOCIL\eocil-navigator\target\metamodel added
[INFO] No processors specified. Using default discovery mechanism.
[INFO] javac option: -cp
[INFO] javac option:
C:\Users\11685\.m2\repository\org\sonatype\sisu\sisu-inject-bean\1.4.3.1\sisu-in
ject-bean-1.4.3.1.jar;C:\Users\11685\.m2\repository\org\sonatype\sisu\sisu-guice
\2.9.1\sisu-guice-2.9.1-noaop.jar;C:\Users\11685\.m2\repository\org\sonatype\aet
her\aether-util\1.8\aether-util-1.8.jar;C:\Users\11685\.m2\repository\org\codeha
us\plexus\plexus-interpolation\1.14\plexus-interpolation-1.14.jar;C:\Users\11685
\.m2\repository\org\codehaus\plexus\plexus-utils\2.0.4\plexus-utils-2.0.4.jar;C:
\Users\11685\.m2\repository\org\codehaus\plexus\plexus-component-annotations\1.5
.5\plexus-component-annotations-1.5.5.jar;C:\Users\11685\.m2\repository\org\sona
type\plexus\plexus-sec-dispatcher\1.3\plexus-sec-dispatcher-1.3.jar;C:\Users\116
85\.m2\repository\org\sonatype\plexus\plexus-cipher\1.4\plexus-cipher-1.4.jar;C:
\Users\11685\Projects\EOCIL\eocil-navigator\src\main\resources;C:\Users\11685\Pr
ojects\EOCIL\eocil-navigator\target\classes;C:\Users\11685\.m2\repository\com\te
los\ocil-xml\1.0-SNAPSHOT\ocil-xml-1.0-SNAPSHOT.jar;C:\Users\11685\.m2\repositor
y\org\springframework\spring-core\3.1.0.RELEASE\spring-core-3.1.0.RELEASE.jar;C:
\Users\11685\.m2\repository\org\springframework\spring-oxm\3.1.0.RELEASE\spring-
oxm-3.1.0.RELEASE.jar;C:\Users\11685\.m2\repository\com\telos\scap-common\1.0-SN
APSHOT\scap-common-1.0-SNAPSHOT.jar;C:\Users\11685\.m2\repository\net\sf\dozer\d
ozer\5.3.2\dozer-5.3.2.jar;C:\Users\11685\.m2\repository\commons-beanutils\commo
ns-beanutils\1.8.3\commons-beanutils-1.8.3.jar;C:\Users\11685\.m2\repository\com
mons-lang\commons-lang\2.5\commons-lang-2.5.jar;C:\Users\11685\.m2\repository\or
g\springframework\spring-context\3.1.0.RELEASE\spring-context-ded it
here3.1.0.RELEASE.jar;C:\Users\11685\.m2\repository\org\springframework\spring-a
op\3.1.0.RELEASE\spring-aop-3.1.0.RELEASE.jar;C:\Users\11685\.m2\repository\org\
springframework\spring-expression\3.1.0.RELEASE\spring-expression-3.1.0.RELEASE.
jar;C:\Users\11685\.m2\repository\org\springframework\spring-asm\3.1.0.RELEASE\s
pring-asm-3.1.0.RELEASE.jar;C:\Users\11685\.m2\repository\org\springframework\sp
ring-beans\3.1.0.RELEASE\spring-beans-3.1.0.RELEASE.jar;C:\Users\11685\.m2\repos
itory\org\springframework\spring-jms\3.1.0.RELEASE\spring-jms-3.1.0.RELEASE.jar;
C:\Users\11685\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:
\Users\11685\.m2\repository\org\springframework\spring-web\3.1.0.RELEASE\spring-
web-3.1.0.RELEASE.jar;C:\Users\11685\.m2\repository\org\springframework\spring-w
ebmvc\3.1.0.RELEASE\spring-webmvc-3.1.0.RELEASE.jar;C:\Users\11685\.m2\repositor
y\org\springframework\spring-context-support\3.1.0.RELEASE\spring-context-suppor
t-3.1.0.RELEASE.jar;C:\Users\11685\.m2\repository\org\springframework\spring-jdb
c\3.1.0.RELEASE\spring-jdbc-3.1.0.RELEASE.jar;C:\Users\11685\.m2\repository\org\
springframework\spring-orm\3.1.0.RELEASE\spring-orm-3.1.0.RELEASE.jar;C:\Users\1
1685\.m2\repository\org\springframework\spring-tx\3.1.0.RELEASE\spring-tx-3.1.0.
RELEASE.jar;C:\Users\11685\.m2\repository\cglib\cglib-nodep\2.2\cglib-nodep-2.2.
jar;C:\Users\11685\.m2\repository\javax\validation\validation-api\1.0.0.GA\valid
ation-api-1.0.0.GA.jar;C:\Users\11685\.m2\repository\org\hibernate\hibernate-val
idator\4.2.0.Final\hibernate-validator-4.2.0.Final.jar;C:\Users\11685\.m2\reposi
tory\org\aspectj\aspectjrt\1.6.12\aspectjrt-1.6.12.jar;C:\Users\11685\.m2\reposi
tory\org\aspectj\aspectjweaver\1.6.12\aspectjweaver-1.6.12.jar;C:\Users\11685\.m
2\repository\jstl\jstl\1.2\jstl-1.2.jar;C:\Users\11685\.m2\repository\org\codeha
us\jackson\jackson-mapper-asl\1.7.1\jackson-mapper-asl-1.7.1.jar;C:\Users\11685\
.m2\repository\org\codehaus\jackson\jackson-core-asl\1.7.1\jackson-core-asl-1.7.
1.jar;C:\Users\11685\.m2\repository\org\hibernate\javax\persistence\hibernate-jp
a-2.0-api\1.0.1.Final\hibernate-jpa-2.0-api-1.0.1.Final.jar;C:\Users\11685\.m2\r
epository\org\hibernate\hibernate-entitymanager\4.1.0.Final\hibernate-entitymana
ger-4.1.0.Final.jar;C:\Users\11685\.m2\repository\org\jboss\spec\javax\transacti
on\jboss-transaction-api_1.1_spec\1.0.0.Final\jboss-transaction-api_1.1_spec-1.0
.0.Final.jar;C:\Users\11685\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;C:\
Users\11685\.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;C:\Users
\11685\.m2\repository\org\jboss\logging\jboss-logging\3.1.0.CR2\jboss-logging-3.
1.0.CR2.jar;C:\Users\11685\.m2\repository\org\hibernate\hibernate-core\4.1.0.Fin
al\hibernate-core-4.1.0.Final.jar;C:\Users\11685\.m2\repository\commons-collecti
ons\commons-collections\3.2.1\commons-collections-3.2.1.jar;C:\Users\11685\.m2\r
epository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\11685\.m2\repository\org\ja
vassist\javassist\3.15.0-GA\javassist-3.15.0-GA.jar;C:\Users\11685\.m2\repositor
y\org\hibernate\common\hibernate-commons-annotations\4.0.1.Final\hibernate-commo
ns-annotations-4.0.1.Final.jar;C:\Users\11685\.m2\repository\org\hibernate\hiber
nate-jpamodelgen\1.1.1.Final\hibernate-jpamodelgen-1.1.1.Final.jar;C:\Users\1168
5\.m2\repository\org\apache\activemq\activemq-core\5.5.1\activemq-core-5.5.1.jar
;C:\Users\11685\.m2\repository\org\apache\geronimo\specs\geronimo-jms_1.1_spec\1
.1.1\geronimo-jms_1.1_spec-1.1.1.jar;C:\Users\11685\.m2\repository\org\apache\ac
tivemq\activeio-core\3.1.2\activeio-core-3.1.2.jar;C:\Users\11685\.m2\repository
\org\apache\activemq\kahadb\5.5.1\kahadb-5.5.1.jar;C:\Users\11685\.m2\repository
\org\apache\activemq\protobuf\activemq-protobuf\1.1\activemq-protobuf-1.1.jar;C:
\Users\11685\.m2\repository\org\osgi\org.osgi.core\4.1.0\org.osgi.core-4.1.0.jar
;C:\Users\11685\.m2\repository\org\apache\geronimo\specs\geronimo-j2ee-managemen
t_1.1_spec\1.0.1\geronimo-j2ee-management_1.1_spec-1.0.1.jar;C:\Users\11685\.m2\
repository\commons-net\commons-net\2.0\commons-net-2.0.jar;C:\Users\11685\.m2\re
pository\org\jasypt\jasypt\1.7\jasypt-1.7.jar;C:\Users\11685\.m2\repository\org\
apache\xbean\xbean-spring\3.7\xbean-spring-3.7.jar;C:\Users\11685\.m2\repository
\commons-logging\commons-logging\1.0.3\commons-logging-1.0.3.jar;C:\Users\11685\
.m2\repository\org\slf4j\slf4j-api\1.5.11\slf4j-api-1.5.11.jar;C:\Users\11685\.m
2\repository\org\slf4j\slf4j-log4j12\1.5.11\slf4j-log4j12-1.5.11.jar;C:\Users\11
685\.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar;C:\Users\11685\.m2\reposi
tory\commons-dbcp\commons-dbcp\1.4\commons-dbcp-1.4.jar;C:\Users\11685\.m2\repos
itory\commons-pool\commons-pool\1.5.4\commons-pool-1.5.4.jar;C:\Users\11685\.m2\
repository\net\sourceforge\jtds\jtds\1.2.4\jtds-1.2.4.jar;C:\Users\11685\.m2\rep
ository\org\apache\tiles\tiles-core\2.2.2\tiles-core-2.2.2.jar;C:\Users\11685\.m
2\repository\org\apache\tiles\tiles-api\2.2.2\tiles-api-2.2.2.jar;C:\Users\11685
\.m2\repository\commons-digester\commons-digester\2.0\commons-digester-2.0.jar;C
:\Users\11685\.m2\repository\org\slf4j\jcl-over-slf4j\1.5.8\jcl-over-slf4j-1.5.8
.jar;C:\Users\11685\.m2\repository\org\apache\tiles\tiles-jsp\2.2.2\tiles-jsp-2.
2.2.jar;C:\Users\11685\.m2\repository\org\apache\tiles\tiles-servlet\2.2.2\tiles
-servlet-2.2.2.jar;C:\Users\11685\.m2\repository\org\apache\tiles\tiles-template
\2.2.2\tiles-template-2.2.2.jar;C:\Users\11685\.m2\repository\com\telos\rif-xml\
1.0-SNAPSHOT\rif-xml-1.0-SNAPSHOT.jar;C:\Users\11685\.m2\repository\org\springfr
amework\webflow\spring-js\2.3.1.RELEASE\spring-js-2.3.1.RELEASE.jar;C:\Users\116
85\.m2\repository\org\springframework\webflow\spring-js-resources\2.3.1.RELEASE\
spring-js-resources-2.3.1.RELEASE.jar;C:\Users\11685\.m2\repository\commons-file
upload\commons-fileupload\1.2.2\commons-fileupload-1.2.2.jar;C:\Users\11685\.m2\
repository\commons-io\commons-io\1.3.2\commons-io-1.3.2.jar;C:\Users\11685\.m2\r
epository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar;C:\Users\11685\.m2\r
epository\com\telos\ai-xml\1.0-SNAPSHOT\ai-xml-1.0-SNAPSHOT.jar;
[INFO] javac option: -proc:only
[INFO] javac option: -d
[INFO] javac option:
C:\Users\11685\Projects\EOCIL\eocil-navigator\target\classes
[INFO] javac option: -s
[INFO] javac option:
C:\Users\11685\Projects\EOCIL\eocil-navigator\target\metamodel
[ERROR] error on execute: null
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.428s
[INFO] Finished at: Thu May 10 07:54:27 EDT 2012
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.bsc.maven:maven-processor-plugin:2.0.5:process (process) on project
eocil-navigator: Error executing: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
org.bsc.maven:maven-processor-plugin:2.0.5:process (process) on project
eocil-navigator: Error executing
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing
at org.bsc.maven.plugin.processor.AbstractAnnotationProcessorMojo.execute(AbstractAnnotationProcessorMojo.java:204)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.lang.NullPointerException
at org.bsc.maven.plugin.processor.AbstractAnnotationProcessorMojo.executeWithExceptionsHandled(AbstractAnnotationProcessorMojo.java:320)
at org.bsc.maven.plugin.processor.AbstractAnnotationProcessorMojo.execute(AbstractAnnotationProcessorMojo.java:197)
... 21 more
Original comment by 22jayf...@gmail.com
on 10 May 2012 at 11:59
hi
could you test with last snapshot (2.0.6-SNAPSHOT)?
thx in advance
Original comment by bartolom...@gmail.com
on 11 May 2012 at 7:17
Original comment by bartolom...@gmail.com
on 11 May 2012 at 7:17
2.0.6-SNAPSHOT worked for me. The previously mentioned fix did not.
Original comment by ianpack...@gmail.com
on 27 Jul 2012 at 10:44
Original comment by bartolom...@gmail.com
on 7 Aug 2012 at 5:47
I have the same problem but I resolve that mistake changing the JRE Enviroment
of my eclipse project for the JDK.
By default when you create an eclipse project on the build path set "jre6"
Change this for the JDK installed on your SO.
Original comment by cesar.d...@gmail.com
on 26 Sep 2012 at 7:02
Original issue reported on code.google.com by
luisace2...@gmail.com
on 10 Oct 2011 at 9:59Attachments: