File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Exception occuring at Weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Exception occuring at Weblogic" Watch "Exception occuring at Weblogic" New topic
Author

Exception occuring at Weblogic

Parul Saxena
Greenhorn

Joined: Jan 24, 2008
Posts: 6
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
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
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


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
Parul Saxena
Greenhorn

Joined: Jan 24, 2008
Posts: 6
Thanks Peer, I could get my code working fine by adding the required jar in the weblogic's classpath.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception occuring at Weblogic
 
Similar Threads
XA connections
Unable to test webservice using a client
Problem with Session Beans
ClassNotFoundException
ObjectNotFoundException with findByPrimaryKey