java - command "mvn package" fails with status 137 -


packaging gwt project using "mvn package" fails , have following ouput:

[info] scanning projects... [info] ------------------------------------------------------------------------ [info] building myproject [info]    task-segment: [package] [info] ------------------------------------------------------------------------ [info] [apt:process {execution: default}] [info] [aspectj:compile {execution: default}] [info] [resources:resources {execution: default-resources}] [info] using 'utf-8' encoding copy filtered resources. [info] copying 5 resources [info] [compiler:compile {execution: default-compile}] [info] nothing compile - classes date [info] [aspectj:test-compile {execution: default}] [info] [resources:testresources {execution: default-testresources}] [info] using 'utf-8' encoding copy filtered resources. [info] copying 4 resources [info] [compiler:testcompile {execution: default-testcompile}] [info] not compiling test sources [info] [surefire:test {execution: default-test}] [info] tests skipped. [info] [gwt:compile {execution: gwtcompile}] [info] compiling module com.myproject [info] ------------------------------------------------------------------------ [error] build error [info] ------------------------------------------------------------------------ [info] command [[ /bin/sh -c /usr/lib/jvm/java-6-sun-1.6.0.24/jre/bin/java -xx:maxpermsize=256m -xmx512m -classpath /home/projects/myproject/trunk/src/main/java:/home/projects/myproject/trunk/target/generated-sources/java:/home/projects/myproject/trunk/src/main/aspect:/home/projects/myproject/trunk/src/main/resources:/home/projects/myproject/trunk/src/main/webapp/web-inf/classes:/root/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:/root/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar:/root/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.1/jcl-over-slf4j-1.6.1.jar:/root/.m2/repository/org/slf4j/jul-to-slf4j/1.6.1/jul-to-slf4j-1.6.1.jar:/root/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar:/root/.m2/repository/org/aspectj/aspectjrt/1.6.11.m1/aspectjrt-1.6.11.m1.jar:/root/.m2/repository/org/aspectj/aspectjweaver/1.6.11.m1/aspectjweaver-1.6.11.m1.jar:/root/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/root/.m2/repository/net/sf/flexjson/flexjson/2.0/flexjson-2.0.jar:/root/.m2/repository/org/springframework/spring-core/3.0.5.release/spring-core-3.0.5.release.jar:/root/.m2/repository/org/springframework/spring-asm/3.0.5.release/spring-asm-3.0.5.release.jar:/root/.m2/repository/org/springframework/spring-context/3.0.5.release/spring-context-3.0.5.release.jar:/root/.m2/repository/org/springframework/spring-aop/3.0.5.release/spring-aop-3.0.5.release.jar:/root/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/root/.m2/repository/org/springframework/spring-beans/3.0.5.release/spring-beans-3.0.5.release.jar:/root/.m2/repository/org/springframework/spring-expression/3.0.5.release/spring-expression-3.0.5.release.jar:/root/.m2/repository/org/springframework/spring-aspects/3.0.5.release/spring-aspects-3.0.5.release.jar:/root/.m2/repository/org/springframework/spring-context-support/3.0.5.release/spring-context-support-3.0.5.release.jar:/root/.m2/repository/org/springframework/spring-tx/3.0.5.release/spring-tx-3.0.5.release.jar:/root/.m2/repository/com/h2database/h2/1.3.148/h2-1.3.148.jar:/root/.m2/repository/mysql/mysql-connector-java/5.1.13/mysql-connector-java-5.1.13.jar:/root/.m2/repository/org/hibernate/hibernate-core/3.6.0.final/hibernate-core-3.6.0.final.jar:/root/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar:/root/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar:/root/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar:/root/.m2/repository/org/hibernate/hibernate-commons-annotations/3.2.0.final/hibernate-commons-annotations-3.2.0.final.jar:/root/.m2/repository/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.final/hibernate-jpa-2.0-api-1.0.0.final.jar:/root/.m2/repository/javax/transaction/jta/1.1/jta-1.1.jar:/root/.m2/repository/org/hibernate/hibernate-entitymanager/3.6.0.final/hibernate-entitymanager-3.6.0.final.jar:/root/.m2/repository/javassist/javassist/3.12.0.ga/javassist-3.12.0.ga.jar:/root/.m2/repository/org/hibernate/hibernate-validator/4.1.0.final/hibernate-validator-4.1.0.final.jar:/root/.m2/repository/javax/validation/validation-api/1.0.0.ga/validation-api-1.0.0.ga.jar:/root/.m2/repository/javax/validation/validation-api/1.0.0.ga/validation-api-1.0.0.ga-sources.jar:/root/.m2/repository/cglib/cglib-nodep/2.2/cglib-nodep-2.2.jar:/root/.m2/repository/org/springframework/spring-jdbc/3.0.5.release/spring-jdbc-3.0.5.release.jar:/root/.m2/repository/org/springframework/spring-orm/3.0.5.release/spring-orm-3.0.5.release.jar:/root/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar:/root/.m2/repository/commons-dbcp/commons-dbcp/1.3/commons-dbcp-1.3.jar:/root/.m2/repository/org/springframework/spring-web/3.0.5.release/spring-web-3.0.5.release.jar:/root/.m2/repository/org/springframework/spring-webmvc/3.0.5.release/spring-webmvc-3.0.5.release.jar:/root/.m2/repository/org/springframework/webflow/spring-js-resources/2.2.1.release/spring-js-resources-2.2.1.release.jar:/root/.m2/repository/commons-digester/commons-digester/2.0/commons-digester-2.0.jar:/root/.m2/repository/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar:/root/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar:/root/.m2/repository/javax/servlet/jstl/1.2/jstl-1.2.jar:/root/.m2/repository/javax/el/el-api/1.0/el-api-1.0.jar:/root/.m2/repository/joda-time/joda-time/1.6/joda-time-1.6.jar:/root/.m2/repository/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar:/root/.m2/repository/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar:/root/.m2/repository/com/sun/jersey/jersey-client/1.5/jersey-client-1.5.jar:/root/.m2/repository/com/sun/jersey/jersey-core/1.5/jersey-core-1.5.jar:/root/.m2/repository/org/json/json/20090211/json-20090211.jar:/root/.m2/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar:/home/projects/myproject/trunk/lib/gwt-incubator.jar:/root/.m2/repository/com/google/gwt/inject/gin/1.5.0/gin-1.5.0.jar:/root/.m2/repository/com/google/inject/guice/3.0/guice-3.0.jar:/root/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar:/root/.m2/repository/com/google/inject/extensions/guice-assistedinject/3.0/guice-assistedinject-3.0.jar:/root/.m2/repository/xalan/xalan/2.7.1/xalan-2.7.1.jar:/root/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar:/root/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar:/root/.m2/repository/com/mysema/querydsl/querydsl-apt/2.1.2/querydsl-apt-2.1.2.jar:/root/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar:/root/.m2/repository/com/mysema/querydsl/querydsl-core/2.1.2/querydsl-core-2.1.2.jar:/root/.m2/repository/net/sourceforge/collections/collections-generic/4.01/collections-generic-4.01.jar:/root/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar:/root/.m2/repository/com/mysema/commons/mysema-commons-lang/0.2.1/mysema-commons-lang-0.2.1.jar:/root/.m2/repository/com/mysema/codegen/codegen/0.3.1/codegen-0.3.1.jar:/root/.m2/repository/net/sourceforge/findbugs/jsr305/1.3.2/jsr305-1.3.2.jar:/root/.m2/repository/net/sourceforge/findbugs/annotations/1.3.2/annotations-1.3.2.jar:/root/.m2/repository/com/mysema/querydsl/querydsl-jpa/2.1.2/querydsl-jpa-2.1.2.jar:/root/.m2/repository/cglib/cglib/2.2/cglib-2.2.jar:/root/.m2/repository/asm/asm/3.1/asm-3.1.jar:/root/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/root/.m2/repository/javax/mail/mail/1.4.4/mail-1.4.4.jar:/root/.m2/repository/org/mindrot/jbcrypt/0.3m/jbcrypt-0.3m.jar:/root/.m2/repository/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar:/root/.m2/repository/com/google/gwt/gwt-dev/2.3.0/gwt-dev-2.3.0.jar com.google.gwt.dev.compiler -gen /home/projects/myproject/trunk/target/.generated -loglevel info -style obf -war /home/projects/myproject/trunk/target/myproject-0.1.0.build-snapshot -localworkers 1 com.myproject ]] failed status 137} 
  • machine debian 6.0
  • java version "1.6.0_24", java(tm) se runtime environment (build 1.6.0_24-b07), java hotspot(tm) 64-bit server vm (build 19.1-b02, mixed mode)
  • maven compiler plugin excerpt pom.xml: 1.6 1.6

has faced same problem? thank in advance.

i able solve problem adding swap file system (there had no swap @ all).

for more details reason of problem here .

this key fragment:

in case problem linux kernel running out of virtual memory. kernel oom (out of memory) killer stepped in , killed (un)deserving victim/runaway process happened gwt/maven build process.

to determine if case can use {{dmesg}} command linux shell. somewhere towards end of output there line similar

{code} out of memory: kill process 946 (daemon) score 1073527 or child {code}

for reference status code 137 (128 + 9) typically means (can differ between flavours of unix). process terminated receipt of signal. in case signal 9 sigkill , unblockable kill.

if case underlying machine/os needs more virtual memory. can added either adding physical memory or swap space appropriate.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -