Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Exception occuring at Weblogic

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Kindly provide the solution to this problem urgently.

My application works on JDK 1.3 and trying to access one .Net webservice.

A sample standalone application works fine using the same environment but when I try to access the same service through the application deployed at Weblogic, I'm getting below pasted exception.

I'm using Static Stub Client.
During build the stub files are getting generated using following jars available in lib folder (not sure which axis version it is):
axis.jar
commons-logging.jar
commons-discovery.jar
commons-discovery.jar
wsdl4j.jar
saaj.jar
jaxrpc.jar
dmwiz.jar

The same lib folder gets packed in the final .ear file.
I'm not sure, might be some environmental issue I'm facing.
The exception occured is as follows:
RemoteException caught:java.lang.ArrayIndexOutOfBoundsException
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.ArrayIndexOutOfBoundsException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.ArrayIndexOutOfBoundsE
xception
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.ja
va:291)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:88)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
at org.apache.axis.client.Call.invokeEngine(Call.java:2735)
at org.apache.axis.client.Call.invoke(Call.java:2718)
at org.apache.axis.client.Call.invoke(Call.java:2394)
at org.apache.axis.client.Call.invoke(Call.java:2317)
at org.apache.axis.client.Call.invoke(Call.java:1774)
at org.tempuri.SMToolIntegrationServiceSoapStub.rcvToolAccountDtlsFrmSmT
ool(Unknown Source)
at ConfigController.processRequest(Unknown Source)
at ConfigController.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1111)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:437)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:319)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5699)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:690)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3216)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2591)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:223)

{http://xml.apache.org/axis/}hostname:ssotool01

java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.ja
va:291)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:88)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
at org.apache.axis.client.Call.invokeEngine(Call.java:2735)
at org.apache.axis.client.Call.invoke(Call.java:2718)
at org.apache.axis.client.Call.invoke(Call.java:2394)
at org.apache.axis.client.Call.invoke(Call.java:2317)
at org.apache.axis.client.Call.invoke(Call.java:1774)
at org.tempuri.SMToolIntegrationServiceSoapStub.rcvToolAccountDtlsFrmSmT
ool(Unknown Source)
at ConfigController.processRequest(Unknown Source)
at ConfigController.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1111)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:437)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:319)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5699)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:690)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3216)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2591)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:223)

Can anyone tell what could be the cause for this and please let me know if requires some more information.

Thanks,
Parul
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have the appropriate alterations been made to the application server environment to work around the issues that Axis has when operating under WebLogic 8.1?

Step 2: Setting up the libraries: WebLogic 8.1

See also: Axis Issue with Weblogic 7.0/JDK 1.3.1_08
 
Parul Saxena
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peer, I could get my code working fine by adding the required jar in the weblogic's classpath.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic