Hi,
you say all works fine with 32 fields and the descriptors
are all correct - maybe it's a restriction of the WSJdbc driver.
I don't know about a restriction to 32 fields using OJB,
but we don't have a test case using >32 fields.
If you use the CVS repository, I update StatementManager
to give some more logging info.
regards,
Armin
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 12:09 PM
Subject: IndexOutOfBoundsException with more than 32 field-descriptor in
class-descriptor
Hi Armin,
Platform is WSAD 5.0 with Websphere 5.0, here the stack :
[12/03/03 12:06:47:368 CET] 31f43203 SystemOut O Socle DEBUG[60]
Version du socle 0.1
[12/03/03 12:06:47:378 CET] 31f43203 ApplicationMg A WSVR0221I:
L'application est lanc�e : DefaultEAR
[12/03/03 12:06:47:438 CET] 31f43203 HttpTransport A SRVE0171I: Le
transport http �coute sur le port 9 080.
[12/03/03 12:06:53:687 CET] 31f43203 HttpTransport A SRVE0171I: Le
transport https �coute sur le port 9 443.
[12/03/03 12:06:53:817 CET] 31f43203 RMIConnectorC A ADMC0026I:
Connecteur
RMI disponible sur le port 2809
[12/03/03 12:06:53:877 CET] 31f43203 WsServer A WSVR0001I: Serveur
server1 ouvert pour e-business
[12/03/03 12:07:12:434 CET] 60103216 RequestProces I
org.apache.struts.action.RequestProcessor Processing a 'GET' for path
'/CreationBOAction'
[12/03/03 12:07:13:696 CET] 60103216 ConnectionFac I J2CA0107I: Alias
d'authentification g�r� par composant non accept� pour la fabrique de
connexions ou la source de donn�es Source de donn�es 3.
[12/03/03 12:07:26:544 CET] 60103216 SystemOut O Nombre de compose :
5
[12/03/03 12:07:27:275 CET] 60103216 SharedPool I J2CA0086W: La
connexion partageable MCWrapper id 1e45b214 Managed connection
[EMAIL PROTECTED]
State:STATE_TRAN_WRAPPER_INUSE
utilis�e � partir de la ressource jdbc/ds3 a �t� utilis�e � l'int�rieur
des limites de confinement d'une transaction locale.
[12/03/03 12:07:28:367 CET] 60103216 RequestProces W
org.apache.struts.action.RequestProcessor Unhandled Exception thrown:
class java.lang.IndexOutOfBoundsException
[12/03/03 12:07:31:541 CET] 60103216 WebGroup E SRVE0026E: [Erreur
de
servlet]-[Index: 0, Size: 0]: java.lang.IndexOutOfBoundsException:
Index:
0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java(Compiled Code))
at java.util.ArrayList.set(ArrayList.java:343)
at
com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.countParameter(WSJdbcP
reparedStatement.java:355)
at
com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.setObject(WSJdbcPrepar
edStatement.java:1117)
at
org.apache.ojb.broker.platforms.PlatformDefaultImpl.setObjectForStatemen
t(Unknown
Source)
at
org.apache.ojb.broker.platforms.PlatformDb2Impl.setObjectForStatement(Un
known
Source)
at
org.apache.ojb.broker.accesslayer.StatementManager.bindUpdate(Unknown
Source)
at
org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeUpdate(Unknown
Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.storeToDb(Unknown
Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.store(Unknown
Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.store(Unknown
Source)
at
org.apache.ojb.broker.singlevm.DelegatingPersistenceBroker.store(Unknown
Source)
at
com.gie2a.commun.socle.service.dataservice.ojb.OjbDataService.update(Ojb
DataService.java:196)
at
com.gie2a.commun.socle.service.businessservice.BusinessServiceImpl.updat
e(BusinessServiceImpl.java:113)
at
appli.socleservices.CfpclientBS.modifierClient(CfpclientBS.java:77)
at
appli.action.CreationBOAction.execute(CreationBOAction.java:123)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:446)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
266)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictSe
rvletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.
_service(StrictLifecycleServlet.java:174)
at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycle
Servlet.java:313)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLif
ecycleServlet.java:116)
at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.
java:258)
at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(Vali
dServletReferenceState.java:42)
at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(Servle
tInstanceReference.java:40)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
tch(WebAppRequestDispatcher.java:872)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
questDispatcher.java:491)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
uestDispatcher.java:173)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:7
9)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
oker.java:199)
at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
on(CachedInvocation.java:71)
at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
tRequestProcessor.java:182)
at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
tener.java:331)
at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
.java:56)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
432)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)
regards,
"Armin Waibel"
<[EMAIL PROTECTED] Pour : "OJB Users
List" <[EMAIL PROTECTED]>
au-lait.de> cc :
Objet : Re:
IndexOutOfBoundsException with more than 32 field-descriptor in
12/03/2003 11:55 class-descriptor
Veuillez r�pondre �
"OJB Users List"
Could you please post your stack trace to get more
information?
regards,
Armin
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 11:39 AM
Subject: IndexOutOfBoundsException with more than 32 field-descriptor in
class-descriptor
>
> Hi,
>
> I'm using DB2 UDB 7.2 , and I have a table with 43 fields inside.
> I defined a class-descriptor with 43 field-descriptor corresponding to
this
> table.
> When I try to insert or update several objects in my database, I
receive
> an IndexOutOfBoundsException and
> the first of the objects is nevertheless stored.
> There's no exception at all when I try to store only one object.
> There's no problem either if I define only 32 field-descriptor in the
> class-descriptor and then try to store
> several objects.
>
> How can I solve this ?
>
> Thanks.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]