• _LSDsl_
  • 0 Points
  • Member since 2009

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
  • 1
Tried to use PageReference to external web site and got this error-java.net.NoRouteToHostException: No route to host. Where is problem?

It is image (<apex:image> or <img>) in Visualforce page. When I tried render it as pdf, image is corrupted (image doesn't load...). It's bug??


How to insert external image in VFP that render as pdf??

I try to call apex web service from Visualforce page and get this error (INVALID_SESSION_ID)


 apex class :



global class AjaxServices {

WebService static void sendEmail(id attId, String email){

String[] toAddresses = new String[] {email};

Attachment att=[select id, name, Body from Attachment where id=:attId];

Blob ioPdf = att.Body;

Utils.sendEmail('Quote', 'Your quote', ioPdf, 'Quote.pdf', toAddresses, null);


  and Ajax call from VF page:



sforce.apex.execute("AjaxServices","sendEmail",{attId:id, email:email});


 in debuf window I see:


 Request: server- /services/Soap/package/AjaxServices


<se:Envelope xmlns:se="http://schemas.xmlsoap.org/soap/envelope/"><se:Header xmlns:sfns="http://soap.sforce.com/schemas/package/AjaxServices"/><se:Body><sendEmail xmlns="http://soap.sforce.com/schemas/package/AjaxServices"><attId>00PR0000000NlhjMAC</attId><email>sss@sss.sss</email></sendEmail></se:Body></se:Envelope>

 Response : status - 500 


<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="http://soap.sforce.com/schemas/package/AjaxServices"><soapenv:Body><soapenv:Fault><faultcode>sf:INVALID_SESSION_ID</faultcode><faultstring>INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session</faultstring></soapenv:Fault></soapenv:Body></soapenv:Envelope>


Where is problem? 







Message Edited by _LSDsl_ on 05-15-2009 07:58 AM

There is:

Object A , B, C.


B have lookup to A and C.


I need select all C that have relation with A .


Somethink like this:


C[] flAcs=[select ID from C where C.idB in (select ID from B where B.idA=:some_A_ID)];


but  on save I see error (Cannot use a foreign key for outer field for semi join) ((


Hi All,


Maybe someone can help, I'm looking to find a users guid with screen shots for the Salesforce Mobile application on a windows mobile device. Tried using the Blackberry Developer Simulator to create a manual but was unable to get internet connection for it. Would apriciate if somebody could help.