Hi,
>From your stack trace it looks like you are using IBM JDK. It is a known
issue of IBM
JDK<http://weblogs.java.net/blog/ss141213/archive/2009/10/08/should-classgetannotations-fail-if-annotation-type-not-available>
.
The IBM JDK does not respect the specification about annotation classes
presence at runtime.
The fix is to download (
http://repo.jfrog.org/artifactory/repo1-cache/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar)
and add it to the WEB-INF/lib of Artifactory.
Thanks for reporting this, we will see how to fix this issue in our next
release,
Fred.
On Wed, Dec 8, 2010 at 4:01 AM, aqua <[email protected]> wrote:
>
> Hi, my environment is windows, jdk1.6.0_21, when I simply extract the
> install
> package and click artifactory.bat, there's error in console, I have no idea
> about this error, is there anyone know it? thanks a lot!
>
> 2010-12-08 16:40:25,718 [art-init] [ERROR]
> (o.a.w.s.ArtifactoryContextConfigListener:162) - Error creating spring
> context
> java.lang.reflect.InvocationTargetException: null
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> [na:1.5.0]
> at
>
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
> [na:1.5.0]
> at
>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> [na:1.5.0]
> at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
> [na:1.5.0]
> at
>
> org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:159)
> [artifactory-web-application-2.3.1.jar:na]
> at
>
> org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.access$100(ArtifactoryContextConfigListener.java:47)
> [artifactory-web-application-2.3.1.jar:na]
> at
>
> org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run(ArtifactoryContextConfigListener.java:66)
> [artifactory-web-application-2.3.1.jar:na]
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'versionInfoServiceImpl' defined in URL
>
> [jar:file:/F:/artifactory-2.3.1/work/Jetty_0_0_0_0_8081_artifactory.war__artifactory__6u9e4o/webapp/WEB-INF/lib/artifactory-core-2.3.1.jar!/org/artifactory/version/VersionInfoServiceImpl.class]:
> Initialization of bean failed; nested exception is
> java.lang.TypeNotPresentException: Type javax.annotation.Nonnull not
> present
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
> [spring-beans-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> [spring-beans-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
> [spring-beans-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
> [spring-beans-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
> [spring-beans-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
> [spring-beans-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
> [spring-beans-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
> [spring-context-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
> [spring-context-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:196)
> [artifactory-core-2.3.1.jar:na]
> at
>
> org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:103)
> [artifactory-core-2.3.1.jar:na]
> ... 7 common frames omitted
> Caused by: java.lang.TypeNotPresentException: Type javax.annotation.Nonnull
> not present
> at
>
> com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:38)
> [na:1.5.0]
> at
>
> com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations(AnnotationHelper.java:50)
> [na:1.5.0]
> at com.ibm.oti.reflect.Method.getDeclaredAnnotations(Method.java:31)
> [na:1.5.0]
> at java.lang.reflect.Method.getDeclaredAnnotations(Method.java:704)
> [na:1.5.0]
> at
>
> java.lang.reflect.AccessibleObject.getAnnotations(AccessibleObject.java:191)
> [na:1.5.0]
> at com.ibm.oti.reflect.Method.getAnnotation(Method.java:20)
> [na:1.5.0]
> at java.lang.reflect.Method.getAnnotation(Method.java:693)
> [na:1.5.0]
> at
>
> org.springframework.transaction.annotation.SpringTransactionAnnotationParser.parseTransactionAnnotation(SpringTransactionAnnotationParser.java:38)
> [spring-tx-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.springframework.transaction.annotation.AnnotationTransactionAttributeSource.determineTransactionAttribute(AnnotationTransactionAttributeSource.java:134)
> [spring-tx-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.springframework.transaction.annotation.AnnotationTransactionAttributeSource.findTransactionAttribute(AnnotationTransactionAttributeSource.java:113)
> [spring-tx-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource.computeTransactionAttribute(AbstractFallbackTransactionAttributeSource.java:159)
> [spring-tx-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource.getTransactionAttribute(AbstractFallbackTransactionAttributeSource.java:99)
> [spring-tx-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.springframework.transaction.interceptor.TransactionAttributeSourcePointcut.matches(TransactionAttributeSourcePointcut.java:36)
> [spring-tx-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
> org.springframework.aop.support.AopUtils.canApply(AopUtils.java:217)
> [spring-aop-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
> org.springframework.aop.support.AopUtils.canApply(AopUtils.java:254)
> [spring-aop-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:286)
> [spring-aop-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:117)
> [spring-aop-3.0.4.RELEASE.jar:3.0.4.RELEASE]
> at
>
> org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:87)
> [spring-aop-3.0.4.RELEASE.jar:3.0.4.RELEASE]
>
> --
> View this message in context:
> http://forums.jfrog.org/Error-creating-spring-context-error-in-standalone-install-tp5814583p5814583.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> What happens now with your Lotus Notes apps - do you make another costly
> upgrade, or settle for being marooned without product support? Time to move
> off Lotus Notes and onto the cloud with Force.com, apps are easier to
> build,
> use, and manage than apps on traditional platforms. Sign up for the Lotus
> Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
--
JFrog Ltd
http://www.jfrog.org/
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users