Hello All -
I'm new to jBoss, so bear with me, please, in case I've left out something 
obvious.

I am having problems with an Entity (BMP) bean that is attempting to access 
an external Stateless Session bean running on the same server (but within a 
separate JAR).

When executing (within my entity bean named BMPTest):
            DBHome DBBeanHome = 
(DBHome)PortableRemoteObject.narrow(objref,DBHome.class);

I receive the error:
[BMPTest] TRANSACTION ROLLBACK EXCEPTION:id may not be null; nested 
exception is:
        java.lang.Error: id may not be null
[BMPTest] java.lang.Error: id may not be null
[BMPTest]       at org.jboss.ejb.CacheKey.<init>(CacheKey.java:51)
[BMPTest]       at 
org.jboss.ejb.plugins.EntityInstanceCache.createCacheKey(EntityInstanceCache.java:45)
[BMPTest]       at 
org.jboss.ejb.plugins.BMPPersistenceManager.createEntity(BMPPersistenceManager.java:151)
[BMPTest]       at 
org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:427)
[BMPTest]       at java.lang.reflect.Method.invoke(Native Method)
[BMPTest]       at 
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:585)
[BMPTest]       at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:156)
[BMPTest]       at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:86)
[BMPTest]       at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)
[BMPTest]       at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:263)
[BMPTest]       at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
[BMPTest]       at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:126)
[BMPTest]       at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
[BMPTest]       at 
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:309)
[BMPTest]       at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:207)
[BMPTest]       at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:153)
[BMPTest]       at 
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:221)

etc.

For my BMPTest beans ejb-jar.xml, I added:
<ejb-ref>
           <ejb-ref-name>MyDBBean</ejb-ref-name>
           <ejb-ref-type>Session</ejb-ref-type>
           <home>DBHome</home>
           <remote>DB</remote>
</ejb-ref>

and in jboss.xml:
<ejb-ref>
          <ejb-ref-name>MyDBBean</ejb-ref-name>
          <jndi-name>MyDBBean</jndi-name>
</ejb-ref>


I'm moving these beans from j2ee server, so I haven't built some simpler 
code to access DBBean directly yet, which will be my next step to isolate 
the problem.

I'm using a JSP page to call a JavaBean, which calls the BMPTest entity 
bean, which attempts to call upon DBBean Session bean - the failure occurs at:
(DBHome)PortableRemoteObject.narrow

Any ideas would be appreciated.

Also, I haven't found a lot of info on exactly what I should be setting 
within the manfest.mf file - I'm not sure if its related or not, but its 
one area of grayness....

Thanks!
tyson



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to