• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

EJB ERROR While inserting data

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Iam using Entity Bean(EJB 2.1) to insert data to the database.It was working fine but now I getting error while inserting data

[3/7/08 8:24:45:871 EST] 00000038 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "createFund" on bean "BeanId(CDA#cdaAdminEJB.jar#FundController, null)". Exception data: javax.ejb.TransactionRolledbackLocalException: ; nested exception is: java.sql.SQLException: ORA-01400: cannot insert NULL into ("SOME_OWNER"."TB_SOME"."SOME_ID")
DSRA0010E: SQL State = 23000, Error Code = 1,400
java.sql.SQLException: ORA-01400: cannot insert NULL into ("SOME_OWNER"."TB_SOME"."SOME_ID")
DSRA0010E: SQL State = 23000, Error Code = 1,400
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1093)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2047)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1940)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2709)
at oracle.jdbc.driver.OraclePreparedStatement.doScrollPstmtExecuteUpdate(OraclePreparedStatement.java:3975)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:623)
at com.statestr.cda.ejb.websphere_deploy.ORACLE_V9_3.FundBeanFunctionSet_6bed6bd1.Create(Unknown Source)
at com.statestr.cda.ejb.websphere_deploy.ORACLE_V9_3.FundBeanFunctionSet_6bed6bd1.execute(Unknown Source)
at com.ibm.ws.rsadapter.cci.WSInteractionImpl.execute(WSInteractionImpl.java:501)
at com.ibm.ws.rsadapter.cci.WSRelationalRAAdapter.executeCreate(WSRelationalRAAdapter.java:340)
at com.ibm.ws.ejbpersistence.dataaccess.DataAccessRequestImpl.execute(Unknown Source)
at com.ibm.ws.ejbpersistence.beanextensions.ConcreteBeanStatefulInstanceExtensionImpl.executeCreate(Unknown Source)
at com.ibm.ws.ejbpersistence.beanextensions.CBNotExistState.ejbCreate(Unknown Source)
at com.ibm.ws.ejbpersistence.beanextensions.ConcreteBeanStatefulInstanceExtensionImpl.ejbPostCreate(Unknown Source)
at com.statestr.cda.ejb.ConcreteFund_6bed6bd1.ejbPostCreate(Unknown Source)
at com.statestr.cda.ejb.EJSCMPFundHomeBean_6bed6bd1.create_Local(Unknown Source)
at com.statestr.cda.ejb.EJSLocalCMPFundHome_6bed6bd1.create(Unknown Source)
at com.statestr.cda.services.FundService.createFund(Unknown Source)
at com.statestr.cda.ejb.facade.FundControllerBean.createFund(Unknown Source)
at com.statestr.cda.ejb.facade.EJSLocalStatelessFundController_edd60586.createFund(Unknown Source)
at com.statestr.cda.delegates.FundDelegate.createNewFund(Unknown Source)
at com.statestr.cda.actions.FundCreateAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1282)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:673)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1802)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:469)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:408)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1686)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1455)

The application is deployed on WAS 6.Pls let me know what need to be done to get rid of this exception.

Any help is appreciated.

Cheers
Shiv
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This appears to be a data-related problem. A particular data field is null when yhou're inserting a record, and Oracle has a constraint not allowing that field to be null.
 
ShivPrakash Srivastava
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Iam making sure that all values are being passed.Yes there is an not NULL constraing on the field for which this error is generated.But if the value is being passed then there should not be an issue isnt it?

Thanks and Regards
Shiv
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic