Hi,
I got this for a while - turned out to be 2 things :
a null field value violating a 'NOT NULL' constraint on the DB Table
a String field being longer than the DB specified VARCHAR length
Basically it's (probably) a mismatch between a Column type/Java object type
or a Column value constraint/Java value.
Hope this helps
tim
> -----Original Message-----
> From: Rajesh Jha [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, June 23, 2000 8:15 AM
> To: [EMAIL PROTECTED]
> Subject: Create Exception
>
> Help
>
> Hi All
> I am using ConatinerManagedEntityBeans. It gives error in create
> method.
> I am using Sybase as a database and weblogic app server. The error
> is following.
> Unexpected exception in
> Entity.InfoMgr.DocMgr.LoginMgr.BO.LoginUserBean.create():
> java.sql.SQLException: JZ0SE: Invalid object type (or null
> object) specified for setObject().
> at
> com.sybase.jdbc.ErrorMessage.raiseError(ErrorMessage.java)
> at
> com.sybase.tds.TdsParam.prepareForSend(TdsParam.java, Compiled Code)
> at
> com.sybase.jdbc.ParamManager.checkParams(ParamManager.java, Compiled Code)
> at com.sybase.tds.Tds.language(Tds.java, Compiled
> Code)
> at
> com.sybase.jdbc.SybStatement.sendQuery(SybStatement.java, Compiled Code)
> at
> com.sybase.jdbc.SybPreparedStatement.sendQuery(SybPreparedStatement.java,
> Compiled Code)
> at
> com.sybase.jdbc.SybStatement.executeUpdate(SybStatement.java)
> at
> com.sybase.jdbc.SybPreparedStatement.executeUpdate(SybPreparedStatement.ja
> va
> )
> at
> weblogic.jdbc.pool.PreparedStatement.executeUpdate(PreparedStatement.java:
> 65
> )
> at
> Entity.InfoMgr.DocMgr.LoginMgr.BO.LoginUserPSWebLogic_CMP_RDBMS.create(Log
> in
> UserPSWebLogic_CMP_RDBMS.java:191)
> at
> Entity.InfoMgr.DocMgr.LoginMgr.BO.LoginUserPSWebLogic_CMP_RDBMS.create(Log
> in
> UserPSWebLogic_CMP_RDBMS.java:131)
> at
> weblogic.ejb.internal.EntityEJBContext.create(EntityEJBContext.java:118)
> at
> weblogic.ejb.internal.StatefulEJBObject.postCreate(StatefulEJBObject.java:
> 26
> 6)
> at
> Entity.InfoMgr.DocMgr.LoginMgr.BO.LoginUserBeanEOImpl.create(LoginUserBean
> EO
> Impl.java:62)
> at
> Entity.InfoMgr.DocMgr.LoginMgr.BO.LoginUserBeanHomeImpl.create(LoginUserBe
> an
> HomeImpl.java:32)
> at
> Entity.InfoMgr.DocMgr.LoginMgr.BO.LoginUserBeanHomeImpl_WLSkel.invoke(Logi
> nU
> serBeanHomeImpl_WLSkel.java:82)
> at
> weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectA
> da
> pter.java, Compiled Code)
> at
> weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHand
> le
> r.java:69)
> at
> weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java
> :1
> 5)
> at
> weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
> ; nested exception is:
> java.sql.SQLException: JZ0SE: Invalid object type
> (or null object) specified for setObject().
>
> Is this problem is server specific or ejb specific.
>
> Thanx
> rajesh
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
This e-mail, and any attachment, is confidential. If you have received it in error,
please delete it from your system, do not use or disclose the information in any way,
and notify me immediately. The contents of this message may contain personal views
which are not the views of the BBC, unless specifically stated.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".