wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes DTO / ejb ql Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "DTO / ejb ql " Watch "DTO / ejb ql " New topic
Author

DTO / ejb ql

chuck keuper
Greenhorn

Joined: Mar 17, 2004
Posts: 22
I have created a DTO from the DTO/Facade Wizard. I am working with JBuilder9
and BES 5.2. I created a masterDocCatalogFindByDocName from the MasterDocCatalog entity bean and placed this code

"SELECT OBJECT(d) FROM MasterDocCatalog AS c, IN (c.docName) AS d"

in the query. I am trying to get back all the document names in the database
table. The method in the DocSelectionBean (session bean) is :

public MasterDocCatalogDto getDocName() throws Exception {
MasterDocCatalogDelegate detail = new MasterDocCatalogDelegate();
return detail.masterDocCatalogFindByDocName();
}

and the method in the MasterDocCatalogDelegate is

public MasterDocCatalogDto masterDocCatalogFindByDocName() throws
Exception
{
return
masterDocCatalogSessionFacade.masterDocCatalogFindByDocName();
}

I have looked in O'reilly Enterprise JavaBeans, the BES Developers Guide
manual, on the internet ... for the way to get back all the document names.
The error I am receiving is below:

-- Calling getDocName()
javax.transaction.TransactionRolledbackException: CORBA
TRANSACTION_ROLLEDBACK 0[CORBA TRANSACTION_ROLLEDBACK
0[java.rmi.ServerException: 1073741821; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821; nested exception is:
java.rmi.ServerException: 1073741821; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821]; nested exception is:
org.omg.CORBA.TRANSACTION_ROLLEDBACK: java.rmi.ServerException: 1073741821;
nested exception is: java.lang.ArrayIndexOutOfBoundsException: 1073741821;
nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821; nested exception is:
java.rmi.ServerException: 1073741821; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821 vmcid: 0x0 minor
code: 0 completed: Maybe]; nested exception is:
org.omg.CORBA.TRANSACTION_ROLLEDBACK: CORBA TRANSACTION_ROLLEDBACK
0[java.rmi.ServerException: 1073741821; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821; nested exception is:
java.rmi.ServerException: 1073741821; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821]; nested exception is:
org.omg.CORBA.TRANSACTION_ROLLEDBACK: java.rmi.ServerException: 1073741821;
nested exception is: java.lang.ArrayIndexOutOfBoundsException: 1073741821;
nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821; nested exception is:
java.rmi.ServerException: 1073741821; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821 vmcid: 0x0 minor
code: 0 completed: Maybe vmcid: 0x0 minor code: 0 completed: Maybe--
Failed: getDocName()
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at com.inprise.vbroker.rmi.CORBA.UtilImpl.newInstance(UtilImpl.java:125)
at
com.inprise.vbroker.rmi.CORBA.UtilImpl._mapSystemException(UtilImpl.java:383
)
at
com.inprise.vbroker.rmi.CORBA.UtilImpl.mapSystemException(UtilImpl.java:826)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
at dto._DocSelection_Stub.getDocName(_DocSelection_Stub.java:121)
at dto.DocSelectionTestClient1.getDocName(DocSelectionTestClient1.java:116)
at dto.DocSelectionTestClient1.main(DocSelectionTestClient1.java:166)
Caused by: org.omg.CORBA.TRANSACTION_ROLLEDBACK: CORBA
TRANSACTION_ROLLEDBACK 0[java.rmi.ServerException: 1073741821; nested
exception is: java.lang.ArrayIndexOutOfBoundsException: 1073741821; nested
exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821; nested exception is:
java.rmi.ServerException: 1073741821; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821]; nested exception is:
org.omg.CORBA.TRANSACTION_ROLLEDBACK: java.rmi.ServerException: 1073741821;
nested exception is: java.lang.ArrayIndexOutOfBoundsException: 1073741821;
nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821; nested exception is:
java.rmi.ServerException: 1073741821; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 1073741821 vmcid: 0x0 minor
code: 0 completed: Maybe vmcid: 0x0 minor code: 0 completed: Maybe
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at com.inprise.vbroker.rmi.CORBA.UtilImpl.newInstance(UtilImpl.java:125)
at
com.inprise.vbroker.rmi.CORBA.UtilImpl.mapRmiException(UtilImpl.java:269)
at com.inprise.ejb.Util.convert(Util.java:62)
at
com.inprise.ejb.EJBHome$ComponentInterfaceMethodCache.invokeDispatcherMethod
(EJBHome.java:1560)
at com.inprise.ejb.EJBHome.invokeDispatcherMethod(EJBHome.java:34)
at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:416)
at
dto.DocSelectionPOAInvokeHandler.getDocName(DocSelectionPOAInvokeHandler.jav
a:34)
at
dto.DocSelectionPOAInvokeHandler.getDocName(DocSelectionPOAInvokeHandler.jav
a:71)
at dto.DocSelectionPOA._invoke(DocSelectionPOA.java:61)
at dto.DocSelectionPOA._invoke(DocSelectionPOA.java:43)
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 getDocName(): null.


I looked up the java.lang.ArrayIndexOutOfBoundsException which says the
array has been accessed with an illegal index. I assumed I might have to
throw in a where context with the masterDocId stating that it be less than
the number of columns in the database - to no avail - the where statement is
looking to get back a single element not collection of them.



Can anyone help???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DTO / ejb ql