java.lang.reflect.InvocationTargetException

null

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web16

  • via Unknown by Costin Caraivan,
  • via Unknown by Costin Caraivan,
  • via Stack Overflow by freecouch
    ,
  • Stack trace

    • java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[na:1.5.0_11] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[na:1.5.0_11] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[na:1.5.0_11] at java.lang.reflect.Constructor.newInstance(Constructor.java:494)[na:1.5.0_11] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:108)[artifactory-web-application-2.1.2.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.contextInitialized(ArtifactoryContextConfigListener.java:57)[artifactory-web-application-2.1.2.jar:na] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)[catalina.jar:na] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)[catalina.jar:na] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)[catalina.jar:na] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)[catalina.jar:na] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)[catalina.jar:na] at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)[catalina.jar:na] at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)[catalina.jar:na] at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)[catalina.jar:na] at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)[catalina.jar:na] at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)[catalina.jar:na] at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)[catalina.jar:na] at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)[catalina.jar:na] at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)[catalina.jar:na] at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)[catalina.jar:na] at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)[catalina.jar:na] at org.apache.catalina.core.StandardService.start(StandardService.java:516)[catalina.jar:na] at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)[catalina.jar:na] at org.apache.catalina.startup.Catalina.start(Catalina.java:578)[catalina.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.5.0_11] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.5.0_11] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.5.0_11] at java.lang.reflect.Method.invoke(Method.java:585)[na:1.5.0_11] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)[bootstrap.jar:na] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)[bootstrap.jar:na] Caused by: java.lang.RuntimeException: Failed to read object from stream. at org.artifactory.jaxb.JaxbHelper.read(JaxbHelper.java:173)[artifactory-config-2.1.2.jar:na] at org.artifactory.jaxb.JaxbHelper.readConfig(JaxbHelper.java:67)[artifactory-config-2.1.2.jar:na] at org.artifactory.config.CentralConfigServiceImpl.init(CentralConfigServiceImpl.java:111)[artifactory-core-2.1.2.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.5.0_11] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.5.0_11] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.5.0_11] at java.lang.reflect.Method.invoke(Method.java:585)[na:1.5.0_11] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)[spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)[spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)[spring-aop-2.5.6.jar:2.5.6] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)[spring-tx-2.5.6.jar:2.5.6] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:72)[artifactory-core-2.1.2.jar:na] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:45)[artifactory-core-2.1.2.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)[spring-aop-2.5.6.jar:2.5.6] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)[spring-aop-2.5.6.jar:2.5.6] at $Proxy14.init(Unknown Source)[na:na] at org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:217)[artifactory-core-2.1.2.jar:na] at org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:97)[artifactory-core-2.1.2.jar:na] ... 30 more Caused by: javax.xml.bind.UnmarshalException: null at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:315)[jaxb-api-2.2.jar:na] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:514)[jaxb-impl-2.1.10.jar:2.1.10] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:215)[jaxb-impl-2.1.10.jar:2.1.10] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)[jaxb-impl-2.1.10.jar:2.1.10] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)[jaxb-api-2.2.jar:na] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:184)[jaxb-api-2.2.jar:na] at org.artifactory.jaxb.JaxbHelper.read(JaxbHelper.java:171)[artifactory-config-2.1.2.jar:na] ... 47 more Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.d: Invalid content was found starting with element 'defaultProxy'. No child element is expected at this point. at com.sun.org.apache.xerces.internal.jaxp.validation.Util.toSAXParseException(Util.java:109)[na:1.5.0_11] at com.sun.org.apache.xerces.internal.jaxp.validation.ErrorHandlerAdaptor.error(ErrorHandlerAdaptor.java:104)[na:1.5.0_11] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)[na:1.5.0_11] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)[na:1.5.0_11] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:429)[na:1.5.0_11] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3185)[na:1.5.0_11] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1835)[na:1.5.0_11] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)[na:1.5.0_11] at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(ValidatorHandlerImpl.java:335)[na:1.5.0_11] at com.sun.xml.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.startElement(ValidatingUnmarshaller.java:89)[jaxb-impl-2.1.10.jar:2.1.10] at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:148)[jaxb-impl-2.1.10.jar:2.1.10] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)[na:1.5.0_11] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:330)[na:1.5.0_11] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)[na:1.5.0_11] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)[na:1.5.0_11] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)[na:1.5.0_11] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)[na:1.5.0_11] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)[na:1.5.0_11] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)[na:1.5.0_11] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)[jaxb-impl-2.1.10.jar:2.1.10] ... 51 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,