camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petter Nordlander <Petter.Nordlan...@enfo.se>
Subject SV: file zipping..
Date Tue, 11 Jun 2013 11:16:33 GMT
Hi,

What version of Camel are you using?

Please note that zipFile requires the latest version

	"Available since Camel 2.11.0"

This would explain your issues.

Best regards 
Petter Nordlander
________________________________________
Från: milan777 [milan79patel@gmail.com]
Skickat: den 11 juni 2013 08:24
Till: users@camel.apache.org
Ämne: file zipping..

Hello everyone, i am getting error like this in below code please help me to
resolve this error thanks in advance....




package Zip;

import org.apache.camel.CamelContext;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.impl.DefaultCamelContext;

public class ZipCreation {

        public static void main(String args[]) throws Exception {
            CamelContext context = new DefaultCamelContext();

            context.addRoutes(new RouteBuilder() {
            public void configure() {

from("file:input/directory?antInclude=*/comma.txt").marshal().zipFile().to("file:output/directory");


       }
   });

        }
}

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
details.
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
        The method zipFile() is undefined for the type
DataFormatClause<ProcessorDefinition&lt;RouteDefinition>>

        at Zip.ZipCreation$1.configure(ZipCreation.java:14)
        at
org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:322)
        at
org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:276)
        at
org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:262)
        at
org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:628)
        at Zip.ZipCreation.main(ZipCreation.java:12)

and here i have implemented all dependencies with mendatory classpaths still
i am getting error like zipfile cannot be resolve or field

please help me out.....thnks again



--
View this message in context: http://camel.465427.n5.nabble.com/file-zipping-tp5734077.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message