Hi there,


Some strange things are happening to my project...



1. Spring seems to ignore viewType tagged value of <<Service>> class - I had to 
change ejbViewType property



2. I have 2 types of clients - web-app (deployed within the same EAR as ejb) 
and standalone Swing-based application. And here comes "bad voodoo": 



If my session bean (being session facade for some hibernate/spring persistance 
layer) is being called for the first time by web appliacation based on the same 
JBoss - everything works ok. Web app (made with bpm4struts) is connecting to 
the service and so is standalone appliaction.



BUT if first connection is being made by standalone remote appliacation (and 
therfore EJB is initialized) - I get exception from ejb's create() method 
invoked by ServiceLocator written by me:



2005-07-11 02&#58;18&#58;03,964 INFO&nbsp; 
&#91;org.springframework.orm.hibernate.LocalSessionFactoryBean&#93; Closing 
Hibernate SessionFactory

2005-07-11 02&#58;18&#58;03,964 INFO&nbsp; 
&#91;net.sf.hibernate.impl.SessionFactoryImpl&#93; closing

2005-07-11 02&#58;18&#58;03,964 INFO&nbsp; 
&#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; 
Destroying singletons in factory 
&#123;org.springframework.beans.factory.support.DefaultListableBeanFactory 
defining beans &#91;beanRefFactory,beanRefFactoryEjb&#93;; root of BeanFactory 
hierarchy&#125;

2005-07-11 02&#58;18&#58;03,964 ERROR 
&#91;org.jboss.ejb.plugins.LogInterceptor&#93; EJBException in method&#58; 
public abstract com.massolit.service.ejb.MassolitCatalogService 
com.massolit.service.ejb.MassolitCatalogServiceHome.create&#40;&#41; throws 
javax.ejb.CreateException,java.rmi.RemoteException&#58;

javax.ejb.EJBException&#58; Could not instantiate bean

&nbsp; &nbsp;at 
org.jboss.ejb.plugins.AbstractInstancePool.get&#40;AbstractInstancePool.java&#58;180&#41;

&nbsp; &nbsp;at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome&#40;StatelessSessionInstanceInterceptor.java&#58;78&#41;

&nbsp; &nbsp;at 
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome&#40;AbstractInterceptor.java&#58;90&#41;

&nbsp; &nbsp;at 
org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome&#40;CallValidationInterceptor.java&#58;41&#41;

&nbsp; &nbsp;at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext&#40;AbstractTxInterceptor.java&#58;109&#41;

&nbsp; &nbsp;at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions&#40;TxInterceptorCMT.java&#58;335&#41;

&nbsp; &nbsp;at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome&#40;TxInterceptorCMT.java&#58;146&#41;

&nbsp; &nbsp;at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome&#40;SecurityInterceptor.java&#58;116&#41;

&nbsp; &nbsp;at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome&#40;LogInterceptor.java&#58;121&#41;

&nbsp; &nbsp;at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome&#40;ProxyFactoryFinderInterceptor.java&#58;93&#41;

&nbsp; &nbsp;at 
org.jboss.ejb.SessionContainer.internalInvokeHome&#40;SessionContainer.java&#58;613&#41;

&nbsp; &nbsp;at org.jboss.ejb.Container.invoke&#40;Container.java&#58;894&#41;

&nbsp; &nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0&#40;Native 
Method&#41;

&nbsp; &nbsp;at 
sun.reflect.NativeMethodAccessorImpl.invoke&#40;NativeMethodAccessorImpl.java&#58;39&#41;

&nbsp; &nbsp;at 
sun.reflect.DelegatingMethodAccessorImpl.invoke&#40;DelegatingMethodAccessorImpl.java&#58;25&#41;

&nbsp; &nbsp;at java.lang.reflect.Method.invoke&#40;Method.java&#58;585&#41;

&nbsp; &nbsp;at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke&#40;ReflectedDispatcher.java&#58;141&#41;

&nbsp; &nbsp;at 
org.jboss.mx.server.Invocation.dispatch&#40;Invocation.java&#58;80&#41;

&nbsp; &nbsp;at 
org.jboss.mx.server.Invocation.invoke&#40;Invocation.java&#58;72&#41;

&nbsp; &nbsp;at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke&#40;AbstractMBeanInvoker.java&#58;249&#41;

&nbsp; &nbsp;at 
org.jboss.mx.server.MBeanServerImpl.invoke&#40;MBeanServerImpl.java&#58;644&#41;

&nbsp; &nbsp;at 
org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke&#40;JRMPInvoker.java&#58;805&#41;

&nbsp; &nbsp;at 
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke&#40;JRMPInvoker.java&#58;406&#41;

&nbsp; &nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0&#40;Native 
Method&#41;

&nbsp; &nbsp;at 
sun.reflect.NativeMethodAccessorImpl.invoke&#40;NativeMethodAccessorImpl.java&#58;39&#41;

&nbsp; &nbsp;at 
sun.reflect.DelegatingMethodAccessorImpl.invoke&#40;DelegatingMethodAccessorImpl.java&#58;25&#41;

&nbsp; &nbsp;at java.lang.reflect.Method.invoke&#40;Method.java&#58;585&#41;

&nbsp; &nbsp;at 
sun.rmi.server.UnicastServerRef.dispatch&#40;UnicastServerRef.java&#58;294&#41;

&nbsp; &nbsp;at 
sun.rmi.transport.Transport$1.run&#40;Transport.java&#58;153&#41;

&nbsp; &nbsp;at java.security.AccessController.doPrivileged&#40;Native 
Method&#41;

&nbsp; &nbsp;at 
sun.rmi.transport.Transport.serviceCall&#40;Transport.java&#58;149&#41;

&nbsp; &nbsp;at 
sun.rmi.transport.tcp.TCPTransport.handleMessages&#40;TCPTransport.java&#58;460&#41;

&nbsp; &nbsp;at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run&#40;TCPTransport.java&#58;701&#41;

&nbsp; &nbsp;at java.lang.Thread.run&#40;Thread.java&#58;595&#41;



And consecutive attempts to connect - whenever from web-app or standalone 
application - end in the same way...



Any ideas? Any guide how to use generated spring-based ServiceLocator to 
connect to remote EJBs (if it may solve my problems)?
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2337#2337
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to