ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pani Chakrapani" <prcp...@gmail.com>
Subject ArrayIndexOutofBoundsException when using WsEjbDeploy
Date Sun, 26 Aug 2007 13:09:07 GMT
Iam using  ANT version 1.7 , JDK 1.4 and Websphere APP Server 6.0

Here is the ANT script which perform ejb deploy code. ejbmodule has around
115 files.

Please help me resolve at the earliest

*********************************************************************
<target description="Deploy Goods Receipt EJB File" name="deploy" depends="
EjbProject.build">
    <jar basedir="../EjbProject/bin" destfile="${project.build.directory
}/EjbProject.jar">
        <metainf dir="../EjbProject/ejbModule/META-INF"/>
    </jar>
    <delete dir="${project.build.directory}/ejbdeploy-working"></delete>
    <wsEjbDeploy IgnoreErrors="true" outputJar="${project.build.directory
}/EjbProject-OUTPUT.jar" inputJar="${project.build.directory}/EjbProject.jar"
classpathref="wsejbdeploy.path"
workingDirectory="${project.build.directory}/ejbdeploy-working"
wasHome="${was6.home}" trace="true" codegen="true"
rmicOptions="-verbose"></wasEjbDeploy>
    <move file="${project.build.directory}/EjbProject.jar" tofile="${
project.build.directory}/EjbProject-INPUT.jar"></move>
    <move file="${project.build.directory}/EjbProject-OUTPUT.jar" tofile="${
project.build.directory}/EjbProject.jar"></move>
    <echo>**** Task WsEJBDeploy Complete! ****</echo>
</target>

*********************************************************************
Iam getting error as follows.

[wsejbdeploy] Generating deployment code
[wsejbdeploy]   Processing session bean: LoadListWEService
[wsejbdeploy] Refreshing: /EjbProject/ejbModule.
[wsejbdeploy] [*Error] An unexpected exception was thrown.  Halting
execution.
[wsejbdeploy] Shutting down workbench.
[wsejbdeploy]
[wsejbdeploy] 0
[wsejbdeploy] >com.ibm.etools.ejbdeploy.EJBDeploymentException (0)
[wsejbdeploy] java.lang.ArrayIndexOutOfBoundsException: 0
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.generators.mb.RemoteMBGenerator.getE
xceptionCodeSnip(RemoteMBGenerator.java:149)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.gen2x.generators.LocalMBGenerator.ge
tExceptionCodeSnip(LocalMBGenerator.java:43)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.gen2x.generators.LocalWrapperMBGener
ator.run(LocalWrapperMBGenerator.java:51)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.codegen.BaseGenerator.runDependents(
BaseGenerator.java:301)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.java.codegen.JavaMethodGenerator.get
Body(JavaMethodGenerator.java:141)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.java.codegen.JavaMethodGenerator.gen
erateMethod(JavaMethodGenerator.java:116)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.java.codegen.JavaMethodGenerator.gen
erateMember(JavaMethodGenerator.java:214)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.java.codegen.JavaMemberGenerator.run
(JavaMemberGenerator.java:206)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.codegen.BaseGenerator.runChildren(Ba
seGenerator.java:292)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.java.codegen.JavaTypeGenerator.getBo
dy(JavaTypeGenerator.java:102)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.java.codegen.JavaTypeGenerator.gener
ateType(JavaTypeGenerator.java:74)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.java.codegen.JavaTypeGenerator.gener
ateMember(JavaTypeGenerator.java:220)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.java.codegen.JavaMemberGenerator.run
(JavaMemberGenerator.java:206)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.codegen.BaseGenerator.runChildren(Ba
seGenerator.java:292)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.java.codegen.JavaCompilationUnitGene
rator.run(JavaCompilationUnitGenerator.java:272)
[wsejbdeploy]   at com.ibm.etools.ejbdeploy.gen20.cnr.LocalWrapper.run
(LocalWrap
per.java:53)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.codegen.BaseGenerator.runChildren(Ba
seGenerator.java:292)
[wsejbdeploy]   at com.ibm.etools.ejbdeploy.codegen.BaseGenerator.run
(BaseGenera
tor.java:283)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.deploySess
ion2_0(EJBDeployOperation.java:1008)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.deploySess
ion(EJBDeployOperation.java:918)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.invokeCode
Generation(EJBDeployOperation.java:1683)
[wsejbdeploy]   at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.doRun
(EJBD
eployOperation.java:1487)
[wsejbdeploy]   at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.run
(EJBDep
loyOperation.java:1376)
[wsejbdeploy]   at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.doit
(EJBDe
ployOperation.java:1044)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.invokeDe
ploymentCodegen(BatchExtension.java:1942)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.internal
JarProcess(BatchExtension.java:976)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.runJarDe
ploy(BatchExtension.java:902)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.access$1
(BatchExtension.java:867)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension$RunDeplo
y.run(BatchExtension.java:289)
[wsejbdeploy]   at org.eclipse.core.internal.resources.Workspace.run(
Workspace.j
ava:1673)
[wsejbdeploy]   at org.eclipse.core.internal.resources.Workspace.run(
Workspace.j
ava:1693)
[wsejbdeploy]   at
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension$RunDeplo
y.execute(BatchExtension.java:271)
[wsejbdeploy]   at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run
(Batc
hExtension.java:234)
[wsejbdeploy]   at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(Pla
tformActivator.java:335)
[wsejbdeploy]   at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseSt
arter.java:273)
[wsejbdeploy]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[wsejbdeploy]   at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAcces
sorImpl.java:39)
[wsejbdeploy]   at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMet
hodAccessorImpl.java:25)
[wsejbdeploy]   at java.lang.reflect.Method.invoke(Method.java:324)
[wsejbdeploy]   at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.run
(Boot
LoaderLoader.java:413)
[wsejbdeploy]   at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute
(Batch
Deploy.java:144)
[wsejbdeploy]   at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java
:83)

[wsejbdeploy]   at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java
:313)
[wsejbdeploy] EJBDeploy level: o0632.08
[wsejbdeploy] Java Result: 1

BUILD FAILED

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message