+ Start a Discussion
anurajanuraj 

Automation apex in apex loder

Hi

I have wrote a bean in process conf in apex data loder  

 

C:\Program Files\salesforce.com\Apex Data Loader 14.0\bin>process.bat ../samples/conf BBBT

0 [main] INFO com.salesforce.lexiloader.process.ProcessConfig  - Loading process configuration from config file: C:\Program Files\salesforce.com\Apex Data Loader 14.0\bin\..\samples\conf\process-conf.

xml

766 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from file [C:\Program Files\salesforce.com\Apex Data Loader 14.0\bin\..\samples\conf\proce

ss-conf.xml]

891 [main] DEBUG org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Using JAXP implementation [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl@1256ea2]

3359 [main] DEBUG org.springframework.beans.factory.xml.ResourceEntityResolver  - Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dt

d/spring-beans.dtd]

3391 [main] DEBUG org.springframework.beans.factory.xml.ResourceEntityResolver  - Trying to locate [spring-beans.dtd] in Spring jar

3391 [main] DEBUG org.springframework.beans.factory.xml.ResourceEntityResolver  - Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath

3969 [main] DEBUG org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser  - Loading bean definitions

4656 [main] DEBUG org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser  - Default lazy init 'false'

4656 [main] DEBUG org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser  - Default autowire 'no'

4656 [main] DEBUG org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser  - Default dependency check 'none'

4703 [main] INFO org.springframework.core.CollectionFactory  - JDK 1.4+ collections available

4922 [main] INFO org.springframework.core.CollectionFactory  - Commons Collections 3.x available

4922 [main] DEBUG org.springframework.core.CollectionFactory  - Creating [java.util.LinkedHashMap]

4938 [main] DEBUG org.springframework.core.CollectionFactory  - Creating [java.util.LinkedHashMap]

4938 [main] DEBUG org.springframework.core.CollectionFactory  - Creating [java.util.LinkedHashMap]

4953 [main] DEBUG org.springframework.core.CollectionFactory  - Creating [java.util.LinkedHashMap]

4953 [main] DEBUG org.springframework.core.CollectionFactory  - Creating [java.util.LinkedHashMap]

5047 [main] ERROR com.salesforce.lexiloader.process.ProcessConfig  - Error loading process: BBBT configuration from config file: C:\Program Files\salesforce.com\Apex Data Loader 14.0\bin\..\samples\co

nf\process-conf.xml

org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'BBBT' defined in file [C:\Program Files\salesforce.com\Apex Data Loader 14.0\bin\..\samples\conf\proce

ss-conf.xml]: Bean class [com.salesforce.dataloader.process.ProcessRunner] not found; nested exception is java.lang.ClassNotFoundException: com.salesforce.dataloader.process.ProcessRunner

java.lang.ClassNotFoundException: com.salesforce.dataloader.process.ProcessRunner

        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:242)

        at org.springframework.util.ClassUtils.forName(ClassUtils.java:108)

        at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:65)

        at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:426)

        at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:392)

        at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitions(DefaultXmlBeanDefinitionParser.java:307)

        at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:191)

        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:295)

        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:223)

        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:173)

        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148)

        at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:68)

        at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:56)

        at com.salesforce.lexiloader.process.ProcessConfig.getBeanFactory(ProcessConfig.java:79)

        at com.salesforce.lexiloader.process.ProcessConfig.getProcessInstance(ProcessConfig.java:68)

        at com.salesforce.lexiloader.process.ProcessRunner.getInstance(ProcessRunner.java:262)

        at com.salesforce.lexiloader.process.ProcessRunner.getInstance(ProcessRunner.java:248)

        at com.salesforce.lexiloader.process.ProcessRunner.main(ProcessRunner.java:227)

C:\Program Files\salesforce.com\Apex Data Loader 14.0\bin>

 

my bean

<bean id="BBBT"
class="com.salesforce.dataloader.process.ProcessRunner"
singleton="false">
<property name="name" value="BBBT"/>
<property name="configOverrideMap">
<map>
<entry key="sfdc.endpoint" value="https://test.salesforce.com"/>
<entry key="sfdc.username" value="anuraj@cm-focus.com"/>
<!-- password below has been encrypted using key file, therefore it will not work without the key setting: process.encryptionKeyFile
the password is not a valid encrypted value, please generate the real value using encrypt.bat utility -->
<entry key="sfdc.password" value="afe97be08dcd23770450e1e255217d600fc01a2740d63f9fd65ec29475da4681edbcbcf7c98cbf73"/>
<entry key="sfdc.timeoutSecs" value="600"/>
<entry key="sfdc.loadBatchSize" value="200"/>
<entry key="sfdc.entity" value="BBB_Transaction__c"/>
<entry key="process.operation" value="insert"/>
<entry key="process.mappingFile" value="C:\Program Files\salesforce.com\Apex Data Loader 14.0\samples\conf\BBB_TransactionsMapFile.sdl"/>
<entry key="dataAccess.name" value="C:\Program Files\salesforce.com\Apex Data Loader 14.0\samples\data\TestLoad.csv"/>
<entry key="dataAccess.type" value="csvRead"/>
<entry key="process.initialLastRunDate" value="2006-12-01T00:00:00.000-0800"/>
<entry key="sfdc.debugMessages" value="true"/>
<entry key="sfdc.debugMessagesFile" value="C:\Program Files\salesforce.com\Apex Data Loader 14.0\samples\data\accountMasterSoapTrace.log"/>
</map>
</property>
</bean>

 

thanks

Anuraj