The offending method in an entity bean is:
public Hashtable getAllValues()
throws java.rmi.RemoteException
{
Hashtable allValues = new Hashtable();
allValues.put( "Id", Id );
allValues.put( "Name", Name );
return allValues;
}
When I call it from a local bean, it throws the container exception:
company thiscomp = (company)i.next();
Hashtable thiscompvals = thiscomp.getAllValues();
Hope this all helps. I've got a demo soon so I'm going back to the getXX
calls for now to make it work.
>===== Original Message From Tim Squires <[EMAIL PROTECTED]> =====
>Forgot console output:
>
>
>[company] CONTAINER EXCEPTION:null
>[company] java.lang.NullPointerException
>[company] at
>org.jboss.ejb.plugins.TxInterceptorCMT.getTransactionMethod(TxInterceptorCMT.
j
>ava:475)
>[company] at
>org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.j
a
>va:209)
>[company] at
>org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
>[company] at
>org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:144
)
>[company] at
>org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
>[company] at
>org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:316)
>[company] at
>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerIn
v
>oker.java:222)
>[company] at
>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerIn
v
>oker.java:187)
>[company] at java.lang.reflect.Method.invoke(Native Method)
>[company] at
>sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
>[company] at sun.rmi.transport.Transport$1.run(Transport.java:142)
>[company] at java.security.AccessController.doPrivileged(Native Method)
>[company] at
sun.rmi.transport.Transport.serviceCall(Transport.java:139)
>[company] at
>sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
>[company] at
>sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:64
3
>)
>[company] at java.lang.Thread.run(Thread.java:484)
>[classification] CONTAINER EXCEPTION:null
>[classification] java.lang.NullPointerException
>[classification] at
>org.jboss.ejb.plugins.TxInterceptorCMT.getTransactionMethod(TxInterceptorCMT.
j
>ava:475)
>[classification] at
>org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.j
a
>va:209)
>[classification] at
>org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
>[classification] at
>org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:144
)
>[classification] at
>org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
>[classification] at
>org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:316)
>[classification] at
>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerIn
v
>oker.java:222)
>[classification] at
>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerIn
v
>oker.java:187)
>[classification] at java.lang.reflect.Method.invoke(Native Method)
>[classification] at
>sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
>[classification] at
>sun.rmi.transport.Transport$1.run(Transport.java:142)
>[classification] at java.security.AccessController.doPrivileged(Native
>Method)
>[classification] at
>sun.rmi.transport.Transport.serviceCall(Transport.java:139)
>[classification] at
>sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
>[classification] at
>sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:64
3
>)
>[classification] at java.lang.Thread.run(Thread.java:484)
>[company] CONTAINER EXCEPTION:null
>[company] java.lang.NullPointerException
>[company] at
>org.jboss.ejb.plugins.TxInterceptorCMT.getTransactionMethod(TxInterceptorCMT.
j
>ava:475)
>[company] at
>org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.j
a
>va:209)
>[company] at
>org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
>[company] at
>org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:144
)
>[company] at
>org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
>[company] at
>org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:316)
>[company] at
>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerIn
v
>oker.java:222)
>[company] at
>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerIn
v
>oker.java:187)
>[company] at java.lang.reflect.Method.invoke(Native Method)
>[company] at
>sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
>[company] at sun.rmi.transport.Transport$1.run(Transport.java:142)
>[company] at java.security.AccessController.doPrivileged(Native Method)
>[company] at
sun.rmi.transport.Transport.serviceCall(Transport.java:139)
>[company] at
>sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
>[company] at
>sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:64
3
>)
>[company] at java.lang.Thread.run(Thread.java:484)
>
>
>
>>===== Original Message From Tim Squires <[EMAIL PROTECTED]> =====
>>Hi,
>>
>>Using JSP Custom tags to call a bean that calls a session ejb, which uses
>many
>>entity beans. I removed the
>>
>>pkclass readAllValues() & (returned the primary key class)
>>updateAllValues( pk ) (updated only the primary key values)
>>
>>methods from the entity beans and added a new one
>>
>>Hashtable getAllValues() (returns all persistant values)
>>
>>When rerun it comes back with:
>>
>>Error: java.rmi.ServerException: RemoteException occurred in server thread;
>>nested exception is:
>>java.rmi.ServerException: Container exception.
>>Notify the container developers :-); nested exception is:
>>java.lang.NullPointerException
>>
>>I gather that the readAllValues or updateAllValues is needed by something,
>>just off now to find if it's somewhere in my code....................
>>
>>Later, Tim.
>>
>>---------------------
>>It's not what you know, it's who you tell.
>>
>>-----------------------
>>"Pure seduction! Now available in bunches visit
>>http://www.flowers2send.com fresh flowers delivered next day from Holland"
>>
>>
>>
>>
>>
>>--
>>--------------------------------------------------------------
>>To subscribe: [EMAIL PROTECTED]
>>To unsubscribe: [EMAIL PROTECTED]
>>Problems?: [EMAIL PROTECTED]
>
>---------------------
>It's not what you know, it's who you tell.
>
>-----------------------
>"Nokia 7110 WAP phone, free on Orange Talk 150. Visit Totalise Telecom
>to get your free phone at http://www.totalisetelecom.net/store"
>
>
>
>--
>--------------------------------------------------------------
>To subscribe: [EMAIL PROTECTED]
>To unsubscribe: [EMAIL PROTECTED]
>Problems?: [EMAIL PROTECTED]
---------------------
It's not what you know, it's who you tell.
-----------------------
"Nokia 7110 WAP phone, free on Orange Talk 150. Visit Totalise Telecom
to get your free phone at http://www.totalisetelecom.net/store"
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]