Re: Build break in camel-jetty

2011-06-12 Thread Willem Jiang
On 6/12/11 3:51 PM, Jim Talbut wrote: Willem, Am I right in thinking that you are looking at it on the client side? Both Sun and OpenJDK send "application/octet-stream" as the content-type, so that functionality isn't working for either of them. And even if it was the test would be broken becaus

Re: Build break in camel-jetty

2011-06-12 Thread Jim Talbut
Claus, It's CAMEL-4094. Just started a full build again, so we'll see where that breaks :) Jim On 11/06/2011 10:57, Claus Ibsen wrote: Hi Jim Thanks for diving into this. Fell free to create a JIRA ticket with a patch. Are the other tests that fail on OpenJDK on your system? On Fri, Jun 10

Re: Build break in camel-jetty

2011-06-12 Thread Jim Talbut
Willem, Am I right in thinking that you are looking at it on the client side? Both Sun and OpenJDK send "application/octet-stream" as the content-type, so that functionality isn't working for either of them. And even if it was the test would be broken because the declared content-type is not us

Re: Build break in camel-jetty

2011-06-11 Thread Willem Jiang
It relates to how the FileTypeMap implements. In CamelFileDataSource you can see the content-type is determined by the below method. public String getContentType() { if (typeMap == null) { return FileTypeMap.getDefaultFileTypeMap().getContentType(fileName); } else

Re: Build break in camel-jetty

2011-06-11 Thread Claus Ibsen
Hi Jim Thanks for diving into this. Fell free to create a JIRA ticket with a patch. Are the other tests that fail on OpenJDK on your system? On Fri, Jun 10, 2011 at 9:14 PM, Jim Talbut wrote: > I think both the test in camel-jetty and the code in camel-http are wrong. > >  In camel-http (Defau

Re: Build break in camel-jetty

2011-06-10 Thread Jim Talbut
I think both the test in camel-jetty and the code in camel-http are wrong. In camel-http (DefaultHttpBinding) we have: protected void populateAttachments(HttpServletRequest request, HttpMessage message) { // check if there is multipart files, if so will put it into DataHandler

Re: Build break in camel-jetty

2011-06-09 Thread Jim Talbut
On 09/06/2011 19:54, Jim Talbut wrote: On 09/06/2011 15:32, James Talbut wrote: On Thu, Jun 09, 2011 at 10:13:00PM +0800, Willem Jiang wrote: Maybe it relates to the openjdk. Can you try the latest SUN/Oracle JDK 1.6 to run the test ? That's possible, I should be able to try later today. I've

Re: Build break in camel-jetty

2011-06-09 Thread Jim Talbut
On 09/06/2011 15:32, James Talbut wrote: On Thu, Jun 09, 2011 at 10:13:00PM +0800, Willem Jiang wrote: Maybe it relates to the openjdk. Can you try the latest SUN/Oracle JDK 1.6 to run the test ? That's possible, I should be able to try later today. I've also tried on Windows 7 and that works

Re: Build break in camel-jetty

2011-06-09 Thread James Talbut
On Thu, Jun 09, 2011 at 10:13:00PM +0800, Willem Jiang wrote: > Maybe it relates to the openjdk. > Can you try the latest SUN/Oracle JDK 1.6 to run the test ? That's possible, I should be able to try later today. I've also tried on Windows 7 and that works (breaks in camel-ftp, but that's anothe

Re: Build break in camel-jetty

2011-06-09 Thread Willem Jiang
Maybe it relates to the openjdk. Can you try the latest SUN/Oracle JDK 1.6 to run the test ? On 6/8/11 3:21 PM, Jim Talbut wrote: Environmet: Apache Maven 2.2.1 (rdebian-4) Java version: 1.6.0_22 Java home: /usr/lib/jvm/java-6-openjdk/jre Default locale: en_GB, platform encoding: UTF-8 OS name:

Re: Build break in camel-jetty

2011-06-09 Thread bvahdat
Oops, just realized my typo about "the same OS" as you reported it under Linux... -- View this message in context: http://camel.465427.n5.nabble.com/Build-break-in-camel-jetty-tp4468084p4472763.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Build break in camel-jetty

2011-06-09 Thread bvahdat
Hi Jim, running also on Windows-OS as same as you it works well for me on the trunk! $> mvn -q test -Dtest=MultiPartFormTest [echo] Maven version: 2.8-SNAPSHOT [echo] OSGi version: 2.8.0.SNAPSHOT --- T E S T S ---

Re: Build break in camel-jetty

2011-06-09 Thread Jim Talbut
On 09/06/2011 05:40, Claus Ibsen wrote: Hi Yeah. We have not seen this error on the other OS. Do you get this error if you run the test multiple times? On Wed, Jun 8, 2011 at 9:21 AM, Jim Talbut wrote: Environmet: Apache Maven 2.2.1 (rdebian-4) Java version: 1.6.0_22 Java home: /usr/lib/jvm/

Re: Build break in camel-jetty

2011-06-08 Thread Claus Ibsen
Hi Yeah. We have not seen this error on the other OS. Do you get this error if you run the test multiple times? On Wed, Jun 8, 2011 at 9:21 AM, Jim Talbut wrote: > Environmet: > Apache Maven 2.2.1 (rdebian-4) > Java version: 1.6.0_22 > Java home: /usr/lib/jvm/java-6-openjdk/jre > Default locale