0 Replies Latest reply on Dec 13, 2002 7:58 AM by prem

    CMP- problem in creating a bean

    prem Newbie

      Hello ,
      I have created a CMP bean and deployed it successfully. I have also created a datasource with jndi name"ShagunDS", which i wanted to use for the above bean. I used oracle-service.xml for making the datasource. When I try to create a bean it is giving the following exception (I ma using jboss-3.0.4_tomcat-4.1.12 for this purpose)

      18:21:22,089 ERROR [STDERR] javax.ejb.CreateException: Could not create entity:java.lang.N
      ullPointerException
      18:21:22,089 ERROR [STDERR] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCreateEntityCommand
      .execute(JDBCCreateEntityCommand.java:148)
      18:21:22,089 ERROR [STDERR] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.creat
      eEntity(JAWSPersistenceManager.java:255)
      18:21:22,089 ERROR [STDERR] at org.jboss.ejb.plugins.CMPPersistenceManager.createEntit
      y(CMPPersistenceManager.java:253)
      18:21:22,089 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionIn
      terceptor.createEntity(CachedConnectionInterceptor.java:270)
      18:21:22,099 ERROR [STDERR] at org.jboss.ejb.EntityContainer.createHome(EntityContaine
      r.java:731)
      18:21:22,099 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Met
      hod)
      18:21:22,099 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMetho
      dAccessorImpl.java:39)
      18:21:22,099 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegat
      ingMethodAccessorImpl.java:25)
      18:21:22,099 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
      18:21:22,109 ERROR [STDERR] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invo
      keHome(EntityContainer.java:1119)
      18:21:22,109 ERROR [STDERR] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.
      invokeHome(EntitySynchronizationInterceptor.java:206)
      18:21:22,109 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionIn
      terceptor.invokeHome(CachedConnectionInterceptor.java:215)
      18:21:22,109 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(Ab
      stractInterceptor.java:73)
      18:21:22,109 ERROR [STDERR] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeH
      ome(EntityInstanceInterceptor.java:90)
      18:21:22,109 ERROR [STDERR] at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(
      EntityLockInterceptor.java:79)
      18:21:22,109 ERROR [STDERR] at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeH
      ome(EntityCreationInterceptor.java:44)
      18:21:22,109 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(
      AbstractTxInterceptor.java:111)
      18:21:22,109 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti
      ons(TxInterceptorCMT.java:178)
      18:21:22,109 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInt
      erceptorCMT.java:52)
      18:21:22,109 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(Se
      curityInterceptor.java:105)
      18:21:22,109 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInte
      rceptor.java:129)
      18:21:22,109 ERROR [STDERR] at org.jboss.ejb.EntityContainer.invokeHome(EntityContaine
      r.java:487)
      18:21:22,109 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:730)
      18:21:22,109 ERROR [STDERR] at org.jboss.ejb.EntityContainer.invoke(EntityContainer.ja
      va:1058)
      18:21:22,109 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerI
      mpl.java:517)
      18:21:22,109 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker.invoke(LocalInv
      oker.java:98)
      18:21:22,109 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerI
      nterceptor.java:102)
      18:21:22,109 ERROR [STDERR] at org.jboss.proxy.TransactionInterceptor.invoke(Transacti
      onInterceptor.java:77)
      18:21:22,109 ERROR [STDERR] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInte
      rceptor.java:80)
      18:21:22,109 ERROR [STDERR] at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeIntercep
      tor.java:198)
      18:21:22,109 ERROR [STDERR] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.
      java:76)
      18:21:22,109 ERROR [STDERR] at $Proxy40.create(Unknown Source)
      18:21:22,109 ERROR [STDERR] at org.apache.jsp.newaccount_jsp._jspService(newaccount_js
      p.java:90)
      18:21:22,119 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBa
      se.java:136)
      18:21:22,119 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java
      :853)
      18:21:22,119 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(Jsp
      ServletWrapper.java:204)
      18:21:22,119 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(Jsp
      Servlet.java:289)
      18:21:22,119 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet
      .java:240)
      18:21:22,119 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java
      :853)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.interna
      lDoFilter(ApplicationFilterChain.java:247)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilte
      r(ApplicationFilterChain.java:193)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(St
      andardWrapperValve.java:260)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipel
      ineValveContext.invokeNext(StandardPipeline.java:643)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(Standa
      rdPipeline.java:480)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(Container
      Base.java:995)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(St
      andardContextValve.java:191)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipel
      ineValveContext.invokeNext(StandardPipeline.java:643)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.valves.CertificatesValve.invoke(Cer
      tificatesValve.java:246)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipel
      ineValveContext.invokeNext(StandardPipeline.java:641)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(Standa
      rdPipeline.java:480)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(Container
      Base.java:995)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.core.StandardContext.invoke(Standar
      dContext.java:2396)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(Stand
      ardHostValve.java:180)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipel
      ineValveContext.invokeNext(StandardPipeline.java:643)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.valves.ErrorDispatcherValve.invoke(
      ErrorDispatcherValve.java:170)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipel
      ineValveContext.invokeNext(StandardPipeline.java:641)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(Erro
      rReportValve.java:172)
      18:21:22,119 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipel
      ineValveContext.invokeNext(StandardPipeline.java:641)
      18:21:22,129 ERROR [STDERR] at org.apache.catalina.valves.AccessLogValve.invoke(Access
      LogValve.java:469)
      18:21:22,129 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipel
      ineValveContext.invokeNext(StandardPipeline.java:641)
      18:21:22,129 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(Standa
      rdPipeline.java:480)
      18:21:22,129 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(Container
      Base.java:995)
      18:21:22,129 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(Sta
      ndardEngineValve.java:174)
      18:21:22,129 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipel
      ineValveContext.invokeNext(StandardPipeline.java:643)
      18:21:22,129 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(Standa
      rdPipeline.java:480)
      18:21:22,129 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(Container
      Base.java:995)
      18:21:22,129 ERROR [STDERR] at org.apache.catalina.connector.http.HttpProcessor.proces
      s(HttpProcessor.java:1040)
      18:21:22,129 ERROR [STDERR] at org.apache.catalina.connector.http.HttpProcessor.run(Ht
      tpProcessor.java:1151)
      18:21:22,129 ERROR [STDERR] at java.lang.Thread.run(Thread.java:536)

      Please help me out. Thanks in advance.

      Prem