Trade Secret? :) First i enabled the debug options for the junit jvm in pom.xml. Please see suspend=n and not suspend=y. this will enable you to just keep running the tests and still connect from idea to the hanging test. <argLine>-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5006</argLine>
when the tests ran, it got stuck in EchoRawXMLXYZ test. Then i put some break points in that test based on the stack trace. I also noticed 2 threads, one thread was writing an attachment and was stuck in writeBodyPart and another thread was a http connection thread reading from the inputstream which was stuck too. Then i tried to set the client port to 5556 and redirected the messages from 5556 to 5555 using tcpmon. I could see that there was some attachment on the wire but not the whole thing. So the trouble was either in writing the attachment or reading it. i confirmed this by adding a few breakpoints in MIMEOutputUtils.writeBodyPart and stepping thru the EchoRawXMLXYZ after running the maven build in the single test mode using mvn -Dtest=EchoRawXMLXYZ test -o And when stepping thru it was stuck in "part.writeTo(outStream);" and would not progress to the next line which was outStream.write(CRLF);. The first culprit that came to mind was the mail jar. So i excluded that and added the sun jar and voila! thanks, dims On 6/21/07, David Illsley <[EMAIL PROTECTED]> wrote:
Thanks Dims! I've been trying to find the artifact responsible for some wierd problems for a couple of days. How did you dtermine it was the geronimo jar? David On 21/06/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Author: dims > Date: Wed Jun 20 21:25:27 2007 > New Revision: 549358 > > URL: http://svn.apache.org/viewvc?view=rev&rev=549358 > Log: > Get more tests working. Basically the geronimo mail jar causes an infinite loop somewhere, so just use the one from sun for now. > > Modified: > webservices/axis2/trunk/java/modules/integration/pom.xml > > Modified: webservices/axis2/trunk/java/modules/integration/pom.xml > URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/integration/pom.xml?view=diff&rev=549358&r1=549357&r2=549358 > ============================================================================== > --- webservices/axis2/trunk/java/modules/integration/pom.xml (original) > +++ webservices/axis2/trunk/java/modules/integration/pom.xml Wed Jun 20 21:25:27 2007 > @@ -32,91 +32,199 @@ > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-clustering</artifactId> > <version>${version}</version> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-adb-codegen</artifactId> > <version>${version}</version> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-adb</artifactId> > <version>${version}</version> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-codegen</artifactId> > <version>${version}</version> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-java2wsdl</artifactId> > <version>${version}</version> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-jaxbri</artifactId> > <version>${version}</version> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-jaxws-api</artifactId> > <version>${version}</version> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <version>${version}</version> > <artifactId>axis2-jaxws</artifactId> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <version>${version}</version> > <artifactId>axis2-jibx</artifactId> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-json</artifactId> > <version>${version}</version> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-kernel</artifactId> > <version>${version}</version> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-metadata</artifactId> > <version>${version}</version> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-mtompolicy</artifactId> > <version>${version}</version> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-saaj-api</artifactId> > <version>${version}</version> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-saaj</artifactId> > <version>${version}</version> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-spring</artifactId> > <version>${version}</version> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-xmlbeans</artifactId> > <version>${version}</version> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-kernel</artifactId> > <version>${version}</version> > + <exclusions> > + <exclusion> > + <groupId>org.apache.geronimo.specs</groupId> > + <artifactId>geronimo-javamail_1.4_spec</artifactId> > + </exclusion> > + </exclusions> > </dependency> > <dependency> > <groupId>javax.xml.bind</groupId> > @@ -195,11 +303,11 @@ > <groupId>javax.xml</groupId> > </exclusion> > </exclusions> > - </dependency> > - <dependency> > - <groupId>groovy</groupId> > - <artifactId>groovy-all</artifactId> > - <version>${groovy.all.version}</version> > + </dependency> > + <dependency> > + <groupId>groovy</groupId> > + <artifactId>groovy-all</artifactId> > + <version>${groovy.all.version}</version> > </dependency> > </dependencies> > <profiles> > @@ -306,7 +414,7 @@ > <tasks> > <!-- Set a property that can be picked up from the ant build.xml's --> > <property name="maven.class.path" refid="maven.runtime.classpath"/> > - <property name="maven.test.path" refid="maven.compile.classpath"/> > + <property name="maven.test.path" refid="maven.compile.classpath"/> > <echo>${maven.test.path}</echo> > <!-- copy the mars so that they are available on the test classpath --> > <copy file="../addressing/target/addressing-${version}.mar" > @@ -338,7 +446,7 @@ > </javac> > > <echo>Compiling DocumentUnwrappingTest.wsdl</echo> > - <mkdir dir="${wsdl.output.base.dir}/documentunwrapping"/> > + <mkdir dir="${wsdl.output.base.dir}/documentunwrapping"/> > > <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> > <classpath refid="maven.runtime.classpath"/> > @@ -402,10 +510,10 @@ > <artifactId>maven-surefire-plugin</artifactId> > <inherited>true</inherited> > <configuration> > - <skip>false</skip> > - > - <!-- The pertest forkMode is not ideal but seems to be necessary > - because the test server doesn't shut down properly :-( > + <skip>false</skip> > + > + <!-- The pertest forkMode is not ideal but seems to be necessary > + because the test server doesn't shut down properly :-( > Should be removed if possible --> > <forkMode>pertest</forkMode> > <argLine>-Xms256m -Xmx512m</argLine> > @@ -437,11 +545,11 @@ > </plugins> > </build> > <reporting> > - <plugins> > - <plugin> > - <groupId>org.apache.maven.plugins</groupId> > - <artifactId>maven-surefire-report-plugin</artifactId> > - </plugin> > + <plugins> > + <plugin> > + <groupId>org.apache.maven.plugins</groupId> > + <artifactId>maven-surefire-report-plugin</artifactId> > + </plugin> > </plugins> > </reporting> > </project> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- David Illsley - IBM Web Services Development
-- Davanum Srinivas :: http://davanum.wordpress.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
