axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjay Vivek" <Sanjay.Vi...@newcastle.ac.uk>
Subject RE: Exceptions when using a Rampart client generated from stub classes.
Date Fri, 04 Jul 2008 08:03:03 GMT
Hi Nandana,
 
Yes, I need to disable HTTPS for a short period of time so that I can do
some debugging with TCPMON. However, I get the following exceptions when
I do comment out that line as shown below. The exceptions goes away when
I un-comment the line. The line that sticks out it "[ERROR]
Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been
called for this response". Any idea why I'm getting these exceptions?
Thanks again.

Regards
Sanjay

[ERROR] Servlet.service() for servlet AxisServlet threw exception
org.apache.axis2.dataretrieval.DataRetrievalException:
java.lang.NullPointerException
	at
org.apache.axis2.dataretrieval.AxisDataLocatorImpl.getData(AxisDataLocat
orImpl.java:85)
	at
org.apache.axis2.description.AxisService.getData(AxisService.java:2722)
	at
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1462)
	at
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1334
)
	at
org.apache.axis2.transport.http.ListingAgent.processListService(ListingA
gent.java:287)
	at
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:240)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:210)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:174)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:108)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
51)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87
0)
	at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:665)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:528)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:81)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:685)
	at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.axis2.dataretrieval.DataRetrievalException:
java.lang.NullPointerException
	at
org.apache.axis2.dataretrieval.WSDLDataLocator.outputInlineForm(WSDLData
Locator.java:134)
	at
org.apache.axis2.dataretrieval.WSDLDataLocator.getData(WSDLDataLocator.j
ava:73)
	at
org.apache.axis2.dataretrieval.AxisDataLocatorImpl.getData(AxisDataLocat
orImpl.java:81)
	... 21 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
	at
org.apache.axis2.util.ExternalPolicySerializer.serialize(ExternalPolicyS
erializer.java:175)
	at
org.apache.axis2.util.PolicyUtil.getPolicyComponentAsOMElement(PolicyUti
l.java:110)
	at
org.apache.axis2.description.AxisService2WSDL11.addPoliciesToDefinitionE
lement(AxisService2WSDL11.java:612)
	at
org.apache.axis2.description.AxisService2WSDL11.generateOM(AxisService2W
SDL11.java:238)
	at
org.apache.axis2.dataretrieval.WSDLDataLocator.outputInlineForm(WSDLData
Locator.java:130)
	... 23 more
Caused by: java.lang.NullPointerException
	at
org.apache.ws.secpolicy.model.TransportToken.serialize(TransportToken.ja
va:90)
	at
org.apache.ws.secpolicy.model.TransportBinding.serialize(TransportBindin
g.java:157)
	at
org.apache.axis2.util.ExternalPolicySerializer.serialize(ExternalPolicyS
erializer.java:159)
	... 27 more
[ERROR] Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been
called for this response
	at
org.apache.catalina.connector.Response.getWriter(Response.java:601)
	at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.ja
va:196)
	at
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
	at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:1
18)
	at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:1
85)
	at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspF
actoryImpl.java:116)
	at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryIm
pl.java:76)
	at
org.apache.jsp.axis2_002dweb.Error.error500_jsp._jspService(error500_jsp
.java:99)
	at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:328)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
	at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:691)
	at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:471)
	at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:403)
	at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:301)
	at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java
:364)
	at
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java
:285)
	at
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.j
ava:229)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:135)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:108)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
51)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87
0)
	at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:665)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:528)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:81)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:685)
	at java.lang.Thread.run(Thread.java:619)
Jun 23, 2008 10:04:35 AM org.apache.catalina.core.StandardHostValve
custom
SEVERE: Exception Processing ErrorPage[errorCode=500,
location=/axis2-web/Error/error500.jsp]
org.apache.jasper.JasperException: getOutputStream() has already been
called for this response
	at
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle
tWrapper.java:476)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:383)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
	at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:691)
	at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:471)
	at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:403)
	at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:301)
	at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java
:364)
	at
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java
:285)
	at
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.j
ava:229)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:135)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:108)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
51)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87
0)
	at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:665)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:528)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:81)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:685)
	at java.lang.Thread.run(Thread.java:619) 
 
 


________________________________

	From: Nandana Mihindukulasooriya [mailto:nandana.cse@gmail.com] 
	Sent: 04 July 2008 06:08
	To: axis-user@ws.apache.org
	Subject: Re: Exceptions when using a Rampart client generated
from stub classes.
	
	
	Hi Sanjay,
	
	

		That worked perfectly! Thanks for your advice. On a
separate note, I've
		a question regarding disabling HTTPS. The primary reason
I want to do
		this is because TCPMON can't intercept encrypted
messages. I disabled
		HTTPS by commenting out the following line in the
services.xml file :
		
		                               <sp:TransportToken>
		                                 <wsp:Policy>
		                                       <!--
<sp:HttpsToken
		RequireClientCertificate="false"/>-->
		                                 </wsp:Policy>
		                               </sp:TransportToken>
		


	I'm not clear about your requirements. By commenting out the
above line, what do is remove the requirement which says the message
MUST come through the HTTPS transport. So if you comment this line and
call the web service through HTTP , you will be able to intercept the
messages through TCPMON. Is this what you want ?
	
	Else if we really want is to disable https for a certain
service, "Exposing a Service on a Selected Transport" section of this
tutorial [1]. 
	
	thanks,
	nandana
	

	[1] - http://wso2.org/library/2060
	
	-- 
	Nandana Mihindukulasooriya 
	WSO2 inc.
	
	http://nandana83.blogspot.com/
	


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message