Forums Register Login

javax ejb ObjectNotFoundException

+Pie Number of slices to send: Send
I have created a finder method, listed below:

SELECT OBJECT(t) FROM Text t, TagList l, MasterDocCatalog c WHERE
c.masterDocId = ?1 AND l.tagListId = ?2 AND l.tagDefTypId = 8 AND
t.tagListId = l.tagListId

TagList has a relation (1-1 uni) to Text and (1-m uni) to MasterDocCatalog.

-- Calling findTOCData(1, 1)
javax. ejb. ObjectNotFoundException
at com.borland.ejb.pm.JdbcOneProvider.executeQuery(JdbcOneProvider.java:33)
at com.borland.ejb.pm.JdbcEntityManager.findOne(JdbcEntityManager.java:586)
at com.borland.ejb.pm.JdbcEntityManager.findOne(JdbcEntityManager.java:566)
at text.EntityTextBean_PM.ejbFindTOCData(EntityTextBean_PM.java:55)--
Failed: findTOCData(1, 1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.inprise.ejb.ConcreteMethod.invoke(ConcreteMethod.java:32)
at com.inprise.ejb.EJBContext.invoke(EJBContext.java:166)
at com.inprise.ejb.Dispatcher.doInvoke(Dispatcher.java:1301)
at com.inprise.ejb.Dispatcher.invokeSecurityCheck(Dispatcher.java:1023)
at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:816)
at com.inprise.ejb.Dispatcher.find(Dispatcher.java:695)
at com.inprise.ejb.EntityHome.doFind(EntityHome.java:221)
at com.inprise.ejb.EntityHome.find(EntityHome.java:235)
at com.inprise.ejb.EJBHome.invoke(EJBHome.java:369)
at com.inprise.ejb.EJBHome.access$300(EJBHome.java:6)
at com.inprise.ejb.EJBHome$RemoteStrategyImpl.invoke(EJBHome.java:740)
at
text.EntityTextRemoteHomePOAInvokeHandler.findTOCData(EntityTextRemoteHomePO
AInvokeHandler.java:40)
at
text.EntityTextRemoteHomePOAInvokeHandler.findTOCData(EntityTextRemoteHomePO
AInvokeHandler.java:112)
at text.EntityTextRemoteHomePOA._invoke(EntityTextRemoteHomePOA.java:66)
at text.EntityTextRemoteHomePOA._invoke(EntityTextRemoteHomePOA.java:44)
at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2693)
at
com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:109)
at
com.inprise.vbroker.poa.ServerInterceptorManager$ARWrapper.invoke(ServerInte
rceptorManager.java:110)
at
com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.j
ava:824)
at
com.inprise.vbroker.IIOP.ServerProtocolAdapter.doRequest(ServerProtocolAdapt
er.java:68)
at
com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAda
pter.java:1106)
at
com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.j
ava:106)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)
-- Return value from findTOCData(1, 1): null.
Exception = null

I have defined the object t from text t?? Can anyone set me straight???
+Pie Number of slices to send: Send
You would expect ObjectNotFoundException to be thrown if a single-object finder cannot find the entity. You wouldn't get an exception for a multi-object finder as an empty collection is returned.
It's just a flesh wound! Or a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1803 times.
Similar Threads
how to test cmp entity bean in jbuilder6+bes5?
NullPointerException on create
sql conversion to ql for Java/J2EE
schema name not found in depolyment descriptor
ejb ql - identifier expected, but 'MEMBER' found
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:07:09.