• vjoshi
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 13
    Replies

Hi,

 

I am trying to learn REST API through the sample application given on Force.com website. I have all the code integrated to NetBeans and I am able to put it to Tomcat server. Now, when I run the application through the browser, I get the link that says "click here to get data through REST/oauth" and then I get the salesforce login page too. But, when I type in the username and password, I get  "error 310; too many redirects" and when I reload the page, I get error in doget method that says "addparameter arguments cannot be null.

 

Please help!

What is the alternative to servlet 3.0 annotations that is used in REST API sample Force.com application? I am using Tomcat 6 server that does not support annotation package. How can I solve this issue?

@WebServlet(name = "oauth", urlPatterns = { "/oauth/*", "/oauth" }, initParams = {
		// clientId is 'Consumer Key' in the Remote Access UI
		@WebInitParam(name = "clientId", value = "..."),
		// clientSecret is 'Consumer Secret' in the Remote Access UI
		//@WebInitParam(name = "clientSecret", value = "..."),
		// This must be identical to 'Callback URL' in the Remote Access UI
		@WebInitParam(name = "redirectUri", value = "https://<sample ip>/RESTAPITEST/oauth/_callback"),
		@WebInitParam(name = "environment", value = "https://login.salesforce.com") })

 I am getting error in the bold parts.

 

Hi,

 

I have successfully completed most of the steps in the REST API tutorial page given in:

 

http://wiki.developerforce.com/index.php/Getting_Started_with_the_Force.com_REST_API

 

I got the link that says "Click here to retrieve contacts from salesforce via REST/Oauth" but when I click on it, the page gives me 404 error.

 

What could be the issue?

 

 

I want to develop sample applications using REST API and Force.com IDE platform. Is there a sample applicaiton with code available online that does so or how can I do it. I cannot seem to find a full-fledged sample applciaiton that utilizes REST too.

 

 

Hi,

 

I created the sample "Mileage Tracker" application from my account. and then created a new user "Bob Smith" with me as manager. Now, when I log in with the "Bob" account, I am not able to view the Mileage tab that I created with my account. I used Force.com IDE also while developing as instructed in the workbook.

I created a new project referring the Tutorial2 on the website. But I cannot see any folder named "unpackaged" as is given in the tutorial. So on creating tabs i do not see any tabs folder too. I can only view the tabs and other stuff on the broqwser but not on IDE. What could be the issue?

Hi,

 

I am trying to learn REST API through the sample application given on Force.com website. I have all the code integrated to NetBeans and I am able to put it to Tomcat server. Now, when I run the application through the browser, I get the link that says "click here to get data through REST/oauth" and then I get the salesforce login page too. But, when I type in the username and password, I get  "error 310; too many redirects" and when I reload the page, I get error in doget method that says "addparameter arguments cannot be null.

 

Please help!

What is the alternative to servlet 3.0 annotations that is used in REST API sample Force.com application? I am using Tomcat 6 server that does not support annotation package. How can I solve this issue?

@WebServlet(name = "oauth", urlPatterns = { "/oauth/*", "/oauth" }, initParams = {
		// clientId is 'Consumer Key' in the Remote Access UI
		@WebInitParam(name = "clientId", value = "..."),
		// clientSecret is 'Consumer Secret' in the Remote Access UI
		//@WebInitParam(name = "clientSecret", value = "..."),
		// This must be identical to 'Callback URL' in the Remote Access UI
		@WebInitParam(name = "redirectUri", value = "https://<sample ip>/RESTAPITEST/oauth/_callback"),
		@WebInitParam(name = "environment", value = "https://login.salesforce.com") })

 I am getting error in the bold parts.

 

Hi,

 

I have successfully completed most of the steps in the REST API tutorial page given in:

 

http://wiki.developerforce.com/index.php/Getting_Started_with_the_Force.com_REST_API

 

I got the link that says "Click here to retrieve contacts from salesforce via REST/Oauth" but when I click on it, the page gives me 404 error.

 

What could be the issue?

 

 

Hi,

 

I created the sample "Mileage Tracker" application from my account. and then created a new user "Bob Smith" with me as manager. Now, when I log in with the "Bob" account, I am not able to view the Mileage tab that I created with my account. I used Force.com IDE also while developing as instructed in the workbook.