0 Replies Latest reply on Aug 23, 2005 6:44 AM by Manmohan Lal

    Getting Error to Deploy BMP EJB

    Manmohan Lal Newbie


      Hello

      I have tried run BMP EJB but getting following errors at run time.

      Please advise me where did I made mistake.

      Thanks


      11:36:05,031 ERROR [LogInterceptor] EJBException in method: public abstract bmp.
      Account bmp.AccountHome.create(java.lang.String,java.lang.String,java.lang.Strin
      g,double) throws java.rmi.RemoteException,javax.ejb.CreateException:
      javax.ejb.EJBException: ejbCreate: Column count does not match in statement [ins
      ert into account values( ? , ? , ? , ? )]
      at bmp.AccountEJB.ejbCreate(AccountEJB.java:69)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.ejb.plugins.BMPPersistenceManager.createEntity(BMPPersisten
      ceManager.java:190)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.crea
      teEntity(CachedConnectionInterceptor.java:266)
      at org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:766)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
      at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityC
      ontainer.java:1113)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(Ent
      itySynchronizationInterceptor.java:192)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
      keHome(CachedConnectionInterceptor.java:212)
      at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractIntercep
      tor.java:90)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInst
      anceInterceptor.java:117)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInte
      rceptor.java:61)
      at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCrea
      tionInterceptor.java:28)
      at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValida
      tionInterceptor.java:41)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
      rceptor.java:109)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      torCMT.java:335)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.ja
      va:146)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityIntercep
      tor.java:116)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:1
      21)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyF
      actoryFinderInterceptor.java:93)
      at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java
      :508)
      at org.jboss.ejb.Container.invoke(Container.java:894)
      at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.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:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(Loca
      lInvoker.java:155)
      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)

      at org.jboss.invocation.InvokerInterceptor.invokeMarshalled(InvokerInter
      ceptor.java:201)
      at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(Marshalling
      InvokerInterceptor.java:35)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
      java:46)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:5
      5)
      at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
      at $Proxy79.create(Unknown Source)
      at bmp.SessionTestServlet.doGet(SessionTestServlet.java:50)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:178)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
      ipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:153)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:59)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ssConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
      int.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
      kerThread.java:112)
      at java.lang.Thread.run(Thread.java:534)
      11:36:05,109 INFO [STDOUT] Caught an exception.
      11:36:05,109 INFO [STDOUT] java.rmi.ServerException: EJBException:; nested exce
      ption is:
      javax.ejb.EJBException: ejbCreate: Column count does not match in statem
      ent [insert into account values( ? , ? , ? , ? )]
      11:36:05,109 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.handleEx
      ception(LogInterceptor.java:352)
      11:36:05,109 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invokeHo
      me(LogInterceptor.java:125)
      11:36:05,109 INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInter
      ceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
      11:36:05,109 INFO [STDOUT] at org.jboss.ejb.EntityContainer.internalInvokeH
      ome(EntityContainer.java:508)
      11:36:05,109 INFO [STDOUT] at org.jboss.ejb.Container.invoke(Container.java
      :894)
      11:36:05,109 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor88.invoke(
      Unknown Source)
      11:36:05,109 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invo
      ke(DelegatingMethodAccessorImpl.java:25)
      11:36:05,109 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:3
      24)
      11:36:05,109 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.
      invoke(ReflectedDispatcher.java:141)
      11:36:05,109 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invoc
      ation.java:80)
      11:36:05,109 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocat
      ion.java:72)
      11:36:05,109 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invo
      ke(AbstractMBeanInvoker.java:245)
      11:36:05,109 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
      eanServerImpl.java:644)
      11:36:05,109 INFO [STDOUT] at org.jboss.invocation.local.LocalInvoker$MBean
      ServerAction.invoke(LocalInvoker.java:155)
      11:36:05,109 INFO [STDOUT] at org.jboss.invocation.local.LocalInvoker.invok
      e(LocalInvoker.java:104)
      11:36:05,109 INFO [STDOUT] at org.jboss.invocation.InvokerInterceptor.invok
      eMarshalled(InvokerInterceptor.java:201)
      11:36:05,109 INFO [STDOUT] at org.jboss.invocation.MarshallingInvokerInterc
      eptor.invoke(MarshallingInvokerInterceptor.java:35)
      11:36:05,109 INFO [STDOUT] at org.jboss.proxy.TransactionInterceptor.invoke
      (TransactionInterceptor.java:46)
      11:36:05,109 INFO [STDOUT] at org.jboss.proxy.SecurityInterceptor.invoke(Se
      curityInterceptor.java:55)
      11:36:05,109 INFO [STDOUT] at org.jboss.proxy.ejb.HomeInterceptor.invoke(Ho
      meInterceptor.java:169)
      11:36:05,109 INFO [STDOUT] at org.jboss.proxy.ClientContainer.invoke(Client
      Container.java:86)
      11:36:05,109 INFO [STDOUT] at $Proxy79.create(Unknown Source)
      11:36:05,109 INFO [STDOUT] at bmp.SessionTestServlet.doGet(SessionTestServl
      et.java:50)
      11:36:05,109 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpSe
      rvlet.java:697)
      11:36:05,109 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpSe
      rvlet.java:810)
      11:36:05,109 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha
      in.internalDoFilter(ApplicationFilterChain.java:252)
      11:36:05,109 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha
      in.doFilter(ApplicationFilterChain.java:173)
      11:36:05,109 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilte
      r.doFilter(ReplyHeaderFilter.java:81)
      11:36:05,109 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha
      in.internalDoFilter(ApplicationFilterChain.java:202)
      11:36:05,109 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha
      in.doFilter(ApplicationFilterChain.java:173)
      11:36:05,109 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve
      .invoke(StandardWrapperValve.java:213)
      11:36:05,109 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve
      .invoke(StandardContextValve.java:178)
      11:36:05,109 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipal
      Valve.invoke(CustomPrincipalValve.java:39)
      11:36:05,109 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssocia
      tionValve.invoke(SecurityAssociationValve.java:153)
      11:36:05,109 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValv
      e.invoke(JaccContextValve.java:59)
      11:36:05,109 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.in
      voke(StandardHostValve.java:126)
      11:36:05,109 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.i
      nvoke(ErrorReportValve.java:105)
      11:36:05,109 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.
      invoke(StandardEngineValve.java:107)
      11:36:05,109 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.s
      ervice(CoyoteAdapter.java:148)
      11:36:05,109 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.proc
      ess(Http11Processor.java:856)
      11:36:05,109 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http1
      1ConnectionHandler.processConnection(Http11Protocol.java:744)
      11:36:05,125 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.pr
      ocessSocket(PoolTcpEndpoint.java:527)
      11:36:05,125 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerT
      hread.run(MasterSlaveWorkerThread.java:112)
      11:36:05,125 INFO [STDOUT] at java.lang.Thread.run(Thread.java:534)
      11:36:05,125 INFO [STDOUT] Caused by: javax.ejb.EJBException: ejbCreate: Column
      count does not match in statement [insert into account values( ? , ? , ? , ? )]

      11:36:05,125 INFO [STDOUT] at bmp.AccountEJB.ejbCreate(AccountEJB.java:69)
      11:36:05,125 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(
      Native Method)
      11:36:05,125 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(N
      ativeMethodAccessorImpl.java:39)
      11:36:05,125 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invo
      ke(DelegatingMethodAccessorImpl.java:25)
      11:36:05,125 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:3
      24)
      11:36:05,125 INFO [STDOUT] at org.jboss.ejb.plugins.BMPPersistenceManager.c
      reateEntity(BMPPersistenceManager.java:190)
      11:36:05,125 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedCo
      nnectionInterceptor.createEntity(CachedConnectionInterceptor.java:266)
      11:36:05,125 INFO [STDOUT] at org.jboss.ejb.EntityContainer.createHome(Enti
      tyContainer.java:766)
      11:36:05,125 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(
      Native Method)
      11:36:05,125 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(N
      ativeMethodAccessorImpl.java:39)
      11:36:05,125 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invo
      ke(DelegatingMethodAccessorImpl.java:25)
      11:36:05,125 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:3
      24)
      11:36:05,125 INFO [STDOUT] at org.jboss.invocation.Invocation.performCall(I
      nvocation.java:345)
      11:36:05,125 INFO [STDOUT] at org.jboss.ejb.EntityContainer$ContainerInterc
      eptor.invokeHome(EntityContainer.java:1113)
      11:36:05,125 INFO [STDOUT] at org.jboss.ejb.plugins.EntitySynchronizationIn
      terceptor.invokeHome(EntitySynchronizationInterceptor.java:192)
      11:36:05,125 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedCo
      nnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:212)
      11:36:05,125 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractInterceptor.inv
      okeHome(AbstractInterceptor.java:90)
      11:36:05,125 INFO [STDOUT] at org.jboss.ejb.plugins.EntityInstanceIntercept
      or.invokeHome(EntityInstanceInterceptor.java:117)
      11:36:05,125 INFO [STDOUT] at org.jboss.ejb.plugins.EntityLockInterceptor.i
      nvokeHome(EntityLockInterceptor.java:61)
      11:36:05,125 INFO [STDOUT] at org.jboss.ejb.plugins.EntityCreationIntercept
      or.invokeHome(EntityCreationInterceptor.java:28)
      11:36:05,125 INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationIntercept
      or.invokeHome(CallValidationInterceptor.java:41)
      11:36:05,125 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.i
      nvokeNext(AbstractTxInterceptor.java:109)
      11:36:05,125 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.runWit
      hTransactions(TxInterceptorCMT.java:335)
      11:36:05,125 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke
      Home(TxInterceptorCMT.java:146)
      11:36:05,125 INFO [STDOUT] at org.jboss.ejb.plugins.SecurityInterceptor.inv
      okeHome(SecurityInterceptor.java:116)
      11:36:05,125 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invokeHo
      me(LogInterceptor.java:121)
      11:36:05,125 INFO [STDOUT] ... 42 more