Error while setting up the code in Eclipse ubuntu

2 views
Skip to first unread message

Awanthika Senarath

unread,
May 26, 2013, 12:21:51 AM5/26/13
to d...@openmrs.org
i have faced an error while trying to compile the code on eclipse ubuntu. can somebody help me?

[INFO] OpenMRS ..............................
............. SUCCESS [1:37.075s]
[INFO] openmrs-tools ..................................... SUCCESS [39.982s]
[INFO] openmrs-test ...................................... SUCCESS [0.357s]
[INFO] openmrs-api ....................................... FAILURE [1:41.084s]
[INFO] openmrs-web ....................................... SKIPPED
[INFO] openmrs-webapp .................................... SKIPPED
[INFO] openmrs-release-test .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:59.734s
[INFO] Finished at: Fri May 24 21:46:57 GMT 2013
[INFO] Final Memory: 36M/133M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.1:testCompile (default-testCompile) on project openmrs-api: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] An exception has occurred in the compiler (1.6.0_24). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
[ERROR] java.lang.NullPointerException
[ERROR] at com.sun.tools.javac.code.Types.capture(Types.java:2793)
[ERROR] at com.sun.tools.javac.comp.Attr.capture(Attr.java:2818)
[ERROR] at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:1849)
[ERROR] at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1651)
[ERROR] at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:372)
[ERROR] at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:389)
[ERROR] at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1287)
[ERROR] at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1296)
[ERROR] at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:372)
[ERROR] at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:396)
[ERROR] at com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1063)
[ERROR] at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1142)
[ERROR] at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:372)
[ERROR] at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:409)
[ERROR] at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:425)
[ERROR] at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:761)
[ERROR] at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:765)
[ERROR] at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:372)
[ERROR] at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:409)
[ERROR] at com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:680)
[ERROR] at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:653)
[ERROR] at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:372)
[ERROR] at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:409)
[ERROR] at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:2750)
[ERROR] at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2676)
[ERROR] at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2612)
[ERROR] at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1122)
[ERROR] at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:842)
[ERROR] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:801)
[ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:388)
[ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:308)
[ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:299)
[ERROR] at com.sun.tools.javac.Main.compile(Main.java:100)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:616)
[ERROR] at org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:484)
[ERROR] at org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:155)
[ERROR] at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:575)
[ERROR] at org.apache.maven.plugin.TestCompilerMojo.execute(TestCompilerMojo.java:146)
[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
[ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
[ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
[ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:616)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)


Harsha Siriwardena

unread,
May 26, 2013, 12:49:51 AM5/26/13
to Developers
it seems like a matter of JVM conflicts.

HTH
-Harsha

Harsha Siriwardena
[harshadura.net]




--
OpenMRS Developers: http://go.openmrs.org/dev
Post: d...@openmrs.org
Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/
 
 

Suranga Kasthurirathne

unread,
May 26, 2013, 1:23:46 AM5/26/13
to d...@openmrs.org

Yep, in fact, it might also be a good idea to check if your eclipse if pointed to a jdk, and not a jre  :-)
--
Best Regards,

Suranga

Awanthika Senarath

unread,
May 28, 2013, 6:54:53 AM5/28/13
to d...@openmrs.org
i have open jdk6. may be i need to install the oracle jdk?
------------------------------------------------------------------------------------------->>
AWANTHIKA SENARATH
Undergraduate
Department of Electronics and Telecommunication Engineering
University of Moratuwa

Kaweesi Joseph

unread,
May 28, 2013, 7:40:10 AM5/28/13
to d...@openmrs.org
you may also look at this almost related issue, it points to what you are already proposing; installing Sun's JDK,
see  https://k2013joseph.wordpress.com/2013/04/30/ubuntu-minti-fix-for-unable-to-locate-tools-jar-expected-to-find-it-in-usrlibjvmjava-6-openjdklibtools-jar/

Awanthika Senarath

unread,
May 28, 2013, 8:37:08 AM5/28/13
to d...@openmrs.org
when im importing it as a maven p[roject they give dependency issues and ask for installation of new softwares to eclipse build helper and another one to resolve the issues.. from there onwards my project in the workspace shows errors and fails at compilation. i have installed oracle JDK 6 now

Awanthika Senarath

unread,
May 28, 2013, 8:48:37 AM5/28/13
to d...@openmrs.org
Description    Resource    Path    Location    Type
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.5:parse-version (execution: parse-version, phase: initialize)    pom.xml    /openmrs-release-test    line 3    Maven Project Build Lifecycle Mapping Problem

Awanthika Senarath

unread,
May 28, 2013, 9:01:13 AM5/28/13
to d...@openmrs.org
and finally it gives a build success. so the openJDK was the issue. thanks all :)
Reply all
Reply to author
Forward
0 new messages