Need help using Turbine 2.1 having the following piece of code......
     
      String user = "auser";
      tu = new org.apache.turbine.om.security.TurbineUser();
      tu.setUserName(user);
      mgr.createAccount(tu);
      org.apache.turbine.util.db.Criteria  criteria =
TurbineUserPeer.buildCriteria(tu);
      TurbineUserPeer.doInsert(criteria)  //This line is throwing an
exception on DB2 works fine with oracle.


:{} COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT] SQL0303N  A
value cannot be assigned to a host variable in the SELECT, VALUES, or FETCH
statement because the data types are not compatible.  SQLSTATE=42806

        at
COM.ibm.db2.jdbc.net.SQLExceptionGenerator.throw_SQLException(Unknown Source)
        at
COM.ibm.db2.jdbc.net.SQLExceptionGenerator.check_return_code(Unknown Source)
        at
COM.ibm.db2.jdbc.net.SQLExceptionGenerator.check_return_code(Unknown Source)
        at COM.ibm.db2.jdbc.net.DB2PreparedStatement.executeUpdate(Unknown
Source)
        at weblogic.jdbc.pool.Statement.executeUpdate(Statement.java:293)
        at
weblogic.jdbc.rmi.internal.PreparedStatementImpl.executeUpdate(PreparedStatem
entImpl.java:66)
        at
weblogic.jdbc.rmi.SerialPreparedStatement.executeUpdate(SerialPreparedStateme
nt.java:57)
        at com.workingdogs.village.Record.saveWithInsert(Record.java:328)
        at com.workingdogs.village.Record.save(Record.java:185)
        at com.workingdogs.village.Record.save(Record.java:166)
        at
org.apache.turbine.om.peer.BasePeer.insertOrUpdateRecord(BasePeer.java:860)
        at org.apache.turbine.om.peer.BasePeer.doInsert(BasePeer.java:764)
        at org.apache.turbine.om.peer.BasePeer.doInsert(BasePeer.java:657)
        at
com.ispheres.zen.service.impl.security.authorization.CustomDBUserManager.crea
teAccount(CustomDBUserManager.java:80)

Thanks,
Harish.



DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. 
Before opening attachments please check them for viruses and defects. MindTree 
Consulting Private Limited (MindTree) will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or outside. 
If you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or dissemination 
of this message in whole or in part is strictly prohibited.  Please note that e-mails 
are susceptible to change and MindTree shall not be liable for any improper, untimely 
or incomplete transmission.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to