0 Replies Latest reply on Jul 11, 2018 7:37 AM by Lars Brizola

    Caused by: javax.ejb.CreateException: Error checking if entity exists:java.sql.SQLSyntaxErrorException: ORA-01722: número inválido

    Lars Brizola Newbie

      Hello I have a problem inserting data using EJB. There follows the error, and my classes until then by insertion. Does anyone know what the problem is?

       

      ERRO:

       

      16:35:48,011 ERROR [OrganizationUnit] Error checking if entity exists

      java.sql.SQLSyntaxErrorException: ORA-01722: número inválido

       

       

      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450)

      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)

      at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1017)

      at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:655)

      at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:249)

      at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:566)

      at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:215)

      at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:58)

      at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:776)

      at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:897)

      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1034)

      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3820)

      at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3867)

      at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1502)

      at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:342)

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCInsertPKCreateCommand.beforeInsert(JDBCInsertPKCreateCommand.java:92)

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:150)

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:587)

      at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:237)

      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:223)

      at org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:638)

      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:597)

      at org.jboss.invocation.Invocation.performCall(Invocation.java:386)

      at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1144)

      at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:106)

      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:203)

      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:187)

      at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:106)

      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:137)

      at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:76)

      at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:45)

      at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56)

      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125)

      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)

      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161)

      at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:230)

      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:205)

      at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:99)

      at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invokeHome(PreSecurityInterceptor.java:88)

      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)

      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)

      at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:527)

      at org.jboss.ejb.Container.invoke(Container.java:1109)

      at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:362)

      at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)

      at com.sun.proxy.$Proxy616.create(Unknown Source)

      at br.com.certisign.certificatemanager.core.CertificateTemplatesManagerBean.createOrganizationUnit(CertificateTemplatesManagerBean.java:850)

      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:597)

      at org.jboss.invocation.Invocation.performCall(Invocation.java:386)

      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:233)

      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)

      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:173)

      at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)

      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)

      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)

      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)

      at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)

      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)

      at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:97)

      at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java:81)

      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)

      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)

      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)

      at org.jboss.ejb.Container.invoke(Container.java:1092)

      at sun.reflect.GeneratedMethodAccessor432.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

      at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)

      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)

      at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)

      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)

      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)

      at org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)

      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)

      at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)

      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)

      at com.sun.proxy.$Proxy594.createOrganizationUnit(Unknown Source)

      at br.com.certisign.certificatemanager.controller.OrganizationUnitAction.edit(OrganizationUnitAction.java:155)

      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:597)

      at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)

      at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)

      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)

      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)

      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)

      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)

      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)

      at java.lang.Thread.run(Thread.java:662)

      16:35:48,015 ERROR [EJBExceptionHandler] Could not create an instance of OrganizationUnit! OrganizationUnit 'MarcTeste' will not be persisted!

      br.com.certisign.certificatemanager.exceptions.CertificateTemplatesManagerException: Could not create an instance of OrganizationUnit! OrganizationUnit 'MarcTeste' will not be persisted!

      at br.com.certisign.certificatemanager.core.CertificateTemplatesManagerBean.createOrganizationUnit(CertificateTemplatesManagerBean.java:858)

      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:597)

      at org.jboss.invocation.Invocation.performCall(Invocation.java:386)

      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:233)

      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)

      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:173)

      at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)

      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)

      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)

      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)

      at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)

      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)

      at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:97)

      at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java:81)

      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)

      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)

      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)

      at org.jboss.ejb.Container.invoke(Container.java:1092)

      at sun.reflect.GeneratedMethodAccessor432.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

      at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)

      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)

      at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)

      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)

      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)

      at org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)

      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)

      at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)

      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)

      at com.sun.proxy.$Proxy594.createOrganizationUnit(Unknown Source)

      at br.com.certisign.certificatemanager.controller.OrganizationUnitAction.edit(OrganizationUnitAction.java:155)

      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:597)

      at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)

      at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)

      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)

      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)

      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)

      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)

      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)

      at java.lang.Thread.run(Thread.java:662)

      Caused by: javax.ejb.CreateException: Error checking if entity exists:java.sql.SQLSyntaxErrorException: ORA-01722: número inválido

       

       

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCInsertPKCreateCommand.beforeInsert(JDBCInsertPKCreateCommand.java:105)

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:150)

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:587)

      at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:237)

      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:223)

      at org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:638)

      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:597)

      at org.jboss.invocation.Invocation.performCall(Invocation.java:386)

      at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1144)

      at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:106)

      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:203)

      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:187)

      at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:106)

      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:137)

      at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:76)

      at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:45)

      at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56)

      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125)

      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)

      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161)

      at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:230)

      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:205)

      at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:99)

      at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invokeHome(PreSecurityInterceptor.java:88)

      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)

      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)

      at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:527)

      at org.jboss.ejb.Container.invoke(Container.java:1109)

      at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:362)

      at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)

      at com.sun.proxy.$Proxy616.create(Unknown Source)

      at br.com.certisign.certificatemanager.core.CertificateTemplatesManagerBean.createOrganizationUnit(CertificateTemplatesManagerBean.java:850)

      ... 71 more

       

       

      EJB-JAR.XML

       

      <entity >

               <description><![CDATA[Business object persistence Bean for OrganizationUnit]]></description>

               <display-name>OrganizationUnit CMP Bean</display-name>

       

       

               <ejb-name>OrganizationUnit</ejb-name>

       

       

               <local-home>br.com.certisign.certificatemanager.interfaces.OrganizationUnitLocalHome</local-home>

               <local>br.com.certisign.certificatemanager.interfaces.OrganizationUnitLocal</local>

       

       

               <ejb-class>br.com.certisign.certificatemanager.core.template.cmp.OrganizationUnitBean</ejb-class>

               <persistence-type>Container</persistence-type>

               <prim-key-class>java.lang.String</prim-key-class>

               <reentrant>False</reentrant>

               <cmp-version>2.x</cmp-version>

               <abstract-schema-name>OrganizationUnitSchema</abstract-schema-name>

               <cmp-field >

                  <description><![CDATA[Obtém o código de <i>hash</i> representando o identificador do campo de formatação.]]></description>

                  <field-name>id</field-name>

               </cmp-field>

               <cmp-field >

                  <description><![CDATA[Obtém a descrição do campo de formatação.]]></description>

                  <field-name>descricaoOu</field-name>

               </cmp-field>

               <cmp-field >

                  <description><![CDATA[Obtém o código de <i>hash</i> representando o identificador do campo de formatação.]]></description>

                  <field-name>crtId</field-name>

               </cmp-field>

               <cmp-field >

                  <description><![CDATA[Obtém o código de <i>hash</i> representando o identificador do campo de formatação.]]></description>

                  <field-name>ordemOu</field-name>

               </cmp-field>

               <primkey-field>id</primkey-field>

       

       

               <query>

                  <query-method>

                     <method-name>findAll</method-name>

                     <method-params>

                     </method-params>

                  </query-method>

                  <ejb-ql><![CDATA[SELECT OBJECT(o) FROM OrganizationUnitSchema o]]></ejb-ql>

               </query>

               <query>

                  <query-method>

                     <method-name>findByDescription</method-name>

                     <method-params>

                        <method-param>java.lang.String</method-param>

                     </method-params>

                  </query-method>

                  <ejb-ql><![CDATA[SELECT OBJECT(o) FROM OrganizationUnitSchema o WHERE o.descricaoOu = ?1]]></ejb-ql>

               </query>

        <!-- Write a file named ejb-finders-OrganizationUnitBean.xml if you want to define extra finders. -->

      </entity>

       

       

      BEAN

       

      package br.com.certisign.certificatemanager.core.template.cmp;

       

       

      import java.math.BigDecimal;

      import java.rmi.RemoteException;

      import java.util.Collection;

       

       

      import javax.ejb.EJBException;

      import javax.ejb.EntityBean;

      import javax.ejb.EntityContext;

      import javax.ejb.RemoveException;

       

       

      import br.com.certisign.certificatemanager.support.IdGenerator;

       

       

       

       

      /**

       

      * @ejb.bean name="OrganizationUnit" display-name="OrganizationUnit CMP Bean"

      *           description

      *           ="Business object persistence Bean for OrganizationUnit"

      *           jndi-name="ejb/OrganizationUnit" schema="OrganizationUnitSchema"

      *           type="CMP" cmp-version="2.x" view-type="local"

      *           primkey-field="id"

      * @ejb.persistence table-name="OrganizationUnit"

      * @ejb.finder query="SELECT OBJECT(o) FROM OrganizationUnitSchema o"

      *             signature="java.util.Collection findAll()"

      * @ejb.finder query="SELECT OBJECT(o) FROM OrganizationUnitSchema o WHERE

      *             o.descricaoOu = ?1" signature=

      *             "br.com.certisign.certificatemanager.interfaces.OrganizationUnitLocal findByDescription(java.lang.String descricaoOu)"

      */

      public abstract class OrganizationUnitBean implements EntityBean {

       

       

       

      /**

      * Método sobrescrito. Consulte a API

      * {@link EntityBean#setEntityContext(EntityContext)} para a compreensão.

      */

          public void setEntityContext(EntityContext ctx) throws EJBException, RemoteException

          {

          }

          /**

      * Método sobrescrito. Consulte a API

      * {@link EntityBean#unsetEntityContext()} para a compreensão.

      */

          public void unsetEntityContext() throws EJBException, RemoteException

          {

          }

          /**

      * Método sobrescrito. Consulte a API {@link EntityBean#ejbRemove()} para a

      * compreensão.

      */

          public void ejbRemove() throws RemoveException, EJBException, RemoteException

          {

          }

          /**

      * Método sobrescrito. Consulte a API {@link EntityBean#ejbActivate()} para

      * a compreensão.

      */

          public void ejbActivate() throws EJBException, RemoteException

          {

          }

          /**

      * Método sobrescrito. Consulte a API {@link EntityBean#ejbPassivate()} para

      * a compreensão.

      */

          public void ejbPassivate() throws EJBException, RemoteException

          {

          }

          /**

      * Método sobrescrito. Consulte a API {@link EntityBean#ejbLoad()} para a

      * compreensão.

      */

          public void ejbLoad() throws EJBException, RemoteException

          {

          }

          /**

      * Método sobrescrito. Consulte a API {@link EntityBean#ejbStore()} para a

      * compreensão.

      */

          public void ejbStore() throws EJBException, RemoteException

          {

          }

       

       

          /**

      * Inicializa os atributos da instância.

      *

      * @param idOu

      *            id OrganizationUnit.

      * @param crtId

      *            id crtId.

      * @param descricaoOu

      *            campo descrição.

      * @param ordem

      *            id ordem.

      * @return o idOu do campo de formatação.

      * @throws javax.ejb.CreateException

      *             Erro ao criar o EJB.

      * @ejb.create-method view-type = "local"

      */

          public String ejbCreate(String id, String crtId, String descricaoOu, BigDecimal ordem) throws javax.ejb.CreateException

          {

       

       

          id = IdGenerator.generateGUID( this );

       

       

              this.setId(id);

              this.setCrtId( crtId );

              this.setDescricaoOu( descricaoOu );

              this.setOrdemOu( ordem );

       

       

              return id;

          }

          /**

      * Método executado após a criação do registro na base de dados.

      *

      * @param idOu

      *            id OrganizationUnit.

      * @param crtId

      *            id crtId.

      * @param descricaoOu

      *            campo descrição.

      * @param ordem

      *            id ordem.

      * @return o identificador do campo de formatação.

      * @throws javax.ejb.CreateException

      *             Erro ao criar o EJB.

      * @ejb.create-method view-type = "local"

      */

          public void ejbPostCreate(String id, String crtId, String descricaoOu, BigDecimal ordem) throws javax.ejb.CreateException

          {

          }

       

       

          /**

      * Obtém o código de <i>hash</i> representando o identificador do campo de

      * formatação.

      * @ejb.pk-field

      * @return o identificador do campo de formatação.

      * @ejb.interface-method view-type="local"

      * @ejb.persistence column-name="IDOU" jdbc-type="VARCHAR"

      *                  sql-type="VARCHAR(129)"

      */

          public abstract String getId();

       

       

          /**

      * Seta o código de <i>hash</i> representando o identificador do campo de

      * formatação.

      * @ejb.pk-field

      * @return o identificador do campo de formatação.

      * @ejb.interface-method view-type="local"

      * @ejb.persistence column-name="IDOU" jdbc-type="VARCHAR"

      *                  sql-type="VARCHAR(129)"

      */

          public abstract void setId(String id);

       

       

          /**

      * Obtém a descrição do campo de formatação.

      *

      * @return a descrição do campo de formatação.

      * @ejb.persistent-field

      * @ejb.interface-method view-type="local"

      * @ejb.persistence column-name="DESCRICAOOU" jdbc-type="VARCHAR"

      *                  sql-type="VARCHAR(129)"

      * @jboss.persistence not-null="false"

      */

          public abstract String getDescricaoOu();

       

       

          /**

      * Atribui a descrição do campo de formatação.

      *

      * @param value

      *            a descrição do campo de formatação.

      * @ejb.interface-method view-type="local"

      */

          public abstract void setDescricaoOu(String value);

       

       

          /**

      * Obtém o código de <i>hash</i> representando o identificador do campo de

      * formatação.

      * @return o identificador do campo de formatação.

      * @ejb.interface-method view-type="local"

      * @ejb.persistence column-name="CRTID" jdbc-type="INTEGER"

      *                  sql-type="INTEGER"

      */

          public abstract String getCrtId();

         

          /**

      * Atribui o identificador do campo de formatação.

      *

      * @param value

      *            o identificador.

      * @ejb.interface-method view-type="local"

      */

          public abstract void setCrtId(String value);

         

          /**

      * Obtém o código de <i>hash</i> representando o identificador do campo de

      * formatação.

      * @return o identificador do campo de formatação.

      * @ejb.interface-method view-type="local"

      * @ejb.persistence column-name="ORDEMOU" jdbc-type="OTHER"

      *                  sql-type="OTHER"

      */

          public abstract BigDecimal getOrdemOu();

       

       

          /**

      * Atribui o identificador do campo de formatação.

      *

      * @param value

      *            o identificador.

      * @ejb.interface-method view-type="local"

      */

         

          public abstract void setOrdemOu(BigDecimal value);

       

       

        

      }

       

       

      TKS!