• Akira
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

Hi, 

 

I put             Encoding.default_external='UTF-8'

 

in the bottom of config/environment.rb.

 

I could run the rails apps on my local machine but it crashed when I deployed in Heroku.

 

Could you please help me to avoid this crash ?

I 'd like to use Japanese in SFDC database, so UTF-8 is mandatory.

 

Regards,

 

Akira

  • May 09, 2011
  • Like
  • 0
Hi,

I'm working on Salesforce programming using Web API and Java.
When I run some Java code icluding soql:

qr = binding.query("select id, Name, policyholdernumber__c,contactid__c from Policyholder__c where policyholdernumber__c = '" + policyholdernumber + "'" );

An exception occuerred:

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:4209)
        at com.rakuten.rinsurance.wo2sfdc.ImportPolicyholders.dogetPolicyholdersByPolicyholderNumber(ImportPolicy.java:131)

I trie some time after regenerated the wsdl file, change the soql more simple such like "select id from contact"..., but the result was the same.

I'd  appreciate very much if someone give me advice to solve it.

Regards

A. Fujiwara

  • December 02, 2008
  • Like
  • 0
Hi,

I'm working on Salesforce programming using Web API and Java.
When I run some Java code icluding soql:

qr = binding.query("select id, Name, policyholdernumber__c,contactid__c from Policyholder__c where policyholdernumber__c = '" + policyholdernumber + "'" );

An exception occuerred:

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:4209)
        at com.rakuten.rinsurance.wo2sfdc.ImportPolicyholders.dogetPolicyholdersByPolicyholderNumber(ImportPolicy.java:131)

I trie some time after regenerated the wsdl file, change the soql more simple such like "select id from contact"..., but the result was the same.

I'd  appreciate very much if someone give me advice to solve it.

Regards

A. Fujiwara

  • December 02, 2008
  • Like
  • 0