tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peterml Lin <dbsp...@yahoo.com>
Subject javax.ejb.EJBException: Unknown Container Exception:
Date Sat, 10 Apr 2010 11:48:52 GMT
I try to run post-ejb3 from Spring Enterprise Recipe book with openejb 
version 3.1.2 and spring version 3.0.0.RC1. And I am getting the 
following exception 
"Exception in thread "main" 
javax.ejb.EJBException: Unknown Container Exception: 
java.lang.NullPointerException: null
    at 
org.apache.openejb.client.EJBObjectHandler._invoke(EJBObjectHandler.java:184)
   
 at 
org.apache.openejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:117)
   
 at 
org.apache.openejb.client.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:52)
   
 at $Proxy0.calculatePostage(Unknown Source)
    at 
com.apress.springenterpriserecipes.post.FrontDeskImpl.calculatePostage(FrontDeskImpl.java:12)
   
 at
 
com.apress.springenterpriserecipes.post.FrontDeskMain.main(FrontDeskMain.java:13)
   
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   
 at java.lang.reflect.Method.invoke(Method.java:597)
    at 
com.intellij.rt.execution.application.AppMain.main(AppMain.java:110)
Caused
 by: java.lang.NullPointerException
    at 
org.apache.openejb.client.ApplicationException.<init>(ApplicationException.java:25)
   
 at 
org.apache.openejb.client.EJBObjectHandler.businessMethod(EJBObjectHandler.java:235)
   
 at 
org.apache.openejb.client.EJBObjectHandler._invoke(EJBObjectHandler.java:157)
"

The
 ejb3 is deployed
 as
"C:\Projects\Java\SpringRe\code\rpc\post-ejb3\target>c:\software\openejb-3.1.2\bi
n\openejb
 deploy PostageService.jar
Application deployed successfully at 
"PostageService.jar"
App(id=C:\software\openejb-3.1.2\apps\PostageService.jar)
   
 EjbJar(id=PostageService.jar, 
path=C:\software\openejb-3.1.2\apps\PostageSer
vice.jar)
        
Ejb(ejb-name=PostageServiceBean, id=PostageServiceBean)
            
Jndi(name=PostageServiceBeanRemote)

        
Interceptor(class=org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor)"
and
 the client spring config file is
"<jee:jndi-lookup 
id="postageService"
        jndi-name="PostageServiceBeanRemote">
       

 <jee:environment>
            
java.naming.factory.initial=org.apache.openejb.client.RemoteInitialContextFactory
           
 java.naming.provider.url=ejbd://127.0.0.1:4201
        
</jee:environment>
    </jee:jndi-lookup>

    

   
 <bean id="frontDesk"
        
class="com.apress.springenterpriserecipes.post.FrontDeskImpl">
       
 <property name="postageService" ref="postageService" />
    
</bean>
</beans>
"


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message