I'm working on an rich client built on the top of eclipse RCP. I have a very simple beans.xml with only one bean:
If I run the factory as:Code:<bean id="siteStructureService" class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean"> <property name="serviceUrl" value="http://localhost:8090/um-pages-middleware-1.0/ws/SiteStructureService" /> <property name="serviceInterface" value="com.jcake.um.middleware.api.ISiteStructureService" /> </bean>
then everything is just fine. If I try the same from my eclipse app, spring jumps in infinite loop or something like that. The processor's load is about 70%, and the application hangs.Code:public static void main(String[] args) { XmlBeanFactory factory = new XmlBeanFactory(new ClassPathResource("/com/jcake/um/beans.xml")); //$NON-NLS-1$ ISiteStructureService svc = (ISiteStructureService) factory.getBean("siteStructureService"); //$NON-NLS-1$ SiteStructureElement siteStructure = svc.getSiteStructure(); System.out.println(siteStructure); }
I run the app in debug mode. Below there is where it stops:
And there is nothing more. The processor load increases to about 70%, my application hangs.Code:[...] [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean] defined in class path resource [com/jcake/um/beans.xml]] 2005-07-14 20:02:04,633 DEBUG AbstractAutowireCapableBeanFactory - Invoking BeanPostProcessors before instantiation of bean 'siteStructureService' 2005-07-14 20:02:04,714 DEBUG CachedIntrospectionResults - Getting BeanInfo for class [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean] 2005-07-14 20:02:04,735 DEBUG CachedIntrospectionResults - Caching PropertyDescriptors for class [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean] [...] 2005-07-14 20:02:04,771 DEBUG CachedIntrospectionResults - Class [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean] is cache-safe 2005-07-14 20:02:04,793 DEBUG BeanWrapperImpl - About to invoke write method [public void org.springframework.remoting.support.UrlBasedRemoteAccessor.setServiceUrl(java.lang.String)] on object of class [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean] 2005-07-14 20:02:04,798 DEBUG BeanWrapperImpl - Invoked write method [public void org.springframework.remoting.support.UrlBasedRemoteAccessor.setServiceUrl(java.lang.String)] with value of type [java.lang.String] 2005-07-14 20:02:04,806 DEBUG BeanWrapperImpl - Converting String to [class java.lang.Class] using property editor [org.springframework.beans.propertyeditors.ClassEditor@1283052] 2005-07-14 20:02:04,809 DEBUG BeanWrapperImpl - About to invoke write method [public void org.springframework.remoting.support.RemoteAccessor.setServiceInterface(java.lang.Class)] on object of class [org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean] 2005-07-14 20:02:04,810 DEBUG BeanWrapperImpl - Invoked write method [public void org.springframework.remoting.support.RemoteAccessor.setServiceInterface(java.lang.Class)] with value of type [java.lang.Class] 2005-07-14 20:02:04,812 DEBUG AbstractAutowireCapableBeanFactory - Invoking BeanPostProcessors before initialization of bean 'siteStructureService' 2005-07-14 20:02:04,819 DEBUG AbstractAutowireCapableBeanFactory - Invoking afterPropertiesSet() on bean with name 'siteStructureService' 2005-07-14 20:02:04,980 INFO DefaultAopProxyFactory - CGLIB2 available: proxyTargetClass feature enabled 2005-07-14 20:02:04,985 INFO CollectionFactory - JDK 1.4+ collections available 2005-07-14 20:02:05,006 INFO CollectionFactory - Commons Collections 3.x available 2005-07-14 20:02:05,007 DEBUG CollectionFactory - Creating java.util.IdentityHashMap 2005-07-14 20:02:05,010 DEBUG AdvisedSupport - Added new aspect interface: com.jcake.um.middleware.api.ISiteStructureService 2005-07-14 20:02:05,019 DEBUG JdkDynamicAopProxy - Creating JDK dynamic proxy
Any ideas what it may be and how to fix it? I really do not know how is it possible that the same code works if I run in as main() and it does such strange thing when I run it from eclipse-rcp plugin...


Reply With Quote