java.lang.reflect.InvocationTargetException: null

JFrog JIRA | Jonathan Martens | 3 years ago
  1. 0

    When following the upgrade procedure for standalone installations as detailed in http://www.jfrog.com/confluence/display/RTF/Upgrading+Artifactory#UpgradingArtifactory-Upgradingfromv3.xtotheLatestVersion Artifactory will not start after an update. I find the following message in the log files: {code}2014-01-14 12:04:02,246 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigList ener:90) - Application could not be initialized: Table/View 'ARTIFACTORY_SERVERS ' does not exist. java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_10] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[na:1.7.0_10] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou rce) ~[na:1.7.0_10] at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[na:1.7.0_ 10] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.confi gure(ArtifactoryContextConfigListener.java:236) ~[artifactory-web-application-3. 1.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.acces s$1(ArtifactoryContextConfigListener.java:174) ~[artifactory-web-application-3.1 .0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run (ArtifactoryContextConfigListener.java:86) ~[artifactory-web-application-3.1.0.j ar:na] Caused by: org.springframework.beans.factory.BeanInitializationException: Failed to initialize bean 'org.artifactory.state.model.ArtifactoryStateManager'.; nest ed exception is org.artifactory.storage.StorageException: Failed to load list of Artifactory servers at org.artifactory.spring.ArtifactoryApplicationContext.refresh(Artifact oryApplicationContext.java:217) ~[artifactory-core-3.1.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.<init>(Artifacto ryApplicationContext.java:110) ~[artifactory-core-3.1.0.jar:na] ... 7 common frames omitted Caused by: org.artifactory.storage.StorageException: Failed to load list of Arti factory servers at org.artifactory.storage.db.servers.service.ArtifactoryServersServiceI mpl.getAllArtifactoryServers(ArtifactoryServersServiceImpl.java:29) ~[artifactor y-storage-db-3.1.0.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7. 0_10] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7. 0_10] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na: 1.7.0_10] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_10] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti on(AopUtils.java:317) ~[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami cAopProxy.java:198) ~[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at $Proxy22.getAllArtifactoryServers(Unknown Source) ~[na:na] at org.artifactory.storage.db.servers.service.ArtifactoryServersCommonSe rviceImpl.getActiveMembers(ArtifactoryServersCommonServiceImpl.java:97) ~[artifa ctory-core-3.1.0.jar:na] at org.artifactory.storage.db.servers.service.ArtifactoryServersCommonSe rviceImpl.getOtherActiveMembers(ArtifactoryServersCommonServiceImpl.java:92) ~[a rtifactory-core-3.1.0.jar:na] at org.artifactory.addon.OssAddonsManager.verifyAllArtifactoryServers(Os sAddonsManager.java:160) ~[artifactory-common-3.1.0.jar:na] at org.artifactory.state.ArtifactoryStateManagerImpl.init(ArtifactorySta teManagerImpl.java:47) ~[artifactory-core-3.1.0.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7. 0_10] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7. 0_10] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na: 1.7.0_10] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_10] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti on(AopUtils.java:317) ~[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo inpoint(ReflectiveMethodInvocation.java:183) ~[spring-aop-3.2.0.RELEASE.jar:3.2. 0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:150) ~[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEAS E] at org.springframework.transaction.interceptor.TransactionInterceptor.in voke(TransactionInterceptor.java:110) ~[spring-tx-3.2.0.RELEASE.jar:3.2.0.RELEAS E] at org.artifactory.storage.fs.lock.aop.LockingAdvice.invoke(LockingAdvic e.java:64) ~[artifactory-storage-common-3.1.0.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:172) ~[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEAS E] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami cAopProxy.java:204) ~[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at $Proxy56.init(Unknown Source) ~[na:na] at org.artifactory.spring.ArtifactoryApplicationContext.refresh(Artifact oryApplicationContext.java:215) ~[artifactory-core-3.1.0.jar:na] ... 8 common frames omitted Caused by: java.sql.SQLSyntaxErrorException: Table/View 'ARTIFACTORY_SERVERS' do es not exist. at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unkn own Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source ) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException (Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Un known Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown So urce) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown So urce) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source) ~[d erby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedStatement.executeQuery(Unknown Source ) ~[derby-10.9.1.0.jar:na] at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingSt atement.java:208) ~[commons-dbcp-1.4.jar:1.4] at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingSt atement.java:208) ~[commons-dbcp-1.4.jar:1.4] at org.artifactory.storage.db.util.JdbcHelper.executeSelect(JdbcHelper.j ava:85) ~[artifactory-storage-db-3.1.0.jar:na] at org.artifactory.storage.db.servers.dao.ArtifactoryServersDao.getAllAr tifactoryServers(ArtifactoryServersDao.java:84) ~[artifactory-storage-db-3.1.0.j ar:na] at org.artifactory.storage.db.servers.service.ArtifactoryServersServiceI mpl.getAllArtifactoryServers(ArtifactoryServersServiceImpl.java:27) ~[artifactor y-storage-db-3.1.0.jar:na] ... 32 common frames omitted Caused by: org.apache.derby.impl.jdbc.EmbedSQLException: Table/View 'ARTIFACTORY _SERVERS' does not exist. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknow n Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransport AcrossDRDA(Unknown Source) ~[derby-10.9.1.0.jar:na] ... 45 common frames omitted Caused by: org.apache.derby.iapi.error.StandardException: Table/View 'ARTIFACTOR Y_SERVERS' does not exist. at org.apache.derby.iapi.error.StandardException.newException(Unknown So urce) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(U nknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unkn own Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Sourc e) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown So urce) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source) ~[ derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepa reInternalStatement(Unknown Source) ~[derby-10.9.1.0.jar:na] ... 39 common frames omitted{code} This makes me believe that the internal database upgrade at startup is failing. I have managed to revert the changes and can still run version 3.0.4 but I do not think this is expected behavior.

    JFrog JIRA | 3 years ago | Jonathan Martens
    java.lang.reflect.InvocationTargetException: null
  2. 0

    When following the upgrade procedure for standalone installations as detailed in http://www.jfrog.com/confluence/display/RTF/Upgrading+Artifactory#UpgradingArtifactory-Upgradingfromv3.xtotheLatestVersion Artifactory will not start after an update. I find the following message in the log files: {code}2014-01-14 12:04:02,246 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigList ener:90) - Application could not be initialized: Table/View 'ARTIFACTORY_SERVERS ' does not exist. java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_10] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[na:1.7.0_10] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou rce) ~[na:1.7.0_10] at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[na:1.7.0_ 10] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.confi gure(ArtifactoryContextConfigListener.java:236) ~[artifactory-web-application-3. 1.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.acces s$1(ArtifactoryContextConfigListener.java:174) ~[artifactory-web-application-3.1 .0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run (ArtifactoryContextConfigListener.java:86) ~[artifactory-web-application-3.1.0.j ar:na] Caused by: org.springframework.beans.factory.BeanInitializationException: Failed to initialize bean 'org.artifactory.state.model.ArtifactoryStateManager'.; nest ed exception is org.artifactory.storage.StorageException: Failed to load list of Artifactory servers at org.artifactory.spring.ArtifactoryApplicationContext.refresh(Artifact oryApplicationContext.java:217) ~[artifactory-core-3.1.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.<init>(Artifacto ryApplicationContext.java:110) ~[artifactory-core-3.1.0.jar:na] ... 7 common frames omitted Caused by: org.artifactory.storage.StorageException: Failed to load list of Arti factory servers at org.artifactory.storage.db.servers.service.ArtifactoryServersServiceI mpl.getAllArtifactoryServers(ArtifactoryServersServiceImpl.java:29) ~[artifactor y-storage-db-3.1.0.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7. 0_10] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7. 0_10] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na: 1.7.0_10] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_10] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti on(AopUtils.java:317) ~[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami cAopProxy.java:198) ~[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at $Proxy22.getAllArtifactoryServers(Unknown Source) ~[na:na] at org.artifactory.storage.db.servers.service.ArtifactoryServersCommonSe rviceImpl.getActiveMembers(ArtifactoryServersCommonServiceImpl.java:97) ~[artifa ctory-core-3.1.0.jar:na] at org.artifactory.storage.db.servers.service.ArtifactoryServersCommonSe rviceImpl.getOtherActiveMembers(ArtifactoryServersCommonServiceImpl.java:92) ~[a rtifactory-core-3.1.0.jar:na] at org.artifactory.addon.OssAddonsManager.verifyAllArtifactoryServers(Os sAddonsManager.java:160) ~[artifactory-common-3.1.0.jar:na] at org.artifactory.state.ArtifactoryStateManagerImpl.init(ArtifactorySta teManagerImpl.java:47) ~[artifactory-core-3.1.0.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7. 0_10] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7. 0_10] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na: 1.7.0_10] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_10] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti on(AopUtils.java:317) ~[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo inpoint(ReflectiveMethodInvocation.java:183) ~[spring-aop-3.2.0.RELEASE.jar:3.2. 0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:150) ~[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEAS E] at org.springframework.transaction.interceptor.TransactionInterceptor.in voke(TransactionInterceptor.java:110) ~[spring-tx-3.2.0.RELEASE.jar:3.2.0.RELEAS E] at org.artifactory.storage.fs.lock.aop.LockingAdvice.invoke(LockingAdvic e.java:64) ~[artifactory-storage-common-3.1.0.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:172) ~[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEAS E] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami cAopProxy.java:204) ~[spring-aop-3.2.0.RELEASE.jar:3.2.0.RELEASE] at $Proxy56.init(Unknown Source) ~[na:na] at org.artifactory.spring.ArtifactoryApplicationContext.refresh(Artifact oryApplicationContext.java:215) ~[artifactory-core-3.1.0.jar:na] ... 8 common frames omitted Caused by: java.sql.SQLSyntaxErrorException: Table/View 'ARTIFACTORY_SERVERS' do es not exist. at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unkn own Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source ) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException (Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Un known Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown So urce) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown So urce) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source) ~[d erby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedStatement.executeQuery(Unknown Source ) ~[derby-10.9.1.0.jar:na] at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingSt atement.java:208) ~[commons-dbcp-1.4.jar:1.4] at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingSt atement.java:208) ~[commons-dbcp-1.4.jar:1.4] at org.artifactory.storage.db.util.JdbcHelper.executeSelect(JdbcHelper.j ava:85) ~[artifactory-storage-db-3.1.0.jar:na] at org.artifactory.storage.db.servers.dao.ArtifactoryServersDao.getAllAr tifactoryServers(ArtifactoryServersDao.java:84) ~[artifactory-storage-db-3.1.0.j ar:na] at org.artifactory.storage.db.servers.service.ArtifactoryServersServiceI mpl.getAllArtifactoryServers(ArtifactoryServersServiceImpl.java:27) ~[artifactor y-storage-db-3.1.0.jar:na] ... 32 common frames omitted Caused by: org.apache.derby.impl.jdbc.EmbedSQLException: Table/View 'ARTIFACTORY _SERVERS' does not exist. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknow n Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransport AcrossDRDA(Unknown Source) ~[derby-10.9.1.0.jar:na] ... 45 common frames omitted Caused by: org.apache.derby.iapi.error.StandardException: Table/View 'ARTIFACTOR Y_SERVERS' does not exist. at org.apache.derby.iapi.error.StandardException.newException(Unknown So urce) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(U nknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unkn own Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Sourc e) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown So urce) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source) ~[ derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepa reInternalStatement(Unknown Source) ~[derby-10.9.1.0.jar:na] ... 39 common frames omitted{code} This makes me believe that the internal database upgrade at startup is failing. I have managed to revert the changes and can still run version 3.0.4 but I do not think this is expected behavior.

    JFrog JIRA | 3 years ago | Jonathan Martens
    java.lang.reflect.InvocationTargetException: null
  3. 0

    Issue 7810 in selenium: Firefox showing a blank page and error appearing in eclipse

    Google Groups | 2 years ago | sele...@googlecode.com
    testpackage.FirstTestNG
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issue 4085 in selenium: Could not start a new session on firefox 10.0.5

    Google Groups | 4 years ago | sele...@googlecode.com
    driver.version: unknown
  6. 0

    Issue 7068 in selenium: RemoteWebDriver shows Linux not supported with safari

    Google Groups | 3 years ago | sele...@googlecode.com
    driver.version: unknown

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.reflect.InvocationTargetException

      null

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
    2. Java RT
      NativeConstructorAccessorImpl.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[na:1.7.0_10]
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      2 frames