java - Sonar runner is failing - Error while creating file [90062-167] -


i running in issues when running sonar server (on remote dev machine) abd trying run sonar runner on machine on simple project.

i dont understand error message, of course can see cant connect database dont understand why trying create file or why empty file path or not

please me understand error message?

 > sonar runner 2.2 java 1.7.0_15 oracle corporation (32-bit) windows 7     > 6.1 x86 info: runner configuration file: c:\users\...\workspace\java-sonar-runner-si     > mple\sonar-runner-2.2\bin\..\conf\sonar-runner.properties info:     > project configuration file:     > c:\users\...\workspace\java-sonar-runner-s     > imple\sonar-runner-2.2\bin\sonar-project.properties info: default     > locale: "en_gb", source code encoding: "utf-8" info: work directory:     > c:\users\...\workspace\java-sonar-runner-simple\sonar-     > runner-2.2\bin\.sonar info: sonar server 3.2 10:59:08.438 warn  - h2     > database should used evaluation purpose 10:59:08.441 info      > - create jdbc datasource url jdbc:h2://169.168.66.20:9092/ sonar info:     > ------------------------------------------------------------------------ info: execution failure info:     > ------------------------------------------------------------------------ total time: 12.333s final memory: 2m/15m info:     > ------------------------------------------------------------------------ error: error during sonar runner execution error: unable execute     > sonar error: caused by: fail connect database error: caused by:     > cannot create poolableconnectionfactory (error while creating file     > "//" [90062-167]) error: caused by: error while creating file "//"     > [90062-167] error: error: see full stack trace of errors,     > re-run sonar runner - e switch. error: re-run sonar runner     > using -x switch enable full debug logging. 

sonar properties file

#-------------------------------------------------------- # file must contain iso 8859-1 characters # see http://docs.oracle.com/javase/1.5.0/docs/api/java/util/properties.html#load(java.io.inputstream) # # use environment variable, use following syntax :  ${env:name_of_env_variable} # example : #   sonar.jdbc.url: ${env:sonar_jdbc_url} # # # see file conf/wrapper.conf jvm advanced settings #---------------------------------------------------------   #--------------------------------------------------------- # web settings - standalone mode # these settings ignored when war file deployed jee server. #--------------------------------------------------------- # listen host/port , context path (for example / or /sonar). default values 0.0.0.0:9000/. #sonar.web.host:                           0.0.0.0 #sonar.web.port:                           9000 #sonar.web.context:                        /  # log http requests. deactivated default. #sonar.web.jettyrequestlogs: ../../logs/jetty-yyyy_mm_dd.request.log  #----------------------------------------------------------------------- # database # # important : embedded database h2 used default.  # recommended tests only. please use external database # production environment (mysql, oracle, postgresql, sqlserver) # #-----------------------------------------------------------------------  #----- credentials # permissions create tables , indexes must granted jdbc user. # schema must created first. sonar.jdbc.username:                       sonar sonar.jdbc.password:                       sonar  #----- embedded database h2 # note : not accept connections remote hosts, # sonar server , maven plugin must executed on same host.  # comment following line deactivate default embedded database. sonar.jdbc.url:                            jdbc:h2:tcp://localhost:9092/sonar sonar.jdbc.driverclassname:                org.h2.driver  # directory containing h2 database files. default it's /data directory in sonar installation. #sonar.embeddeddatabase.datadir: # h2 embedded database server listening port, defaults 9092 sonar.embeddeddatabase.port:               9092   #----- mysql 5.x/6.x # comment embedded database , uncomment following line use mysql #sonar.jdbc.url:                            jdbc:mysql://localhost:3306/sonar?useunicode=true&characterencoding=utf8&rewritebatchedstatements=true  # optional properties #sonar.jdbc.driverclassname:                com.mysql.jdbc.driver   #----- oracle 10g/11g # connect oracle database : # # - it's recommended use latest version of jdbc driver (either ojdbc6.jar java 6 or ojdbc5.jar java 5). #   download in http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html # - copy driver directory extensions/jdbc-driver/oracle/ # - comment embedded database , uncomment following line : #sonar.jdbc.url:                            jdbc:oracle:thin:@localhost/xe  # optional properties #sonar.jdbc.driverclassname:                oracle.jdbc.oracledriver  # uncomment following property if oracle account has permissions access multiple schemas, # example sonar schemas different versions. in case, use same property during project analysis # (-dsonar.jdbc.schema=<schema>) #sonar.jdbc.schema:                         sonar   #----- postgresql 8.x/9.x # comment embedded database , uncomment following property use postgresql #sonar.jdbc.url:                            jdbc:postgresql://localhost/sonar  # optional properties #sonar.jdbc.driverclassname:                org.postgresql.driver  # uncomment following property if postgresql account has permissions access multiple schemas, # example sonar schemas different versions. in case, use same property during project analysis # (-dsonar.jdbc.schema=<schema>) #sonar.jdbc.schema:                         public   #----- microsoft sqlserver # jtds open source driver available in extensions/jdbc-driver/mssql. more details on http://jtds.sourceforge.net #sonar.jdbc.url:                            jdbc:jtds:sqlserver://localhost/sonar;selectmethod=cursor  # optional properties #sonar.jdbc.driverclassname:                net.sourceforge.jtds.jdbc.driver   #----- connection pool settings sonar.jdbc.maxactive:                      20 sonar.jdbc.maxidle:                        5 sonar.jdbc.minidle:                        2 sonar.jdbc.maxwait:                        5000 sonar.jdbc.minevictableidletimemillis:     600000 sonar.jdbc.timebetweenevictionrunsmillis:  30000 
#--------------------------------------------------------- # update center #---------------------------------------------------------  # update center requires internet connection request http://update.sonarsource.org # activated default: #sonar.updatecenter.activate=true  # http proxy (default none) #http.proxyhost= #http.proxyport=  # nt domain name if ntlm proxy used #http.auth.ntlm.domain=  # socks proxy (default none) #socksproxyhost= #socksproxyport=  # proxy authentication. 2 following properties used http , socks proxies. #http.proxyuser= #http.proxypassword=  #--------------------------------------------------------- # notifications #---------------------------------------------------------  # delay (in seconds) between processing of notification queue sonar.notifications.delay=60 

full error log

>  > info: > ------------------------------------------------------------------------ info: execution failure info: > ------------------------------------------------------------------------ total time: 6.372s final memory: 2m/15m info: > ------------------------------------------------------------------------ error: error during sonar runner execution > org.sonar.runner.impl.runnerexception: unable execute sonar >         @ org.sonar.runner.impl.batchlauncher$1.delegateexecution(batchlauncher > .java:79) >         @ org.sonar.runner.impl.batchlauncher$1.run(batchlauncher.java:63) >         @ java.security.accesscontroller.doprivileged(native method) >         @ org.sonar.runner.impl.batchlauncher.doexecute(batchlauncher.java:57) >         @ org.sonar.runner.impl.batchlauncher.execute(batchlauncher.java:50) >         @ org.sonar.runner.api.embeddedrunner.doexecute(embeddedrunner.java:71) >  >         @ org.sonar.runner.api.runner.execute(runner.java:89) >         @ org.sonar.runner.main.executetask(main.java:70) >         @ org.sonar.runner.main.execute(main.java:59) >         @ org.sonar.runner.main.main(main.java:41) caused by: java.lang.illegalstateexception: fail connect database >         @ org.sonar.core.persistence.defaultdatabase.start(defaultdatabase.java > :72) >         @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) >         @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl. > java:57) >         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodacces > sorimpl.java:43) >         @ java.lang.reflect.method.invoke(method.java:601) >         @ org.picocontainer.lifecycle.reflectionlifecyclestrategy.invokemethod( > reflectionlifecyclestrategy.java:110) >         @ org.picocontainer.lifecycle.reflectionlifecyclestrategy.start(reflect > ionlifecyclestrategy.java:89) >         @ org.picocontainer.injectors.abstractinjectionfactory$lifecycleadapter > .start(abstractinjectionfactory.java:84) >         @ org.picocontainer.behaviors.abstractbehavior.start(abstractbehavior.j > ava:169) >         @ org.picocontainer.behaviors.stored$realcomponentlifecycle.start(store > d.java:132) >         @ org.picocontainer.behaviors.stored.start(stored.java:110) >         @ org.picocontainer.defaultpicocontainer.potentiallystartadapter(defaul > tpicocontainer.java:1009) >         @ org.picocontainer.defaultpicocontainer.startadapters(defaultpicoconta > iner.java:1002) >         @ org.picocontainer.defaultpicocontainer.start(defaultpicocontainer.jav > a:760) >         @ org.sonar.api.platform.componentcontainer.startcomponents(componentco > ntainer.java:70) >         @ org.sonar.batch.bootstrap.module.start(module.java:82) >         @ org.sonar.batch.bootstrapper.batch.startbatch(batch.java:73) >         @ org.sonar.batch.bootstrapper.batch.execute(batch.java:60) >         @ org.sonar.runner.batch.isolatedlauncher.execute(isolatedlauncher.java > :45) >         @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) >         @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl. > java:57) >         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodacces > sorimpl.java:43) >         @ java.lang.reflect.method.invoke(method.java:601) >         @ org.sonar.runner.impl.batchlauncher$1.delegateexecution(batchlauncher > .java:75) >         ... 9 more caused by: org.apache.commons.dbcp.sqlnestedexception: cannot create poolablecon > nectionfactory (error while creating file "//" [90062-167]) >         @ org.apache.commons.dbcp.basicdatasource.createpoolableconnectionfacto > ry(basicdatasource.java:1549) >         @ org.apache.commons.dbcp.basicdatasource.createdatasource(basicdatasou > rce.java:1388) >         @ org.apache.commons.dbcp.basicdatasource.getlogwriter(basicdatasource. > java:1098) >         @ org.apache.commons.dbcp.basicdatasourcefactory.createdatasource(basic > datasourcefactory.java:350) >         @ org.sonar.core.persistence.defaultdatabase.initdatasource(defaultdata > base.java:122) >         @ org.sonar.core.persistence.defaultdatabase.start(defaultdatabase.java > :67) >         ... 32 more caused by: org.h2.jdbc.jdbcsqlexception: error while creating file "//" [90062-1 67] >         @ org.h2.message.dbexception.getjdbcsqlexception(dbexception.java:329) >         @ org.h2.message.dbexception.get(dbexception.java:169) >         @ org.h2.message.dbexception.get(dbexception.java:146) >         @ org.h2.store.fs.filepathdisk.createdirectory(filepathdisk.java:247) >         @ org.h2.store.fs.fileutils.createdirectory(fileutils.java:46) >         @ org.h2.store.fs.fileutils.createdirectories(fileutils.java:300) >         @ org.h2.store.fs.fileutils.createdirectories(fileutils.java:299) >         @ org.h2.store.filelock.lockfile(filelock.java:326) >         @ org.h2.store.filelock.lock(filelock.java:128) >         @ org.h2.engine.database.open(database.java:542) >         @ org.h2.engine.database.opendatabase(database.java:222) >         @ org.h2.engine.database.<init>(database.java:217) >         @ org.h2.engine.engine.opensession(engine.java:56) >         @ org.h2.engine.engine.opensession(engine.java:159) >         @ org.h2.engine.engine.createsessionandvalidate(engine.java:138) >         @ org.h2.engine.engine.createsession(engine.java:121) >         @ org.h2.engine.engine.createsession(engine.java:28) >         @ org.h2.engine.sessionremote.connectembeddedorserver(sessionremote.jav > a:305) >         @ org.h2.jdbc.jdbcconnection.<init>(jdbcconnection.java:110) >         @ org.h2.jdbc.jdbcconnection.<init>(jdbcconnection.java:94) >         @ org.h2.driver.connect(driver.java:72) >         @ org.apache.commons.dbcp.driverconnectionfactory.createconnection(driv > erconnectionfactory.java:38) >         @ org.apache.commons.dbcp.poolableconnectionfactory.makeobject(poolable > connectionfactory.java:582) >         @ org.apache.commons.dbcp.basicdatasource.validateconnectionfactory(bas > icdatasource.java:1556) >         @ org.apache.commons.dbcp.basicdatasource.createpoolableconnectionfacto > ry(basicdatasource.java:1545) >         ... 37 more 

do have access sonar.config file since i'd interested see h2 database settings. h2 going create files part of initialisation perhaps there file write permission issues config path.

i'd suggesting editing the

 sonar.embeddeddatabase.datadir 

value , point folder location know writable. have sonar package installed?


Comments

Post a Comment

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

ios - Can NSManagedObject conform to NSCoding -