mulesoft/zuora-connector — Issue #3: CXF client created over and over again
Author: dandiep
Created: 2011-10-25 20:11:50+00:00
State: open

The Zuora connector seems to recreate the CXF client over and over and over again. Looking at my logs I see it reloading the WSDL all the time. This is really really slow. Creating a Client is an expensive operation.

[10-25 17:06:09] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:09] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:12] ERROR ZObjectListToMapTransformer [main]: Is the iterator understood
[10-25 17:06:12] INFO LoggerMessageProcessor [main]: Found account {id=4028e6963315729301331d24355e26d3, QuickBooksCustomerId__c=76, accountNumber=A00000014, name=Albin Test Account, paymentTerm=Net 30}
[10-25 17:06:18] INFO LoggerMessageProcessor [main]: Found customer org.mule.modules.quickbooks.schema.Customer@49579a
[10-25 17:06:18] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:18] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:20] ERROR ZObjectListToMapTransformer [main]: Is the iterator understood
[10-25 17:06:20] ERROR LoggerMessageProcessor [main]: in getitem before collection splitter [{chargeAmount=1, id=4028e69733156f3c01331de453f6408e, UOM=Each, chargeName=LB Rate Plan Charge, chargeDate=2011-10-19T13:34:22.000-08:00, subscriptionNumber=A-S00000028, quantity=1, unitPrice=1, ratePlanChargeId=4028e69733156f3c01331de4528c4087, productName=LB Rate Plan Charge, subscriptionId=4028e69733156f3c01331de452694082}]
[10-25 17:06:23] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:24] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:28] INFO LoggerMessageProcessor [main]: Invoice: {id=4028e696331572930133370e8d2a1cc9, amount=1, accountId=4028e6963315729301331d24355e26d3, invoiceNumber=INV00000037, createdDate=2011-10-24T10:51:00.000-08:00, dueDate=2011-11-22T00:00:00.000-08:00}
[10-25 17:06:28] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:28] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:30] ERROR ZObjectListToMapTransformer [main]: Is the iterator understood
[10-25 17:06:30] INFO LoggerMessageProcessor [main]: Found account {id=4028e6963315729301331d24355e26d3, QuickBooksCustomerId__c=76, accountNumber=A00000014, name=Albin Test Account, paymentTerm=Net 30}
[10-25 17:06:31] INFO LoggerMessageProcessor [main]: Found customer org.mule.modules.quickbooks.schema.Customer@b575f3
[10-25 17:06:31] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:32] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:37] ERROR ZObjectListToMapTransformer [main]: Is the iterator understood
[10-25 17:06:37] ERROR LoggerMessageProcessor [main]: in getitem before collection splitter [{chargeAmount=1, id=4028e696331572930133370e8d401ccb, UOM=Each, chargeName=LB Rate Plan Charge, chargeDate=2011-10-24T10:51:00.000-08:00, quantity=1, unitPrice=1, subscriptionNumber=New Subs, ratePlanChargeId=4028e69733156f3c0133370d806034f1, productName=LB Rate Plan Charge, subscriptionId=4028e69733156f3c0133370d802534eb}]
[10-25 17:06:40] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:40] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:42] INFO LoggerMessageProcessor [main]: Invoice: {id=4028e696333715820133372daf591d54, amount=50, accountId=4028e696333715820133372b98181c22, invoiceNumber=INV00000038, dueDate=2011-11-22T00:00:00.000-08:00, createdDate=2011-10-24T11:25:00.000-08:00}
[10-25 17:06:42] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:42] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:44] ERROR ZObjectListToMapTransformer [main]: Is the iterator understood
[10-25 17:06:44] INFO LoggerMessageProcessor [main]: Found account {id=4028e696333715820133372b98181c22, accountNumber=intacct5, QuickBooksCustomerId__c=77, name=intacct5, paymentTerm=Net 30}
[10-25 17:06:45] INFO LoggerMessageProcessor [main]: Found customer org.mule.modules.quickbooks.schema.Customer@121bae0
[10-25 17:06:45] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:45] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:47] ERROR ZObjectListToMapTransformer [main]: Is the iterator understood
[10-25 17:06:47] ERROR LoggerMessageProcessor [main]: in getitem before collection splitter [{id=4028e696333715820133372dafaa1d56, chargeAmount=50, UOM=Each, chargeName=Basic Charge, subscriptionNumber=subs20111024, unitPrice=50, quantity=1, chargeDate=2011-10-24T11:25:00.000-08:00, ratePlanChargeId=4028e696333715820133372d15111d04, productName=Basic Charge, subscriptionId=4028e696333715820133372d13d41cfe}]
[10-25 17:06:49] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:49] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:54] INFO LoggerMessageProcessor [main]: Invoice: {id=4028e6963337158201333781e831350e, amount=50, accountId=4028e69733156f3c0133377bd3415f66, invoiceNumber=INV00000039, dueDate=2011-11-22T00:00:00.000-08:00, createdDate=2011-10-24T12:57:00.000-08:00}
[10-25 17:06:54] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:54] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:56] ERROR ZObjectListToMapTransformer [main]: Is the iterator understood
[10-25 17:06:56] INFO LoggerMessageProcessor [main]: Found account {id=4028e69733156f3c0133377bd3415f66, accountNumber=intacct6, QuickBooksCustomerId__c=78, name=intacct6, paymentTerm=Net 30}
[10-25 17:06:57] INFO LoggerMessageProcessor [main]: Found customer org.mule.modules.quickbooks.schema.Customer@a8171b
[10-25 17:06:57] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:57] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:06:59] ERROR ZObjectListToMapTransformer [main]: Is the iterator understood
[10-25 17:06:59] ERROR LoggerMessageProcessor [main]: in getitem before collection splitter [{chargeAmount=50, revRecStartDate=2011-10-23T00:00:00.000-08:00, unitPrice=50, subscriptionNumber=A-S00000029, chargeDate=2011-10-24T12:57:00.000-08:00, ratePlanChargeId=4028e6963337158201333780855433d0, subscriptionId=4028e696333715820133378084e433c9, id=4028e6963337158201333781e8493510, revRecCode=12MOSL, chargeName=Basic Charge, UOM=Each, quantity=1, productName=Basic Charge}]
[10-25 17:07:00] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:07:00] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:07:02] INFO LoggerMessageProcessor [main]: Invoice: {id=4028e69733156f3c013337acefec20a6, amount=51, accountId=4028e69733156f3c013337aa2d1f19db, invoiceNumber=INV00000040, dueDate=2011-11-22T00:00:00.000-08:00, createdDate=2011-10-24T13:44:00.000-08:00}
[10-25 17:07:02] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:07:02] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:07:04] ERROR ZObjectListToMapTransformer [main]: Is the iterator understood
[10-25 17:07:04] INFO LoggerMessageProcessor [main]: Found account {id=4028e69733156f3c013337aa2d1f19db, QuickBooksCustomerId__c=79, accountNumber=intacct7, name=intacct7, paymentTerm=Net 30}
[10-25 17:07:05] INFO LoggerMessageProcessor [main]: Found customer org.mule.modules.quickbooks.schema.Customer@522bc4
[10-25 17:07:05] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:07:05] INFO ReflectionServiceFactoryBean [main]: Creating Service {http://api.zuora.com/}ZuoraService from WSDL: jar:file:/C:/Users/Dan/.m2/repository/org/mule/modules/mule-module-zuora/1.4.2-SNAPSHOT/mule-module-zuora-1.4.2-SNAPSHOT.jar!/zuora-29.wsdl
[10-25 17:07:07] ERROR ZObjectListToMapTransformer [main]: Is the iterator understood
[10-25 17:07:07] ERROR ZObjectListToMapTransformer [main]: Is the iterator understood
[10-25 17:07:07] ERROR LoggerMessageProcessor [main]: in getitem before collection splitter [{chargeAmount=50, revRecStartDate=2011-10-23T00:00:00.000-08:00, subscriptionNumber=A-S00000030, chargeDate=2011-10-24T13:44:00.000-08:00, unitPrice=50, ratePlanChargeId=4028e69633371582013337ab54616e1f, subscriptionId=4028e69633371582013337ab54266e19, id=4028e69733156f3c013337acf00f20a8, revRecCode=12MOSL, chargeName=Basic Charge, UOM=Each, quantity=1, productName=Basic Charge}, {chargeAmount=1, revRecStartDate=2011-10-23T00:00:00.000-08:00, subscriptionNumber=A-S00000030, chargeDate=2011-10-24T13:44:00.000-08:00, unitPrice=1, ratePlanChargeId=4028e69633371582013337ab54a86e25, subscriptionId=4028e69633371582013337ab54266e19, id=4028e69733156f3c013337acf01e20a9, revRecCode=12MOSL, chargeName=LB Rate Plan Charge, UOM=Each, quantity=1, productName=LB Rate Plan Charge}]