Questions tagged [java]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
717 views

How to attach file using Rest api Java?

Can some budyy help me out. How to upload attachment using Rest REST API Attachment I am following this link. Is there any sample code available? Any help appreciated.
0
votes
1answer
1k views

soap enterprise jar package for java

I need jar file for this lib import com.sforce.soap.enterprise.DeleteResult; import com.sforce.soap.enterprise.DescribeGlobalResult; import com.sforce.soap.enterprise....
1
vote
2answers
2k views

Apex: HTML Button + ActionSupport calling the wrong Method on click

So this is a weird one. I have two buttons in a Table Column. They are HTML buttons with action support. When I click on the first one, it runs the second button's Method. When I comment out the ...
0
votes
0answers
217 views

Connection Reset Exception while upserting 20k records

Can anyone tell me how to resolve the below error while uploading 20k records.but it works fine if it is 10k. AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server....
5
votes
2answers
2k views

Capture Salesforce Outbound Message with a Java SOAP Listener

I would like to send the modified data on an object to an external system. For this I am thinking to use workflow based Outbound Message option. What I understand, the required endpoint url will be ...
2
votes
2answers
287 views

Cannot get apex code coverage from my Java app via SOAP Tooling API

Running code like the following throws exception: query = "SELECT Coverage FROM ApexCodeCoverageAggregate WHERE ApexClassOrTriggerId ='" + id + "'"; QueryResult q = project.getToolingConnection()....
2
votes
0answers
165 views

Two Way SSL Configuration With Tomcat 6

I am trying to configure SSL with Tomcat I have following all the steps of the configuration on tomcat server and Force. com side. I have follow the below link- https://developer.salesforce.com/page/...
1
vote
1answer
5k views

Access a Wrapper Class/list from a Different Class?

So this is what I'm trying to do. I want to make a new class as an extension to a VF Page, and be able to access List Values from that class, that are created in another class. Like so: public with ...
1
vote
1answer
1k views

Bulk API and load into Multiple Objects from single CSV file

I'm extremely new to salesforce and Bulk API. I've search for a possible solution for a couple of days, but haven't had any luck. I'm using the java examples for the bulk api load that I found here, ...
3
votes
1answer
378 views

How to get the SFDC Apex (Schema.SObjectType.Case.fieldSets.getMap() ) in java?

I need to get schema.SObjectType values , those values are dynamically used in SFDC Apex class. Do we have any API which i can able to get those fieldset values in java , i tried Enterprise,metadata ...
1
vote
0answers
308 views

Java issue on command line data import using data loader

I am running date import using command line batch file on daily basis for last 3 years without any problem. This morning I get this error Caused by: sun.security.provider.certpath....
4
votes
0answers
429 views

Data Loader does not open on OS X El Captain

Does anyone have similar issue opening Data Laoder on MAC OS X El Capitan?
9
votes
3answers
700 views

Functional programming utilities in apex

I've heard that in javascript world there is an emergent ecosystem of functional libraries (like lodash, rxjs but also es6 promise) and also in the java world (guava or Java8 with lambdas). Is there ...
0
votes
1answer
122 views

Bulk query help

I am trying to get my bulk query up and running to get data from our salesforce account. I have looked up a lot of examples since salesforce fails to give a java example for a bulk query. None of ...
1
vote
0answers
4k views

400 Bad Request on RestTemplate POST request to Salesforce Oauth

I am trying to send a POST request to https://test.salesforce.com/services/oauth2/token to retrieve the oauth access token. The response is 400 Bad Request with no info. Here's the (Java) client code: ...
1
vote
1answer
7k views

What are the main differences between APEX and Java [closed]

What are the main differences and is it possible to switch between these to languages. I`ve made some searches in google and i know that they are quite similar but ....I decide to make a post here ...
1
vote
0answers
156 views

Error XMLHttpRequest [duplicate]

I have a ORG production where a link open a POPUP code works, but the same code in sandbox does not. Error: In console chrome: Synchronous XMLHttpRequest on the main thread is deprecated because of ...
2
votes
2answers
1k views

Java sql.TimeStamp to Salesforce

I have a Java mapping that takes a field of type java.sql.Timestamp and insert it into Salesforce. Example of a field in the db: 2013-10-17 13:01:01 When it is inserted into Salesforce it looks ...
1
vote
1answer
135 views

What are the limitations of an app developed for Salesforce?

I am totally new to Salesforce app development and I was wondering about the limitations of the entire framework if there are any. Myself and a friend of mine have developed in C# and Java an API for ...
2
votes
2answers
301 views

Get list of custom object in RemedyForce

I have custom object in my RemedyForce abc__c and would like to get list of it. Tried this code: SearchResult sr = con.search( "FIND {00008137} IN abc__c FIELDS RETURNING abc__c(...
2
votes
1answer
209 views

Java SDK - Setting Additional Attributes for a Triggered Send

I have been reading on here that the method to set attributes for triggered sends isn't available in the Java SDK. Can anyone tell me if this is still the case? And if so, is the alternative to go ...
2
votes
0answers
2k views

Error:java.net.UnknownHostException: login.salesforce.com

package salesforce_rest; import java.io.IOException; import org.apache.http.client.methods.HttpPost; import org.apache.http.client.HttpClient; import org.apache.http.impl.client.HttpClientBuilder; ...
0
votes
1answer
330 views

How can we load Salesforce Data into Cassandra database using Spark?

We are looking to extract Salesforce data using some programming (Spark, Java?) and load it to a Cassandra database. I'm a total new to Salesforce and hence was looking for some guidance on the ...
1
vote
0answers
73 views

Inject Java Applet onto page?

I know it's possible to inject JavaScript onto a Salesforce page (with sidebar components, which are unfortunately going away this summer), but I'm wondering if it's possible to do the same thing with ...
25
votes
1answer
2k views

What is Apex built on?

Earlier today, a coworker asked what exactly Apex was. My lazy answer for those unfamiliar with Salesforce development is usually "it's like Java, but for Salesforce.com," to which he replied "is it ...
0
votes
1answer
624 views

Creating static resource in salesforce through java code

I am trying to create static resource in salesforce through java code. I am fetching the content of a file which is stored in my system and encoding it into base64 format and putting that content into ...
2
votes
1answer
6k views

How do I access elements from Json?

If I do String json = api.doRetrieve(endpoint); then I get back a json string. This is an array of objects. How do I get it to where I can do obj.someproperty in Java and access it? I'm doing this: ...
1
vote
2answers
237 views

Retrieving Mobile Connect Contacts Using Java Fuel API

How can I get these contacts from the mobile connect app using the java fuel api?
21
votes
1answer
2k views

Does Apex transpile into Java?

We know that the Apex syntax is very similar to Java. I have observed that on some occasions, while running some Apex code, you may get a Java exception. I assume that Apex runs on Java. But my ...
0
votes
2answers
2k views

Force.com IDE Plugin doesn't load in Eclipse Luna

I did a new clean Mac OS Yosemite Installation and want to install the Force.com IDE. First I installed the Java SE Development Kit 8, then I installed the newest version of the Eclipse IDE for Java ...
2
votes
4answers
4k 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 List&...
3
votes
3answers
6k 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
96 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
1k 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
431 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 (...
0
votes
2answers
261 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 ...
-2
votes
1answer
95 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
165 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
88 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 (System....
4
votes
1answer
898 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
189 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 ...
5
votes
1answer
2k 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
1k 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 update/...
0
votes
2answers
1k 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 ...
5
votes
1answer
285 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
1k 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 http://www....
2
votes
1answer
458 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
397 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
956 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
91 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 ...