Java is a computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible.

learn more… | top users | synonyms

0
votes
0answers
9 views

Errors while parsing sales force partner wsdl using wsimport in command prompt

I want to connect to sales force using java ,when i try to parse partner.wsdl using wsimport i was getting following errors parsing WSDL... [WARNING] src-resolve: Cannot resolve the name 'tns:ID' ...
2
votes
4answers
76 views

Breaking the values of the list into a new Line

I have has list with 20 values. I want to print them out First 10 values in one line and next 10 values in a new line. VF Code: <apex:outputtext value="{!listVals}"/> Apex Code: Public ...
2
votes
3answers
108 views

Removing Item From List by Index Causes Index to Change

As I'm attempting to remove an item from a List by the items respective index value I'm realizing (in a "going nuts" sort of way), that again because of pass by referencing I'm getting unexpected ...
0
votes
2answers
33 views

Custom Button: Illegal Token error

I am trying to create a custom button on a detail page that updates a field on the record. Here is my code: {!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")} var newRecords = []; var idLob = ...
0
votes
1answer
105 views

Partner API proxy authentication doesn't work

We use following code to connect to Salesforce using Partner API Java library (com.force.api.force-partner-api), and we tested tunneling through local proxy with proxy authentication (username and ...
3
votes
1answer
38 views

SimpleFilterPart on date fields (EventDate)

I'm currently using the Java bindings of the Partner API to extract unsubs, clicks, bounces and other events. This is working as expected, however I'd like to slice my requests by a date range ...
1
vote
0answers
32 views

Readiness of the Fuel SDK for Java and ability to extract mobile connect data [closed]

We are keen to use the API to pull specific data programatically using the Fuel SDK For various reasons, there is a preference to use the Java Programming Language for this type of development work ...
0
votes
2answers
66 views

Form not inserting new record

I have a form on my vf page: <apex:form id="submitComment"> <apex:pageBlock mode="edit"> <apex:pageBlockButtons location="bottom"> <apex:commandButton ...
-1
votes
1answer
40 views

Not able to call Salesforce REST web service from Java web application as Salesforce has disabled SSL 3.0 encryption

What needs to be done/changed from the java application side to access Salesforce orgs?
0
votes
1answer
18 views

AES decyption with PKCS7 Padding?

I have encrypted some Text in Java using PKCS7. In the Crypto class it is written that PKCS5 is supported, but is there any possibility using PKCS7? Or do you know a possibility that it would work ...
1
vote
0answers
24 views

Decryption of something encrypted with Java

I have a little problem. I want to decrypt a Text that I encrypted with a method written in Eclipse using Java. When i try to decrypt it using my IV and my key, i get an error ...
3
votes
1answer
111 views

Can I save a new Apex class using Tooling API in java?

Is it possible to create a new Apex class using Tooling SOAP API in java? When I'm trying to do that I get ApiFault exceptionCode=’INVALID_TYPE’ exceptionMessage=’This type of object is not ...
2
votes
1answer
29 views

Error while creating a pushtopic from java

I am trying to create a push topic in java by following this link . Since there were changes in the eclipse httpclient library (I am using version 9.2.5) I had to make corresponding changes and the ...
3
votes
1answer
78 views

Trying to get SymbolTable of an Apex class and get null

I'm quering Apex classes using Tooling API QueryResult queryResult = toolingConnection.query("select Id, ApiVersion, Name, NamespacePrefix, SymbolTable, Body from ApexClass where NamespacePrefix = ...
2
votes
1answer
24 views

how to get request id from create request document

Following is sample code that uses exacttarget partner API CreateOptions createOptions = CreateOptions.Factory.newInstance(); // The six lines below are necessary if you want to do an ...
-1
votes
2answers
92 views

Integrate java application with Salesforce

I have requirement of integrating my application (developed in java spring) with salesforce. I have to do basic CRUD and Export data from salesforce. Can any one please tell me the starting point ...
4
votes
1answer
58 views

Which way to update apex class through API is preffered: MetadataContainer in Tooling API or compileClasses in Apex API?

I need to save some Apex classes through API in java and this question confused me: In documentation for the Tooling API I found an example how to update Apex class using MetadataContainer. This ...
2
votes
2answers
62 views

Export data from salesforce into database

I am working in java. I am totally new to Salesforce. I have requirement of exporting data (scheduling a job) from Salesforce and putting it into one database table. I tried reading ...
2
votes
1answer
52 views

Creating Subscribers in ExactTarget via Java (and adding them to a list)

I have successfully been able to create Subscribers using the Java API which fall under 'All subscribers'. What I would like to be able to do is create a subscriber and add the subscriber to a ...
0
votes
1answer
71 views

Is it possible to add fields in the REST response?

Am trying to get the results from REST for the following URL.... https://{instance}.salesforce.com/services/data/v32.0/sobjects/{custom_object}__c am getting the response through advanced rest ...
1
vote
2answers
89 views

REST OAuth redirectURL in local Java Application

I have a question about authentication in the REST API of SalesForce. I have created an API that I can access using hurl.it in combination with RuneScope Token Generator. This works fine and I can ...
0
votes
0answers
49 views

exacttarget auth failuere SSLException

We use ExactTarget for sending push notifications. More specifically, we use MessageContact API for sending push notifications. Before sending request to MessageContact API, we need to get ...
0
votes
0answers
50 views

How can I get apex class parent through API?

Is there any way to get parent class ( I mean inheritance, not interface) of an apex class using any API in java? And the same question about class modifiers (like public abstract) - is there any ...
2
votes
1answer
151 views

Java Code to check validity (expiration) of access token using rest api

I am using username/password flow . I am getting access token . But when will that access token expires, so that I can request for new access token. i don't want to get access token with each request ...
0
votes
0answers
21 views

Data loader execution from Java Application

I'm trying to build a custom app using Java, where it will take input csv file and do some validation and data enrichment (Picklist, dependent picklist field ) and based on the outcome it will insert ...
1
vote
2answers
132 views

How to get a list of installed packages' names using API

How can I get a list of installed packages' names (not their namespace prefixes) through API in java? This answer describes how to get their namespace prefixes like "Rknews" for example, but not ...
2
votes
1answer
61 views

How can I get system apex classes using SOAP API (or any other API)

Is it possible to get a list of system apex classes like String, Datetime etc. and a list of their methods, fields etc. using soap or metadata or tooling api in java?
1
vote
1answer
45 views

Is there a way to Get all variable names in a class programatically using APEX?

If i have a class as shown below- public class ClassName{ String field1{get;set;} String field2{get;set;} } Is there a way to get the fieldname of the above class in apex code. I ...
0
votes
0answers
51 views

Streaming API subscribe from external application server

I am developing an appexchange managed package intended for multiple organizations. I also have external java application server which wants to subscribe for record update events for every subscribed ...
0
votes
1answer
142 views

salesforce integration with java using REST API

help me out to go forward in salesforce integration with java using REST API. These are the steps i came across and unable to find the way. Post a request to login.salesforce.com through REST ...
1
vote
0answers
50 views

In Java how can I insert additional data on subscriber profile attributes?

In Java, using FuelSDK, how can I insert/update and delete a subscriber + insert some additional data on profile attributes? There is something like insert/or update?
1
vote
1answer
89 views

How do I insert a Date and Boolean columns into a DataExtension in ExactTarget using FuelSdk in Java?

I have my Java based FuelSdk working for String column types. But as soon as I try to insert a date or a boolean, the application blows up. It looks like I need to specify the data type for the ...
1
vote
1answer
228 views

“The requested resource does not exist” - simple GET query

I've created an account. How to get access to its data via REST? For example for the database or my custom objects? Also I don't understand why when I do request with this query SELECT Name, Id, ...
1
vote
1answer
43 views

Email FTP - Tracking file data delivery

We are using FTP mechanism for mass email sending out i.e. we send file contianing list of the email Ids to whom email to be sent, email template to be used, dynamic data points. What is the ...
2
votes
0answers
47 views

Writing JUnit test cases for Salesforce APIs

I want to write JUnit test classes for a project involving login, creation, updation & deletion of various custom objects, fields, tabs, custom settings, etc. most of them utilizing metadata API ...
0
votes
0answers
64 views

how to know if an enterprise connection is alive

I want to know if a connection is valid, this is an example of what I'm trying to do: EnterpriseConnection connection = new MyEnterpriseConnection(); System.out.println("first " + ...
1
vote
0answers
109 views

Inserting a row in DataExtension via Java FuelSDk not working

I'm trying to insert rows into my Data Extensions via the Java FuelSdk. I'm able to get the client and get the Data Extension. Creating the row is straight forward. I'm not able to do the actual ...
2
votes
1answer
67 views

How can I set an SObject field to null using Java API?

I have a third party service which updates custom object values in my service on Force.com platform using Java API and OAUTH2. From some reason when I try to update the SObject field value to null, ...
1
vote
2answers
149 views

Developing exact target app in JAVA sdk : Part 2

The example for updating Data Extensions in "Developing exact target app in JAVA sdk" was what I have been looking for. Unfortunately, I'm not able to get it work for Shared Data Extensions. I've ...
1
vote
0answers
187 views

Why am I getting a Connection Timeout while just trying to connect to ExactTarget

Using the Java version of the FuelSDK, I'm unable to get a connection to our instance of ExactTarget. I'm getting the following exception: com.exacttarget.fuelsdk.ETSdkException: error writing ...
0
votes
1answer
101 views

Where can I find Java FuelSdk Examples?

Where can I find a reasonably complete Java example for connecting to ExactTarget and updating a Data Extension. It isn't in the documention. I've looked there already. ET just says its coming. Does ...
0
votes
0answers
52 views

ETConfiguration can't find fuelsdk.properties

I'm brand new to FuelSdk and trying to write my first app using Java. But I can't get back trying to instantiate ETConfiguration. If I call it with the path to the properties file, it can't find it, ...
0
votes
1answer
54 views

Limitations in functionality of SOAP/REST/etc. API as opposed to a Force.com app?

I'm still a Salesforce newbie, so I hope you won't mind my "immature" vocabulary.;) I'm about to build an application which should be integrated with Salesforce. Currently I have two options in front ...
0
votes
0answers
17 views

How to send email to multiple email addresses use java Fuel SDK or REST API [duplicate]

I want to send email to multiple email addresses using a template in java. Currently I am using REST API messageDefinitionSends, but it only can set email to one email at a time. Does Java Fuel SDK or ...
1
vote
1answer
151 views

Retrieving more than 2500 Records using ExactTarget Java Fuel SDK

We've got the the following code that is supposed to retrieve ALL unsubscribed entries from a list. With our data, this is hitting the 2500 limit. I had a look at the ruby sdk, where they have a ...
0
votes
1answer
258 views

How To Call A Java Class Method from Salesforce

Here I have one custom button in a VIsualforce page and one java class in netbeans, and what I want exactly is that whenever I click on custom button at that time iI want to run that java class. So ...
2
votes
1answer
185 views

Passing custom model to Apex REST custom endpoint

I have a custom APEX REST point /organization-contacts/* that accepts an array of queries to run. This is to try and find matching contacts (based on phone number in this example) in "batch". I ...
0
votes
1answer
156 views

Invalid SESSION ID on Account creation

I'm very new to salesforce. I created a developer account and I am trying to create an account using RESTAPI. I have the error 'Session expired or invalid" but I don't know why. I read a previous ...
1
vote
0answers
128 views

How to deploy a dynamic web project war file in heroku?

I am trying to deploy a war file in Heroku. Using Eclipse IDE, I developed a Dynamic Web Project which having basic HTML + JavaScript + j2ee files and the application is working well in my server ...
4
votes
3answers
144 views

How to use Name Object

I am using the Java API and trying to create an Attachment with a reference to the Parent external Id field. The setParent() method takes a Name object as the parameter. For what I read, the Name ...