JavaRanch » Java Forums »
Java »
Web Services
| Author |
java.io.IOException: Server returned HTTP response code: 403 for URL:
|
rajendhar gangoni
Greenhorn
Joined: Dec 23, 2008
Posts: 12
|
|
hi,
while iam calling the webservice method from a standalone java application. i am getting error on the console saying
14:20:38,317 ERROR [STDERR] java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
14:20:38,317 ERROR [STDERR] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1149)
14:20:38,317 ERROR [STDERR] at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
14:20:38,317 ERROR [STDERR] at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
14:20:38,317 ERROR [STDERR] at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
14:20:38,317 ERROR [STDERR] at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
14:20:38,332 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
14:20:38,332 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
14:20:38,332 ERROR [STDERR] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
14:20:38,332 ERROR [STDERR] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
14:20:38,332 ERROR [STDERR] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
14:20:38,332 ERROR [STDERR] at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
14:20:38,332 ERROR [STDERR] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
14:20:38,332 ERROR [STDERR] at com.gtm.glue.utils.XMLParserHelper.parseXML(XMLParserHelper.java:131)
14:20:38,332 ERROR [STDERR] at com.gtm.glue.utils.XMLParserHelper.getCarrierInfo(XMLParserHelper.java:36)
14:20:38,332 ERROR [STDERR] at com.gtm.glue.common.MessageHelper.getCarrierInfo(MessageHelper.java:176)
14:20:38,332 ERROR [STDERR] at com.gtm.messages.NullState.getCarrierInfo(NullState.java:30)
14:20:38,332 ERROR [STDERR] at com.gtm.messages.NullState.getCarrier(NullState.java:49)
14:20:38,332 ERROR [STDERR] at com.gtm.messages.NullState.process(NullState.java:75)
14:20:38,332 ERROR [STDERR] at com.gtm.messages.MessageProcessor.deliverMessage(MessageProcessor.java:858)
14:20:38,332 ERROR [STDERR] at com.gtm.glue.mobilestate.MobileStateManagerBean.createMobileStateList(MobileStateManagerBean.java:84)
14:20:38,332 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:20:38,332 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14:20:38,332 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:20:38,332 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
14:20:38,332 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
14:20:38,332 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
14:20:38,332 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
14:20:38,332 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
14:20:38,332 ERROR [STDERR] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
14:20:38,332 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
14:20:38,332 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
14:20:38,332 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
14:20:38,332 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
14:20:38,332 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
14:20:38,332 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
14:20:38,332 ERROR [STDERR] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
14:20:38,332 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:960)
14:20:38,332 ERROR [STDERR] at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
14:20:38,332 ERROR [STDERR] at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
14:20:38,332 ERROR [STDERR] at $Proxy174.createMobileStateList(Unknown Source)
14:20:38,332 ERROR [STDERR] at com.gtm.glue.services.MobileStateManagerService.createMobileStateList(MobileStateManagerService.java:64)
14:20:38,332 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:20:38,332 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14:20:38,332 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:20:38,332 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
14:20:38,332 ERROR [STDERR] at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
14:20:38,332 ERROR [STDERR] at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
14:20:38,332 ERROR [STDERR] at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
14:20:38,332 ERROR [STDERR] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
14:20:38,332 ERROR [STDERR] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
14:20:38,332 ERROR [STDERR] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
14:20:38,332 ERROR [STDERR] at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
14:20:38,332 ERROR [STDERR] at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
14:20:38,332 ERROR [STDERR] at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
14:20:38,332 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
14:20:38,332 ERROR [STDERR] at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
14:20:38,332 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
14:20:38,332 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
14:20:38,332 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
14:20:38,332 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
14:20:38,332 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
14:20:38,332 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
14:20:38,332 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
14:20:38,332 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
14:20:38,332 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
14:20:38,332 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
14:20:38,332 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
14:20:38,332 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
14:20:38,332 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
14:20:38,332 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
14:20:38,332 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
14:20:38,332 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
14:20:38,332 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
14:20:38,332 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
14:20:38,332 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
14:20:38,598 WARN [WrappedConnection] Closing a result set you left open! Please close it yourself.
java.lang.Throwable: STACKTRACE
any help can be appreciated
Thanks & Regards,
RAjendra
|
 |
Kumar Mettu
Greenhorn
Joined: Mar 01, 2008
Posts: 6
|
|
Rajendra,
403 error code indicates that your request has reached server but server won't let you access this service. Why server would not let you access service can be due to many reason depending on the server you are trying to access. Best Advise I can give you without knowing your server is to check the URL and make sure you are using the right URL to post your request to.
Kumar.
rajendhar gangoni wrote:hi,
while iam calling the webservice method from a standalone java application. i am getting error on the console saying
any help can be appreciated
Thanks & Regards,
RAjendra
|
<A href="http://javaswamy.blogspot.com">My Blog</A>
|
 |
rajendhar gangoni
Greenhorn
Joined: Dec 23, 2008
Posts: 12
|
|
first thanks for your reply.
you are correct in some senarios.
but i checked the url.
its is correct url only.
i think it may be the other issue.
can you explain what are the situation this 403 error may encounter.
|
 |
 |
|
|
subject: java.io.IOException: Server returned HTTP response code: 403 for URL:
|
|
|
|