• Rohit_SFDC
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Not updated password...; nested exception is: 
	org.xml.sax.SAXException: Invalid element in com.sforce.soap.enterprise.sobject.SObject - type
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXException: Invalid element in com.sforce.soap.enterprise.sobject.SObject - type
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Invalid element in com.sforce.soap.enterprise.sobject.SObject - type
	at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
	at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
	at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
	at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
	at org.apache.axis.client.Call.invoke(Call.java:2467)
	at org.apache.axis.client.Call.invoke(Call.java:2366)
	at org.apache.axis.client.Call.invoke(Call.java:1812)
	at com.sforce.soap.enterprise.SoapBindingStub.query(SoapBindingStub.java:3223)
	at org.salesforce.handlers.PasswordResetter.resetPassword(PasswordResetter.java:77)
	at org.salesforce.handlers.PasswordResetter.resetPassword(PasswordResetter.java:106)
	at org.salesforce.handlers.PasswordResetter.main(PasswordResetter.java:55)

	{http://xml.apache.org/axis/}hostname:SYMANTEC-633919

org.xml.sax.SAXException: Invalid element in com.sforce.soap.enterprise.sobject.SObject - type
	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
	at org.apache.axis.client.Call.invoke(Call.java:2470)
	at org.apache.axis.client.Call.invoke(Call.java:2366)
	at org.apache.axis.client.Call.invoke(Call.java:1812)
	at com.sforce.soap.enterprise.SoapBindingStub.query(SoapBindingStub.java:3223)
	at org.salesforce.handlers.PasswordResetter.resetPassword(PasswordResetter.java:77)
	at org.salesforce.handlers.PasswordResetter.resetPassword(PasswordResetter.java:106)
	at org.salesforce.handlers.PasswordResetter.main(PasswordResetter.java:55)
Caused by: org.xml.sax.SAXException: Invalid element in com.sforce.soap.enterprise.sobject.SObject - type
	at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
	at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
	at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
	at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
	at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
	at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
	at org.apache.axis.client.Call.invoke(Call.java:2467)
	... 6 more
USer =rohit@xyz.com	 Result =false
Error in reading columns from file null
Exception in thread "main" java.lang.NullPointerException
	at org.salesforce.handlers.PasswordResetter.resetPassword(PasswordResetter.java:106)
	at org.salesforce.handlers.PasswordResetter.main(PasswordResetter.java:55)

 

Hi, I am trying to reset password of the users specified in excel file. I am using Enterprise WSDL for that. in the PasswordResetter.java, i am getting above error.

Does anybody have solution for this?

 

Thanks,

Rohit

Helle, i want to build the testmethod apex class for a apex class trigger, but i dont obtain any result.

 

trigger t on Account (after update) {
      for (Account a : Trigger.new) {
      List<Contact> contactdata = [Select Id, AccountId, Name From Contact where AccountId = :a.Id];
if(contactdata.size()>0) {
List<User> userdata = [Select Id, ContactId From User where ContactId = :contactdata.get(0).Id];
if(userdata.size()>0) {
userdata.get(0).accspot__c = a.Spot_lead_time__c;
userdata.get(0).accstory__c = a.Storyboard_lead_time__c;
update userdata.get(0);
}
}
}
}

 

 

Thanks!!!

  • October 04, 2011
  • Like
  • 0

Hi,

I have created a vf page with two pageblocks .

One "pageBlock" contains "inputText" fields with Save Button.Other Contains a pageBlock table with "Edit" link in each row.

Here when i  click on "Save" button then it is saved to database and automatically updated in the below "PageBlock Table" in the same page.

Now i have the requirement,

when i click on "Edit" link on the particular row of the "PageBlockTable" then automatically the values of each cell of table set to respected "inPutText" fields in the above "PageBlock".

can any one reply me please?