hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joseph mercado <qt_...@yahoo.com>
Subject Re: Response content length is not known
Date Tue, 17 Aug 2004 12:30:08 GMT
by the way im using jboss. where do i change it here
log4j.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<!--
=====================================================================
-->
<!--                                                  
                    -->
<!--  Log4j Configuration                             
                    -->
<!--                                                  
                    -->
<!--
=====================================================================
-->
<!-- $Id: log4j.xml,v 1.13.2.8 2003/09/23 14:16:27
slaboure Exp $ -->
<!--
   | For more configuration infromation and examples
see the Jakarta Log4j
   | owebsite: http://jakarta.apache.org/log4j
 -->
<log4j:configuration
xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="true">
	<!-- ================================= -->
	<!-- Preserve messages in a local file -->
	<!-- ================================= -->
	<!-- A time/date based rolling appender -->
	<appender name="FILE"
class="org.jboss.logging.appender.DailyRollingFileAppender">
		<errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
		<param name="File"
value="${jboss.server.home.dir}/log/server.log"/>
		<param name="Append" value="false"/>
		<!-- Rollover at midnight each day -->
		<param name="DatePattern" value="'.'yyyy-MM-dd"/>
		<!-- Rollover at the top of each hour
      <param name="DatePattern"
value="'.'yyyy-MM-dd-HH"/>
      -->
		<layout class="org.apache.log4j.PatternLayout">
			<!-- The default pattern: Date Priority [Category]
Message\n -->
			<param name="ConversionPattern" value="%d %-5p [%c]
%m%n"/>
			<!-- The full pattern: Date MS Priority [Category]
(Thread:NDC) Message\n
         <param name="ConversionPattern" value="%d
%-5r %-5p [%c] (%t:%x) %m%n"/>
          -->
		</layout>
	</appender>
	<!-- A size based file rolling appender
   <appender name="FILE"
class="org.jboss.logging.appender.RollingFileAppender">
     <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
     <param name="File"
value="${jboss.server.home.dir}/log/server.log"/>
     <param name="Append" value="false"/>
     <param name="MaxFileSize" value="500KB"/>
     <param name="MaxBackupIndex" value="1"/>

     <layout class="org.apache.log4j.PatternLayout">
       <param name="ConversionPattern" value="%d %-5p
[%c] %m%n"/>
     </layout>	    
   </appender>
   -->
	<!-- ============================== -->
	<!-- Append messages to the console -->
	<!-- ============================== -->
	<appender name="CONSOLE"
class="org.apache.log4j.ConsoleAppender">
		<errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
		<param name="Target" value="System.out"/>
		<param name="Threshold" value="INFO"/>
		<layout class="org.apache.log4j.PatternLayout">
			<!-- The default pattern: Date Priority [Category]
Message\n -->
			<param name="ConversionPattern" value="%d{ABSOLUTE}
%-5p [%c{1}] %m%n"/>
		</layout>
	</appender>
	<appender name="JSR77"
class="org.apache.log4j.FileAppender">
		<errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
		<param name="Append" value="false"/>
		<param name="File"
value="${jboss.server.home.dir}/log/jsr77.log"/>
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{ABSOLUTE}
%-5p [%c{1}] %m%n"/>
		</layout>
	</appender>
	<!-- ====================== -->
	<!-- SmartApps Appender -->
	<!-- ====================== -->
	<appender name="SmartSQL"
class="org.apache.log4j.DailyRollingFileAppender">
		<errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
		<param name="Append" value="true"/>
		<param name="DatePattern" value="'.'yyyy-MM-dd"/>
		<param name="File"
value="/usr/local/smart/log/smartsql.log"/>
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{ABSOLUTE}
%-5p %m%n"/>
		</layout>
	</appender>
	<!-- ====================== -->
	<!-- More Appender examples -->
	<!-- ====================== -->
	<!-- Buffer events and log them asynchronously
   <appender name="ASYNC"
class="org.apache.log4j.AsyncAppender">
     <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
     <appender-ref ref="FILE"/>
     <appender-ref ref="CONSOLE"/>
     <appender-ref ref="SMTP"/>
   </appender>
   -->
	<!-- EMail events to an administrator
   <appender name="SMTP"
class="org.apache.log4j.net.SMTPAppender">
     <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
     <param name="Threshold" value="ERROR"/>
     <param name="To"
value="admin@myhost.domain.com"/>
     <param name="From"
value="nobody@myhost.domain.com"/>
     <param name="Subject" value="JBoss Sever
Errors"/>
     <param name="SMTPHost" value="localhost"/>
     <param name="BufferSize" value="10"/>
     <layout class="org.apache.log4j.PatternLayout">
       <param name="ConversionPattern"
value="[%d{ABSOLUTE},%c{1}] %m%n"/>
     </layout>
   </appender>
   -->
	<!-- Syslog events
   <appender name="SYSLOG"
class="org.apache.log4j.net.SyslogAppender">
     <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
     <param name="Facility" value="LOCAL7"/>
     <param name="FacilityPrinting" value="true"/>
     <param name="SyslogHost" value="localhost"/>
   </appender>
   -->
	<!-- Log events to JMS (requires a topic to be
created)
   <appender name="JMS"
class="org.apache.log4j.net.JMSAppender">
     <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
     <param name="Threshold" value="ERROR"/>
     <param name="TopicConnectionFactoryBindingName"
value="java:/ConnectionFactory"/>
     <param name="TopicBindingName"
value="topic/MyErrorsTopic"/>
   </appender>
   -->
	<!-- Log events through SNMP
   <appender name="TRAP_LOG"
class="org.apache.log4j.ext.SNMPTrapAppender">
     <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
     <param name="ImplementationClassName"
value="org.apache.log4j.ext.JoeSNMPTrapSender"/>
     <param name="ManagementHost" value="127.0.0.1"/>
     <param name="ManagementHostTrapListenPort"
value="162"/>
     <param name="EnterpriseOID"
value="1.3.6.1.4.1.24.0"/>
     <param name="LocalIPAddress" value="127.0.0.1"/>
     <param name="LocalTrapSendPort" value="161"/>
     <param name="GenericTrapType" value="6"/>
     <param name="SpecificTrapType" value="12345678"/>
     <param name="CommunityString" value="public"/>
     <param name="ForwardStackTraceWithTrap"
value="true"/>
     <param name="Threshold" value="DEBUG"/>
     <param name="ApplicationTrapOID"
value="1.3.6.1.4.1.24.12.10.22.64"/>
     <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern"
value="%d,%p,[%t],[%c],%m%n"/>
     </layout>
   </appender>
   -->
	<!-- ================ -->
	<!-- Limit categories -->
	<!-- ================ -->
	<!-- Limit the org.apache.commons category to INFO as
its DEBUG is verbose -->
	<category name="org.apache.commons">
		<priority value="DEBUG"/>
	</category>
	<!-- Limit JBoss categories to INFO -->
	<category name="org.jboss">
		<priority value="DEBUG"/>
	</category>
	<!-- ================ -->
	<!-- SmartApps Limit categories -->
	<!-- ================ -->
	<category name="ph.net.mdi.smart.web.SmartServlet">
		<priority value="iINFO"/>
		<appender-ref ref="SmartSQL"/>
	</category>
	<category name="ph.net.mdi.smart.ejb.SmartMDBean">
		<priority value="INFO"/>
		<appender-ref ref="SmartSQL"/>
	</category>
	<category name="ph.net.mdi.smart.ejb.PushMDBean">
		<priority value="DEBUG"/>
		<appender-ref ref="SmartSQL"/>
	</category>
	<!-- Decrease the priority threshold for the
org.jboss.varia category
   <category name="org.jboss.varia">
     <priority value="DEBUG"/>
   </category>
   -->
	<!-- Show the evolution of the DataSource pool in the
logs [inUse/Available/Max]
   <category
name="org.jboss.resource.connectionmanager.JBossManagedConnectionPool">
     <priority value="TRACE"
class="org.jboss.logging.XLevel"/>
   </category>
   -->
	<!--
      | An example of enabling the custom TRACE level
priority that is used
      | by the JBoss internals to diagnose low level
details. This example
      | turns on TRACE level msgs for the
org.jboss.ejb.plugins package and its
      | subpackages. This will produce A LOT of
logging output.
   <category name="org.jboss.system">
     <priority value="TRACE"
class="org.jboss.logging.XLevel"/>
   </category>
   <category name="org.jboss.ejb.plugins">
     <priority value="TRACE"
class="org.jboss.logging.XLevel"/>
   </category>
   -->
	<!--
       | Logs these events to SNMP:
           - server starts/stops
           - cluster evolution (node death/startup)
           - When an EJB archive is deployed (and
associated verified messages)
           - When an EAR archive is deployed
      	 
   <category name="org.jboss.system.server.Server">
     <priority value="INFO" />
     <appender-ref ref="TRAP_LOG"/>
   </category>
  
   <category
name="org.jboss.ha.framework.interfaces.HAPartition.lifecycle">
     <priority value="INFO" />
     <appender-ref ref="TRAP_LOG"/>
   </category>

   <category name="org.jboss.deployment.MainDeployer">
     <priority value="ERROR" />
     <appender-ref ref="TRAP_LOG"/>
   </category>
   
   <category name="org.jboss.ejb.EJBDeployer">
     <priority value="INFO" />
     <appender-ref ref="TRAP_LOG"/>
   </category>
   
   <category name="org.jboss.deployment.EARDeployer">
     <priority value="INFO" />
     <appender-ref ref="TRAP_LOG"/>
   </category>
   
  
   -->
	<!-- ======================= -->
	<!-- Setup the Root category -->
	<!-- ======================= -->
	<root>
		<appender-ref ref="CONSOLE"/>
		<appender-ref ref="FILE"/>
	</root>
	<!-- Clustering logging -->
	<!-- Uncomment the following to redirect the
org.jgroups and
      org.jboss.ha categories to a cluster.log file.

   <appender name="CLUSTER"
class="org.jboss.logging.appender.RollingFileAppender">
     <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
     <param name="File"
value="${jboss.server.home.dir}/log/cluster.log"/>
     <param name="Append" value="false"/>
     <param name="MaxFileSize" value="500KB"/>
     <param name="MaxBackupIndex" value="1"/>

     <layout class="org.apache.log4j.PatternLayout">
       <param name="ConversionPattern" value="%d %-5p
[%c] %m%n"/>
     </layout>
   </appender>
   <category name="org.jgroups">
     <priority value="DEBUG" />
     <appender-ref ref="CLUSTER"/>
   </category>
   <category name="org.jboss.ha">
     <priority value="DEBUG" />
     <appender-ref ref="CLUSTER"/>
   </category>
   -->
</log4j:configuration>




--- Michael Becke <becke@u.washington.edu> wrote:

> Hi Joseph,
> 
> Please post a full debug + wire log of the
> transaction  
>
<http://jakarta.apache.org/commons/httpclient/logging.html>.
>  This will  
> give us a better idea of what's happening.
> 
> Thanks,
> 
> Mike
> 
> 
> On Aug 17, 2004, at 8:07 AM, joseph mercado wrote:
> 
> > HI list;
> >    Im using httpClient-2.0. I trying to post an
> xml
> > data, parse xml to assemble the post data to be
> posted
> > to several sequence of jsp page. I got all the
> > response body for the all the page except the last
> > one. I set logging to debug. On each page i got
> > warning. What's causing this and why cant i get
> the
> > last html page. the log below should print the
> last
> > html page.
> >
> >
> >
> > 19:48:46,585 INFO  [STDOUT] <?xml version="1.0"
> > encoding="UTF-8"?><ereg bId="123456"
> >
>
uId="joseph"><form><lastName>Mercado</lastName><firstName>Joseph</
> 
> >
>
firstName><middleName>G</middleName><birthDate>11-18-1978</
> 
> >
>
birthDate><registrationType>individual</registrationType></
> 
> > form><form><agree>YES</agree></form><form><sex>M</
> 
> > sex><professionalType1>
> > ACCOUNTANT &amp;
> > AUDITOR</professionalType1><citizenship>FIL</ 
> > citizenship><businessSubStreet>2158
> > -A</businessSubStreet><busunessStreet>Mindanao
> > Avenue</busunessStreet><businessBarangay>501</ 
> > businessBarangay><businessDistrict>Sta.
> > Mesa</businessDistrict><businessCity>Metro
> > Manila</businessCity><businessTelephone>8122124</ 
> > businessTelephone><contactLastName>Puno</ 
> > contactLastName><contactFirstName>Rico</ 
> > contactFirstName><contactMiddleInitial>Jay</ 
> >
>
contactMiddleInitial><contactPersonTelephone>8765432</
> 
> > contactPersonTelephone><action>BIRpage2</action></
> 
> > form><form><taxType1>IT</taxType1><taxType23>RF</

> >
>
taxType23><action>BIRpage3</action></form><form><civilStatus>MA</
> 
> > civilStatus><spouseLastName>Mercado</ 
> > spouseLastName><spouseFirstName>Ma.
> >
>
Andrelita</spouseFirstName><spouseMiddleName>Cajobe</
> 
> > spouseMiddleName><spouseTin>213122312</ 
> > spouseTin><spouseEmployerName>MDI</ 
> > spouseEmployerName><noOfDependentChildren>1</ 
> >
>
noOfDependentChildren><dependentChildLastName1>Mercado</
> 
> >
>
dependentChildLastName1><dependentChildFirstName1>Andre</
> 
> >
>
dependentChildFirstName1><dependentChildMiddleName1>C</
> 
> >
>
dependentChildMiddleName1><dependentChildIncapacitatedFlag1>D1</
> 
> >
>
dependentChildIncapacitatedFlag1><additionalClaims>HC</
> 
> > additionalClaims><action>BIRpage4</action></ 
> > form><form><multipleEmploymentType1>SE</ 
> >
>
multipleEmploymentType1><previousEmployerTIN1>123456789</
> 
> > previousEmployerTIN1><previousEmployerName1>BPI</ 
> >
>
previousEmployerName1><currentEmployerTIN>123456789</
> 
> > currentEmployerTIN><currentRDO>051</ 
> > currentRDO><currentEmployerName>MDi</ 
> > currentEmployerName><currentEmployerAddress>6F
> > Peninsula Court Paseo
> >
>
Makati</currentEmployerAddress><currentEmployerZipCode>1200</
> 
> >
>
currentEmployerZipCode><currentEmployerTelephone>8122124</
> 
> >
> currentEmployerTelephone><action>BIRpage5</action></
> 
> > form><form><rdoCodeName>042
> > - SAN
> >
>
JUAN</rdoCodeName><sssNumber>21321313122</sssNumber><action>confirm</
> 
> >
>
action></form><form><action>finished</action></form></ereg>
> > 19:48:46,625 WARN  [HttpMethodBase] Response
> content
> > length is not known
> > 19:48:46,625 INFO  [STDOUT]
> > http://203.215.79.212/reg-dir/validateLogin.do
> > 19:48:46,675 INFO  [STDOUT]
> > http://203.215.79.212/reg-dir/BIRpage1.do
> > 19:48:59,804 WARN  [HttpMethodBase] Response
> content
> > length is not known
> > 19:48:59,804 INFO  [STDOUT]
> > http://203.215.79.212/reg-dir/BIRpage2.do
> > 19:48:59,854 WARN  [HttpMethodBase] Response
> content
> > length is not known
> > 19:48:59,854 INFO  [STDOUT]
> > http://203.215.79.212/reg-dir/BIRpage3.do
> > 19:49:21,925 WARN  [HttpMethodBase] Response
> content
> > length is not known
> > 19:49:21,935 INFO  [STDOUT]
> > http://203.215.79.212/reg-dir/BIRpage4.do
> > 19:49:21,965 WARN  [HttpMethodBase] Response
> content
> > length is not known
> > 19:49:21,965 INFO  [STDOUT]
> > http://203.215.79.212/reg-dir/BIRpage5.do
> > 19:50:14,721 WARN  [HttpMethodBase] Response
> content
> > length is not known
> > 19:50:14,721 INFO  [STDOUT]
> > http://203.215.79.212/reg-dir/confirm.do
> > 19:50:22,112 WARN  [HttpMethodBase] Response
> content
> > length is not known
> > 19:50:22,112 INFO  [STDOUT]
> > http://203.215.79.212/reg-dir/submitApplication.do
> > 19:50:22,132 WARN  [HttpMethodBase] Response
> content
> > length is not known
> >
> >
> >
> >
> > 		
> > __________________________________
> > Do you Yahoo!?
> > Take Yahoo! Mail with you! Get it on your mobile
> phone.
> > http://mobile.yahoo.com/maildemo
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:  
> >
>
commons-httpclient-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:  
> > commons-httpclient-dev-help@jakarta.apache.org
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
>
commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-httpclient-dev-help@jakarta.apache.org
> 
> 



		
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message