[JBoss-user] Problem with Remote Interface!!!

2001-05-12 Thread Madhu

Hi All,
  Continuation to my earlies mail for which [EMAIL PROTECTED] has
replied, here is the complete scenario, where this problem is coming.

Please find the getData() implementation in the Entity Bean

public SubNetData getData() throws RemoteException {
System.out.println(Inside the getData of SubNetworkBean  );
m_trace.print(SubNetworkIntfBean :getData() called );
SubNetData data = new SubNetData();

data.m_name   = m_name;
data.m_domainName = m_domainName;
data.m_type   = m_type;
data.m_discvStatus= m_discvStatus;
data.m_discvDateTime  = m_discvDateTime;
data.m_neListString   = m_neListString;
data.m_configuration  = m_configuration;
data.m_neVector   = m_neVector;

return data;
}

The SubNetData which its referring is a Serializable class which I already
mentioned. 

Please find the content of the Server.log file related to this error.

[SubNetIntfBean] Ravi  :DOMAIN1 
[SubNetIntfBean] After finding all the SubNetworks:: the collection is  
[EMS.SubNetworkHome:SUBNET1]
[SubNetIntfBean] Before SubNetData  EMS.SubNetworkHome:SUBNET1
[SubNetworkBean] Activated bean SubNetworkBean with id = SUBNET1
[SubNetworkBean] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is: 
java.lang.NullPointerException; nested exception is: 
java.rmi.ServerException: Load failed; nested exception is: 
java.lang.NullPointerException
[SubNetworkBean] java.rmi.ServerException: Load failed; nested exception is: 
[SubNetworkBean]java.lang.NullPointerException
[SubNetworkBean] java.lang.NullPointerException
[SubNetworkBean]at java.lang.reflect.Field.set(Native Method)
[SubNetworkBean]at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setCMPFieldValue(JDBCCommand.java:649)
[SubNetworkBean]at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.handleResult(JDBCLoadEntityCommand.java:113)
[SubNetworkBean]at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand.executeStatementAndHandleResult(JDBCQueryCommand.java:59)
[SubNetworkBean]at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:159)
[SubNetworkBean]at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:78)
[SubNetworkBean]at 
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.loadEntity(JAWSPersistenceManager.java:150)
[SubNetworkBean]at 
org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:341)
[SubNetworkBean]at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:192)
[SubNetworkBean]at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:186)
[SubNetworkBean]at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[SubNetworkBean]at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:263)
[SubNetworkBean]at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[SubNetworkBean]at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:177)
[SubNetworkBean]at 
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[SubNetworkBean]at 
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:323)
[SubNetworkBean]at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:471)
[SubNetworkBean]at 
org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:146)
[SubNetworkBean]at $Proxy143.getData(Unknown Source)
[SubNetworkBean]at
com.xxx.xx.xx.sso.SubNetIntfBean.findAllSubNetworksInDomain(SubNetIntfBean.java:404) 
[SubNetworkBean]   at java.lang.reflect.Method.invoke(Native Method)
[SubNetworkBean]at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:472)
 [SubNetworkBean]at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:87)
[SubNetworkBean]at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[SubNetworkBean]at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:263) 
[SubNetworkBean]  at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) 
[SubNetworkBean] at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:177)
[SubNetworkBean]at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[SubNetworkBean]at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:271) 
[SubNetworkBean] at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:471)
 [SubNetworkBean]at 

[JBoss-user] Problem with Remote Interface!!!

2001-05-11 Thread Madhu

Hi All,
   I have an Entity Bean 
Home : SubNetworkHome
Remote: SubNetwork
Bean: SubNetworkBean

I have a getData() method declared inside the Remote Interface, whose
implementation is given in the Bean class. 

SubNetData  data = subNetwork.getData();
This method returns a SubNetData Object.

The SubNetData is a Serializable class.

Please find the error produced in my server.log file while I am trying to
access the getData() method.

[SubNetworkBean] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is: 
java.lang.NullPointerException; nested exception is: 
java.rmi.ServerException: Load failed; nested exception is: 
java.lang.NullPointerException
[SubNetworkBean] java.rmi.ServerException: Load failed; nested exception is: 
[SubNetworkBean]java.lang.NullPointerException
[SubNetworkBean] java.lang.NullPointerException

Can anybody tell me what is the problem with my Remote Interface or my Entity
Bean.

Your help will be appreciated.

Regards,
Madhu


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problem with Remote Interface!!!

2001-05-11 Thread danch (Dan Christopherson)

Are you sure there isn't another exception that happens right before it? 
The stack trace for the actual NullPointerException would be much more 
informative - this is probably coming from your bean code.

-danch

Madhu wrote:

 Hi All,
I have an Entity Bean 
 Home : SubNetworkHome
 Remote: SubNetwork
 Bean: SubNetworkBean
 
 I have a getData() method declared inside the Remote Interface, whose
 implementation is given in the Bean class. 
 
 SubNetData  data = subNetwork.getData();
 This method returns a SubNetData Object.
 
 The SubNetData is a Serializable class.
 
 Please find the error produced in my server.log file while I am trying to
 access the getData() method.
 
 [SubNetworkBean] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is: 
   java.lang.NullPointerException; nested exception is: 
   java.rmi.ServerException: Load failed; nested exception is: 
   java.lang.NullPointerException
 [SubNetworkBean] java.rmi.ServerException: Load failed; nested exception is: 
 [SubNetworkBean]  java.lang.NullPointerException
 [SubNetworkBean] java.lang.NullPointerException
 
 Can anybody tell me what is the problem with my Remote Interface or my Entity
 Bean.
 
 Your help will be appreciated.
 
 Regards,
 Madhu
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 




___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user