db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafal Markut" <rafal.mar...@mediawave.de>
Subject Re: Does anyone know why I get the following error? What's the ID_TABLE?
Date Wed, 16 Feb 2005 10:14:01 GMT
Hi,

you forgot add information about your table into ID_TABLE.
If you want to user ID-Broker then you have to do it.

best regards,
Rafal

----- Original Message ----- 
From: "Joseph Yuen" <jdcyuen@comcast.net>
To: "Jeff Fowler (Chi-square)" <jfowler@chisq.com>; "Jon Fleming 
(Chi-square)" <jfleming@chisq.com>; <torque-user@db.apache.org>
Sent: Wednesday, February 16, 2005 4:58 AM
Subject: Does anyone know why I get the following error? What's the 
ID_TABLE?


*** Exception saving record
org.apache.torque.TorqueException: The table encounter does not have a
proper entry in the ID_TABLE
        at org.apache.torque.oid.IDBroker.selectRow(IDBroker.java:825)
        at org.apache.torque.oid.IDBroker.storeIDs(IDBroker.java:681)
        at org.apache.torque.oid.IDBroker.getNextIds(IDBroker.java:448)
        at
org.apache.torque.oid.IDBroker.getIdAsBigDecimal(IDBroker.java:336)
        at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:720)
        at
com.chisq.webcard.torque.BaseEncounterPeer.doInsert(BaseEncounterPeer.java:2
27)
        at
com.chisq.webcard.torque.BaseEncounterPeer.doInsert(BaseEncounterPeer.java:5
79)
        at
com.chisq.webcard.torque.BaseEncounter.save(BaseEncounter.java:3142)
        at
com.chisq.webcard.torque.BaseEncounter.save(BaseEncounter.java:3106)
        at
com.chisq.webcard.torque.BaseEncounter.save(BaseEncounter.java:3086)
        at
com.chisq.webcard.struts.VitalsMainInputAction.execute(VitalsMainInputAction
.java:95)
        at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.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:717)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
        at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:702)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:644)
        at java.lang.Thread.run(Thread.java:534)

I get this error doing:

                Encounter encounter = new Encounter();
                encounter.setEncounterdate(StringToDate(f.getDate()));
                encounter.setPersonid(personid);
                encounter.save();



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



---------------------------------------------------------------------
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