db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steffen Mueller <tor...@mueller.ca>
Subject Auto ID Generation with Oracle fails
Date Mon, 19 Jan 2004 11:46:10 GMT
I set the idMethod to "native" and am using Oracle 8i. "autoIncrement" is 
"true" for the PK. The sequences have been created. However, when I try to 
insert a record into a table, the following error occurs:

org.apache.torque.TorqueException: IdGenerator for table 'Department' is 
null at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:708) at 
de.spiritlink.lqa.om.BaseDepartmentPeer.doInsert(BaseDepartmentPeer.java:212) 
at 
de.spiritlink.lqa.om.BaseDepartmentPeer.doInsert(BaseDepartmentPeer.java:556) 
at de.spiritlink.lqa.om.BaseDepartment.save(BaseDepartment.java:527) at 
de.spiritlink.lqa.om.BaseDepartment.save(BaseDepartment.java:491) at 
de.spiritlink.lqa.om.BaseDepartment.save(BaseDepartment.java:471) at 
de.spiritlink.lqa.web.struts.action.LoginAction.execute(LoginAction.java:66) 
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:165) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:103) at 
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96) 
at com.caucho.server.http.Invocation.service(Invocation.java:315) at 
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246) at 
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163) 
at com.caucho.server.TcpConnection.run(TcpConnection.java:139) at 
java.lang.Thread.run(Thread.java:536)

Because I need to continue developing, I tried to switch the idMethod to 
"idbroker".  However, this also doesn't work.

Thanks!

Steffen


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message