cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: [CXF-2900] WSDLValidator through Stax2DOM leaves input streams open which causes input files to be locked.
Date Fri, 16 Jul 2010 15:04:25 GMT

You might want to try a "mvn clean" in there first.   It looks like the class 
file was built with eclipse, but eclipse found an error.    That would be my 
guess.

Dan


On Friday 16 July 2010 12:06:00 am Gary Gregory wrote:
> Hi All,
> 
> I am trying to do a local build out of cxf/branches/2.2.x-fixes to include
> my patch to:
> 
> https://issues.apache.org/jira/browse/CXF-2900 WSDLValidator through
> Stax2DOM leaves input streams open which causes input files to be locked.
> 
> I get an unrelated (I think) error:
> 
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'proxyBean': Cannot create inner bean '(inner bean)' of
> type [org.apache.cxf.service.fac tory.HelloServiceProxyFactory] while
> setting bean property 'serviceBean'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)#3' defined in class path resource
> [org/apache/cxf/frontend/spring/servers.xml]: Instantiation of bean
> failed; nested exception is org.springframework.beans
> .BeanInstantiationException: Could not instantiate bean class
> [org.apache.cxf.service.factory.HelloServiceProxyFactory]: Constructor
> threw exception; nested exception is java. lang.Error: Unresolved
> compilation problems:
>         The import org.springframework.aop cannot be resolved
>         ProxyFactory cannot be resolved to a type
> 
> 
> I've updated my local SVN sandbox to make sure I have the latest (At
> revision: 964666). I am building on Windows Vista 64 bits with Sun Java
> 1.6.0_20.
> 
> Is this a POM issue?
> 
> Thank you in advance for your help.
> 
> The relevant portion of the build output is:
> 
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.cxf.frontend.soap.SoapBindingSelectionTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.882 sec
> Running org.apache.cxf.service.factory.ServerFactoryTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.709 sec
> Running org.apache.cxf.service.factory.RountripTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.251 sec
> Running org.apache.cxf.service.stax.StaxDatabindingTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.196 sec
> Running org.apache.cxf.frontend.spring.ClientServerTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.522 sec
> Running org.apache.cxf.service.factory.ReflectionServiceFactoryTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.242 sec
> Running org.apache.cxf.service.factory.ClientFactoryBeanTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.173 sec
> Running org.apache.cxf.frontend.spring.SpringBeansTest
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.58 sec
> <<< FAILURE! testServers(org.apache.cxf.frontend.spring.SpringBeansTest) 
> Time elapsed: 0.383 sec  <<< ERROR!
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'proxyBean': Cannot create inner bean '(inner bean)' of
> type [org.apache.cxf.service.fac tory.HelloServiceProxyFactory] while
> setting bean property 'serviceBean'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)#3' defined in class path resource
> [org/apache/cxf/frontend/spring/servers.xml]: Instantiation of bean
> failed; nested exception is org.springframework.beans
> .BeanInstantiationException: Could not instantiate bean class
> [org.apache.cxf.service.factory.HelloServiceProxyFactory]: Constructor
> threw exception; nested exception is java. lang.Error: Unresolved
> compilation problems:
>         The import org.springframework.aop cannot be resolved
>         ProxyFactory cannot be resolved to a type
> 
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.reso
> lveInnerBean(BeanDefinitionValueResolver.java:230) at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.reso
> lveValueIfNecessary(BeanDefinitionValueResolver.java:122) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
> ry.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
> ry.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
> ry.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
> ry$1.run(AbstractAutowireCapableBeanFactory.java:409) at
> java.security.AccessController.doPrivileged(Native Method) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
> ry.createBean(AbstractAutowireCapableBeanFactory.java:380) at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
> AbstractBeanFactory.java:264) at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.get
> Singleton(DefaultSingletonBeanRegistry.java:222) at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Ab
> stractBeanFactory.java:261) at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abst
> ractBeanFactory.java:185) at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abst
> ractBeanFactory.java:164) at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preIn
> stantiateSingletons(DefaultListableBeanFactory.java:429) at
> org.springframework.context.support.AbstractApplicationContext.finishBeanF
> actoryInitialization(AbstractApplicationContext.java:728) at
> org.springframework.context.support.AbstractApplicationContext.refresh(Abs
> tractApplicationContext.java:380) at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(
> ClassPathXmlApplicationContext.java:139) at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(
> ClassPathXmlApplicationContext.java:93) at
> org.apache.cxf.frontend.spring.SpringBeansTest.testServers(SpringBeansTest
> .java:51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
> pl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMetho
> d.java:44) at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable
> .java:15) at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.
> java:41) at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.j
> ava:20) at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.j
> ava:76) at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.j
> ava:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at
> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at
> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at
> org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at
> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at
> org.junit.runners.ParentRunner.run(ParentRunner.java:236) at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:
> 59) at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
> AbstractDirectoryTestSuite.java:115) at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Abstrac
> tDirectoryTestSuite.java:102) at
> org.apache.maven.surefire.Surefire.run(Surefire.java:180) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
> pl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Surefir
> eBooter.java:350) at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1
> 021) Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '(inner bean)#3' defined in class path
> resource [org/apache/cxf/frontend/spri ng/servers.xml]: Instantiation of
> bean failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Could not
> instantiate bean class [org.apache.cxf.servi
> ce.factory.HelloServiceProxyFactory]: Constructor threw exception; nested
> exception is java.lang.Error: Unresolved compilation problems: The import
> org.springframework.aop cannot be resolved
>         ProxyFactory cannot be resolved to a type
> 
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
> ry.instantiateBean(AbstractAutowireCapableBeanFactory.java:883) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
> ry.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
> ry.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
> ry$1.run(AbstractAutowireCapableBeanFactory.java:409) at
> java.security.AccessController.doPrivileged(Native Method) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
> ry.createBean(AbstractAutowireCapableBeanFactory.java:380) at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.reso
> lveInnerBean(BeanDefinitionValueResolver.java:219) ... 44 more
> Caused by: org.springframework.beans.BeanInstantiationException: Could not
> instantiate bean class
> [org.apache.cxf.service.factory.HelloServiceProxyFactory]: Constructor
> threw exception; nested exception is java.lang.Error: Unresolved
> compilation problems: The import org.springframework.aop cannot be
> resolved
>         ProxyFactory cannot be resolved to a type
> 
>         at
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
> at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.inst
> antiate(SimpleInstantiationStrategy.java:61) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
> ry.instantiateBean(AbstractAutowireCapableBeanFactory.java:877) ... 50 more
> Caused by: java.lang.Error: Unresolved compilation problems:
>         The import org.springframework.aop cannot be resolved
>         ProxyFactory cannot be resolved to a type
> 
>         at
> org.apache.cxf.service.factory.HelloServiceProxyFactory.<init>(HelloServic
> eProxyFactory.java:21) at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcc
> essorImpl.java:39) at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstr
> uctorAccessorImpl.java:27) at
> java.lang.reflect.Constructor.newInstance(Constructor.java:513) at
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
> ... 52 more
> 
> 
> Results :
> 
> Tests in error:
>   testServers(org.apache.cxf.frontend.spring.SpringBeansTest)
> 
> Tests run: 17, Failures: 0, Errors: 1, Skipped: 0
> 
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] There are test failures.
> 
> Please refer to
> C:\Users\ggregory\b\svn\apache.org\cxf\branches\2.2.x-fixes\rt\frontend\si
> mple\target\surefire-reports for the individual test results. [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 5 minutes 31 seconds
> [INFO] Finished at: Thu Jul 15 18:10:02 PDT 2010
> [INFO] Final Memory: 143M/322M
> [INFO]
> ------------------------------------------------------------------------
> 
> Gary Gregory
> Senior Software Engineer
> Seagull Software
> email: ggregory@seagullsoftware.com
> email: ggregory@apache.org
> www.seagullsoftware.com

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Mime
View raw message