• Alok Parida
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
please help me on below error.

2017-12-12 17:31:25,796 WARN  [CaseInsert] protocol.RequestAuthenticationBase process (RequestAuthenticationBase.java:88) - NEGOTIATE authentication er
ror: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt))
2017-12-12 17:31:25,796 WARN  [CaseInsert] protocol.RequestAuthenticationBase process (RequestAuthenticationBase.java:88) - NTLM authentication error:
Credentials cannot be used for NTLM authentication: org.apache.http.auth.UsernamePasswordCredentials
2017-12-12 17:31:26,139 ERROR [CaseInsert] client.PartnerClient runOperation (PartnerClient.java:332) - Error while calling web service operation: logi
n, error was: Failed to send request to https://login.salesforce.com/services/Soap/u/36.0
com.sforce.ws.ConnectionException: Failed to send request to https://login.salesforce.com/services/Soap/u/36.0
        at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:121)
        at com.sforce.soap.partner.PartnerConnection.login(PartnerConnection.java:1444)
        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:524)
        at com.salesforce.dataloader.client.PartnerClient.login(PartnerClient.java:492)
        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)
Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
        at sun.security.ssl.SSLSessionImpl.getPeerCertificates(Unknown Source)
        at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
        at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:628)
        at org.apache.http.impl.conn.DefaultClientConnectionOperator.updateSecureConnection(DefaultClientConnectionOperator.java:232)
        at org.apache.http.impl.conn.ManagedClientConnectionImpl.layerProtocol(ManagedClientConnectionImpl.java:401)
        at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:837)
        at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:644)
        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
        at com.salesforce.dataloader.client.HttpClientTransport.getContent(HttpClientTransport.java:129)
        at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:97)
        ... 12 more
2017-12-12 17:31:26,264 ERROR [CaseInsert] client.PartnerClient loginInternal (PartnerClient.java:538) - Error while logging in to web service at: http
s://login.salesforce.com/services/Soap/u/36.0, error was: Failed to send request to https://login.salesforce.com/services/Soap/u/36.0
com.sforce.ws.ConnectionException: Failed to send request to https://login.salesforce.com/services/Soap/u/36.0
        at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:121)
        at com.sforce.soap.partner.PartnerConnection.login(PartnerConnection.java:1444)
        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:524)
        at com.salesforce.dataloader.client.PartnerClient.login(PartnerClient.java:492)
        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)
Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
        at sun.security.ssl.SSLSessionImpl.getPeerCertificates(Unknown Source)
        at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
        at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:628)
        at org.apache.http.impl.conn.DefaultClientConnectionOperator.updateSecureConnection(DefaultClientConnectionOperator.java:232)
        at org.apache.http.impl.conn.ManagedClientConnectionImpl.layerProtocol(ManagedClientConnectionImpl.java:401)
        at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:837)
        at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:644)
        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
        at com.salesforce.dataloader.client.HttpClientTransport.getContent(HttpClientTransport.java:129)
        at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:97)
        ... 12 more
2017-12-12 17:31:26,326 FATAL [main] process.ProcessRunner topLevelError (ProcessRunner.java:238) - Unable to run process CaseInsert
java.lang.RuntimeException: com.sforce.ws.ConnectionException: Failed to send request to https://login.salesforce.com/services/Soap/u/36.0
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.java:162)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.java:100)
        at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.java:253)
Caused by: com.sforce.ws.ConnectionException: Failed to send request to https://login.salesforce.com/services/Soap/u/36.0
        at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:121)
        at com.sforce.soap.partner.PartnerConnection.login(PartnerConnection.java:1444)
        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:524)
        at com.salesforce.dataloader.client.PartnerClient.login(PartnerClient.java:492)
        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
Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
        at sun.security.ssl.SSLSessionImpl.getPeerCertificates(Unknown Source)
        at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
        at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:628)
        at org.apache.http.impl.conn.DefaultClientConnectionOperator.updateSecureConnection(DefaultClientConnectionOperator.java:232)
        at org.apache.http.impl.conn.ManagedClientConnectionImpl.layerProtocol(ManagedClientConnectionImpl.java:401)
        at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:837)
        at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:644)
        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
        at com.salesforce.dataloader.client.HttpClientTransport.getContent(HttpClientTransport.java:129)
        at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:97)
I have 2 custom objects employee__c and company__c.In employee  Object I have a field called salry__c and in Company object Ihave a field max_salry__c .I want to populate max salary of the employees on Parent Object Field max_salry__c.Please help me on trigger for this scenario.

Here is the snippet I tried .

trigger calculateMaxSalary on Employee__c (after update, after insert) {

        /*Map<Id, Compny__c> parentcomp = new Map<Id, Compny__c>();
        List<Id> listIds = new List<Id>();

        for(Employee__c childObj : Trigger.new) {
            listIds.add(childObj.salaries__c);
        }

        parentcomp= new Map<Id, Compny__c> ([Select Id, Name,max_salary__c, (Select Id, salry__c from Emploies__r) from Compny__c where Id in :listIds]);

        for(Employee__c emp : Trigger.new) {    
            Compny__c comp = parentcomp.get(emp.salaries__c);
            system.debug('Max Salary#########'+comp.max_salary__c);
            system.debug('Salary**************'+emp.salry__c);
            //comp.max_salary__c= max(emp.salry__c);
        }

        update parentcomp.values();
        */
        
        
               
  // }
I have 2 custom objects employee__c and company__c.In employee  Object I have a field called salry__c and in Company object Ihave a field max_salry__c .I want to populate max salary of the employees on Parent Object Field max_salry__c.Please help me on trigger for this scenario.

Here is the snippet I tried .

trigger calculateMaxSalary on Employee__c (after update, after insert) {

        /*Map<Id, Compny__c> parentcomp = new Map<Id, Compny__c>();
        List<Id> listIds = new List<Id>();

        for(Employee__c childObj : Trigger.new) {
            listIds.add(childObj.salaries__c);
        }

        parentcomp= new Map<Id, Compny__c> ([Select Id, Name,max_salary__c, (Select Id, salry__c from Emploies__r) from Compny__c where Id in :listIds]);

        for(Employee__c emp : Trigger.new) {    
            Compny__c comp = parentcomp.get(emp.salaries__c);
            system.debug('Max Salary#########'+comp.max_salary__c);
            system.debug('Salary**************'+emp.salry__c);
            //comp.max_salary__c= max(emp.salry__c);
        }

        update parentcomp.values();
        */
        
        
               
  // }