richeso / dataloadercliq

Automatically exported from code.google.com/p/dataloadercliq
0 stars 0 forks source link

issue while logging in as 'LOGIN_DURING_RESTRICTED_TIME' even though the login hoursrestrictions are not configured #84

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I am using CLiq for upserting into the Prod environment in salesforce

2.And also sheduled the batch file which runs in the Windows Server 2003

3.Some time the shedule is working fine and upserting but some time while 
upserting i am getting the exception while loging into the salesfore

As" 2014-04-12 05:45:06,468 ERROR [BilltoAccount] client.PartnerClient 
runOperation (PartnerClient.java:332) - Error while calling web service 
operation: login, error was: 
[LoginFault [ApiFault  exceptionCode='LOGIN_DURING_RESTRICTED_TIME'
 exceptionMessage='cannot log in during restricted time'
"

Note:-But when i checked login hours for this users there are no Login hours 
configured

What is the expected output? What do you see instead?
Is to upsert  a csv file succesfully in the sheduled hours ..

What version of the product are you using? On what operating system?
Apex Dataloader Version 29,in Windows Server 2003 R2

Please provide any additional information below.
loads data into salesforce...
2014-04-12 05:45:04,624 INFO  [main] controller.Controller initLog 
(Controller.java:389) - Using built-in logging configuration, no log-conf.xml 
in D:\ServiceCloud\NAS BatchProcess\SourceCode\BilltoAccount\log-conf.xml
2014-04-12 05:45:04,624 INFO  [main] controller.Controller initLog 
(Controller.java:391) - The log has been initialized
2014-04-12 05:45:04,624 INFO  [main] process.ProcessConfig getBeanFactory 
(ProcessConfig.java:103) - Loading process configuration from config file: 
D:\ServiceCloud\NAS 
BatchProcess\SourceCode\BilltoAccount\BilltoAccountConfig\process-conf.xml
2014-04-12 05:45:04,749 INFO  [main] xml.XmlBeanDefinitionReader 
loadBeanDefinitions (XmlBeanDefinitionReader.java:315) - Loading XML bean 
definitions from file [D:\ServiceCloud\NAS 
BatchProcess\SourceCode\BilltoAccount\BilltoAccountConfig\process-conf.xml]
2014-04-12 05:45:04,859 INFO  [BilltoAccount] controller.Controller initConfig 
(Controller.java:327) - config dir created at D:\ServiceCloud\NAS 
BatchProcess\SourceCode\BilltoAccount\BilltoAccountConfig
2014-04-12 05:45:04,859 INFO  [BilltoAccount] controller.Controller initConfig 
(Controller.java:355) - The controller config has been initialized
2014-04-12 05:45:04,859 INFO  [BilltoAccount] process.ProcessRunner run 
(ProcessRunner.java:116) - Initializing process engine
2014-04-12 05:45:04,859 INFO  [BilltoAccount] process.ProcessRunner run 
(ProcessRunner.java:119) - Loading parameters
2014-04-12 05:45:05,546 INFO  [BilltoAccount] config.LastRun load 
(LastRun.java:96) - Last run info will be saved in file: D:\ServiceCloud\NAS 
BatchProcess\SourceCode\BilltoAccount\BilltoAccountLog\BilltoAccount_lastRun.pro
perties
2014-04-12 05:45:05,577 INFO  [BilltoAccount] process.ProcessRunner run 
(ProcessRunner.java:127) - Logging in to: 
https://www.salesforce.com/services/Soap/u/29.0
2014-04-12 05:45:05,593 INFO  [BilltoAccount] client.PartnerClient login 
(PartnerClient.java:478) - Beginning Partner Salesforce login ....
2014-04-12 05:45:05,593 INFO  [BilltoAccount] client.ClientBase 
getConnectorConfig (ClientBase.java:123) - Salesforce login will use proxy 
host: http-proxy.geps.ge.com port: 80
2014-04-12 05:45:05,624 INFO  [BilltoAccount] client.PartnerClient 
loginInternal (PartnerClient.java:519) - Salesforce login to 
https://www.salesforce.com/services/Soap/u/29.0/services/Soap/u/29.0 as user 
Batch.user@ge.com
2014-04-12 05:45:06,468 ERROR [BilltoAccount] client.PartnerClient runOperation 
(PartnerClient.java:332) - Error while calling web service operation: login, 
error was: 
[LoginFault [ApiFault  exceptionCode='LOGIN_DURING_RESTRICTED_TIME'
 exceptionMessage='cannot log in during restricted time'
]
]

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:628)
    at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:505)
    at com.sforce.ws.transport.SoapConnection.parseDetail(SoapConnection.java:230)
    at com.sforce.ws.transport.SoapConnection.createException(SoapConnection.java:204)
    at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:150)
    at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)
    at com.sforce.soap.partner.PartnerConnection.login(PartnerConnection.java:968)
    at com.salesforce.dataloader.client.PartnerClient$8.run(PartnerClient.java:161)
    at com.salesforce.dataloader.client.PartnerClient$8.run(PartnerClient.java:152)
    at com.salesforce.dataloader.client.PartnerClient.runOperation(PartnerClient.java:328)
    at com.salesforce.dataloader.client.PartnerClient.loginInternal(PartnerClient.java:520)
    at com.salesforce.dataloader.client.PartnerClient.login(PartnerClient.java:488)
    at com.salesforce.dataloader.client.PartnerClient.connect(PartnerClient.java:213)
    at com.salesforce.dataloader.controller.Controller.login(Controller.java:173)
    at com.salesforce.dataloader.controller.Controller.login(Controller.java:168)
    at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.java:128)
    at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.java:100)
    at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.java:253)
2014-04-12 05:45:06,468 ERROR [BilltoAccount] client.PartnerClient 
loginInternal (PartnerClient.java:534) - Error while logging in to web service 
at: https://www.salesforce.com/services/Soap/u/29.0/services/Soap/u/29.0, error 
was: 
[LoginFault [ApiFault  exceptionCode='LOGIN_DURING_RESTRICTED_TIME'
 exceptionMessage='cannot log in during restricted time'
]
]

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:628)
    at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:505)
    at com.sforce.ws.transport.SoapConnection.parseDetail(SoapConnection.java:230)
    at com.sforce.ws.transport.SoapConnection.createException(SoapConnection.java:204)
    at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:150)
    at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)
    at com.sforce.soap.partner.PartnerConnection.login(PartnerConnection.java:968)
    at com.salesforce.dataloader.client.PartnerClient$8.run(PartnerClient.java:161)
    at com.salesforce.dataloader.client.PartnerClient$8.run(PartnerClient.java:152)
    at com.salesforce.dataloader.client.PartnerClient.runOperation(PartnerClient.java:328)
    at com.salesforce.dataloader.client.PartnerClient.loginInternal(PartnerClient.java:520)
    at com.salesforce.dataloader.client.PartnerClient.login(PartnerClient.java:488)
    at com.salesforce.dataloader.client.PartnerClient.connect(PartnerClient.java:213)
    at com.salesforce.dataloader.controller.Controller.login(Controller.java:173)
    at com.salesforce.dataloader.controller.Controller.login(Controller.java:168)
    at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.java:128)
    at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.java:100)
    at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.java:253)
2014-04-12 05:45:06,468 FATAL [main] process.ProcessRunner topLevelError 
(ProcessRunner.java:238) - Unable to run process BilltoAccount
java.lang.RuntimeException: cannot log in during restricted time
    at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.java:160)
    at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.java:100)
    at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.java:253)
Caused by: [LoginFault [ApiFault  exceptionCode='LOGIN_DURING_RESTRICTED_TIME'
 exceptionMessage='cannot log in during restricted time'
]
]

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:628)
    at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:505)
    at com.sforce.ws.transport.SoapConnection.parseDetail(SoapConnection.java:230)
    at com.sforce.ws.transport.SoapConnection.createException(SoapConnection.java:204)
    at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:150)
    at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)
    at com.sforce.soap.partner.PartnerConnection.login(PartnerConnection.java:968)
    at com.salesforce.dataloader.client.PartnerClient$8.run(PartnerClient.java:161)
    at com.salesforce.dataloader.client.PartnerClient$8.run(PartnerClient.java:152)
    at com.salesforce.dataloader.client.PartnerClient.runOperation(PartnerClient.java:328)
    at com.salesforce.dataloader.client.PartnerClient.loginInternal(PartnerClient.java:520)
    at com.salesforce.dataloader.client.PartnerClient.login(PartnerClient.java:488)
    at com.salesforce.dataloader.client.PartnerClient.connect(PartnerClient.java:213)
    at com.salesforce.dataloader.controller.Controller.login(Controller.java:173)
    at com.salesforce.dataloader.controller.Controller.login(Controller.java:168)
    at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.java:128)
    ... 2 more

Original issue reported on code.google.com by praveen2...@gmail.com on 14 Apr 2014 at 10:12

Attachments:

GoogleCodeExporter commented 9 years ago
This is not a CLIq issue.  You should try to use the Dataloader UI at the same 
time and you would get the same error.

I think login hours are set on the profile for the user.

Original comment by vijay.swamidass@gmail.com on 14 Apr 2014 at 8:23

GoogleCodeExporter commented 9 years ago
Hi VIjay,

No login hours are not configured for this profile I am using  still i get this 
error very often. I have checked this before itself.

Original comment by praveen2...@gmail.com on 21 Apr 2014 at 10:33