axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: JWSHandler - StringIndexOutOfBoundsException
Date Tue, 17 Sep 2002 11:48:38 GMT
Fixed. Please try latest cvs.

-- dims

--- Shigehiro Soejima <ssoejima@savvion.com> wrote:
> Hello, all
> 
> I tested Axis on Pramati Server and got StringIndexOutOfBoundsException
> during WSDL generation. (typed ~.jws?wsdl in browser) I checked
> JWSHandler.java and found urls[0].getPath() is "/" and it causes line 358
> to throw the exception. Should Axis handle the situation or Pramati
> Server shouldn't return "/"?
> 
> 
> JWSHandler.java (RC1)
> 
> 352                URL[] urls = ((URLClassLoader) cl).getURLs();
> 353
> 354                for(int i=0; (urls != null) && i < urls.length; i++)
> 355                {
> 356                    String path = urls[i].getPath();
> 357                    //If it is a drive letter, adjust accordingly.
> 358                    if(path.charAt(0)=='/'&&path.charAt(2)==':')
> 359                        path = path.substring(1);
> 360                    classpath.append(path);
> 361                    classpath.append(File.pathSeparatorChar);
> 
> 
> Thanks,
> Shige
> 
> 
> 
> 
> 16 9 2002 17:29:18,758 axis.handlers.JWSHandler ERROR - Exception:
> java.lang.StringIndexOutOfBoundsException: String index out of range: 2
> 	at java.lang.String.charAt(String.java:516)
> 	at
> org.apache.axis.handlers.JWSHandler.getDefaultClasspath(JWSHandler.java:358)
> 	at org.apache.axis.handlers.JWSHandler.setupService(JWSHandler.java:239)
> 	at org.apache.axis.handlers.JWSHandler.generateWSDL(JWSHandler.java:468)
> 	at org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:72)
> 	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:153)
> 	at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:140)
> 	at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:461)
> 	at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:277)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> 	at
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:335)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> com.pramati.web.interceptors.ServiceInterceptor$ServiceAction.run(ServiceInterceptor.java:287)
> 	at
> com.pramati.security.util.JAASSecurityHelper.doAs(JAASSecurityHelper.java:145)
> 	at java.lang.reflect.Method.invoke(Native Method)
> 	at
> com.pramati.services.security.spi.SecurityHelper.doAs(SecurityHelper.java:130)
> 	at
> com.pramati.web.interceptors.ServiceInterceptor.preProcess(ServiceInterceptor.java:141)
> 	at
> com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:47)
> 	at
> com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
> 	at
> com.pramati.web.interceptors.FilterInterceptor.process(FilterInterceptor.java:92)
> 	at
> com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
> 	at
> com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:48)
> 	at
> com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
> 	at
> com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:48)
> 	at
> com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
> 	at
> com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:48)
> 	at
> com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
> 	at
>
com.pramati.web.interceptors.core.DefaultProcessContainer.process(DefaultProcessContainer.java:84)
> 	at com.pramati.web.core.WorkerThread.run(WorkerThread.java:54)
> 	at com.pramati.web.core.AcceptorThread.run(AcceptorThread.java:121)
> 


=====
Davanum Srinivas - http://xml.apache.org/~dims/

__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

Mime
View raw message