Welcome to the JFrog JIRA. "Where Frogs Can Code!"
Issue Details (XML | Word | Printable)

Key: MDV-51
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Dror Bereznitsky
Reporter: Dror Bereznitsky
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Dependency Analyzer

FATAL exception when starting dependency analyzer

Created: 16/Oct/07 12:22 AM   Updated: 17/Oct/07 11:57 AM
Component/s: Core
Affects Version/s: 1.0, 1.0.1, 1.0.2, 1.0.2-rc1, 1.0.3-rc0
Fix Version/s: 1.1

Time Tracking:
Not Specified


 Description  « Hide
0 [main] INFO org.jfrog.maven.viewer.common.Config - Using config file found at: D:\dev\tools\dependency-analyzer-1
.0.3-rc0\bin\..\config\viewer.properties
1109 [main] FATAL org.jfrog.maven.viewer.dao.DefaultMavenProjectDao - Could not create DefaultMavenProjectDao instance
java.lang.IllegalArgumentException: When not aligning with a user install you must specify a local repository location u
sing the setLocalRepositoryDirectory( File ) method.
at org.apache.maven.embedder.MavenEmbedder.createMavenSettings(MavenEmbedder.java:654)
at org.apache.maven.embedder.MavenEmbedder.start(MavenEmbedder.java:588)
at org.jfrog.maven.viewer.dao.DefaultMavenProjectDao.<init>(DefaultMavenProjectDao.java:74)
at org.jfrog.maven.viewer.dao.DaoFactoryImpl.<init>(DaoFactoryImpl.java:29)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:171)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:52)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:486)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:362)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:186)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
at org.springframework.richclient.application.ApplicationLauncher.loadRootApplicationContext(ApplicationLauncher.java:150)
at org.springframework.richclient.application.ApplicationLauncher.<init>(ApplicationLauncher.java:102)
at org.jfrog.maven.viewer.Main.<init>(Main.java:40)
at org.jfrog.maven.viewer.Main.main(Main.java:30)
1156 [main] ERROR org.jfrog.maven.viewer.Main - RuntimeException during startup
org.springframework.richclient.application.ApplicationException: Unable to start rich client application
at org.springframework.richclient.application.ApplicationLauncher.loadRootApplicationContext(ApplicationLauncher.java:158)
at org.springframework.richclient.application.ApplicationLauncher.<init>(ApplicationLauncher.java:102)
at org.jfrog.maven.viewer.Main.<init>(Main.java:40)
at org.jfrog.maven.viewer.Main.main(Main.java:30)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'artifactFactory' defined in class path resource [org/jfrog/maven/viewer/ctx/common/richclient-application-context.xml]: Cannot resolve refere
nce to bean 'daoFactory' while setting bean property 'daoFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoFactory' defined in class path resource [org/jfrog/maven/viewe
r/ctx/common/richclient-application-context.xml]: Instantiation of bean failed; nested exception is org.springframework.
beans.BeanInstantiationException: Could not instantiate bean class [org.jfrog.maven.viewer.dao.DaoFactoryImpl]: Constructor threw exception; nested exception is java.lang.RuntimeException: Could not create DefaultMavenProjectDao instance
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
at org.springframework.richclient.application.ApplicationLauncher.loadRootApplicationContext(ApplicationLauncher.java:150)
... 3 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoFactory' defined in class path resource [org/jfrog/maven/viewer/ctx/common/richclient-application-context.xml]: Instantiation of bean fail
ed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.jfrog.maven.viewer.dao.DaoFactoryImpl]: Constructor threw exception; nested exception is java.lang.RuntimeException: Could n
ot create DefaultMavenProjectDao instance
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:403)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:186)
... 12 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.jfrog.maven.viewer.dao.DaoFactoryImpl]: Constructor threw exception; nested exception is java.lang.RuntimeException: Could not create DefaultMavenProjectDao instance
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:186)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:52)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:486)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:362)
... 15 more
Caused by: java.lang.RuntimeException: Could not create DefaultMavenProjectDao instance
at org.jfrog.maven.viewer.dao.DefaultMavenProjectDao.<init>(DefaultMavenProjectDao.java:104)
at org.jfrog.maven.viewer.dao.DaoFactoryImpl.<init>(DaoFactoryImpl.java:29)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:171)
... 19 more
Caused by: java.lang.IllegalArgumentException: When not aligning with a user install you must specify a local repository
location using the setLocalRepositoryDirectory( File ) method.
at org.apache.maven.embedder.MavenEmbedder.createMavenSettings(MavenEmbedder.java:654)
at org.apache.maven.embedder.MavenEmbedder.start(MavenEmbedder.java:588)
at org.jfrog.maven.viewer.dao.DefaultMavenProjectDao.<init>(DefaultMavenProjectDao.java:74)
... 25 more

 All   Comments   Work Log   Change History   Transitions      Sort Order: Ascending order - Click to sort in descending order
Dror Bereznitsky added a comment - 16/Oct/07 12:24 AM
When MavenEmbedder cannot find the installation folder at the default location (user.dir/.m2) and the local repository is null - an exception is thrown.
Need to make sure we either mavenEmbedder.setAlignWithUserInstallation(true) if an alternative user installation folde is defined or to make sure the local repository is initialized before starting the MavenEmbedder