[JBoss-user] [Persistence & CMP/JBoss] - Re: ejbSelect error during iteration

2004-07-27 Thread cbaes
I've renamed the method name in the session remote code to testA1 from the original getStudentsshown on the stacktrace. session remote code: public void testA1(Integer courseCode) throws EJBException, RemoteException { try { . . Collection list = courseLocalHome.queryStudents(); Iterator ite

[JBoss-user] [Persistence & CMP/JBoss] - Re: ejbSelect error during iteration

2004-07-27 Thread cbaes
the entire stacktrace --- 10:33:21,223 ERROR [LogInterceptor] TransactionRolledbackLocalException in method: public abstract java.lang.Integer com.school.local.interfaces.Students.getName(), causedBy: javax.ejb.NoSuchObjectLocalException: EJB home methods are not allowed to access CMP

[JBoss-user] [Persistence & CMP/JBoss] - Re: ejbSelect error during iteration

2004-07-27 Thread cbaes
If I remove the "getName()" and just print out 'student' it doesn't crash. I get the JNDI name:primaryKey displayed on the screen. while(iter.hasNext()) { student = (Student)iter.next(); System.out.println(student); } It also works if I use student.getPrimaryKey(), or student.getEJBLocalHo

[JBoss-user] [Persistence & CMP/JBoss] - ejbSelect error during iteration

2004-07-26 Thread cbaes
Everytime I iterate through the list returned by my ejbSelectStudents I get an error, see below. I've been researching this for two days and can't find any referrence solutions. Does anyone know why this is happening? session remote code: public void getStudents(Integer courseCode)