Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D029417A51 for ; Wed, 25 Feb 2015 14:03:10 +0000 (UTC) Received: (qmail 97504 invoked by uid 500); 25 Feb 2015 14:03:10 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 97459 invoked by uid 500); 25 Feb 2015 14:03:10 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 97446 invoked by uid 99); 25 Feb 2015 14:03:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Feb 2015 14:03:09 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [209.85.192.48] (HELO mail-qg0-f48.google.com) (209.85.192.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Feb 2015 14:02:38 +0000 Received: by mail-qg0-f48.google.com with SMTP id a108so3004703qge.7 for ; Wed, 25 Feb 2015 06:02:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:subject:message-id:date:to :mime-version; bh=JKYCGaEfrhCohNB5pHBbPwvUwa2aTyiieHcFUnci9+g=; b=Dtzeh81Plcc1aXiLr3pBcX0zrUgQ2WWOSc0w9xCcjEG7jQD4/yPrkUIc3lqhoIouo/ InyKVNA/q1XYBGNChtVhWINLu62g+WX1eKPWtGniZIDfSyQattxyD6Q4XJ2ho0k7Q+D6 pRJLo7mqrckIU0wnVDpiMmPiKQi5bXTLgxWu3nkUFpRj50EQjxHSksS0qOWj4B4TwiKr lYsBJUgK8fZk9sCs/miABQyoalQ1JID55KO5MjeJxWznX+VyGJZd7Pz2pgVkGn+pCAym QcfHgOV3btXZHtM0pVACj39tzP706KyuZk+I5Xt15naC/BW32ilbnQpMfe8dzBcVe42+ 8KqQ== X-Gm-Message-State: ALoCoQlc+xWPDPNpS+mx3+2GS7bpNszFBs6H6BQjePcbGpiC5XYlieiH2uNANDkdkjNf2b3L/qrt X-Received: by 10.140.151.65 with SMTP id 62mr6877915qhx.73.1424872935697; Wed, 25 Feb 2015 06:02:15 -0800 (PST) Received: from [192.168.3.194] ([200.111.169.210]) by mx.google.com with ESMTPSA id j94sm31502683qgd.47.2015.02.25.06.02.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Feb 2015 06:02:14 -0800 (PST) From: =?utf-8?Q?Gonzalo_V=C3=A1squez_S=C3=A1ez?= Content-Type: multipart/alternative; boundary="Apple-Mail=_6486A34A-1A87-4FD8-9FE6-53FB01D900D9" Subject: java.util.zip.ZipException: error in opening zip file Message-Id: <8ABFC1A6-26D3-4B37-8980-1E89E70F891B@waypoint.cl> Date: Wed, 25 Feb 2015 11:02:11 -0300 To: users@camel.apache.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) X-Mailer: Apple Mail (2.2070.6) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_6486A34A-1A87-4FD8-9FE6-53FB01D900D9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi everybody, I=E2=80=99m using Camel 2.14.1, mainly to use a timer and an http = consumer (URL_FLEET_HISTORY), as shown on the following Java code: @Override public void configure() throws Exception { =20 from("timer:ws?period=3D" + period) .process(new Processor() { @Override public void process(Exchange exchange) throws = Exception { Calendar cal =3D Calendar.getInstance(); System.out.println("Searching new data @ " + cal.getTime()); cal.add(Calendar.HOUR, -48); System.out.println("Since " + cal.getTime()); String lastReport =3D = LAST_REPORT_DATE_FORMAT.format(cal .getTime()); exchange.getOut().setHeader("lastReport", = lastReport); } }) .recipientList( simple(URL_FLEET_HISTORY + USERNAME + SLASH + = PASSWORD + SLASH + "${header.lastReport}")) .convertBodyTo(String.class) .log(LoggingLevel.INFO, logger, "Data Received: = ${body}") .split().tokenizePair("", "", true) .process(new LocationProcessor()); } I=E2=80=99m also using org.apache.camel.main.Main to run the process as = a command line forever running kind of daemon. with this code: public class Listener { public static void main(String[] args) throws Exception { Listener daemon =3D new Listener(); daemon.boot(); } private Main main; public void boot() throws Exception { // create a Main instance main =3D new Main(); // enable hangup support so you can press ctrl + c to terminate = the JVM main.enableHangupSupport(); // add routes main.addRouteBuilder(new SkyPatrolRouteBuilder()); // run until you terminate the JVM System.out.println("Starting Listener. Use Ctrl + c to = terminate."); main.run(); } } After a few days running the HTTP consumer starts to fail consistently = with the following stacktrace: 228243785 [Camel (camel-1) thread #0 - timer://ws] ERROR = org.apache.camel.processor.DefaultErrorHandler - Failed delivery for = (MessageId: ID-Monitor-59190-1424577519856-0-184780 on ExchangeId: = ID-Monitor-59190-1424577519856-0-184781). Exhausted after delivery = attempt: 1 caught: org.apache.camel.CamelExecutionException: Exception = occurred during execution on the exchange: Exchange[Message: [Body is = null]] Message History = --------------------------------------------------------------------------= ------------------------------------------------------------- RouteId ProcessorId Processor = Elapsed (ms) [route1 ] [route1 ] [timer://ws?period=3D180000 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0] [ =C2=A0 =C2=A0 =C2=A0 =C2=A041 = ] [route1 ] [process1 ] = [cl.waypoint.monitor.skypatrol.SkyPatrolRouteBuilder$1@549b6220 = ] [ 1] [route1 ] [recipientList1 ] [recipientList[simple{Simple: = http://wsp.skypatrol.com/fleet_history/waypointch] = [ 42] Exchange = --------------------------------------------------------------------------= ------------------------------------------------------------- Exchange[ Id ID-Monitor-59190-1424577519856-0-184781 ExchangePattern InOnly Headers = {breadcrumbId=3DID-Monitor-59190-1424577519856-0-184780, = CamelRedelivered=3Dfalse, CamelRedeliveryCounter=3D0, = lastReport=3D20150222162243} BodyType null Body [Body is null] ] Stacktrace = --------------------------------------------------------------------------= ------------------------------------------------------------- org.apache.camel.CamelExecutionException: Exception occurred during = execution on the exchange: Exchange[Message: [Body is null]] at = org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelpe= r.java:1380) at = org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:28= 3) at = org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProces= sorBridge.process(AsyncProcessorConverterHelper.java:64) at = org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorH= andler.java:416) at = org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalPro= cessor.java:191) at = org.apache.camel.processor.MulticastProcessor.doProcessSequential(Multicas= tProcessor.java:586) at = org.apache.camel.processor.MulticastProcessor.doProcessSequential(Multicas= tProcessor.java:514) at = org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.j= ava:226) at = org.apache.camel.processor.RecipientList.sendToRecipientList(RecipientList= .java:167) at = org.apache.camel.processor.RecipientList.process(RecipientList.java:120) at = org.apache.camel.processor.Pipeline.process(Pipeline.java:118) at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) at = org.apache.camel.management.InstrumentationProcessor.process(Instrumentati= onProcessor.java:72) at = org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorH= andler.java:416) at = org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalPro= cessor.java:191) at = org.apache.camel.processor.Pipeline.process(Pipeline.java:118) at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) at = org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalPro= cessor.java:191) at = org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerCons= umer.java:166) at = org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:74= ) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Caused by: java.lang.InternalError at = sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:755) at sun.misc.URLClassPath.getResource(URLClassPath.java:169) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:296) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at = java.util.ResourceBundle$RBClassLoader.loadClass(ResourceBundle.java:435) at = java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2289) at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1364) at java.util.ResourceBundle.findBundle(ResourceBundle.java:1328) at = java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1224) at java.util.ResourceBundle.getBundle(ResourceBundle.java:705) at java.util.logging.Level.getLocalizedName(Level.java:223) at = java.util.logging.SimpleFormatter.format(SimpleFormatter.java:64) at = java.util.logging.StreamHandler.publish(StreamHandler.java:179) at = java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:88) at java.util.logging.Logger.log(Logger.java:458) at java.util.logging.Logger.doLog(Logger.java:480) at java.util.logging.Logger.logp(Logger.java:596) at = org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:98) at = org.apache.commons.logging.impl.Jdk14Logger.info(Jdk14Logger.java:193) at = org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMeth= odDirector.java:439) at = org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodD= irector.java:171) at = org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397= ) at = org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323= ) at = org.apache.camel.component.http.HttpProducer.executeMethod(HttpProducer.ja= va:244) at = org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:144= ) at = org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProces= sorBridge.process(AsyncProcessorConverterHelper.java:61) ... 19 more Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:114) at java.util.jar.JarFile.(JarFile.java:135) at java.util.jar.JarFile.(JarFile.java:72) at = sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:646) at = sun.misc.URLClassPath$JarLoader.access$600(URLClassPath.java:540) at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:607) at java.security.AccessController.doPrivileged(Native Method) at = sun.misc.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:599) at = sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:753) ... 50 more 228243804 [Camel (camel-1) thread #0 - timer://ws] WARN = org.apache.camel.component.timer.TimerConsumer - Error processing = exchange. Exchange[Message: [Body is null]]. Caused by: = [org.apache.camel.CamelExecutionException - Exception occurred during = execution on the exchange: Exchange[Message: [Body is null]]] org.apache.camel.CamelExecutionException: Exception occurred during = execution on the exchange: Exchange[Message: [Body is null]] at = org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelpe= r.java:1380) at = org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:28= 3) at = org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProces= sorBridge.process(AsyncProcessorConverterHelper.java:64) at = org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorH= andler.java:416) at = org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalPro= cessor.java:191) at = org.apache.camel.processor.MulticastProcessor.doProcessSequential(Multicas= tProcessor.java:586) at = org.apache.camel.processor.MulticastProcessor.doProcessSequential(Multicas= tProcessor.java:514) at = org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.j= ava:226) at = org.apache.camel.processor.RecipientList.sendToRecipientList(RecipientList= .java:167) at = org.apache.camel.processor.RecipientList.process(RecipientList.java:120) at = org.apache.camel.processor.Pipeline.process(Pipeline.java:118) at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) at = org.apache.camel.management.InstrumentationProcessor.process(Instrumentati= onProcessor.java:72) at = org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorH= andler.java:416) at = org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalPro= cessor.java:191) at = org.apache.camel.processor.Pipeline.process(Pipeline.java:118) at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) at = org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalPro= cessor.java:191) at = org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerCons= umer.java:166) at = org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:74= ) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Caused by: java.lang.InternalError at = sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:755) at sun.misc.URLClassPath.getResource(URLClassPath.java:169) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:296) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at = java.util.ResourceBundle$RBClassLoader.loadClass(ResourceBundle.java:435) at = java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2289) at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1364) at java.util.ResourceBundle.findBundle(ResourceBundle.java:1328) at = java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1224) at java.util.ResourceBundle.getBundle(ResourceBundle.java:705) at java.util.logging.Level.getLocalizedName(Level.java:223) at = java.util.logging.SimpleFormatter.format(SimpleFormatter.java:64) at = java.util.logging.StreamHandler.publish(StreamHandler.java:179) at = java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:88) at java.util.logging.Logger.log(Logger.java:458) at java.util.logging.Logger.doLog(Logger.java:480) at java.util.logging.Logger.logp(Logger.java:596) at = org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:98) at = org.apache.commons.logging.impl.Jdk14Logger.info(Jdk14Logger.java:193) at = org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMeth= odDirector.java:439) at = org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodD= irector.java:171) at = org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397= ) at = org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323= ) at = org.apache.camel.component.http.HttpProducer.executeMethod(HttpProducer.ja= va:244) at = org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:144= ) at = org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProces= sorBridge.process(AsyncProcessorConverterHelper.java:61) ... 19 more Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:114) at java.util.jar.JarFile.(JarFile.java:135) at java.util.jar.JarFile.(JarFile.java:72) at = sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:646) at = sun.misc.URLClassPath$JarLoader.access$600(URLClassPath.java:540) at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:607) at java.security.AccessController.doPrivileged(Native Method) at = sun.misc.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:599) at = sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:753) ... 50 more This is running in Debian Lenny 5.0.6 with Java 1.6.0_20 Seems to me like one of the dependant JARs could not be opened, but why = after a few days running and not upon startup when it must have already = passed through the whole pack of methods involved? How can I know which = file/jar/zip is the problematic one? Suggestions would be appreciated. Atentamente / Regards, Gonzalo V=C3=A1squez S=C3=A1ez gvasquez@waypoint.cl +56 (2) 29634180 Director I+D / R&D Director Waypoint Telecomunicaciones S.A. Alfredo Barros Err=C3=A1zuriz 1953 Of. 1004 7500550 Providencia, Santiago, Chile Mapcode: R3.BR= --Apple-Mail=_6486A34A-1A87-4FD8-9FE6-53FB01D900D9--