• chok
  • NEWBIE
  • 50 Points
  • Member since 2011

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 17
    Questions
  • 13
    Replies
I'm having trouble using the Apex Data Loader from the command line.  It works fine thru the GUI.  If I encrypt just my password and run it, I get an "Invalid user name, password, or missing security token" error.  If I encrypt my password and my security token, I get the following error:
 
2008-08-15 15:46:53,476 INFO  [main] controller.Controller initLog (Controller.java:388) - The log has been initialized
2008-08-15 15:46:53,492 INFO  [main] process.ProcessConfig getBeanFactory (ProcessConfig.java:78) - Loading process configuration from config file: C:\Program Files\salesforce.com\Apex Data Loader 13.0\bin\..\conf\process-conf.xml
2008-08-15 15:46:53,538 INFO  [main] xml.XmlBeanDefinitionReader loadBeanDefinitions (XmlBeanDefinitionReader.java:163) - Loading XML bean definitions from file [C:\Program Files\salesforce.com\Apex Data Loader 13.0\bin\..\conf\process-conf.xml]
2008-08-15 15:46:53,570 INFO  [main] core.CollectionFactory <clinit> (CollectionFactory.java:66) - JDK 1.4+ collections available
2008-08-15 15:46:53,585 INFO  [main] core.CollectionFactory <clinit> (CollectionFactory.java:71) - Commons Collections 3.x available
2008-08-15 15:46:53,648 INFO  [positionExtract] controller.Controller initConfig (Controller.java:343) - The controller config has been initialized
2008-08-15 15:46:53,648 INFO  [positionExtract] process.ProcessRunner run (ProcessRunner.java:102) - Initializing process engine
2008-08-15 15:46:53,663 INFO  [positionExtract] process.ProcessRunner run (ProcessRunner.java:105) - Loading parameters
2008-08-15 15:46:54,663 ERROR [positionExtract] config.Config decryptProperty (Config.java:642) - Error loading parameter: sfdc.password of type: java.lang.String
javax.crypto.BadPaddingException: Given final block not properly padded
 at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
 at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
 at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA12275)
 at javax.crypto.Cipher.doFinal(DashoA12275)
 at com.salesforce.lexiloader.security.EncryptionUtil.decryptString(EncryptionUtil.java:197)
 at com.salesforce.lexiloader.config.Config.decryptProperty(Config.java:636)
 at com.salesforce.lexiloader.config.Config.postLoad(Config.java:588)
 at com.salesforce.lexiloader.config.Config.loadParameterOverrides(Config.java:614)
 at com.salesforce.lexiloader.process.ProcessRunner.run(ProcessRunner.java:106)
 at com.salesforce.lexiloader.process.ProcessRunner.main(ProcessRunner.java:228)
2008-08-15 15:46:54,663 FATAL [positionExtract] process.ProcessRunner run (ProcessRunner.java:156) - Error loading parameter: sfdc.password of type: java.lang.String
 
 
It seems to be having a problem with the password but I'm not sure what it's trying to tell me.
 
 
 
I discovered what the problem was.  I did not have the password and security token encrypted properly. 
 
 


Message Edited by upsetstomach on 08-18-2008 01:43 PM

Hi,

I am trying to hide a standard button on opportunity page. As I read in some blog, i wrote my javascript in document and tried to executed from document, but it got failed.

I dont want to take the complete permission for the profile but i want to disable button in one place.

Can you please suggest me some work around to disable button on opportunity page

 

 

Thank you,

Ashok Parimi

  • October 11, 2012
  • Like
  • 0

Hi,

 

I have a requirement to update fields in Opportunity related list object (x)from Partner's contact after we click on custom button on opportunity related object(x).

 

i am looking for some help to develope this code.

 

 

Thanks in Advance!

  • September 29, 2012
  • Like
  • 0

Hi,

 

I wan to populate pricebook2 record id in the record.

 

Is it possible to do using formula field?

 

 

Thanks in advance!

  • September 07, 2012
  • Like
  • 0

Hi,

 

How can I display an attachment on Visualforce page that can be downloadable.

 

 

Thanks in advance!

  • September 05, 2012
  • Like
  • 0

I am trying to call my internal url , for these i am generating CA-certificate in salesforce.

My  question is do i need to get authorize by third party vendor while i was using only for my internal API.

  • July 14, 2011
  • Like
  • 0

My  question is do i need to get authorize by third party vendor while i was using only for my internal API.

I am trying to call my internal url , for these i am generating CA-certificate in salesforce.

  • July 14, 2011
  • Like
  • 0

Hi,

 

I need to validate tax id field with out being junk.

For example it cant be 9999999999 or 2222222222 or 3333333333.

I know we have to use regex function for particula format but all numbers cant be same

 

 

Thanks

  • June 07, 2011
  • Like
  • 0

Hi,

 

I need to authorise client ssl even if its expired.

how do i write code to simply authorise client ssl with out verification.

 

 

Thanks

  • June 07, 2011
  • Like
  • 0

Hi,

 

how do i generate dynamic xml in sfdc to post to a url to generate pdf with populating current account fields.

 

 

Thanks

  • June 01, 2011
  • Like
  • 0

Hi,

I have a XML file that should post to a URL from sfdc.

For these, can any one help with the process. 

 

Thanks

  • May 26, 2011
  • Like
  • 0

Hi,

I have a XML file that should post to a URL from sfdc.

For these, can any one help with the process. 

 

Thanks

  • May 26, 2011
  • Like
  • 0

Hi,

I have a XML file that should post to a URL from sfdc.

For these, can any one help with the process. 

Thanks

  • May 26, 2011
  • Like
  • 0

Hi,

 

Can we diasble chatter for particular profile.

 

 

Thanks

  • May 18, 2011
  • Like
  • 0

 

Hi,

i am new to apex , please help me

 

here is my VF code:

 

<apex:page controller="titlesalary">
<apex:form >
<apex:sectionHeader title="designation"/>
<apex:pageBlock >
<apex:pageBlockButtons location="bottom">
<apex:commandButton action="{!save}" value="submit"/>
</apex:pageBlockButtons>

title<apex:selectlist value="{!title}" size="1">
<apex:selectOption itemValue="none" itemLabel="--None--"/>
<apex:selectOption itemValue="developer" itemLabel="developer"/>
<apex:selectOption itemValue="sr.developer" itemLabel="sr.developer"/>
<apex:selectOption itemValue="admin" itemLabel="admin"/>
</apex:selectList>
year<apex:selectlist value="{!year}" size="1">
<apex:selectOption itemValue="none" itemLabel="--None--"/>
<apex:selectOption itemValue="2009" itemLabel="2009"/>
<apex:selectOption itemValue="2010" itemLabel="2010"/>
<apex:selectOption itemValue="2011" itemLabel="2011"/>
</apex:selectList>
department<apex:selectList value="{!department}" size="1">
<apex:selectOption itemValue="none" itemLabel="--None--"/>
<apex:selectOption itemValue="it" itemLabel="IT"/>
<apex:selectOption itemValue="engg" itemLabel="ENGG"/>
<apex:selectOption itemValue="service" itemLabel="SERVICE"/>
</apex:selectList>
<apex:pageBlockTable value="{!salary}" var="hi" columns="4">
<apex:column headervalue="title" value="{!title}"/>
<apex:column headervalue="year" value="{!year}"/>
<apex:column headervalue="department" value="{!department}"/>
<apex:column headervalue="salary" value="{!salary}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>

 

I am using custom controller.my task is  to display yearly salary according to job title in VF PAGE BLOCK table.

  • March 16, 2011
  • Like
  • 0

Hi,

I am new to programming can any one help me please.i want to retrive data from database and display in VF pageblock table.

  • March 16, 2011
  • Like
  • 0

hi

i want to put red line symbol for mandatory field on vf page

can any one help please

  • February 20, 2011
  • Like
  • 0

HI,

I am new to apex and triggers when i write the below code its not firing trigger can any one please help me.



Trigger webaccount on Account (after insert) {
for(Account a: Trigger.new)
{
if(a.Website ==null){
a.Website = 'www.google.com';
}
else a.Website = 'froce.com';
}
}



Error: Invalid Data.
Review all error messages below to correct your data.
Apex trigger webaccount caused an unexpected exception, contact your administrator: webaccount: execution of AfterInsertcaused by: System.FinalException: Record is read-only: Trigger.webaccount: line 5, column 1

  • February 07, 2011
  • Like
  • 0

Hi,

 

I have a requirement to update fields in Opportunity related list object (x)from Partner's contact after we click on custom button on opportunity related object(x).

 

i am looking for some help to develope this code.

 

 

Thanks in Advance!

  • September 29, 2012
  • Like
  • 0

Hi,

I have a visualforce page. Where it accepts opportunities (20 opportunities) .
I have used inputfield for this to accept opportunities.I am storing first 10 opportunties in str1 and 2nd 10 in str2 (with comma seperated values in each of the strings).

These are getting saved in the opportunity table in str1 and str2 columns. But when I refresh the page I dont see the values which I stored in the earlier run in the VF page. I mean the values which are stored are not displayed.

My requirement is when I come to the page newly/refresh the page I need to see the values which I stored earlier and I need to edit them (if needed).

VF Page:

<apex:page standardController="Opportunity" extensions="VisualForceBigOpportunityExtension" title="Edit Big Opportunity">
<apex:sectionHeader title="Edit Big Opportunitys"/><apex:pageMessages ></apex:pageMessages>
<apex:form >
<apex:pageBlock title="Big Opportunitys" mode="detail">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Save"/>
<apex:commandButton action="{!cancel}" value="Cancel"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Big Opportunitys" collapsible="true" columns="1">
<apex:pageBlockTable value="{!BigOpportunity}" var="BigOpportunity" columns="2">
<apex:column headerValue="Opportunity">
<apex:inputField value="{!BigOpportunity.Opportunity1__c}"/>
</apex:column>
<apex:column headerValue="Opportunity">
<apex:inputField value="{!BigOpportunity.Opportunity2__c}"/>
</apex:column>
</apex:pageBlockTable>
</apex:page>

I can use output field to display the output but the text will not be editable. (I need to accept the values and display at the same place and when I refresh/open new page I need to see the values at same place and they need to be editable)

Please let me know how do I achieve this?

Thanks,
JBabu.

  • June 18, 2012
  • Like
  • 0

Hi,

 

Can we diasble chatter for particular profile.

 

 

Thanks

  • May 18, 2011
  • Like
  • 0

 

Hi,

i am new to apex , please help me

 

here is my VF code:

 

<apex:page controller="titlesalary">
<apex:form >
<apex:sectionHeader title="designation"/>
<apex:pageBlock >
<apex:pageBlockButtons location="bottom">
<apex:commandButton action="{!save}" value="submit"/>
</apex:pageBlockButtons>

title<apex:selectlist value="{!title}" size="1">
<apex:selectOption itemValue="none" itemLabel="--None--"/>
<apex:selectOption itemValue="developer" itemLabel="developer"/>
<apex:selectOption itemValue="sr.developer" itemLabel="sr.developer"/>
<apex:selectOption itemValue="admin" itemLabel="admin"/>
</apex:selectList>
year<apex:selectlist value="{!year}" size="1">
<apex:selectOption itemValue="none" itemLabel="--None--"/>
<apex:selectOption itemValue="2009" itemLabel="2009"/>
<apex:selectOption itemValue="2010" itemLabel="2010"/>
<apex:selectOption itemValue="2011" itemLabel="2011"/>
</apex:selectList>
department<apex:selectList value="{!department}" size="1">
<apex:selectOption itemValue="none" itemLabel="--None--"/>
<apex:selectOption itemValue="it" itemLabel="IT"/>
<apex:selectOption itemValue="engg" itemLabel="ENGG"/>
<apex:selectOption itemValue="service" itemLabel="SERVICE"/>
</apex:selectList>
<apex:pageBlockTable value="{!salary}" var="hi" columns="4">
<apex:column headervalue="title" value="{!title}"/>
<apex:column headervalue="year" value="{!year}"/>
<apex:column headervalue="department" value="{!department}"/>
<apex:column headervalue="salary" value="{!salary}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>

 

I am using custom controller.my task is  to display yearly salary according to job title in VF PAGE BLOCK table.

  • March 16, 2011
  • Like
  • 0

Hi,

I am new to programming can any one help me please.i want to retrive data from database and display in VF pageblock table.

  • March 16, 2011
  • Like
  • 0

hi

i want to put red line symbol for mandatory field on vf page

can any one help please

  • February 20, 2011
  • Like
  • 0

HI,

I am new to apex and triggers when i write the below code its not firing trigger can any one please help me.



Trigger webaccount on Account (after insert) {
for(Account a: Trigger.new)
{
if(a.Website ==null){
a.Website = 'www.google.com';
}
else a.Website = 'froce.com';
}
}



Error: Invalid Data.
Review all error messages below to correct your data.
Apex trigger webaccount caused an unexpected exception, contact your administrator: webaccount: execution of AfterInsertcaused by: System.FinalException: Record is read-only: Trigger.webaccount: line 5, column 1

  • February 07, 2011
  • Like
  • 0

This is my first attempt at creating a sites page.

I'm unable to get any non-required field to display on the public site. The required fields display ok. By 'required', I mean required as set in the custom object.

 

Here is the visualforce page code...

 

<apex:page showHeader="false" sidebar="false" standardController="Complaint__c">

    <h1>Online Complaint Handling</h1>

    <apex:form >

        <apex:outputText value="Are you logging the complaint for yourself?" />

        <apex:inputField value="{!Complaint__c.Logging_this_complaint_for_yourself__c}" />

        <br/>

         

        <apex:outputText value="Complainant First Name" />

        <apex:inputField value="{!Complaint__c.Complaint_First_Name__c}" />

        <br/>

        

        <apex:outputText value="Relationship to Caller" />

        <apex:inputField value="{!Complaint__c.Relationship_to_Caller__c}" />

        <br/>

         

        <apex:outputText value="Caller Name" />

        <apex:inputField value="{!Complaint__c.Caller_Name__c}" />

        <br/>

         

        <apex:outputText value="Caller State" />

        <apex:inputField value="{!Complaint__c.Caller_State__c}" />

        <br/>

        

        <apex:outputText value="Date of Call" />

        <apex:inputField value="{!Complaint__c.Date_of_Call__c}" />

        <br/>

        

    </apex:form>

</apex:page>

 

 

Only the Caller_Name__c and the Date_of_Call__c input fields display on the public site, and they are the only 'required' fields from the Complaint custom object. The other input fields such as Complaint_First_Name__c just don't display on the public site.

 

The page displays correctly if previewed from within Salesforce via https://ap1.salesforce.com/apex/Complaint for example.

 

Can anyone offer some help as to what is wrong?

 

Steve

 

 

I'm having trouble using the Apex Data Loader from the command line.  It works fine thru the GUI.  If I encrypt just my password and run it, I get an "Invalid user name, password, or missing security token" error.  If I encrypt my password and my security token, I get the following error:
 
2008-08-15 15:46:53,476 INFO  [main] controller.Controller initLog (Controller.java:388) - The log has been initialized
2008-08-15 15:46:53,492 INFO  [main] process.ProcessConfig getBeanFactory (ProcessConfig.java:78) - Loading process configuration from config file: C:\Program Files\salesforce.com\Apex Data Loader 13.0\bin\..\conf\process-conf.xml
2008-08-15 15:46:53,538 INFO  [main] xml.XmlBeanDefinitionReader loadBeanDefinitions (XmlBeanDefinitionReader.java:163) - Loading XML bean definitions from file [C:\Program Files\salesforce.com\Apex Data Loader 13.0\bin\..\conf\process-conf.xml]
2008-08-15 15:46:53,570 INFO  [main] core.CollectionFactory <clinit> (CollectionFactory.java:66) - JDK 1.4+ collections available
2008-08-15 15:46:53,585 INFO  [main] core.CollectionFactory <clinit> (CollectionFactory.java:71) - Commons Collections 3.x available
2008-08-15 15:46:53,648 INFO  [positionExtract] controller.Controller initConfig (Controller.java:343) - The controller config has been initialized
2008-08-15 15:46:53,648 INFO  [positionExtract] process.ProcessRunner run (ProcessRunner.java:102) - Initializing process engine
2008-08-15 15:46:53,663 INFO  [positionExtract] process.ProcessRunner run (ProcessRunner.java:105) - Loading parameters
2008-08-15 15:46:54,663 ERROR [positionExtract] config.Config decryptProperty (Config.java:642) - Error loading parameter: sfdc.password of type: java.lang.String
javax.crypto.BadPaddingException: Given final block not properly padded
 at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
 at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
 at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA12275)
 at javax.crypto.Cipher.doFinal(DashoA12275)
 at com.salesforce.lexiloader.security.EncryptionUtil.decryptString(EncryptionUtil.java:197)
 at com.salesforce.lexiloader.config.Config.decryptProperty(Config.java:636)
 at com.salesforce.lexiloader.config.Config.postLoad(Config.java:588)
 at com.salesforce.lexiloader.config.Config.loadParameterOverrides(Config.java:614)
 at com.salesforce.lexiloader.process.ProcessRunner.run(ProcessRunner.java:106)
 at com.salesforce.lexiloader.process.ProcessRunner.main(ProcessRunner.java:228)
2008-08-15 15:46:54,663 FATAL [positionExtract] process.ProcessRunner run (ProcessRunner.java:156) - Error loading parameter: sfdc.password of type: java.lang.String
 
 
It seems to be having a problem with the password but I'm not sure what it's trying to tell me.
 
 
 
I discovered what the problem was.  I did not have the password and security token encrypted properly. 
 
 


Message Edited by upsetstomach on 08-18-2008 01:43 PM