java.net.MalformedURLException: unknown protocol: c ---------------------------------------------------
Key: CAMEL-2530 URL: https://issues.apache.org/activemq/browse/CAMEL-2530 Project: Apache Camel Issue Type: Bug Affects Versions: 2.2.0, 2.1.0 Environment: windows, weblogic 9.2 Reporter: Anand Priority: Minor I get an error on deployment of application with this route. from("mina:tcp://localhost:6202?textline=true&sync=true").process(new Processor() { public void process(Exchange exchange) throws Exception { String body = exchange.getIn().getBody(String.class); Thread.sleep(10000); exchange.getOut().setBody("Bye 1" + body); } }); //WaitForTaskToComplete wait = new WaitForTaskToComplete(); from("file:///test/test/response") .convertBodyTo(String.class).threads(1) .toAsync("mina:tcp://localhost:6202?sync=true&textline=true&filters=#listFilters",1) .to("log:+++ reply++++"); camel-context.xml <camelContext id="cameltest" xmlns="http://camel.apache.org/schema/spring"> <package>test</package></camelContext> Errror: 2010-03-08 11:05:07,021 [.kernel.Default (self-tuning)'] efaultPackageScanClassR esolver DEBUG Cannot read entries in url: zip:C:/bea923/user_projects/domains/ia rdomain/servers/AdminServer/tmp/_WL_user/_appsdir_CamelIAR_war/hapurq/war/WEB-IN F/lib/_wl_cls_gen.jar!/test/ java.net.MalformedURLException: unknown protocol: c at java.net.URL.<init>(URL.java:574) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) at org.apache.camel.impl.DefaultPackageScanClassResolver.find(DefaultPac kageScanClassResolver.java:264) at org.apache.camel.impl.DefaultPackageScanClassResolver.find(DefaultPac kageScanClassResolver.java:180) at org.apache.camel.impl.DefaultPackageScanClassResolver.findImplementat ions(DefaultPackageScanClassResolver.java:146) at org.apache.camel.spring.RouteBuilderFinder.appendBuilders(RouteBuilde rFinder.java:57) at org.apache.camel.spring.CamelContextFactoryBean.findRouteBuilders(Cam elContextFactoryBean.java:873) at org.apache.camel.spring.CamelContextFactoryBean.afterPropertiesSet(Ca melContextFactoryBean.java:319) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb ject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe an(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory. getBeansOfType(DefaultListableBeanFactory.java:308) at org.springframework.context.support.AbstractApplicationContext.getBea nsOfType(AbstractApplicationContext.java:947) at org.springframework.context.support.AbstractApplicationContext.regist erListeners(AbstractApplicationContext.java:701) at org.springframework.context.support.AbstractApplicationContext.refres h(AbstractApplicationContext.java:377) at org.springframework.web.context.ContextLoader.createWebApplicationCon text(ContextLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationConte xt(ContextLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitiali zed(ContextLoaderListener.java:45) at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run (EventsManager.java:376) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 121) at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(Eve ntsManager.java:82) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp pServletContext.java:1616) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletCon text.java:2761) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.jav a:889) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSta teDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD river.java:26) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStat eDriver.java:60) at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedMod uleDriver.java:200) at weblogic.application.internal.flow.ModuleListenerInvoker.start(Module ListenerInvoker.java:117) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSta teDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD river.java:26) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStat eDriver.java:60) at weblogic.application.internal.flow.StartModulesFlow.activate(StartMod ulesFlow.java:26) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.ja va:635) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD river.java:26) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment. java:212) at weblogic.application.internal.DeploymentStateChecker.activate(Deploym entStateChecker.java:154) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(Ap pContainerInvoker.java:80) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.ac tivate(AbstractOperation.java:566) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.ac tivateDeployment(ActivateOperation.java:136) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.do Commit(ActivateOperation.java:104) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.co mmit(AbstractOperation.java:320) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploym entCommit(DeploymentManager.java:815) at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeplo ymentList(DeploymentManager.java:1222) at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit( DeploymentManager.java:433) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.com mit(DeploymentServiceDispatcher.java:161) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb ackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb ackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb ackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67) at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkMan agerImpl.java:518) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:181) 2010-03-08 11:05:07,099 [.kernel.Default (self-tuning)'] efaultPackageScanClassR esolver DEBUG Cannot read entries in url: zip:C:/bea923/user_projects/domains/ia rdomain/servers/AdminServer/tmp/_WL_user/_appsdir_CamelIAR_war/hapurq/war/WEB-IN F/lib/_wl_cls_gen.jar!/test/ java.net.MalformedURLException: unknown protocol: c at java.net.URL.<init>(URL.java:574) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) at org.apache.camel.impl.DefaultPackageScanClassResolver.find(DefaultPac kageScanClassResolver.java:264) at org.apache.camel.impl.DefaultPackageScanClassResolver.find(DefaultPac kageScanClassResolver.java:180) at org.apache.camel.impl.DefaultPackageScanClassResolver.findImplementat ions(DefaultPackageScanClassResolver.java:146) at org.apache.camel.spring.RouteBuilderFinder.appendBuilders(RouteBuilde rFinder.java:57) at org.apache.camel.spring.CamelContextFactoryBean.findRouteBuilders(Cam elContextFactoryBean.java:873) at org.apache.camel.spring.CamelContextFactoryBean.afterPropertiesSet(Ca melContextFactoryBean.java:319) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb ject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe an(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory. getBeansOfType(DefaultListableBeanFactory.java:308) at org.springframework.context.support.AbstractApplicationContext.getBea nsOfType(AbstractApplicationContext.java:947) at org.springframework.context.support.AbstractApplicationContext.regist erListeners(AbstractApplicationContext.java:701) at org.springframework.context.support.AbstractApplicationContext.refres h(AbstractApplicationContext.java:377) at org.springframework.web.context.ContextLoader.createWebApplicationCon text(ContextLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationConte xt(ContextLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitiali zed(ContextLoaderListener.java:45) at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run (EventsManager.java:376) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 121) at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(Eve ntsManager.java:82) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp pServletContext.java:1616) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletCon text.java:2761) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.jav a:889) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSta teDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD river.java:26) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStat eDriver.java:60) at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedMod uleDriver.java:200) at weblogic.application.internal.flow.ModuleListenerInvoker.start(Module ListenerInvoker.java:117) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleSta teDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD river.java:26) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStat eDriver.java:60) at weblogic.application.internal.flow.StartModulesFlow.activate(StartMod ulesFlow.java:26) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.ja va:635) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD river.java:26) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment. java:212) at weblogic.application.internal.DeploymentStateChecker.activate(Deploym entStateChecker.java:154) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(Ap pContainerInvoker.java:80) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.ac tivate(AbstractOperation.java:566) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.ac tivateDeployment(ActivateOperation.java:136) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.do Commit(ActivateOperation.java:104) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.co mmit(AbstractOperation.java:320) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploym entCommit(DeploymentManager.java:815) at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeplo ymentList(DeploymentManager.java:1222) at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit( DeploymentManager.java:433) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.com mit(DeploymentServiceDispatcher.java:161) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb ackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb ackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb ackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67) at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkMan agerImpl.java:518) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:181) 2010-03-08 11:05:07,146 [.kernel.Default (self-tuning)'] efaultPackageScanClassR esolver DEBUG Found: [] 2010-03-08 11:05:07,225 [.kernel.Default (self-tuning)'] DefaultComponentResolve r DEBUG Found component: vm via type: org.apache.camel.component.vm.VmComp onent via: META-INF/services/org/apache/camel/component/vm 2010-03-08 11:05:07,240 [.kernel.Default (self-tuning)'] DefaultComponent DEBUG Creating endpoint uri=[vm://response], path=[response], parameters =[{}] 2010-03-08 11:05:07,334 [.kernel.Default (self-tuning)'] DefaultCamelContext DEBUG vm://response converted to endpoint: Endpoint[vm://response] by co mponent: org.apache.camel.component.vm.vmcompon...@1366d83 2010-03-08 11:05:07,428 [.kernel.Default (self-tuning)'] SpringCamelContext DEBUG onApplicationEvent: org.springframework.context.event.ContextRefre shedEvent[source=org.springframework.web.context.support.XmlWebApplicationContex t...@1618ba7: display name [Root WebApplicationContext]; startup date [Mon Mar 08 1 1:05:03 EST 2010]; root of context hierarchy] 2010-03-08 11:05:07,428 [.kernel.Default (self-tuning)'] DefaultCamelContext INFO Apache Camel 2.1.0 (CamelContext:cameltest) is starting 2010-03-08 11:05:07,428 [.kernel.Default (self-tuning)'] DefaultCamelContext INFO JMX enabled. Using DefaultManagedLifecycleStrategy. 2010-03-08 11:05:07,475 [.kernel.Default (self-tuning)'] DefaultProducerServiceP ool DEBUG Starting service pool: org.apache.camel.impl.DefaultProducerServic ep...@101da89 2010-03-08 11:05:07,506 [.kernel.Default (self-tuning)'] DefaultManagementAgent DEBUG Starting JMX agent on server: com.sun.jmx.mbeanserver.JmxMBeanServ e...@19cfc31 2010-03-08 11:05:07,647 [.kernel.Default (self-tuning)'] DefaultManagementAgent DEBUG Registered MBean with objectname: org.apache.camel:context=tamlft0 spj1/cameltest,type=context,name="cameltest" 2010-03-08 11:05:07,818 [.kernel.Default (self-tuning)'] DefaultManagementAgent DEBUG Registered MBean with objectname: org.apache.camel:context=tamlft0 spj1/cameltest,type=services,name=DefaultInflightRepository(0x1b59ef7) 2010-03-08 11:05:07,818 [.kernel.Default (self-tuning)'] DefaultComponent DEBUG Creating endpoint uri=[spring-event://default], path=[default], pa rameters=[{}] 2010-03-08 11:05:07,818 [.kernel.Default (self-tuning)'] DefaultCamelContext DEBUG spring-event://default converted to endpoint: Endpoint[spring-even t://default] by component: org.apache.camel.component.event.eventcompon...@12b9e 3f 2010-03-08 11:05:07,834 [.kernel.Default (self-tuning)'] DefaultManagementAgent DEBUG Registered MBean with objectname: org.apache.camel:context=tamlft0 spj1/cameltest,type=endpoints,name="spring-event://default" 2010-03-08 11:05:07,834 [.kernel.Default (self-tuning)'] DefaultCamelContext DEBUG Starting routes... 2010-03-08 11:05:07,834 [.kernel.Default (self-tuning)'] DefaultCamelContext DEBUG ... Routes started 2010-03-08 11:05:07,850 [.kernel.Default (self-tuning)'] DefaultCamelContext INFO Apache Camel 2.1.0 (CamelContext:cameltest) started <Mar 8, 2010 11:05:11 AM EST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.113.66:7001 for protocols iiop, t3, ldap, http.> <Mar 8, 2010 11:05:11 AM EST> <Warning> <Server> <BEA-002611> <Hostname "localho st", maps to multiple IP addresses: 192.168.113.66, 127.0.0.1> <Mar 8, 2010 11:05:11 AM EST> <Notice> <Server> <BEA-002613> <Channel "Default[1 ]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, http.> <Mar 8, 2010 11:05:11 AM EST> <Warning> <Server> <BEA-002611> <Hostname "tamlft0 spj1.arcds.com", maps to multiple IP addresses: 192.168.113.66, 127.0.0.1> <Mar 8, 2010 11:05:11 AM EST> <Notice> <WebLogicServer> <BEA-000331> <Started We bLogic Admin Server "AdminServer" for domain "iardomain" running in Development Mode> <Mar 8, 2010 11:05:11 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server sta te changed to RUNNING> <Mar 8, 2010 11:05:11 AM EST> <Notice> <WebLogicServer> <BEA-000360> <Server sta rted in RUNNING mode> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.