Skip to Content
0
Former Member
Oct 12, 2009 at 11:57 AM

CMIException: JavaBean xxx does not provide read method for property xxx

16 Views

Hallo,

I want to use an EJB Session Bean as Model in a WebDynPro for Java.

We are on 7.11 SP 3.

Bean-Implementation:

package de.comp.test;
import javax.ejb.Stateless;
import de.comp.MessageList;

@Stateless
public class MiniBean implements MiniLocal {
	public MessageList getMessage() {
		MessageList msgList = new MessageList();
		return msgList;
	}
	public void setMessage(MessageList s) {
		...
	}
}

Local-Interface:

package de.comp.test;
import javax.ejb.Local;
import de.comp.MessageList;

@Local
public interface MiniLocal {
	public MessageList getMessage ();
	public void setMessage (MessageList s);
}

Now when I want to import the EJB in a WebDynPro Model there is following exception:

com.sap.tc.cmi.exception.CMIException: JavaBean de.comp.MessageList does not provide read method for property message
	at com.sap.tc.webdynpro.model.ejb.importer.EJBCMIRuntimeMetadataFactory.javaBeanAnalyser(EJBCMIRuntimeMetadataFactory.java:520)
	at com.sap.tc.webdynpro.model.ejb.importer.EJBCMIRuntimeMetadataFactory.processSingleClass(EJBCMIRuntimeMetadataFactory.java:667)
	at com.sap.tc.webdynpro.model.ejb.importer.EJBCMIRuntimeMetadataFactory.addReferencesToModelClassInfo(EJBCMIRuntimeMetadataFactory.java:469)
	at com.sap.tc.webdynpro.model.ejb.importer.EJBCMIRuntimeMetadataFactory.createEJBModelInfo(EJBCMIRuntimeMetadataFactory.java:366)
	at com.sap.tc.cm.ejb.modeltype.importer.dialog.EJBModelCreationDialog.afterEJBSelectPage(EJBModelCreationDialog.java:367)
	at com.sap.tc.cm.ejb.modeltype.importer.dialog.EJBModelCreationDialog.nextPressed(EJBModelCreationDialog.java:172)
...

The EJB DC is deployed in an EAR DC. The WD DC has a dependency to the EAR DC. All Permissions and PP-Configuration should be ok, because when I use the Session Bean with a JNDI-Lookup in an WD-View-Method, it works.

Any idea?

Kind Regards,

Gerhard