Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/397.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 可以在64位系统CentOS上运行声纳吗?_Java_Centos_Sonarqube - Fatal编程技术网

Java 可以在64位系统CentOS上运行声纳吗?

Java 可以在64位系统CentOS上运行声纳吗?,java,centos,sonarqube,Java,Centos,Sonarqube,我刚刚在CentOS上安装了Sonar 3.2(uname-a=Linux mydomain.com 3.2.20-1.29.6.amzn1.x86_64)。我正在使用64位版本的Java $ java -version java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.3) (amazon-52.1.11.3.45.amzn1-x86_64) 我想将Sonar作为Jenkins(build integr

我刚刚在CentOS上安装了Sonar 3.2(uname-a=Linux mydomain.com 3.2.20-1.29.6.amzn1.x86_64)。我正在使用64位版本的Java

$ java -version 
java version "1.6.0_24" 
OpenJDK Runtime Environment (IcedTea6 1.11.3) (amazon-52.1.11.3.45.amzn1-x86_64) 
我想将Sonar作为Jenkins(build integration server)的一部分进行安装,但在尝试运行它时,它会反复出现“Java运行时环境检测到致命错误”错误。我说不出具体的原因。Sonar是否使用64位JVM运行?如何进一步排除故障

下面是我运行的命令和我得到的最终错误

[myuser@mydomain workspace]$ sudo /usr/local/apache-maven/apache-maven-3.0.4/bin/mvn -f "/var/lib/jenkins/jobs/Sales Client/workspace/pom.xml" -e -B sonar:sonar -Dsonar.jdbc.driver=com.mysql.jdbc.Driver -Dsonar.jdbc.url=jdbc:mysql://localhost:3306/sonar -Dsonar.host.url=http://localhost:9000
[INFO] Error stacktraces are turned on. 
[INFO] Scanning for projects... 
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.mainco.subco:myclient:war:1.0 
[WARNING] 'dependencies.dependency.systemPath' for quickbase:quickbase:jar should not point at files within the project directory, ${project.basedir}/src/main/webapp/WEB-INF/lib/quickbase.jar will be unresolvable by dependent projects @ line 75, column 16 
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. 
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. 
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------ 
[INFO] Building myclient 1.0 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] --- sonar-maven-plugin:2.0:sonar (default-cli) @ myclient --- 
[INFO] Sonar version: 3.2 
[INFO] [14:43:11.995] Create JDBC datasource to url jdbc:mysql://localhost:3306/sonar 
[INFO] [14:43:14.081] Initializing Hibernate 
[INFO] [14:43:18.186] -------------  Analyzing myclient 
[INFO] [14:43:19.142] Selected quality profile : [name=Sonar way,language=java] 
[INFO] [14:43:19.409] Configure maven plugins... 
[INFO] [14:43:19.598] Compare to previous analysis (2012-09-14) 
[INFO] [14:43:19.680] Compare over 5 days (2012-09-09, analysis of 2012-09-14 11:35:22.0) 
[INFO] [14:43:19.719] Compare over 30 days (2012-08-15, analysis of 2012-09-14 11:35:22.0) 
[INFO] [14:43:19.857] Deleting /var/lib/jenkins/jobs/Sales Client/workspace/target/jacoco.exec 
[INFO] [14:43:20.042] JaCoCo agent (version 0.5.8.201207111220) extracted: /tmp/jacocoagent5605291050104287245.jar 
[INFO] [14:43:20.043] JVM options: -javaagent:/tmp/jacocoagent5605291050104287245.jar=destfile=target/jacoco.exec,excludes=*_javassist_* 
[INFO] [14:43:20.072] Initializer FindbugsMavenInitializer... 
[INFO] [14:43:20.078] Initializer FindbugsMavenInitializer done: 6 ms 
[INFO] [14:43:20.078] Execute maven plugin maven-surefire-plugin... 
[INFO] [14:43:20.078] Execute org.apache.maven.plugins:maven-surefire-plugin:2.10:test... 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------ 
[INFO] Building myclient 1.0 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-cli) @ myclient --- 
[INFO] Surefire report directory: /var/lib/jenkins/jobs/Sales Client/workspace/target/surefire-reports 

------------------------------------------------------- 
 T E S T S 
------------------------------------------------------- 
Running org.mainco.subco.Sales.ProcessOrdersWorkerTest 
0    [main] DEBUG org.jboss.logging  - Logging Provider: org.jboss.logging.Log4jLoggerProvider 
182  [main] DEBUG org.hibernate.type.BasicTypeRegistry  - Adding type registration boolean -> org.hibernate.type.BooleanType@789934d4 
183  [main] DEBUG org.hibernate.type.BasicTypeRegistry  - Adding type registration boolean -> org.hibernate.type.BooleanType@789934d4 
... 
8428 [main] DEBUG org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory  - Setting dialect [org.hibernate.dialect.HSQLDialect] 
8428 [main] DEBUG org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory  - Setting dialect [org.hibernate.dialect.HSQLDialect] 
# 
# A fatal error has been detected by the Java Runtime Environment: 
# 
#  SIGSEGV (0xb) at pc=0x00007f65ec8627e7, pid=8357, tid=140075590440704 
# 
# JRE version: 6.0_31-b04 
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.6-b01 mixed mode linux-amd64 compressed oops) 
# Problematic frame: 
# V  [libjvm.so+0x7a27e7]  ContiguousSpace::prepare_for_compaction(CompactPoint*)+0x227 
# 
# An error report file with more information is saved as: 
# /var/lib/jenkins/jobs/Sales Client/workspace/hs_err_pid8357.log 
# 
# If you would like to submit a bug report, please visit: 
#   http://java.sun.com/webapps/bugreport/crash.jsp    
# 
/bin/sh: line 1:  8357 Aborted                 /usr/java/jdk1.6.0_31/jre/bin/java '-javaagent:/tmp/jacocoagent5605291050104287245.jar=destfile=target/jacoco.exec,excludes=*_javassist_*' -jar '/var/lib/jenkins/jobs/Sales Client/workspace/target/surefire/surefirebooter9057179906457468987.jar' '/var/lib/jenkins/jobs/Sales Client/workspace/target/surefire/surefire9129544007090882593tmp' '/var/lib/jenkins/jobs/Sales Client/workspace/target/surefire/surefire1194130731343095454tmp' 

Results : 

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

这对我有用,在这台机器上运行Sonar和Jenkins:

$uname-a Linux{HOSTNAME}2.6.18-274.12.1.el5#1 SMP周二11月29日13:37:46 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

$java-版本 java版本“1.6.0_20” OpenJDK运行时环境(IcedTea6 1.9.10)(rhel-1.23.1.9.10.el5_7-x86_64) OpenJDK 64位服务器虚拟机(构建19.0-b09,混合模式)


我们运行的是ant构建,而不是maven。我们将测试和覆盖范围作为蚂蚁目标运行,并将声纳作为一个单独的目标加载,而不是试图通过声纳运行测试。

我想这是由于。

是的,它在Centos/Redhat 64位中运行良好。我有一个服务器在家运行声纳和詹金斯没有任何问题。您正在使用的可能是centos/java版本的混合。您可以尝试将JDK更新到最新版本吗?请注意,用于运行maven(/usr/java/jdk1.6.0_31)的JDK与
中显示的不一样,其中
命令(openjdk 1.6.0_24)My$java_HOME环境变量设置为“1.6.0_24”,所以Sonar在哪里查找它正在运行的java版本?好的,谢谢。如果有的话,您为JAVA_OPTS设置了什么?没有全局设置,不同的项目在Makefile或build.xml中设置了JAVA选项。我们是一个混合语言商店,有一些混合语言,通常是java添加到C++环境中的应用程序。因此,MaFaX文件可以同时构建C++和启动ANT来构建java。选项根据正在建造的建筑的需要而有所不同。这是事实。升级到Sonar 3.2.1解决了这个问题。