0 Replies Latest reply on Sep 25, 2005 6:49 PM by kingcool1432

    help..finder exception..urgent

    kingcool1432

      hi, i`m using jbuilder 2006 to deploy thru jboss.. when i deploy i get the following error :


      C:\Borland\JBuilder2006\jdk1.5\bin\javaw -classpath "C:\Documents and Settings\Naren\jbproject\meApp\classes;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\activation.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\avalon-framework.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\axis.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\axis-ws4ee.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\commons-discovery.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\commons-logging.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\concurrent.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jacorb.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jaxr-client.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jbossall-client.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jboss-client.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jboss-common-client.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jboss-deployment.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jbossha-client.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jboss-iiop-client.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jboss-j2ee.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jboss-jaas.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jboss-jaxrpc.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jboss-juddiaxis.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\juddisaaj.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jbossjmx-ant.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jbossmq-client.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jbossmqha.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jboss-net-client.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jboss-saaj.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jbosssx-client.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jboss-system-client.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jboss-ws4ee-client.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jmx-client.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\jnp-client.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\log4j.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\logkit.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\mail.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\namespace.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\scout.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\wsdl4j.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\client\wss4j.jar;C:\Documents and Settings\Naren\My Documents\downloads\jboss-4.0.2\jboss-4.0.2\server\all\lib\jbossmq.jar;C:\Borland\JBuilder2006\jdk1.5\lib\jconsole.jar;C:\Borland\JBuilder2006\jdk1.5\lib\htmlconverter.jar;C:\Borland\JBuilder2006\jdk1.5\lib\tools.jar;C:\Borland\JBuilder2006\jdk1.5\lib\dt.jar;C:\Borland\JBuilder2006\jdk1.5\jre\lib\rt.jar;C:\Borland\JBuilder2006\jdk1.5\jre\lib\plugin.jar;C:\Borland\JBuilder2006\jdk1.5\jre\lib\im\thaiim.jar;C:\Borland\JBuilder2006\jdk1.5\jre\lib\im\indicim.jar;C:\Borland\JBuilder2006\jdk1.5\jre\lib\ext\localedata.jar;C:\Borland\JBuilder2006\jdk1.5\jre\lib\ext\sunjce_provider.jar;C:\Borland\JBuilder2006\jdk1.5\jre\lib\ext\dnsns.jar;C:\Borland\JBuilder2006\jdk1.5\jre\lib\ext\sunpkcs11.jar;C:\Borland\JBuilder2006\jdk1.5\jre\lib\charsets.jar;C:\Borland\JBuilder2006\jdk1.5\jre\lib\deploy.jar;C:\Borland\JBuilder2006\jdk1.5\jre\lib\javaws.jar;C:\Borland\JBuilder2006\jdk1.5\jre\lib\jsse.jar;C:\Borland\JBuilder2006\jdk1.5\jre\lib\jce.jar" meapp.SaleTestClient1
      -- Initializing bean access.
      -- Succeeded initializing bean access through Home interface.
      -- Execution time: 453 ms.
      -- Calling findAll()
      -- inside tryy
      javax.ejb.FinderException: Find failed: java.sql.SQLException: ORA-00904: "T0_S"."SALE_UPK": invalid identifier

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstractQueryCommand.java:245)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstractQueryCommand.java:128)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntitiesCommand.execute(JDBCFindEntitiesCommand.java:40)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntities(JDBCStoreManager.java:598)-- Failed : findAll()

      at org.jboss.ejb.plugins.CMPPersistenceManager.findEntities(CMPPersistenceManager.java:322)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntities(CachedConnectionInterceptor.java:321)
      at org.jboss.ejb.EntityContainer.find(EntityContainer.java:700)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
      at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1113)
      at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:192)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:212)
      at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:117)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61)
      at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28)
      at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:116)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
      at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:508)
      at org.jboss.ejb.Container.invoke(Container.java:894)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
      at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      at sun.rmi.transport.Transport$1.run(Transport.java:153)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      at java.lang.Thread.run(Thread.java:595)
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
      at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
      at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:118)
      at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:227)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
      at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
      at $Proxy0.findAll(Unknown Source)
      at meapp.SaleTestClient1.findAll(SaleTestClient1.java:138)
      at meapp.SaleTestClient1.executeFindAll(SaleTestClient1.java:608)
      at meapp.SaleTestClient1.main(SaleTestClient1.java:653)
      Caused by: java.sql.SQLException: ORA-00904: "T0_S"."SALE_UPK": invalid identifier

      at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:187)
      at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:241)
      at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
      at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1477)
      at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:677)
      at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2311)
      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2554)
      at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:452)
      at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:382)
      at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:296)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstractQueryCommand.java:228)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstractQueryCommand.java:128)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntitiesCommand.execute(JDBCFindEntitiesCommand.java:40)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntities(JDBCStoreManager.java:598)
      at org.jboss.ejb.plugins.CMPPersistenceManager.findEntities(CMPPersistenceManager.java:322)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntities(CachedConnectionInterceptor.java:321)
      at org.jboss.ejb.EntityContainer.find(EntityContainer.java:700)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
      at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1113)
      at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:192)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:212)
      at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:117)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61)
      at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28)
      at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:116)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
      at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:508)
      at org.jboss.ejb.Container.invoke(Container.java:894)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
      at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      at sun.rmi.transport.Transport$1.run(Transport.java:153)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      at java.lang.Thread.run(Thread.java:595)
      java.lang.NullPointerException
      at meapp.SaleTestClient1.executeCollectionFinder(SaleTestClient1.java:616)
      at meapp.SaleTestClient1.executeFindAll(SaleTestClient1.java:608)
      at meapp.SaleTestClient1.main(SaleTestClient1.java:653)
      -- Return value from findAll(): null.



      heres my SaleTestClient code:

      package meapp;

      import java.util.Collection;
      import javax.naming.*;
      import javax.rmi.PortableRemoteObject;
      import java.lang.Object;
      import java.lang.String;
      import java.math.BigDecimal;
      import java.util.Iterator;
      import java.util.Enumeration;
      import javax.naming.InitialContext;
      import java.util.Hashtable;

      public class SaleTestClient1 {
      private static final String ERROR_NULL_REMOTE = "Remote interface reference is null. It must be created by calling one of the Home interface methods first.";
      private static final int MAX_OUTPUT_LINE_LENGTH = 100;
      private boolean logging = true;
      private SaleRemote saleRemote = null;
      private SaleHome saleHome=null;
      private SaleRemoteHome saleRemoteHome = null;

      //Construct the EJB test client
      public SaleTestClient1() {
      initialize();
      }

      public void initialize() {
      long startTime = 0;
      if (logging) {
      log("Initializing bean access.");
      startTime = System.currentTimeMillis();
      }

      try {

      //get naming context
      Context context = getInitialContext();
      //look up jndi name
      Object ref = context.lookup("SaleRemote");
      //look up jndi name and cast to Home interface
      saleRemoteHome = (SaleRemoteHome) PortableRemoteObject.narrow(ref,
      SaleRemoteHome.class);
      if (logging) {
      log(
      "Succeeded initializing bean access through Home interface.");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }

      } catch (Exception e) {
      if (logging) {
      log("Failed initializing bean access.");
      }
      e.printStackTrace();
      }

      }

      private Context getInitialContext() throws NamingException {
      Hashtable environment = new Hashtable();

      environment.put(Context.INITIAL_CONTEXT_FACTORY,
      "org.jnp.interfaces.NamingContextFactory");
      environment.put(Context.URL_PKG_PREFIXES,
      "org.jboss.naming:org.jnp.interfaces");
      environment.put(Context.PROVIDER_URL, "jnp://localhost:1099");

      return new InitialContext(environment);
      }

      //----------------------------------------------------------------------------
      // Methods that use Home interface methods to generate a Remote interface reference
      //----------------------------------------------------------------------------

      public SaleRemote create() {
      long startTime = 0;
      if (logging) {
      log("Calling create()");
      startTime = System.currentTimeMillis();
      }

      try {
      saleRemote = saleRemoteHome.create();
      if (logging) {
      log("Succeeded: create()");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : create()");
      }
      e.printStackTrace();
      }
      if (logging) {
      log("Return value from create(): " + saleRemote + ".");
      }
      return saleRemote;
      }

      public SaleRemote findByPrimaryKey(Object pk) {
      long startTime = 0;
      if (logging) {
      log("Calling findByPrimaryKey(" + pk + ")");
      startTime = System.currentTimeMillis();
      }

      try {
      saleRemote = saleRemoteHome.findByPrimaryKey(pk);
      if (logging) {
      log("Succeeded: findByPrimaryKey(" + pk + ")");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : findByPrimaryKey(" + pk + ")");
      }
      e.printStackTrace();
      }
      if (logging) {
      log("Return value from findByPrimaryKey(" + pk + "): " + saleRemote +
      ".");
      }
      return saleRemote;
      }

      public Collection findAll() {
      Collection returnValue = null;
      long startTime = 0;
      if (logging) {
      log("Calling findAll()");
      startTime = System.currentTimeMillis();
      }

      try {
      log("inside tryy");
      returnValue = saleRemoteHome.findAll();
      log("eor hre");
      if (logging) {
      log("Succeeded: findAll()");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : findAll()");
      }
      e.printStackTrace();
      }
      if (logging) {
      log("Return value from findAll(): " + returnValue + ".");
      }
      return returnValue;
      }

      //----------------------------------------------------------------------------
      // Methods that use Remote interface methods to access data through the bean
      //----------------------------------------------------------------------------

      public void setStype(String stype) {
      if (saleRemote == null) {
      System.out.println("Error in setStype(): " + ERROR_NULL_REMOTE);
      return;
      }
      long startTime = 0;
      if (logging) {
      log("Calling setStype(" + stype + ")");
      startTime = System.currentTimeMillis();
      }

      try {
      saleRemote.setStype(stype);
      if (logging) {
      log("Succeeded: setStype(" + stype + ")");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : setStype(" + stype + ")");
      }
      e.printStackTrace();
      }
      }

      public String getStype() {
      String returnValue = "";
      if (saleRemote == null) {
      System.out.println("Error in getStype(): " + ERROR_NULL_REMOTE);
      return returnValue;
      }
      long startTime = 0;
      if (logging) {
      log("Calling getStype()");
      startTime = System.currentTimeMillis();
      }

      try {
      returnValue = saleRemote.getStype();
      if (logging) {
      log("Succeeded: getStype()");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : getStype()");
      }
      e.printStackTrace();
      }
      if (logging) {
      log("Return value from getStype(): " + returnValue + ".");
      }
      return returnValue;
      }

      public void setArtiste(String artiste) {
      if (saleRemote == null) {
      System.out.println("Error in setArtiste(): " + ERROR_NULL_REMOTE);
      return;
      }
      long startTime = 0;
      if (logging) {
      log("Calling setArtiste(" + artiste + ")");
      startTime = System.currentTimeMillis();
      }

      try {
      saleRemote.setArtiste(artiste);
      if (logging) {
      log("Succeeded: setArtiste(" + artiste + ")");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : setArtiste(" + artiste + ")");
      }
      e.printStackTrace();
      }
      }

      public String getArtiste() {
      String returnValue = "";
      if (saleRemote == null) {
      System.out.println("Error in getArtiste(): " + ERROR_NULL_REMOTE);
      return returnValue;
      }
      long startTime = 0;
      if (logging) {
      log("Calling getArtiste()");
      startTime = System.currentTimeMillis();
      }

      try {
      returnValue = saleRemote.getArtiste();
      if (logging) {
      log("Succeeded: getArtiste()");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : getArtiste()");
      }
      e.printStackTrace();
      }
      if (logging) {
      log("Return value from getArtiste(): " + returnValue + ".");
      }
      return returnValue;
      }

      public void setPublisher(String publisher) {
      if (saleRemote == null) {
      System.out.println("Error in setPublisher(): " + ERROR_NULL_REMOTE);
      return;
      }
      long startTime = 0;
      if (logging) {
      log("Calling setPublisher(" + publisher + ")");
      startTime = System.currentTimeMillis();
      }

      try {
      saleRemote.setPublisher(publisher);
      if (logging) {
      log("Succeeded: setPublisher(" + publisher + ")");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : setPublisher(" + publisher + ")");
      }
      e.printStackTrace();
      }
      }

      public String getPublisher() {
      String returnValue = "";
      if (saleRemote == null) {
      System.out.println("Error in getPublisher(): " + ERROR_NULL_REMOTE);
      return returnValue;
      }
      long startTime = 0;
      if (logging) {
      log("Calling getPublisher()");
      startTime = System.currentTimeMillis();
      }

      try {
      returnValue = saleRemote.getPublisher();
      if (logging) {
      log("Succeeded: getPublisher()");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : getPublisher()");
      }
      e.printStackTrace();
      }
      if (logging) {
      log("Return value from getPublisher(): " + returnValue + ".");
      }
      return returnValue;
      }

      public void setFormat(String format) {
      if (saleRemote == null) {
      System.out.println("Error in setFormat(): " + ERROR_NULL_REMOTE);
      return;
      }
      long startTime = 0;
      if (logging) {
      log("Calling setFormat(" + format + ")");
      startTime = System.currentTimeMillis();
      }

      try {
      saleRemote.setFormat(format);
      if (logging) {
      log("Succeeded: setFormat(" + format + ")");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : setFormat(" + format + ")");
      }
      e.printStackTrace();
      }
      }

      public String getFormat() {
      String returnValue = "";
      if (saleRemote == null) {
      System.out.println("Error in getFormat(): " + ERROR_NULL_REMOTE);
      return returnValue;
      }
      long startTime = 0;
      if (logging) {
      log("Calling getFormat()");
      startTime = System.currentTimeMillis();
      }

      try {
      returnValue = saleRemote.getFormat();
      if (logging) {
      log("Succeeded: getFormat()");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : getFormat()");
      }
      e.printStackTrace();
      }
      if (logging) {
      log("Return value from getFormat(): " + returnValue + ".");
      }
      return returnValue;
      }

      public void setYear(BigDecimal year) {
      if (saleRemote == null) {
      System.out.println("Error in setYear(): " + ERROR_NULL_REMOTE);
      return;
      }
      long startTime = 0;
      if (logging) {
      log("Calling setYear(" + year + ")");
      startTime = System.currentTimeMillis();
      }

      try {
      saleRemote.setYear(year);
      if (logging) {
      log("Succeeded: setYear(" + year + ")");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : setYear(" + year + ")");
      }
      e.printStackTrace();
      }
      }

      public BigDecimal getYear() {
      BigDecimal returnValue = null;
      if (saleRemote == null) {
      System.out.println("Error in getYear(): " + ERROR_NULL_REMOTE);
      return returnValue;
      }
      long startTime = 0;
      if (logging) {
      log("Calling getYear()");
      startTime = System.currentTimeMillis();
      }

      try {
      returnValue = saleRemote.getYear();
      if (logging) {
      log("Succeeded: getYear()");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : getYear()");
      }
      e.printStackTrace();
      }
      if (logging) {
      log("Return value from getYear(): " + returnValue + ".");
      }
      return returnValue;
      }

      public void setNsold(BigDecimal nsold) {
      if (saleRemote == null) {
      System.out.println("Error in setNsold(): " + ERROR_NULL_REMOTE);
      return;
      }
      long startTime = 0;
      if (logging) {
      log("Calling setNsold(" + nsold + ")");
      startTime = System.currentTimeMillis();
      }

      try {
      saleRemote.setNsold(nsold);
      if (logging) {
      log("Succeeded: setNsold(" + nsold + ")");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : setNsold(" + nsold + ")");
      }
      e.printStackTrace();
      }
      }

      public BigDecimal getNsold() {
      BigDecimal returnValue = null;
      if (saleRemote == null) {
      System.out.println("Error in getNsold(): " + ERROR_NULL_REMOTE);
      return returnValue;
      }
      long startTime = 0;
      if (logging) {
      log("Calling getNsold()");
      startTime = System.currentTimeMillis();
      }

      try {
      returnValue = saleRemote.getNsold();
      if (logging) {
      log("Succeeded: getNsold()");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : getNsold()");
      }
      e.printStackTrace();
      }
      if (logging) {
      log("Return value from getNsold(): " + returnValue + ".");
      }
      return returnValue;
      }

      public void setPrice(BigDecimal price) {
      if (saleRemote == null) {
      System.out.println("Error in setPrice(): " + ERROR_NULL_REMOTE);
      return;
      }
      long startTime = 0;
      if (logging) {
      log("Calling setPrice(" + price + ")");
      startTime = System.currentTimeMillis();
      }

      try {
      saleRemote.setPrice(price);
      if (logging) {
      log("Succeeded: setPrice(" + price + ")");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : setPrice(" + price + ")");
      }
      e.printStackTrace();
      }
      }

      public BigDecimal getPrice() {
      BigDecimal returnValue = null;
      if (saleRemote == null) {
      System.out.println("Error in getPrice(): " + ERROR_NULL_REMOTE);
      return returnValue;
      }
      long startTime = 0;
      if (logging) {
      log("Calling getPrice()");
      startTime = System.currentTimeMillis();
      }

      try {
      returnValue = saleRemote.getPrice();
      if (logging) {
      log("Succeeded: getPrice()");
      long endTime = System.currentTimeMillis();
      log("Execution time: " + (endTime - startTime) + " ms.");
      }
      } catch (Exception e) {
      if (logging) {
      log("Failed : getPrice()");
      }
      e.printStackTrace();
      }
      if (logging) {
      log("Return value from getPrice(): " + returnValue + ".");
      }
      return returnValue;
      }

      public void executeRemoteCallsWithDefaultArguments() {
      if (saleRemote == null) {
      System.out.println(
      "Error in executeRemoteCallsWithDefaultArguments(): " +
      ERROR_NULL_REMOTE);
      return;
      }

      try {
      setStype("");
      getStype();
      setArtiste("");
      getArtiste();
      setPublisher("");
      getPublisher();
      setFormat("");
      getFormat();
      setYear(null);
      getYear();
      setNsold(null);
      getNsold();
      setPrice(null);
      getPrice();
      } catch (Exception e) {
      e.printStackTrace();
      }
      }

      //----------------------------------------------------------------------------
      // Utility Methods
      //----------------------------------------------------------------------------

      private void log(String message) {

      if (message == null) {
      System.out.println("-- null");
      }
      if (message.length() > MAX_OUTPUT_LINE_LENGTH) {
      System.out.println("-- " +
      message.substring(0, MAX_OUTPUT_LINE_LENGTH) +
      " ...");
      } else {
      System.out.println("-- " + message);
      }
      }

      public void executeFindAll() {
      try {
      executeCollectionFinder(findAll());
      } catch (Exception e) {
      e.printStackTrace();
      }
      }

      public void executeCollectionFinder(Collection all) {
      try {
      Iterator iterator = all.iterator();
      while (iterator.hasNext()) {
      Object object = iterator.next();
      SaleRemote saleRemote = (SaleRemote) PortableRemoteObject.
      narrow(object, SaleRemote.class);
      log(saleRemote.toString());
      }
      } catch (Exception e) {
      e.printStackTrace();
      }
      }

      public void executeEnumerationFinder(Enumeration all) {
      try {
      while (all.hasMoreElements()) {
      Object object = all.nextElement();
      SaleRemote saleRemote = (SaleRemote) PortableRemoteObject.
      narrow(object, SaleRemote.class);
      log(saleRemote.toString());
      }
      } catch (Exception e) {
      e.printStackTrace();
      }
      }

      //Main method
      public static void main(String[] args) {
      SaleTestClient1 client = new SaleTestClient1();

      client.executeFindAll();
      }
      }





      ejb-jar.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
      <ejb-jar>
      <display-name>modSale</display-name>
      <enterprise-beans>

      <ejb-name>Sale</ejb-name>
      meapp.SaleRemoteHome
      meapp.SaleRemote
      <local-home>meapp.SaleHome</local-home>
      meapp.Sale
      <ejb-class>meapp.SaleBean</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>java.lang.Object</prim-key-class>
      False
      <cmp-version>2.x</cmp-version>
      <abstract-schema-name>sale</abstract-schema-name>
      <cmp-field>
      <field-name>stype</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>artiste</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>publisher</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>format</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>year</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>nsold</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>price</field-name>
      </cmp-field>

      <query-method>
      <method-name>findAll</method-name>
      <method-params/>
      </query-method>
      <ejb-ql><![CDATA[SELECT OBJECT(s)FROM sale AS s]]></ejb-ql>


      </enterprise-beans>
      <assembly-descriptor>
      <container-transaction>

      <ejb-name>Sale</ejb-name>
      <method-name>*</method-name>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      </assembly-descriptor>
      </ejb-jar>










      any ideaa what i`m doing wrong?? its pretty urgent, so any help wud be appreciated.. thanks for ur time :)