• SFDC_bi
  • NEWBIE
  • 50 Points
  • Member since 2016


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 15
    Replies
Hello Guys,
 
I am trying to create a trigger to prevent the duplicate meeting request  between the start and end date time.
 
Triggers work when start and end date time matches. However, they do not work between the date time.
 
I would appreciate if someone could review the code and highlight the issue.
 
trigger trg_EventDuplicateBooking on Event (before insert) {
    
    if(trigger.isInsert && trigger.isBefore){
        cls_DuplicateBooking_handler.checkeventduplicaterecord(trigger.new);
    }

}
 
public class cls_DuplicateBooking_handler {
    
    public static void checkeventduplicaterecord(List<Event> evtList){
        try{
            set<string> userSet = new set<string>();
            set<datetime> eventstartdate = new set<datetime>();
            set<datetime> eventenddate = new set<datetime>();
            
            for(Event evt:evtList){
  				userSet.add(evt.OwnerId);
				eventstartdate.add(evt.StartDatetime);
                eventenddate.add(evt.EndDateTime);
            }
            List<Event> eventList = [SELECT OwnerId FROM event WHERE OwnerId IN:userSet AND (StartDatetime <=:eventstartdate AND EndDateTime >=:eventenddate)];
            
            If(eventList.size()>0){
                evtList[0].addError('User already booked');
            }
            
        }
        catch(exception ex){
            throw ex;
        }
    }

}

Thanks
Can you please help me to display list view count in the vf page.

Controller:
public with sharing class pipeLineController {

public Integer unread{get;set;}
private Lead lead;
private User user;
private Opportunity opp;

 public Void LeadListValues()
    {
            lead = [Select Id, owner.id,status from Lead];
            user = [select id,firstname from user where id=:userinfo.getuserid()];
            Id currentUserId = UserInfo.getUserId();
            
            unread = 0;
            
             AggregateResult[] groupedResultOAB =[SELECT count(Id)unread FROM Lead where IsUnreadByOwner = true and Owner.Id = :currentUserId and status IN ('Contacted by Aramex','Unread','Pending','Follow Up','Contacted')];        
            //    System.debug('groupedResultOAB = = '+groupedResultOAB);
            unread=Integer.valueof(groupedResultOAB [0].get('unread'));
            
            }
}
VFpage
<apex:page Controller="pipeLineController"  sidebar="false" >
<style>

        .bal, .bal td,.bal th {    
            border: 1px solid #ddd;        
        }
        .datacol{
        }
        
        .bal{
            border-collapse: collapse;
            width: 100%;
        }
        
        .bal th, .bal td {
            padding: 5px;
        }
        
        .imgclass:hover{ 
            background-image: url(/img/help/helpOrbs.gif); 
            background-repeat: no-repeat; 
            width: 16px; 
            height: 15px; 
            background-position: right; 
            vertical-align: middle;
        } 
        .imgclass{ 
            background-image: url(/img/help/helpOrbs.gif); 
            background-repeat: no-repeat; 
            width: 16px; 
            height: 15px; 
            vertical-align: middle;
        } 


body 
.bPageBlock, 
body #bodyCell .bResource .secondaryPalette, 
body .secondaryPalette.bPageBlock, 
body .individualPalette .secondaryPalette.bPageBlock, 
body .bodyDiv .genericTable, 
body .genericPageBlockTable, 
body .bodyDiv .bSubBlock, 
body .bComponentBlock .bPageBlock, 
body .bMyDashboard .bPageBlock,
body.rlHoverFrame .bPageBlock,
body.subjectSelectionPopup div.choicesBox,
body.lookupTab .secondaryPalette.bPageBlock,
body.popupTab .secondaryPalette.bPageBlock,
body.UserTagStatsPage .secondaryPalette.bPageBlock {

    background-color: white;

    border-bottom: 1px solid black;

    border-left: 1px solid black;

    border-radius: 4px 4px 4px 4px;

    border-right: 1px solid black;

    border-top: 5px solid BLUE;

}

</style>
<apex:form >
 <apex:pageBlock title="welcome back {!$User.LastName}, follows your pipelines" tabStyle="account" >
<apex:pageBlockSection title="Leads" collapsible="true" >

  
  <table class="bal" style="width:100%">    
        <tr>
            <!-- <th>List Name</th>
            <th>Values</th> -->
            </tr>
         <tr>
            <apex:outputText value="{!unread}"> </apex:outputText> 
            <td>        
                 <a href="/00Q?fcf=00B0C000000yzUH" target="_blank">Unread
         
                   
                </a> 
            
              
            </td>
        </tr>
         <tr>
            <td>Unread</td>
            <td>        
                 <a href="/00Q?fcf=00B0C000000yzUH" target="_blank">O
         
                   
                </a> 
            
              
            </td>
        </tr>
    </table>  
    
</apex:pageBlockSection>

</apex:pageBlock> 
  



</apex:form>

</apex:page>

Thanks in Advance!!!
We have requirement to develop vf page on salesforce home page to all lead list view. If user clicks it will redirect to particular lead list view. Also, the count of each list view to display after the list name.

Appreciate any help.
  
Lead Change Owner based on Activity.

Inshort: If no activity recorded for 3 hrs it will change lead from current owner to manager and lead status is inprogress and no activity recorded for 7 days it will change lead from current owner to manager

In Brief: 
We have two departments called CSE & CFS

CSE
    • Initial lead status = unread
 
    • CSE should enter the lead details and change the status to contacted by CSE and assign to CFS Team(Change Owner).
 
    • When lead is assigned to CFS it will add the CFS Assigned Date = system.now();
 
    • Here the business requirement is if the lead assigned to CFS and no activity recorded for 3hrs based on business hours it will move to user’s manager id and manager will assign to anyone in the team and same 3 hrs process will begin.
                               
                               
CFS
If in case CFS team change the status to inprogress but no activity made it will move to manager id after 7 days and 3 hours process will begin                                         
    • lead status = inprogress, 1stfollow up, 2nd follow up or 3rd follow
    • No activities for 7 days from CFS Assigned Date.
    • After 7 days it will move to manager id and manager will assign to anyone in the team and same 3 hrs process will begin.  


Any help much appreciated.
 
I have custom controller in that created self lookup to create contact but it appears in VF Page not in force.com site.

Please someone help in urgent.

Thanks in Advance!

User-added image
 
I can see validation rule from picklist values. is there any difference if i am choosing from direct object
Please help me. I am not sure what's the issue with this class its not updating.
 
public class MyFirstClass {
    public static void method(){
    List<Account> accLst = new List<Account>([select id,name,description from Account where name like 'United%']);
    system.debug('The account lists are:' + accLst);
    List<Account> accupdLst = new List<Account>();
    for(Account acc: accupdLst ){
        acc.Description = 'Updated from Apex Class';
        accupdLst.add(acc);
    }
    if(accupdLst != null && accupdLst.size()>0){
    update accupdLst;
        
    }
    system.debug('The updated account lists are:' + accupdLst);
}
}

Please help me!<

 
  • September 20, 2018
  • Like
  • 0
I can't pass this challenge Process Design Without Limits Learn About Object Design-Time Limits. I have below error message. Can anypne please help.

Challenge Not yet complete... here's what's wrong: 
Changing the owner of the Account record failed to update the 'Account_Owner_Name_Process__c' field for the Case object . Make sure that the process is correct and that it is activated.https://trailhead.salesforce.com/modules/process-design-without-limits/units/process-design-without-limits-object
Hello Guys,
 
I am trying to create a trigger to prevent the duplicate meeting request  between the start and end date time.
 
Triggers work when start and end date time matches. However, they do not work between the date time.
 
I would appreciate if someone could review the code and highlight the issue.
 
trigger trg_EventDuplicateBooking on Event (before insert) {
    
    if(trigger.isInsert && trigger.isBefore){
        cls_DuplicateBooking_handler.checkeventduplicaterecord(trigger.new);
    }

}
 
public class cls_DuplicateBooking_handler {
    
    public static void checkeventduplicaterecord(List<Event> evtList){
        try{
            set<string> userSet = new set<string>();
            set<datetime> eventstartdate = new set<datetime>();
            set<datetime> eventenddate = new set<datetime>();
            
            for(Event evt:evtList){
  				userSet.add(evt.OwnerId);
				eventstartdate.add(evt.StartDatetime);
                eventenddate.add(evt.EndDateTime);
            }
            List<Event> eventList = [SELECT OwnerId FROM event WHERE OwnerId IN:userSet AND (StartDatetime <=:eventstartdate AND EndDateTime >=:eventenddate)];
            
            If(eventList.size()>0){
                evtList[0].addError('User already booked');
            }
            
        }
        catch(exception ex){
            throw ex;
        }
    }

}

Thanks
We have requirement to develop vf page on salesforce home page to all lead list view. If user clicks it will redirect to particular lead list view. Also, the count of each list view to display after the list name.

Appreciate any help.
  
I have custom controller in that created self lookup to create contact but it appears in VF Page not in force.com site.

Please someone help in urgent.

Thanks in Advance!

User-added image
 
I can see validation rule from picklist values. is there any difference if i am choosing from direct object
Please help me. I am not sure what's the issue with this class its not updating.
 
public class MyFirstClass {
    public static void method(){
    List<Account> accLst = new List<Account>([select id,name,description from Account where name like 'United%']);
    system.debug('The account lists are:' + accLst);
    List<Account> accupdLst = new List<Account>();
    for(Account acc: accupdLst ){
        acc.Description = 'Updated from Apex Class';
        accupdLst.add(acc);
    }
    if(accupdLst != null && accupdLst.size()>0){
    update accupdLst;
        
    }
    system.debug('The updated account lists are:' + accupdLst);
}
}

Please help me!<

 
  • September 20, 2018
  • Like
  • 0
I can't pass this challenge Process Design Without Limits Learn About Object Design-Time Limits. I have below error message. Can anypne please help.

Challenge Not yet complete... here's what's wrong: 
Changing the owner of the Account record failed to update the 'Account_Owner_Name_Process__c' field for the Case object . Make sure that the process is correct and that it is activated.https://trailhead.salesforce.com/modules/process-design-without-limits/units/process-design-without-limits-object
Hello, This question is already asked, But my question is something different.

According to me, the above error occurs when the user is idle for some time (i,e standard expiry time of session) and tried to save an opportunity or anything in Salesforce.

So I would like to know is this error solves when user refresh the page?

And also what is the duration of the session?

Any help will be really appreciated.
 
Hi all,

Looking for help on an issue with my controller and visualforce page.

The issue I am having is that the picklist value for 'Interested Technologies' is returning weird results vs. just the name of the account.
User-added image

Here is my controller:
public with sharing class ContactSearchController {

  // the soql without the order and limit
  private String soql {get;set;}
  // the collection of contacts to display
  public List<Contact> contacts {get;set;}
  // the collection of accounts to display
  public Id selectedAccId{get;set;}

  public Boolean IsEmpty {get; set;} 

  // the current sort direction. defaults to asc
  public String sortDir {
    get  { if (sortDir == null) {  sortDir = 'asc'; } return sortDir;  }
    set;
  }

  // the current field to sort by. defaults to last name
  public String sortField {
    get  { if (sortField == null) {sortField = 'lastName'; } return sortField;  }
    set;
  }

  // format the soql for display on the visualforce page
  public String debugSoql {
    get { return soql + ' order by ' + sortField + ' ' + sortDir + ' limit 20'; }
    set;
  }

  // init the controller and display some sample data when the page loads
  public ContactSearchController() {
    soql = 'select firstname, lastname, account.name, interested_technologies__c from contact where account.name != null';
    runQuery();
  }

  // toggles the sorting of query from asc<-->desc
  public void toggleSort() {
    // simply toggle the direction
    sortDir = sortDir.equals('asc') ? 'desc' : 'asc';
    // run the query again
    runQuery();
  }

  // runs the actual query
  public void runQuery() {

    try {
      contacts = Database.query(soql + ' order by ' + sortField + ' ' + sortDir + ' limit 20');
    } catch (Exception e) {
      ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR, 'Ooops!'));
    }

  }

  // runs the search with parameters passed via Javascript
  public PageReference runSearch() {

    String firstName = Apexpages.currentPage().getParameters().get('firstname');
    String lastName = Apexpages.currentPage().getParameters().get('lastname');
    String accountName = Apexpages.currentPage().getParameters().get('accountName');
    String technology = Apexpages.currentPage().getParameters().get('technology');

    soql = 'select firstname, lastname, account.name, interested_technologies__c from contact where account.name != null';
    if (!firstName.equals(''))
      soql += ' and firstname LIKE \''+String.escapeSingleQuotes(firstName)+ '%\'';
    if (!lastName.equals(''))
      soql += ' and lastname LIKE \''+String.escapeSingleQuotes(lastName)+ '%\'';
    if (!accountName.equals(''))
      soql += ' and account.name LIKE \''+String.escapeSingleQuotes(accountName)+ '%\'';  
    if (!technology.equals(''))
      soql += ' and interested_technologies__c includes (\''+technology+'\')';

    // run the query again
    runQuery();

    return null;
  }

  // use apex describe to build the picklist values
  public List<String> technologies {
    get {
      if (technologies == null) {

        technologies = new List<String>();
        Schema.DescribeFieldResult field = Contact.interested_technologies__c.getDescribe();

        for (Schema.PicklistEntry f : field.getPicklistValues())
          technologies.add(f.getLabel());

      }
      return technologies;          
    }
    set;
  }

  /*public List<String> options {
    get {
      if (options == null) {

        options = new List<String>();
        Schema.DescribeFieldResult field = Account.Name.getDescribe();

        for (Schema.PicklistEntry f : field.getPicklistValues())
          options.add(f.getLabel());

      }
      return options;          
    }
    set;
  }*/
  
  //builds a picklist of account names based on their account id

  public List<selectOption> getaccts() {

      List<selectOption> options = new List<selectOption>(); 
  //new list for holding all of the picklist options
      options.add(new selectOption('', '- None -')); 
  //add the first option of '- None -' in case the user doesn't want to select a value or in case no values are returned from query below
      for (Account account : [SELECT Id, Name FROM Account]) { 
  //query for Account records 
          options.add(new selectOption(account.Name, account.Name)); 
  //for all records found - add them to the picklist options
      }
      return options; //return the picklist options
  }

}
Here is my visualforce page:
<apex:page controller="ContactSearchController" sidebar="false">

  <apex:form >
  <apex:pageMessages id="errors" />

  <apex:pageBlock title="Search Collaborative Wide Staff Directory" mode="edit">

  <table width="100%" border="0">
  <tr>  
    <td width="200" valign="top">

      <apex:pageBlock title="Search Properties" mode="edit" id="criteria">

      <script type="text/javascript">
      function doSearch() {
        searchServer(
          document.getElementById("firstName").value,
          document.getElementById("lastName").value,
          document.getElementById("accountName").value,
          document.getElementById("technology").options[document.getElementById("technology").selectedIndex].value
          );
      }
      </script> 

      <apex:actionFunction name="searchServer" action="{!runSearch}" rerender="results,debug,errors">
          <apex:param name="firstName" value="" />
          <apex:param name="lastName" value="" />
          <apex:param name="accountName" value="" />
          <apex:param name="technology" value="" />
      </apex:actionFunction>

      <table cellpadding="2" cellspacing="2">
      <tr>
        <td style="font-weight:bold;">First Name<br/>
        <input type="text" id="firstName" onkeyup="doSearch();"/>
        </td>
      </tr>
      <tr>
        <td style="font-weight:bold;">Last Name<br/>
        <input type="text" id="lastName" onkeyup="doSearch();"/>
        </td>
      </tr>
      <tr>
        <td style="font-weight:bold;">Account<br/>
        <input type="text" id="accountName" onkeyup="doSearch();"/>
        </td>
      </tr>
      <tr>
        <td style="font-weight:bold;">Interested Technologies<br/>
          <select id="technology" onchange="doSearch();">
            <option value=""></option>
            <apex:repeat value="{!accts}" var="tech">
              <option value="{!tech}">{!tech}</option>
            </apex:repeat>
          </select>
        </td>
      </tr>
      </table>

      <!--<apex:pageBlockSection title="Custom Picklist Using selectList and selectOptions">
          <apex:selectList value="{!options}" multiselect="false" size="1">
                  <apex:selectOptions value="{!accts}"/>
          </apex:selectList>
      </apex:pageBlockSection>-->

      </apex:pageBlock>

    </td>
    <td valign="top">

    <apex:pageBlock mode="edit" id="results">

        <apex:pageBlockTable value="{!contacts}" var="contact">

            <apex:column >
                <apex:facet name="header">
                    <apex:commandLink value="First Name" action="{!toggleSort}" rerender="results,debug">
                        <apex:param name="sortField" value="firstName" assignTo="{!sortField}"/>
                    </apex:commandLink>
                </apex:facet>
                <apex:outputField value="{!contact.firstName}"/>
            </apex:column>

            <apex:column >
                <apex:facet name="header">
                    <apex:commandLink value="Last Name" action="{!toggleSort}" rerender="results,debug">
                        <apex:param name="sortField" value="lastName" assignTo="{!sortField}"/>
                    </apex:commandLink>
                </apex:facet>
                <apex:outputField value="{!contact.lastName}"/>
            </apex:column>

            <apex:column >
                <apex:facet name="header">
                    <apex:commandLink value="Account" action="{!toggleSort}" rerender="results,debug">
                        <apex:param name="sortField" value="account.name" assignTo="{!sortField}"/>
                    </apex:commandLink>
                </apex:facet>
                <apex:outputField value="{!contact.account.name}"/>
            </apex:column>

            <apex:column >
                <apex:facet name="header">
                    <apex:commandLink value="Technologies" action="{!toggleSort}" rerender="results,debug">
                        <apex:param name="sortField" value="interested_technologies__c" assignTo="{!sortField}"/>
                    </apex:commandLink>
                </apex:facet>
                <apex:outputField value="{!contact.interested_technologies__c}"/>
            </apex:column>

        </apex:pageBlockTable>

    </apex:pageBlock>

    </td>
  </tr>
  </table>

  <apex:pageBlock title="Debug - SOQL" id="debug">
      <apex:outputText value="{!debugSoql}" />           
  </apex:pageBlock>    

  </apex:pageBlock>

  </apex:form>

</apex:page>
What am I missing?   Any help is much appreciated.

 
Options missing in my TP.
Trailhead Field Service Lightning Basics > Enable Field Service and Create Service Resources
 
Setup>Field Service Settings
Only option I have there is to 'enable work orders' not the full settings (e.g. notify relevant users; set due date; etc.)

Tried in Lightning and Classic.

Thoughts?
What i have for FSL settings

Attempting to complete Trailhead for building a flow (Customer Satisfaction Survey).  I get the error message above when attempting to verify I have done the exercise correctly. I have done everything correctly and verified everything (the record does exist with correct field values) but still keep getting this error message, which is strangely worded ("Could find a Survey...) not ("Could NOT find a Survey...").  Any help/suggestions appreciated.  

I am working on the challenge in Identity for Customers and upon my attempt to login
with Google, I am getting the error: We can’t log you in because of the following error. NO_ACCESS: Unable to find a user

Has anyone received this and been able to work through it? I see one questio in the forum about it but the 
answer does not resolve the issue.

Thanks.

hi all, to know the process cycle of sales cloud and servcice cloud..

 

 

i want

Hi,

 

I wants to give EDIT/DELETE link to each record in pagetable. How can I do that?

 

I have tried it with picklist, like I took picklist to select the record and after selection value, applied the edit or delete button.

 

Thank you.

Amol Dixit

Hi,

 

I got the below error, when I create Lead record from Java application using Partner WSDL web service call.

 

AxisFault
 faultCode: UNKNOWN_EXCEPTION
 faultSubcode:
 faultString: UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService
 faultActor:
 faultNode:
 faultDetail:
    {urn:fault.partner.soap.sforce.com}UnexpectedErrorFault:<ns1:exceptionCode>UNKNOWN_EXCEPTION</ns1:exceptionCode><ns1:exceptionMessage>Destination URL not reset. The URL returned from login must be set in the SforceService</ns1:exceptionMessage>

UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService
    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 org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:104)
    at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90)
    at com.sforce.soap.partner.fault.UnexpectedErrorFault.getDeserializer(UnexpectedErrorFault.java:84)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154)
    at org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84)
    at org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464)
    at org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547)
    at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157)
    at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
    at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:796)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.sforce.soap.partner.SoapBindingStub.create(SoapBindingStub.java:2657)
    at org.teg.iagent.PartnerAgentProcessor.start(PartnerAgentProcessor.java:482)
    at org.teg.iagent.PartnerAgentProcessor.main(PartnerAgentProcessor.java:82)

 

and, below is my code to set field values, which I retrieved from a POJO object.

 

    public MessageElement createNewXmlElement(String Name, String nodeValue) throws Exception {

        MessageElement msgElement;
        DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
        DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
        Document document = documentBuilder.newDocument();
        
        Element xmlEle = document.createElement(Name);
        xmlEle.appendChild(document.createTextNode(nodeValue));

        msgElement = new MessageElement(xmlEle);

        return msgElement;
    }

 

I found similar issue in the forum and I am sure, I never called getUserinfo method before the session created. Can anyone help me out from this issue.

 

Regards,

SuBaa

  • April 23, 2012
  • Like
  • 0