java.lang.reflect.InvocationTargetException: null

JFrog JIRA | Fredrik Elestedt | 2 years ago
  1. 0

    I have setup a working 3.7 Pro Stand-Alone installation. I then proceed to upgrade it to 3.8 following the instructions on this page: https://www.jfrog.com/confluence/display/RTF/Upgrading+Artifactory (under 'Running as Standalone Installation). When I start Artifactory again, I am greeted with the following log: {code} 2015-06-04 13:28:03,172 [art-init] [INFO ] (o.a.w.s.ArtifactoryContextConfigListener:283) - _ _ __ _ _____ /\ | | (_)/ _| | | | __ \ / \ _ __| |_ _| |_ __ _ ___| |_ ___ _ __ _ _ | |__) | __ ___ / /\ \ | '__| __| | _/ _` |/ __| __/ _ \| '__| | | | | ___/ '__/ _ \ / ____ \| | | |_| | || (_| | (__| || (_) | | | |_| | | | | | | (_) | /_/ \_\_| \__|_|_| \__,_|\___|\__\___/|_| \__, | |_| |_| \___/ Version: 3.8.0 __/ | Revision: 30190 |___/ Artifactory Home: '/cm/artifactory/current' 2015-06-04 13:28:03,187 [art-init] [WARN ] (o.a.f.l.ArtifactoryLockFile:63) - Found existing lock file. Artifactory was not shutdown properly. [/cm/artifactory/current/data/.lock] 2015-06-04 13:28:03,462 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:209) - Refreshing Artifactory: startup date [Thu Jun 04 13:28:03 CEST 2015]; root of context hierarchy 2015-06-04 13:28:07,787 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:184) - Database: Apache Derby 10.9.1.0 - (1344872). Driver: Apache Derby Embedded JDBC Driver 10.9.1.0 - (1344872) 2015-06-04 13:28:07,788 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:186) - Connection URL: jdbc:derby:/cm/artifactory/current/data/derby 2015-06-04 13:28:08,459 [art-init] [WARN ] (o.a.a.LicenseProvider:81) - License file does not exist 2015-06-04 13:28:11,735 [art-init] [INFO ] (o.a.s.ArtifactorySchedulerFactoryBean:647) - Starting Quartz Scheduler now 2015-06-04 13:28:11,760 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:216) - Artifactory context starting up... 2015-06-04 13:28:11,811 [art-init] [WARN ] (o.a.v.ArtifactoryVersionReader:82) - Closest matched version: 3.7.0 2015-06-04 13:28:11,818 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigListener:96) - Application could not be initialized: Found invalid license, reverting conversions and stopping startup java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_45] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_45] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_45] at java.lang.reflect.Constructor.newInstance(Constructor.java:422) ~[na:1.8.0_45] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:220) ~[artifactory-web-application-3.8.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.access$1(ArtifactoryContextConfigListener.java:180) ~[artifactory-web-application-3.8.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run(ArtifactoryContextConfigListener.java:92) ~[artifactory-web-application-3.8.0.jar:na] Caused by: org.artifactory.common.property.FatalConversionException: Found invalid license, reverting conversions and stopping startup at org.artifactory.converters.ConvertersManagerImpl.beforeInits(ConvertersManagerImpl.java:68) ~[artifactory-common-3.8.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:218) ~[artifactory-core-3.8.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:114) ~[artifactory-core-3.8.0.jar:na] ... 7 common frames omitted 2015-06-04 13:28:16,017 [http-bio-8080-exec-3] [ERROR] (o.a.w.s.ArtifactoryFilter:111) - Artifactory failed to initialize: Context is null {code} The page shows only 5 steps I need to do (I'm not running it as a service), so what did I do wrong?

    JFrog JIRA | 2 years ago | Fredrik Elestedt
    java.lang.reflect.InvocationTargetException: null
  2. 0

    I have setup a working 3.7 Pro Stand-Alone installation. I then proceed to upgrade it to 3.8 following the instructions on this page: https://www.jfrog.com/confluence/display/RTF/Upgrading+Artifactory (under 'Running as Standalone Installation). When I start Artifactory again, I am greeted with the following log: {code} 2015-06-04 13:28:03,172 [art-init] [INFO ] (o.a.w.s.ArtifactoryContextConfigListener:283) - _ _ __ _ _____ /\ | | (_)/ _| | | | __ \ / \ _ __| |_ _| |_ __ _ ___| |_ ___ _ __ _ _ | |__) | __ ___ / /\ \ | '__| __| | _/ _` |/ __| __/ _ \| '__| | | | | ___/ '__/ _ \ / ____ \| | | |_| | || (_| | (__| || (_) | | | |_| | | | | | | (_) | /_/ \_\_| \__|_|_| \__,_|\___|\__\___/|_| \__, | |_| |_| \___/ Version: 3.8.0 __/ | Revision: 30190 |___/ Artifactory Home: '/cm/artifactory/current' 2015-06-04 13:28:03,187 [art-init] [WARN ] (o.a.f.l.ArtifactoryLockFile:63) - Found existing lock file. Artifactory was not shutdown properly. [/cm/artifactory/current/data/.lock] 2015-06-04 13:28:03,462 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:209) - Refreshing Artifactory: startup date [Thu Jun 04 13:28:03 CEST 2015]; root of context hierarchy 2015-06-04 13:28:07,787 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:184) - Database: Apache Derby 10.9.1.0 - (1344872). Driver: Apache Derby Embedded JDBC Driver 10.9.1.0 - (1344872) 2015-06-04 13:28:07,788 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:186) - Connection URL: jdbc:derby:/cm/artifactory/current/data/derby 2015-06-04 13:28:08,459 [art-init] [WARN ] (o.a.a.LicenseProvider:81) - License file does not exist 2015-06-04 13:28:11,735 [art-init] [INFO ] (o.a.s.ArtifactorySchedulerFactoryBean:647) - Starting Quartz Scheduler now 2015-06-04 13:28:11,760 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:216) - Artifactory context starting up... 2015-06-04 13:28:11,811 [art-init] [WARN ] (o.a.v.ArtifactoryVersionReader:82) - Closest matched version: 3.7.0 2015-06-04 13:28:11,818 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigListener:96) - Application could not be initialized: Found invalid license, reverting conversions and stopping startup java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_45] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_45] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_45] at java.lang.reflect.Constructor.newInstance(Constructor.java:422) ~[na:1.8.0_45] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:220) ~[artifactory-web-application-3.8.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.access$1(ArtifactoryContextConfigListener.java:180) ~[artifactory-web-application-3.8.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run(ArtifactoryContextConfigListener.java:92) ~[artifactory-web-application-3.8.0.jar:na] Caused by: org.artifactory.common.property.FatalConversionException: Found invalid license, reverting conversions and stopping startup at org.artifactory.converters.ConvertersManagerImpl.beforeInits(ConvertersManagerImpl.java:68) ~[artifactory-common-3.8.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:218) ~[artifactory-core-3.8.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:114) ~[artifactory-core-3.8.0.jar:na] ... 7 common frames omitted 2015-06-04 13:28:16,017 [http-bio-8080-exec-3] [ERROR] (o.a.w.s.ArtifactoryFilter:111) - Artifactory failed to initialize: Context is null {code} The page shows only 5 steps I need to do (I'm not running it as a service), so what did I do wrong?

    JFrog JIRA | 2 years ago | Fredrik Elestedt
    java.lang.reflect.InvocationTargetException: null
  3. 0

    3.7 does not start using the same installation method as 3.6. With 3.6 the tomcat application was usable and we where able to enter the license in the Web-UI. $ cat artifactory.log 2015-05-19 12:46:58,154 [art-init] [INFO ] (o.a.w.s.ArtifactoryContextConfigListener:283) - _ _ __ _ _____ /\ | | (_)/ _| | | | __ \ / \ _ __| |_ _| |_ __ _ ___| |_ ___ _ __ _ _ | |__) | __ ___ / /\ \ | '__| __| | _/ _` |/ __| __/ _ \| '__| | | | | ___/ '__/ _ \ / ____ \| | | |_| | || (_| | (__| || (_) | | | |_| | | | | | | (_) | /_/ \_\_| \__|_|_| \__,_|\___|\__\___/|_| \__, | |_| |_| \___/ Version: 3.7.0 __/ | Revision: 30185 |___/ Artifactory Home: '/opt/artifactory' 2015-05-19 12:46:58,785 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:209) - Refreshing Artifactory: startup date [Tue May 19 12:46:58 CEST 2015]; root of context hierarchy 2015-05-19 12:47:13,132 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:184) - Database: PostgreSQL 9.3.6. Driver: PostgreSQL Native Driver PostgreSQL 9.4 JDBC4.1 (build 1201) 2015-05-19 12:47:13,133 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:186) - Connection URL: jdbc:postgresql://localhost:5432/artifactory 2015-05-19 12:47:13,194 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:96) - ***Creating database schema*** 2015-05-19 12:47:15,378 [art-init] [WARN ] (o.a.a.LicenseProvider:81) - License file does not exist 2015-05-19 12:47:25,631 [art-init] [INFO ] (o.a.s.ArtifactorySchedulerFactoryBean:647) - Starting Quartz Scheduler now 2015-05-19 12:47:25,652 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:216) - Artifactory context starting up... 2015-05-19 12:47:25,672 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigListener:96) - Application could not be initialized: Found invalid license, reverting conversions and stopping startup java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_72] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[na:1.7.0_72] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_72] at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[na:1.7.0_72] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:220) ~[artifactory-web-application-3.7.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.access$1(ArtifactoryContextConfigListener.java:180) ~[artifactory-web-application-3.7.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run(ArtifactoryContextConfigListener.java:92) ~[artifactory-web-application-3.7.0.jar:na] Caused by: org.artifactory.common.property.FatalConversionException: Found invalid license, reverting conversions and stopping startup at org.artifactory.converters.ConvertersManagerImpl.beforeInits(ConvertersManagerImpl.java:68) ~[artifactory-common-3.7.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:218) ~[artifactory-core-3.7.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:114) ~[artifactory-core-3.7.0.jar:na] ... 7 common frames omitted 2015-05-19 12:47:27,418 [ajp-bio-127.0.0.1-8019-exec-1] [ERROR] (o.a.w.s.ArtifactoryFilter:111) - Artifactory failed to initialize: Context is null 2015-05-19 12:51:10,696 [art-init] [INFO ] (o.a.w.s.ArtifactoryContextConfigListener:283) - _ _ __ _ _____ /\ | | (_)/ _| | | | __ \ / \ _ __| |_ _| |_ __ _ ___| |_ ___ _ __ _ _ | |__) | __ ___ / /\ \ | '__| __| | _/ _` |/ __| __/ _ \| '__| | | | | ___/ '__/ _ \ / ____ \| | | |_| | || (_| | (__| || (_) | | | |_| | | | | | | (_) | /_/ \_\_| \__|_|_| \__,_|\___|\__\___/|_| \__, | |_| |_| \___/ Version: 3.7.0 __/ | Revision: 30185 |___/ Artifactory Home: '/opt/artifactory' 2015-05-19 12:51:11,372 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:209) - Refreshing Artifactory: startup date [Tue May 19 12:51:11 CEST 2015]; root of context hierarchy 2015-05-19 12:51:28,186 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:184) - Database: PostgreSQL 9.3.6. Driver: PostgreSQL Native Driver PostgreSQL 9.4 JDBC4.1 (build 1201) 2015-05-19 12:51:28,187 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:186) - Connection URL: jdbc:postgresql://localhost:5432/artifactory 2015-05-19 12:51:29,743 [art-init] [WARN ] (o.a.a.LicenseProvider:81) - License file does not exist 2015-05-19 12:51:39,099 [art-init] [INFO ] (o.a.s.ArtifactorySchedulerFactoryBean:647) - Starting Quartz Scheduler now 2015-05-19 12:51:39,260 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:216) - Artifactory context starting up... 2015-05-19 12:51:39,275 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigListener:96) - Application could not be initialized: Found invalid license, reverting conversions and stopping startup java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_72] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[na:1.7.0_72] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_72] at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[na:1.7.0_72] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:220) ~[artifactory-web-application-3.7.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.access$1(ArtifactoryContextConfigListener.java:180) ~[artifactory-web-application-3.7.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run(ArtifactoryContextConfigListener.java:92) ~[artifactory-web-application-3.7.0.jar:na] Caused by: org.artifactory.common.property.FatalConversionException: Found invalid license, reverting conversions and stopping startup at org.artifactory.converters.ConvertersManagerImpl.beforeInits(ConvertersManagerImpl.java:68) ~[artifactory-common-3.7.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:218) ~[artifactory-core-3.7.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:114) ~[artifactory-core-3.7.0.jar:na] ... 7 common frames omitted 2015-05-19 12:51:43,155 [ajp-bio-127.0.0.1-8019-exec-2] [ERROR] (o.a.w.s.ArtifactoryFilter:111) - Artifactory failed to initialize: Context is null

    JFrog JIRA | 2 years ago | Michael Arlt
    java.lang.reflect.InvocationTargetException: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    3.7 does not start using the same installation method as 3.6. With 3.6 the tomcat application was usable and we where able to enter the license in the Web-UI. $ cat artifactory.log 2015-05-19 12:46:58,154 [art-init] [INFO ] (o.a.w.s.ArtifactoryContextConfigListener:283) - _ _ __ _ _____ /\ | | (_)/ _| | | | __ \ / \ _ __| |_ _| |_ __ _ ___| |_ ___ _ __ _ _ | |__) | __ ___ / /\ \ | '__| __| | _/ _` |/ __| __/ _ \| '__| | | | | ___/ '__/ _ \ / ____ \| | | |_| | || (_| | (__| || (_) | | | |_| | | | | | | (_) | /_/ \_\_| \__|_|_| \__,_|\___|\__\___/|_| \__, | |_| |_| \___/ Version: 3.7.0 __/ | Revision: 30185 |___/ Artifactory Home: '/opt/artifactory' 2015-05-19 12:46:58,785 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:209) - Refreshing Artifactory: startup date [Tue May 19 12:46:58 CEST 2015]; root of context hierarchy 2015-05-19 12:47:13,132 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:184) - Database: PostgreSQL 9.3.6. Driver: PostgreSQL Native Driver PostgreSQL 9.4 JDBC4.1 (build 1201) 2015-05-19 12:47:13,133 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:186) - Connection URL: jdbc:postgresql://localhost:5432/artifactory 2015-05-19 12:47:13,194 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:96) - ***Creating database schema*** 2015-05-19 12:47:15,378 [art-init] [WARN ] (o.a.a.LicenseProvider:81) - License file does not exist 2015-05-19 12:47:25,631 [art-init] [INFO ] (o.a.s.ArtifactorySchedulerFactoryBean:647) - Starting Quartz Scheduler now 2015-05-19 12:47:25,652 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:216) - Artifactory context starting up... 2015-05-19 12:47:25,672 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigListener:96) - Application could not be initialized: Found invalid license, reverting conversions and stopping startup java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_72] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[na:1.7.0_72] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_72] at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[na:1.7.0_72] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:220) ~[artifactory-web-application-3.7.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.access$1(ArtifactoryContextConfigListener.java:180) ~[artifactory-web-application-3.7.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run(ArtifactoryContextConfigListener.java:92) ~[artifactory-web-application-3.7.0.jar:na] Caused by: org.artifactory.common.property.FatalConversionException: Found invalid license, reverting conversions and stopping startup at org.artifactory.converters.ConvertersManagerImpl.beforeInits(ConvertersManagerImpl.java:68) ~[artifactory-common-3.7.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:218) ~[artifactory-core-3.7.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:114) ~[artifactory-core-3.7.0.jar:na] ... 7 common frames omitted 2015-05-19 12:47:27,418 [ajp-bio-127.0.0.1-8019-exec-1] [ERROR] (o.a.w.s.ArtifactoryFilter:111) - Artifactory failed to initialize: Context is null 2015-05-19 12:51:10,696 [art-init] [INFO ] (o.a.w.s.ArtifactoryContextConfigListener:283) - _ _ __ _ _____ /\ | | (_)/ _| | | | __ \ / \ _ __| |_ _| |_ __ _ ___| |_ ___ _ __ _ _ | |__) | __ ___ / /\ \ | '__| __| | _/ _` |/ __| __/ _ \| '__| | | | | ___/ '__/ _ \ / ____ \| | | |_| | || (_| | (__| || (_) | | | |_| | | | | | | (_) | /_/ \_\_| \__|_|_| \__,_|\___|\__\___/|_| \__, | |_| |_| \___/ Version: 3.7.0 __/ | Revision: 30185 |___/ Artifactory Home: '/opt/artifactory' 2015-05-19 12:51:11,372 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:209) - Refreshing Artifactory: startup date [Tue May 19 12:51:11 CEST 2015]; root of context hierarchy 2015-05-19 12:51:28,186 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:184) - Database: PostgreSQL 9.3.6. Driver: PostgreSQL Native Driver PostgreSQL 9.4 JDBC4.1 (build 1201) 2015-05-19 12:51:28,187 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:186) - Connection URL: jdbc:postgresql://localhost:5432/artifactory 2015-05-19 12:51:29,743 [art-init] [WARN ] (o.a.a.LicenseProvider:81) - License file does not exist 2015-05-19 12:51:39,099 [art-init] [INFO ] (o.a.s.ArtifactorySchedulerFactoryBean:647) - Starting Quartz Scheduler now 2015-05-19 12:51:39,260 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:216) - Artifactory context starting up... 2015-05-19 12:51:39,275 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigListener:96) - Application could not be initialized: Found invalid license, reverting conversions and stopping startup java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_72] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[na:1.7.0_72] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_72] at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[na:1.7.0_72] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:220) ~[artifactory-web-application-3.7.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.access$1(ArtifactoryContextConfigListener.java:180) ~[artifactory-web-application-3.7.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run(ArtifactoryContextConfigListener.java:92) ~[artifactory-web-application-3.7.0.jar:na] Caused by: org.artifactory.common.property.FatalConversionException: Found invalid license, reverting conversions and stopping startup at org.artifactory.converters.ConvertersManagerImpl.beforeInits(ConvertersManagerImpl.java:68) ~[artifactory-common-3.7.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:218) ~[artifactory-core-3.7.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:114) ~[artifactory-core-3.7.0.jar:na] ... 7 common frames omitted 2015-05-19 12:51:43,155 [ajp-bio-127.0.0.1-8019-exec-2] [ERROR] (o.a.w.s.ArtifactoryFilter:111) - Artifactory failed to initialize: Context is null

    JFrog JIRA | 2 years ago | Michael Arlt
    java.lang.reflect.InvocationTargetException: null
  6. 0

    3.7 does not start using the same installation method as 3.6. With 3.6 the tomcat application was usable and we where able to enter the license in the Web-UI. $ cat artifactory.log 2015-05-19 12:46:58,154 [art-init] [INFO ] (o.a.w.s.ArtifactoryContextConfigListener:283) - _ _ __ _ _____ /\ | | (_)/ _| | | | __ \ / \ _ __| |_ _| |_ __ _ ___| |_ ___ _ __ _ _ | |__) | __ ___ / /\ \ | '__| __| | _/ _` |/ __| __/ _ \| '__| | | | | ___/ '__/ _ \ / ____ \| | | |_| | || (_| | (__| || (_) | | | |_| | | | | | | (_) | /_/ \_\_| \__|_|_| \__,_|\___|\__\___/|_| \__, | |_| |_| \___/ Version: 3.7.0 __/ | Revision: 30185 |___/ Artifactory Home: '/opt/artifactory' 2015-05-19 12:46:58,785 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:209) - Refreshing Artifactory: startup date [Tue May 19 12:46:58 CEST 2015]; root of context hierarchy 2015-05-19 12:47:13,132 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:184) - Database: PostgreSQL 9.3.6. Driver: PostgreSQL Native Driver PostgreSQL 9.4 JDBC4.1 (build 1201) 2015-05-19 12:47:13,133 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:186) - Connection URL: jdbc:postgresql://localhost:5432/artifactory 2015-05-19 12:47:13,194 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:96) - ***Creating database schema*** 2015-05-19 12:47:15,378 [art-init] [WARN ] (o.a.a.LicenseProvider:81) - License file does not exist 2015-05-19 12:47:25,631 [art-init] [INFO ] (o.a.s.ArtifactorySchedulerFactoryBean:647) - Starting Quartz Scheduler now 2015-05-19 12:47:25,652 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:216) - Artifactory context starting up... 2015-05-19 12:47:25,672 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigListener:96) - Application could not be initialized: Found invalid license, reverting conversions and stopping startup java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_72] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[na:1.7.0_72] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_72] at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[na:1.7.0_72] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:220) ~[artifactory-web-application-3.7.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.access$1(ArtifactoryContextConfigListener.java:180) ~[artifactory-web-application-3.7.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run(ArtifactoryContextConfigListener.java:92) ~[artifactory-web-application-3.7.0.jar:na] Caused by: org.artifactory.common.property.FatalConversionException: Found invalid license, reverting conversions and stopping startup at org.artifactory.converters.ConvertersManagerImpl.beforeInits(ConvertersManagerImpl.java:68) ~[artifactory-common-3.7.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:218) ~[artifactory-core-3.7.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:114) ~[artifactory-core-3.7.0.jar:na] ... 7 common frames omitted 2015-05-19 12:47:27,418 [ajp-bio-127.0.0.1-8019-exec-1] [ERROR] (o.a.w.s.ArtifactoryFilter:111) - Artifactory failed to initialize: Context is null 2015-05-19 12:51:10,696 [art-init] [INFO ] (o.a.w.s.ArtifactoryContextConfigListener:283) - _ _ __ _ _____ /\ | | (_)/ _| | | | __ \ / \ _ __| |_ _| |_ __ _ ___| |_ ___ _ __ _ _ | |__) | __ ___ / /\ \ | '__| __| | _/ _` |/ __| __/ _ \| '__| | | | | ___/ '__/ _ \ / ____ \| | | |_| | || (_| | (__| || (_) | | | |_| | | | | | | (_) | /_/ \_\_| \__|_|_| \__,_|\___|\__\___/|_| \__, | |_| |_| \___/ Version: 3.7.0 __/ | Revision: 30185 |___/ Artifactory Home: '/opt/artifactory' 2015-05-19 12:51:11,372 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:209) - Refreshing Artifactory: startup date [Tue May 19 12:51:11 CEST 2015]; root of context hierarchy 2015-05-19 12:51:28,186 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:184) - Database: PostgreSQL 9.3.6. Driver: PostgreSQL Native Driver PostgreSQL 9.4 JDBC4.1 (build 1201) 2015-05-19 12:51:28,187 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:186) - Connection URL: jdbc:postgresql://localhost:5432/artifactory 2015-05-19 12:51:29,743 [art-init] [WARN ] (o.a.a.LicenseProvider:81) - License file does not exist 2015-05-19 12:51:39,099 [art-init] [INFO ] (o.a.s.ArtifactorySchedulerFactoryBean:647) - Starting Quartz Scheduler now 2015-05-19 12:51:39,260 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:216) - Artifactory context starting up... 2015-05-19 12:51:39,275 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigListener:96) - Application could not be initialized: Found invalid license, reverting conversions and stopping startup java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_72] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[na:1.7.0_72] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_72] at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[na:1.7.0_72] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:220) ~[artifactory-web-application-3.7.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.access$1(ArtifactoryContextConfigListener.java:180) ~[artifactory-web-application-3.7.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run(ArtifactoryContextConfigListener.java:92) ~[artifactory-web-application-3.7.0.jar:na] Caused by: org.artifactory.common.property.FatalConversionException: Found invalid license, reverting conversions and stopping startup at org.artifactory.converters.ConvertersManagerImpl.beforeInits(ConvertersManagerImpl.java:68) ~[artifactory-common-3.7.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:218) ~[artifactory-core-3.7.0.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:114) ~[artifactory-core-3.7.0.jar:na] ... 7 common frames omitted 2015-05-19 12:51:43,155 [ajp-bio-127.0.0.1-8019-exec-2] [ERROR] (o.a.w.s.ArtifactoryFilter:111) - Artifactory failed to initialize: Context is null

    JFrog JIRA | 2 years ago | Michael Arlt
    java.lang.reflect.InvocationTargetException: null

    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. org.artifactory.common.property.FatalConversionException

      Found invalid license, reverting conversions and stopping startup

      at org.artifactory.converters.ConvertersManagerImpl.beforeInits()
    2. org.artifactory.converters
      ConvertersManagerImpl.beforeInits
      1. org.artifactory.converters.ConvertersManagerImpl.beforeInits(ConvertersManagerImpl.java:68)[artifactory-common-3.8.0.jar:na]
      1 frame
    3. org.artifactory.spring
      ArtifactoryApplicationContext.<init>
      1. org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:218)[artifactory-core-3.8.0.jar:na]
      2. org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:114)[artifactory-core-3.8.0.jar:na]
      2 frames
    4. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[na:1.8.0_45]
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)[na:1.8.0_45]
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[na:1.8.0_45]
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)[na:1.8.0_45]
      4 frames
    5. org.artifactory.webapp
      ArtifactoryContextConfigListener$1.run
      1. org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:220)[artifactory-web-application-3.8.0.jar:na]
      2. org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.access$1(ArtifactoryContextConfigListener.java:180)[artifactory-web-application-3.8.0.jar:na]
      3. org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run(ArtifactoryContextConfigListener.java:92)[artifactory-web-application-3.8.0.jar:na]
      3 frames