jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: error testing ejb - wls 8.1
Date Thu, 12 Feb 2004 17:36:14 GMT
Hi Mark,

It seems there is some error in your code:

Caused by: java.lang.ArrayIndexOutOfBoundsException: 59
at
com.cbc.isac.ejb20.event.EventMaintenance_dbvlfm_EOImpl_812_WLStub.ensur
eInitialized(Unknown Source) at
com.cbc.isac.ejb20.event.EventMaintenance_dbvlfm_EOImpl_812_WLStub.<init
>(Unknown Source) ... 48 more

in your EventMaintenance.ensureInitialized() method.

Thanks
-Vincent

> -----Original Message-----
> From: Mark Lybarger [mailto:Mark.Lybarger@CBC-Companies.com]
> Sent: 12 February 2004 15:58
> To: 'Cactus-User (E-mail)
> Subject: error testing ejb - wls 8.1
> 
> I'm getting an error running cactus tests on wls 8.1.  I'm using
cactus
> 1.6dev-20031023.  I've include my ant task i'm using to run the test,
and
> the error I'm seeing.  Hopefully, it's just a simple classpath issue.
Any
> suggestions?  The weblogic.classpath contains all jars in
> weblogic/server/lib folder.  and the other element is my source
classes.
> i'm testing ejb's.   my beans are individually deployed applications
(each
> bean has it's own deployable jar file) and is targeted and deployed to
an
> app server.  my cactified war is deployed to the same app container.
> 
> ant tasks:
> 
>     <cactifywar
> mergewebxml="${base.webapp}/httpUnit/ServletTestRunnerIntegration.xml"
> version="2.3" destfile="${isac.test.war}">
>       <classes dir="${base.webapp.web-inf.classes}"
includes="**/*.class"
> />
>       <lib dir="${base.webapp.web-inf.lib}">
>         <include name="*.jar" />
>       </lib>
>     </cactifywar>
> 
>   <target name="test.isac.ejb" depends="init">
>   	<!-- make sure prior results are cleaned out -->
>     <mkdir dir="./testResults"/>
>     <delete>
>       <fileset dir="./testResults" includes="**/*"/>
>     </delete>
> 
>   	<!-- run the tests -->
>     <cactus fork="yes" warfile="${isac.test.war}"
> printsummary="withOutAndErr">
>       <formatter type="xml" />
>       <classpath>
>         	<path refid="weblogic.classpath" />
>         <pathelement location="${base.webapp.web-inf.classes}" />
>       </classpath>
>       <containerset>
>         <generic name="${isac.app.server.name}"
> port="${isac.app.server.port}" />
>       </containerset>
>       <batchtest todir="./testResults">
>         <fileset dir="${base.webapp.web-inf.classes}">
>           <include name="**/ejb20/**/*Test*" />
>           <exclude name="**/EventSubmit*Test.class" />
>           <exclude name="**/ui/*" />
>         </fileset>
>       </batchtest>
>     </cactus>
> 
>   	<!-- create the results -->
>     <junitreport todir="./testResults">
>       <fileset dir="./testResults" includes="TEST-*.xml" />
>       <report format="frames" todir="./testResults" />
>     </junitreport>
> 	<!-- put the testResults into test.war -->
>     <jar update="true" destfile="${isac.test.war}"
> basedir="./testResults"/>
> 
>   </target>
> 
> 
> 
> error message:
> 
> 
> ***** ASSERTION FAILED *****[ Failed to generate class for
> com.cbc.isac.ejb20.event.EventMaintenance_dbvlfm_EOImpl_812_WLStub ]
> 
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
> at
>
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
cc
> essorImpl.java:39)
> at
>
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tr
> uctorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
> at
>
weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:805)
> at
>
weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
> at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
> at
>
weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObjectRep
la
> cer.java:214)
> at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
> at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl.java:25)
> at
java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:911)
> at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1655
)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
> at
>
weblogic.rmi.internal.CBVInputStream.readObjectInternal(CBVInputStream.j
av
> a:67)
> at
weblogic.rmi.internal.CBVInputStream.readObject(CBVInputStream.java:61)
> at
>
weblogic.rmi.internal.ServerRequest.unmarshalReturn(ServerRequest.java:9
7)
> at
>
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.
ja
> va:285)
> at
>
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.
ja
> va:244)
> at
>
com.cbc.isac.ejb20.event.EventMaintenance_dbvlfm_HomeImpl_812_WLStub.cre
at
> e(Unknown Source)
> at
>
com.cbc.isac.ejb20.event.EventMaintenanceTest.setUp(EventMaintenanceTest
.j
> ava:49)
> at
>
org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:295
)
> at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263)
> at
>
org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCal
le
> r.java:156)
> at
>
org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB
od
> y0(AbstractWebTestController.java:130)
> at
>
org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB
od
> y1$advice(AbstractWebTestController.java:158)
> at
>
org.apache.cactus.server.AbstractWebTestController.handleRequest(Abstrac
tW
> ebTestController.java)
> at
>
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(Servle
tT
> estRedirector.java:138)
> at
>
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice
(S
> ervletTestRedirector.java:158)
> at
>
org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirec
to
> r.java)
> at
>
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(Servlet
Te
> stRedirector.java:109)
> at
>
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(
Se
> rvletTestRedirector.java:158)
> at
>
org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirect
or
> .java)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
rv
> letStubImpl.java:971)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
ja
> va:402)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
ja
> va:305)
> at
>
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un
> (WebAppServletContext.java:6354)
> at
>
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bj
> ect.java:317)
> at
>
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
)
> at
>
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
et
> Context.java:3635)
> at
>
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
ja
> va:2585)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 59
> at
>
com.cbc.isac.ejb20.event.EventMaintenance_dbvlfm_EOImpl_812_WLStub.ensur
eI
> nitialized(Unknown Source)
> at
>
com.cbc.isac.ejb20.event.EventMaintenance_dbvlfm_EOImpl_812_WLStub.<init
>(
> Unknown Source)
> ... 48 more
> --------------- nested within: ------------------
> weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to
> generate class for
> com.cbc.isac.ejb20.event.EventMaintenance_dbvlfm_EOImpl_812_WLStub ] -
> with nested exception:
> [java.lang.reflect.InvocationTargetException - with target exception:
> [java.lang.ArrayIndexOutOfBoundsException: 59]]
> at
>
weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:807)
> at
>
weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
> at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
> at
>
weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObjectRep
la
> cer.java:214)
> at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142)
> at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl.java:25)
> at
java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:911)
> at
>
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1655
)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
> at
>
weblogic.rmi.internal.CBVInputStream.readObjectInternal(CBVInputStream.j
av
> a:67)
> at
weblogic.rmi.internal.CBVInputStream.readObject(CBVInputStream.java:61)
> at
>
weblogic.rmi.internal.ServerRequest.unmarshalReturn(ServerRequest.java:9
7)
> at
>
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.
ja
> va:285)
> at
>
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.
ja
> va:244)
> at
>
com.cbc.isac.ejb20.event.EventMaintenance_dbvlfm_HomeImpl_812_WLStub.cre
at
> e(Unknown Source)
> at
>
com.cbc.isac.ejb20.event.EventMaintenanceTest.setUp(EventMaintenanceTest
.j
> ava:49)
> at
>
org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:295
)
> at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263)
> at
>
org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCal
le
> r.java:156)
> at
>
org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB
od
> y0(AbstractWebTestController.java:130)
> at
>
org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB
od
> y1$advice(AbstractWebTestController.java:158)
> at
>
org.apache.cactus.server.AbstractWebTestController.handleRequest(Abstrac
tW
> ebTestController.java)
> at
>
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(Servle
tT
> estRedirector.java:138)
> at
>
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice
(S
> ervletTestRedirector.java:158)
> at
>
org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirec
to
> r.java)
> at
>
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(Servlet
Te
> stRedirector.java:109)
> at
>
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(
Se
> rvletTestRedirector.java:158)
> at
>
org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirect
or
> .java)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
rv
> letStubImpl.java:971)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
ja
> va:402)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
ja
> va:305)
> at
>
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un
> (WebAppServletContext.java:6354)
> at
>
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bj
> ect.java:317)
> at
>
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
)
> at
>
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
et
> Context.java:3635)
> at
>
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
ja
> va:2585)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



Mime
View raw message