• Rodrigo Cruz
  • NEWBIE
  • 0 Points
  • Member since 2015
  • Delivery Manager
  • Accenture


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 4
    Replies
I have written windows batch script to run apex data loader job every hour. I has run for 2 months without issue.
Today I am deploying the script to new windows 7 and used the lastest Dataloader v34.

Then the script got an issue as below:

15-06-24 15:27:26,841 INFO  [main] xml.XmlBeanDefinitionReader loadBeanDefinitions (XmlBeanDefinitionReader.java:315) - Loading XML bean definitions from URL [file://C:/dataloader/config/process-conf.xml]
2015-06-24 15:27:29,236 ERROR [main] process.ProcessConfig getProcessInstance (ProcessConfig.java:96) - Error loading process: SFDCBuyerOrder configuration from config file: C:\dataloader\config\process-conf.xml
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from URL [file://C:/dataloader/config/process-conf.xml]; nested exception is java.net.ConnectException: Connection refused: connect
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:243)
    at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:127)
    at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:93)
    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
    at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)
    at org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:140)
    at org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:84)
    at com.salesforce.dataloader.process.ProcessConfig.getBeanFactory(ProcessConfig.java:105)
    at com.salesforce.dataloader.process.ProcessConfig.getProcessInstance(ProcessConfig.java:93)
    at com.salesforce.dataloader.process.ProcessRunner.getInstance(ProcessRunner.java:287)
    at com.salesforce.dataloader.process.ProcessRunner.getInstance(ProcessRunner.java:273)
    at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.java:246)
Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.net.ftp.impl.FtpClient.doConnect(Unknown Source)
    at sun.net.ftp.impl.FtpClient.tryConnect(Unknown Source)
    at sun.net.ftp.impl.FtpClient.connect(Unknown Source)
    at sun.net.ftp.impl.FtpClient.connect(Unknown Source)
    at sun.net.www.protocol.ftp.FtpURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(Unknown Source)
    at org.springframework.core.io.UrlResource.getInputStream(UrlResource.java:125)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
    ... 17 more


At first, I suspect it was a server issue. But finally after google the whole afternoon,  I changed to old version of Dataloader 32. The error is gone.

Just wanna share with you, dont use dataloader 34 for command line job.


Regards,
Thomas
I'm working through the Using Apex in Components (https://developer.salesforce.com/trailhead/force_com_programmatic_beginner/lightning_components/lightning_components_apex) challenge.

When checking the challenge I'm getting the response:
Challenge not yet complete... here's what's wrong: 
The client side controller is not using the return value from the 'getCaseFromId' method

If I put the same lightning component in an app I can see it is retrieving the Case details via the Apex controller method via the client controller.
Testing working Apex Component
I can see the call going through to the Apex Controller in the logs.
User-added image

I can put a debugger; statement in the client controller within the actions setCallback method and hit that immediately after passing the return value back to the records view attribute.

So I'm fairly certain that the client side controller is using the return value from `getCaseFromId` in the Apex controller.

Any ideas on what the challenge is checking for here?
Hi Have a wired situation with command-line data loader v.29 from an daily automated data loads from external oracle system

using commanding line data loader I uploaded customer data into account object on account I have an external field oracle__id text field.In that I am storing my oracle unique identifier

I have an child object called address .it is an custom object. It has an look-up relation ship with account .In that child object I have an external field oracle_child__id stores oracle uni id related to customer.

I pulled address data from oracle did a upsert. but my relation field with account is not updating

in my mapping file I have

Account= Account__c\:oracle_id

and process xml file

external field value is oracle_id

It is not working. There is any work around to link master standard object with child custom object in command-line data-loader. I went lot of material no clue. thanks
  • April 21, 2014
  • Like
  • 0